[Anthill-pro] Strange Error on Beanshell

Ryan Smith rws at urbancode.com
Thu Nov 5 11:13:17 CST 2009


Even stranger, for debugging I would try putting a blank line before and 
after it just to make sure its reporting the right line number.


emerson cargnin wrote:
> That is a string taken from a workflow property.
>
> (33)    String projectsSelected = PropertyLookup.getValue("Projects");
> (34)    commandOutput.println(projectsSelected );
> -------------------------------------------------------------
>
> 2009-11-05 16:55:44,694 ERROR -
> com.urbancode.anthill3.runtime.scripting.ScriptException: The
> application script threw an exception: java.lang.NullPointerException
> BSF info: noFile at line: 34
>
>
> 2009/11/5 Ryan Smith <rws at urbancode.com>:
>   
>> Seems odd. What type is projectsSelected? Maybe this would be better:
>>
>> commandOutput.println(String.valueOf(projectsSelected));
>>
>>
>>
>> emerson cargnin wrote:
>>     
>>> I'm getting some weird errors on a beanshell script.
>>>
>>> On a line that I have:    commandOutput.println(projectsSelected);
>>>
>>> I'm getting:
>>> 2009-11-05 14:34:56,800 ERROR - The application script threw an
>>> exception: java.lang.NullPointerException BSF info: noFile at line: 34
>>> 2009-11-05 14:34:56,800 ERROR -
>>> com.urbancode.anthill3.runtime.scripting.ScriptException: The
>>> application script threw an exception: java.lang.NullPointerException
>>> BSF info: noFile at line: 34
>>>
>>> Any idea? It is strange as I have another workflow that uses the same
>>> command without any problem..
>>>
>>> thanks
>>> Emerson
>>> _______________________________________________
>>> Anthill-pro mailing list
>>> Anthill-pro at lists.urbancode.com
>>> http://lists.urbancode.com/mailman/listinfo/anthill-pro
>>>
>>>
>>>       
>> _______________________________________________
>> Anthill-pro mailing list
>> Anthill-pro at lists.urbancode.com
>> http://lists.urbancode.com/mailman/listinfo/anthill-pro
>>
>>     
>
>   


More information about the Anthill-pro mailing list