| Test that an exception that is thrown while processing a script is properly
dealt with.
In this example, by not starting up a JDBC DataSource, the BeanShell script fails.
It should record the underlying lcoation of the NullPointerError JDBC error, but instead you get a null pointer
exception location of the script instead.
What I want somewhere:
java.lang.NullPointerException
at com.opensymphony.module.propertyset.database.JDBCPropertySet.setImpl(JDBCPropertySet.java:267)
at com.opensymphony.module.propertyset.AbstractPropertySet.set(AbstractPropertySet.java:565)
at com.opensymphony.module.propertyset.AbstractPropertySet.setString(AbstractPropertySet.java:363)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at bsh.Reflect.invokeMethod(Unknown Source)
at bsh.Reflect.invokeObjectMethod(Unknown Source)
at bsh.Name.invokeMethod(Unknown Source)
at bsh.BSHMethodInvocation.eval(Unknown Source)
|