#117 NullPointerException injacob-1.17-M2

1.17
closed-accepted
nobody
None
5
2013-09-07
2013-07-26
clay_shooter
No

Copied from forum originally submitted by.

Hi Guys,
Reading release notes from 1.17 or 1.16 which says
" (M2)Variant.getString() now returns null for NULL or EMPTY Variants instead of throwing exception. "
According to my observations you did fix if the return type variant it's returns string 'null' but it's still fails with NPE if the return type Date.
I am simply trying to get_str_property of date. I am using jacob for integration of Trim Context with Oracle Forms. I will appreciate if you let me know if there is a workaround or some sort of fix.
The exception is the following
2013-May-08 17:53:55.351 WUO Getting property WUO_OLE2_GET_PROPERTY
java.lang.NullPointerException
at com.jacob.com.Variant.toString(Variant.java:2189)
at java.lang.String.valueOf(Unknown Source)
at java.lang.StringBuilder.append(Unknown Source)
at oracle.forms.webutil.ole.OleFunctions.get_str_property(Unknown Source)
at oracle.forms.webutil.ole.OleFunctions.getProperty(Unknown Source)
at oracle.forms.handler.UICommon.onGet(Unknown Source)
at oracle.forms.engine.Runform.onGetHandler(Unknown Source)
at oracle.forms.engine.Runform.processMessage(Unknown Source)
at oracle.forms.engine.Runform.processSet(Unknown Source)
at oracle.forms.engine.Runform.onMessageReal(Unknown Source)
at oracle.forms.engine.Runform.onMessage(Unknown Source)
at oracle.forms.engine.Runform.processEventEnd(Unknown Source)
at oracle.ewt.lwAWT.LWComponent.redispatchEvent(Unknown Source)
at oracle.ewt.lwAWT.LWComponent.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$400(Unknown Source)
at java.awt.EventQueue$2.run(Unknown Source)
at java.awt.EventQueue$2.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
2013-May-08 17:53:55.351 ERROR>WUC-15 Unexpected error, Exception: java.lang.NullPointerException

Discussion

  • clay_shooter
    clay_shooter
    2013-07-26

    fixed in 1.17-M4

     
  • clay_shooter
    clay_shooter
    2013-09-07

    • status: pending-accepted --> closed-accepted