cancel
Showing results for 
Search instead for 
Did you mean: 

"java.lang.NullPointerException"

madhusudana_reddy2
Contributor
0 Kudos

Hi All,

I am working on PI7.1ServicePack-06 and while saving some object(say jdbc communication channel) after creation getting small pop up saying that java.lang.NullPointerException. When i save the log file by clicking on SaveLog button, getting some pages of error log. Below is some portion of that log,

====================================================================

= Root Exception ===================================================

====================================================================

Thrown:

com.sap.aii.utilxi.swing.framework.FrameworkException: Internal problem occurred

at com.sap.aii.utilxi.swing.toolkit.ExceptionDialog.init(ExceptionDialog.java:124)

at com.sap.aii.utilxi.swing.toolkit.ExceptionDialog.<init>(ExceptionDialog.java:96)

at com.sap.aii.utilxi.swing.toolkit.IBMessages$1.run(IBMessages.java:319)

at com.sap.aii.utilxi.misc.thread.ThreadPool.assureAWTEventQueueing(ThreadPool.java:84)

at com.sap.aii.utilxi.misc.thread.ThreadPool.assureAWTEventQueueing(ThreadPool.java:67)

at com.sap.aii.utilxi.swing.toolkit.IBMessages.showException(IBMessages.java:309)

at com.sap.aii.utilxi.swing.toolkit.IBMessages.showException(IBMessages.java:299)

at com.sap.aii.utilxi.swing.toolkit.Guitilities.showExceptionDialog(Guitilities.java:1439)

at com.sap.aii.utilxi.swing.framework.ExecutionContext.executeSafe(ExecutionContext.java:172)

at com.sap.aii.utilxi.swing.framework.CommandAction.actionPerformed(CommandAction.java:82)

at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)

at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)

at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)

at javax.swing.DefaultButtonModel.setPressed(Unknown Source)

at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)

at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)

at java.awt.Component.processMouseEvent(Unknown Source)

at javax.swing.JComponent.processMouseEvent(Unknown Source)

at java.awt.Component.processEvent(Unknown Source)

at java.awt.Container.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.LightweightDispatcher.retargetMouseEvent(Unknown Source)

at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)

at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)

at java.awt.Container.dispatchEventImpl(Unknown Source)

at java.awt.Window.dispatchEventImpl(Unknown Source)

at java.awt.Component.dispatchEvent(Unknown Source)

at java.awt.EventQueue.dispatchEvent(Unknown Source)

at com.sap.aii.utilxi.swing.toolkit.Guitilities$EventProcessor.dispatchEvent(Guitilities.java:319)

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)

Caused by: java.lang.NullPointerException: null

at com.sap.aii.ib.gui.editor.CrossReferenceEnabler.isEnabled(CrossReferenceEnabler.java:13)

at com.sap.aii.utilxi.swing.framework.Command.isEnabled(Command.java:342)

at com.sap.aii.utilxi.swing.framework.CommandGroup.updateEnabling(CommandGroup.java:31)

at com.sap.aii.utilxi.swing.framework.WindowManager.updateEnabling(WindowManager.java:843)

at com.sap.aii.utilxi.swing.framework.Document.internalSetModified(Document.java:279)

at com.sap.aii.utilxi.swing.framework.cmd.SaveCommand.execute(SaveCommand.java:77)

at com.sap.aii.utilxi.swing.framework.ExecutionContext.execute(ExecutionContext.java:198)

at com.sap.aii.utilxi.swing.framework.ExecutionContext.executeSafe(ExecutionContext.java:154)

... 28 more

====================================================================

== Content from the LogHandler =====================================

====================================================================

#544 11:24:27 [AWT-EventQueue-2] WARNING com.sap.aii.utilxi.swing.toolkit.ButtonPanel: Special button of type 4 was not added in order (class com.sap.aii.utilxi.swing.toolkit.ButtonPanel)

#543 11:24:27 [AWT-EventQueue-2] ERROR com.sap.aii.utilxi.swing.toolkit.ExceptionDialog: Throwable

Thrown:

java.lang.NullPointerException: null

at com.sap.aii.ib.gui.editor.CrossReferenceEnabler.isEnabled(CrossReferenceEnabler.java:13)

at com.sap.aii.utilxi.swing.framework.Command.isEnabled(Command.java:342)

at com.sap.aii.utilxi.swing.framework.CommandGroup.updateEnabling(CommandGroup.java:31)

at com.sap.aii.utilxi.swing.framework.WindowManager.updateEnabling(WindowManager.java:843)

at com.sap.aii.utilxi.swing.framework.Document.internalSetModified(Document.java:279)

at com.sap.aii.utilxi.swing.framework.cmd.SaveCommand.execute(SaveCommand.java:77)

at com.sap.aii.utilxi.swing.framework.ExecutionContext.execute(ExecutionContext.java:198)

at com.sap.aii.utilxi.swing.framework.ExecutionContext.executeSafe(ExecutionContext.java:154)

at com.sap.aii.utilxi.swing.framework.CommandAction.actionPerformed(CommandAction.java:82)

at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)

at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)

at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)

at javax.swing.DefaultButtonModel.setPressed(Unknown Source)

at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)

at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)

at java.awt.Component.processMouseEvent(Unknown Source)

at javax.swing.JComponent.processMouseEvent(Unknown Source)

at java.awt.Component.processEvent(Unknown Source)

at java.awt.Container.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.LightweightDispatcher.retargetMouseEvent(Unknown Source)

at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)

at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)

at java.awt.Container.dispatchEventImpl(Unknown Source)

at java.awt.Window.dispatchEventImpl(Unknown Source)

at java.awt.Component.dispatchEvent(Unknown Source)

at java.awt.EventQueue.dispatchEvent(Unknown Source)

at com.sap.aii.utilxi.swing.toolkit.Guitilities$EventProcessor.dispatchEvent(Guitilities.java:319)

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)

#542 11:24:27 [AWT-EventQueue-2] WARNING com.sap.aii.ib.clsif.login.BeanProxy: Long RMI call in event dispatching thread: ObjectAccessBI.update (859 ms)

#541 11:24:26 [AWT-EventQueue-2] ERROR com.sap.aii.utilxi.swing.toolkit.Guitilities: Error in AWT-Event-Thread

Thrown:

java.lang.NullPointerException: null

at com.sap.aii.ib.gui.editor.CrossReferenceEnabler.isEnabled(CrossReferenceEnabler.java:13)

at com.sap.aii.utilxi.swing.framework.Command.isEnabled(Command.java:342)

at com.sap.aii.utilxi.swing.framework.CommandGroup.updateEnabling(CommandGroup.java:31)

at com.sap.aii.utilxi.swing.framework.WindowManager.updateEnabling(WindowManager.java:843)

at com.sap.aii.utilxi.swing.framework.Document.internalSetModified(Document.java:279)

at com.sap.aii.utilxi.swing.framework.Document.setModified(Document.java:289)

at com.sap.aii.ibdir.gui.cpa.ChannelDocument.setModified(ChannelDocument.java:280)

at com.sap.aii.ib.gui.editor.HeaderPanel$1.textInput(HeaderPanel.java:200)

at com.sap.aii.utilxi.swing.toolkit.TextFieldAdapter.keyReleased(TextFieldAdapter.java:120)

at java.awt.Component.processKeyEvent(Unknown Source)

at javax.swing.JComponent.processKeyEvent(Unknown Source)

at java.awt.Component.processEvent(Unknown Source)

at java.awt.Container.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.KeyboardFocusManager.redispatchEvent(Unknown Source)

at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(Unknown Source)

at com.sap.aii.utilxi.swing.toolkit.focus.AccessibleKeyboardFocusManager.dispatchKeyEvent(AccessibleKeyboardFocusManager.java:104)

at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(Unknown Source)

at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(Unknown Source)

at java.awt.DefaultKeyboardFocusManager.dispatchEvent(Unknown Source)

at java.awt.Component.dispatchEventImpl(Unknown Source)

at java.awt.Container.dispatchEventImpl(Unknown Source)

at java.awt.Window.dispatchEventImpl(Unknown Source)

at java.awt.Component.dispatchEvent(Unknown Source)

at java.awt.EventQueue.dispatchEvent(Unknown Source)

at com.sap.aii.utilxi.swing.toolkit.Guitilities$EventProcessor.dispatchEvent(Guitilities.java:319)

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)

#540 11:24:24 [AWT-EventQueue-2] ERROR com.sap.aii.utilxi.swing.toolkit.Guitilities: Error in AWT-Event-Thread

Thrown:

java.lang.NullPointerException: null

at com.sap.aii.ib.gui.editor.CrossReferenceEnabler.isEnabled(CrossReferenceEnabler.java:13)

at com.sap.aii.utilxi.swing.framework.Command.isEnabled(Command.java:342)

at com.sap.aii.utilxi.swing.framework.CommandGroup.updateEnabling(CommandGroup.java:31)

at com.sap.aii.utilxi.swing.framework.WindowManager.updateEnabling(WindowManager.java:843)

at com.sap.aii.utilxi.swing.framework.ExecutionContext.executeSafe(ExecutionContext.java:177)

at com.sap.aii.utilxi.swing.framework.CommandAction.actionPerformed(CommandAction.java:82)

at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)

at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)

at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)

at javax.swing.JToggleButton$ToggleButtonModel.setPressed(Unknown Source)

at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)

at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)

at java.awt.Component.processMouseEvent(Unknown Source)

at javax.swing.JComponent.processMouseEvent(Unknown Source)

at java.awt.Component.processEvent(Unknown Source)

at java.awt.Container.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.LightweightDispatcher.retargetMouseEvent(Unknown Source)

at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)

at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)

at java.awt.Container.dispatchEventImpl(Unknown Source)

at java.awt.Window.dispatchEventImpl(Unknown Source)

at java.awt.Component.dispatchEvent(Unknown Source)

at java.awt.EventQueue.dispatchEvent(Unknown Source)

at com.sap.aii.utilxi.swing.toolkit.Guitilities$EventProcessor.dispatchEvent(Guitilities.java:319)

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)

Note:- After starting the jdbc communication channel getting always below error.

Exception caught during JDBC adapter processing: java.lang.NullPointerException:

thanks,

madhu

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi,

Its a very common exeption people get while working in java stack.it got nothing to do with PI7.1.you get in every version of PI.

Might be the error description is much more elaborated in case of JRE1.6.

Might be while updating the GUID the java thread is pointing to a null value ...so its not getting any value to update.

It generally persists in the session,so best is to close the integration bulder and open it again and do the config work again for that one.

cheers,

Abhishek.

madhusudana_reddy2
Contributor
0 Kudos

Thanks for your valuable replies.

I tried all your approaches already. But still facing same problem.

Below approaches done to eliminate error......

1. Deleted that object and created newly,

2. created channel under Business Component instead of Business System.

3. deleted all cookies and temp files and restarted system.

4. i uninstalled all JDK and installed again.

5.refreshed cache mannually

6. stopped channel several times and restarted again.

7. edited description of channel and activated again.

Note:- Even i am giving jdbc Driver class name wrongly and when i am giving database username and password wrongly in JDBC Sender channel still it is getting error Exception caught during JDBC adapter processing: java.lang.NullPointerException . Actually if i will give driver class wrong in sender jdbc channel It should give class not found exception and for username or password wrong it should give authentication error.

thanks,

madhu

madhusudana_reddy2
Contributor
0 Kudos

This is because the port which the customer given to me is wrong. Now i corrected the port number in connection string, which clears my problem.

thanks for replies.

madhu

Former Member
0 Kudos

Hi Madhu,

As per your below note:

After starting the jdbc communication channel getting always below error. *Exception caught during JDBC adapter processing: java.lang.NullPointerException

It seems after creation the cache refresh is not happening properly.So kindly check with the SXI_CACHE. Full cache refresh : http://xiserver:50000/CPACache/refresh?mode=full

And Cache notification in ID.

Whether you are having the JDBC driver installed or not.

Please check all these.

Regards,

Nutan

rajasekhar_reddy14
Active Contributor
0 Kudos

Hi Madhu,

I experienced the same problem many times , when you get this error,close the ID and open once again,in this case you need to create the same object once again this trick worked for me recently,try once .

Regards,

Raj