1 Reply Latest reply: Sep 28, 2011 3:05 PM by Uday Kumar Kanike RSS

Running ABAP program from web - java.lang.NullPointerException

Janet Lee
Currently Being Moderated

Hi experts,

 

Need help. We have a web portal that one of the link is to call out a customized report to be displayed on nthe browser. There is a standard function to download the report by List -> Save/Send -> File. It seems that after we upgrade to ECC6/web dispatcher, this function failed to work. Our Basis has helped to check and they are highlighting that this is application side issue. They gave us the following:

 

Exception in thread "AWT-EventQueue-4" java.lang.NullPointerException: String is null

     at sun.java2d.SunGraphics2D.drawString(Unknown Source)

     at Query.paint(Unknown Source)

     at sun.awt.RepaintArea.paintComponent(Unknown Source)

     at sun.awt.RepaintArea.paint(Unknown Source)

     at sun.awt.windows.WComponentPeer.handleEvent(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$000(Unknown Source)

     at java.awt.EventQueue$1.run(Unknown Source)

     at java.awt.EventQueue$1.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$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.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)

 

Frankly I really cannot understand this and also not sure how to solve it. Anyone have any ideas?

  • Re: Running WD Java program from web - java.lang.NullPointerException
    Uday Kumar Kanike
    Currently Being Moderated

    Hi All,

            I am also getting similar type of error

    java.lang.NullPointerException

     

        at se.abb.com.View2.wdDoInit(View2.java:102)

        at se.abb.com.wdp.InternalView2.wdDoInit(InternalView2.java:202)

        at com.sap.tc.webdynpro.progmodel.generation.DelegatingView.doInit(DelegatingView.java:61)

        at com.sap.tc.webdynpro.progmodel.controller.Controller.initController(Controller.java:215)

        at com.sap.tc.webdynpro.progmodel.view.View.initController(View.java:445)

        ... 34 more

     

    Please help me to resolve this error.

     

    Thanks

    Uday

Actions