<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        font-size:12.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:12.0pt;
        font-family:"Calibri",sans-serif;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style></head><body lang=EN-US link="#0563C1" vlink="#954F72" style='word-wrap:break-word'><div class=WordSection1><p class=MsoNormal><span style='font-size:11.0pt'>Hi Shibboleth Gurus,<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt'>I figured I should reach out as opposed to spending too much more time banging into a wall on this question.  I need to create a Bean for a custom intercept using the ScriptedFunction that can return a string.  I appear though to be running into issues getting it to return a String back when called from the flow.  Instead I am getting:</span><span style='font-size:11.5pt;font-family:"Arial",sans-serif;color:#1D1C1D;background:#F8F8F8'> “</span><span style='font-size:11.5pt;font-family:"Arial",sans-serif;color:#1D1C1D;background:#F8F8F8'>Caused by: org.springframework.expression.spel.SpelEvaluationException: EL1001E: Type conversion problem, cannot convert from net.shibboleth.utilities.java.support.logic.ScriptedFunction<?, ?> to java.lang.String”.  <o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.5pt;font-family:"Arial",sans-serif;color:#1D1C1D;background:#F8F8F8'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.5pt;font-family:"Arial",sans-serif;color:#1D1C1D;background:#F8F8F8'>I have tried to convert it by using T(java.lang.String) as well as setting the </span><span style='font-size:10.0pt;font-family:"Courier New"'>p:outputType="java.lang.String"</span><span style='font-size:11.0pt'>.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.5pt;font-family:"Arial",sans-serif;color:#1D1C1D;background:#F8F8F8'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt'>Would any of you have any pointers for getting around this conversion issue?<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt'>Thanks,<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt'>--David<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt'><a href="https://wiki.shibboleth.net/confluence/display/IDP4/ScriptedFunction">https://wiki.shibboleth.net/confluence/display/IDP4/ScriptedFunction</a></span><span style='font-size:11.0pt'><o:p></o:p></span></p></div></body></html>