java.lang.NullPointerException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • Hi I am working with Any Point Studio and i am trying to use Generic Database Connector but it is throwing Null Pointer Exception. Scenario : Test Connection while connecting is Successful But when i am trying to fire select command it is throwing the exception. Here is the exception : ERROR 2015-01-02 13:17:18,253 [[mule-nuodb].connector.http.mule.default.receiver.02] org.mule.exception.DefaultMessagingExceptionStrategy: ******************************************************************************** Message : null (java.lang.NullPointerException). Message payload is of type: String Code : MULE_ERROR--2 -------------------------------------------------------------------------------- Exception stack is: 1. null (java.lang.NullPointerException) org.mule.module.db.internal.domain.connection.DefaultDbConnection:99 (null) 2. null (java.lang.NullPointerException). Message payload is of type: String (org.mule.api.MessagingException) org.mule.execution.ExceptionToMessagingExceptionExecutionInterceptor:32 (http://www.mulesoft.org/docs/site/current3/apidocs/org/mule/api/MessagingException.html) -------------------------------------------------------------------------------- Root Exception stack trace: java.lang.NullPointerException at org.mule.module.db.internal.domain.connection.DefaultDbConnection.isClosed(DefaultDbConnection.java:99) at org.mule.module.db.internal.domain.connection.TransactionalDbConnectionFactory.releaseConnection(TransactionalDbConnectionFactory.java:150) at org.mule.module.db.internal.processor.AbstractDbMessageProcessor.process(AbstractDbMessageProcessor.java:87) + 3 more (set debug level logging or '-Dmule.verbose.exceptions=true' for everything) ******************************************************************************** Here is my XML <db:generic-config name="Generic_Database_Configuration" url="jdbc:nuodb://localhost:8080//TempSample?schema=ESB:user=123;password=123" driverClassName="com.nuodb.jdbc.Driver" doc:name="Generic Database Configuration"/> <flow name="mule-nuodbFlow1" doc:name="mule-nuodbFlow1"> <http:inbound-endpoint exchange-pattern="request-response" host="localhost" port="8081" path="nuodb" doc:name="HTTP"/> <db:select config-ref="Generic_Database_Configuration" doc:name="Database"> <db:parameterized-query><![CDATA[SELECT * FROM sometable></db:parameterized-query> </db:select> <object-to-string-transformer doc:name="Object to String"/> </flow>
    via by Utsac Vishnoi,
  • Hi I am working with Any Point Studio and i am trying to use Generic Database Connector but it is throwing Null Pointer Exception. Scenario : Test Connection while connecting is Successful But when i am trying to fire select command it is throwing the exception. Here is the exception : ERROR 2015-01-02 13:17:18,253 [[mule-nuodb].connector.http.mule.default.receiver.02] org.mule.exception.DefaultMessagingExceptionStrategy: ******************************************************************************** Message : null (java.lang.NullPointerException). Message payload is of type: String Code : MULE_ERROR--2 -------------------------------------------------------------------------------- Exception stack is: 1. null (java.lang.NullPointerException) org.mule.module.db.internal.domain.connection.DefaultDbConnection:99 (null) 2. null (java.lang.NullPointerException). Message payload is of type: String (org.mule.api.MessagingException) org.mule.execution.ExceptionToMessagingExceptionExecutionInterceptor:32 (http://www.mulesoft.org/docs/site/current3/apidocs/org/mule/api/MessagingException.html) -------------------------------------------------------------------------------- Root Exception stack trace: java.lang.NullPointerException at org.mule.module.db.internal.domain.connection.DefaultDbConnection.isClosed(DefaultDbConnection.java:99) at org.mule.module.db.internal.domain.connection.TransactionalDbConnectionFactory.releaseConnection(TransactionalDbConnectionFactory.java:150) at org.mule.module.db.internal.processor.AbstractDbMessageProcessor.process(AbstractDbMessageProcessor.java:87) + 3 more (set debug level logging or '-Dmule.verbose.exceptions=true' for everything) ******************************************************************************** Here is my XML <db:generic-config name="Generic_Database_Configuration" url="jdbc:nuodb://localhost:8080//TempSample?schema=ESB:user=123;password=123" driverClassName="com.nuodb.jdbc.Driver" doc:name="Generic Database Configuration"/> <flow name="mule-nuodbFlow1" doc:name="mule-nuodbFlow1"> <http:inbound-endpoint exchange-pattern="request-response" host="localhost" port="8081" path="nuodb" doc:name="HTTP"/> <db:select config-ref="Generic_Database_Configuration" doc:name="Database"> <db:parameterized-query><![CDATA[SELECT * FROM sometable></db:parameterized-query> </db:select> <object-to-string-transformer doc:name="Object to String"/> </flow>
    via by Utsac Vishnoi,
  • Using the new database connector. If you try to get datasense metadata information from a database connector with and invalid URL, it will cause the following NPE java.lang.NullPointerException at org.mule.module.db.internal.domain.connection.DefaultDbConnection.isClosed(DefaultDbConnection.java:99) at org.mule.module.db.internal.domain.connection.TransactionalDbConnectionFactory.releaseConnection(TransactionalDbConnectionFactory.java:150) at org.mule.module.db.internal.metadata.AbstractQueryMetadataProvider.getMetaDataResult(AbstractQueryMetadataProvider.java:345) at org.mule.module.db.internal.metadata.AbstractQueryMetadataProvider.getInputMetaData(AbstractQueryMetadataProvider.java:289) at org.mule.module.db.internal.processor.AbstractDbMessageProcessor.getInputMetaData(AbstractDbMessageProcessor.java:136) at org.mule.tooling.metadata.api.utils.MetadataRetriever.getExternalMetadata(MetadataRetriever.java:68) at org.mule.tooling.ui.modules.core.metadata.MetadataManager.getInputOutputMetadata(MetadataManager.java:137) at org.mule.tooling.ui.modules.core.metadata.action.GetInputOutputMetadataAction$1.run(GetInputOutputMetadataAction.java:60) at java.lang.Thread.run(Thread.java:745) java.lang.Throwable: java.lang.NullPointerException at org.mule.module.db.internal.domain.connection.DefaultDbConnection.isClosed(DefaultDbConnection.java:99) at org.mule.module.db.internal.domain.connection.TransactionalDbConnectionFactory.releaseConnection(TransactionalDbConnectionFactory.java:150) at org.mule.module.db.internal.metadata.AbstractQueryMetadataProvider.getMetaDataResult(AbstractQueryMetadataProvider.java:345) at org.mule.module.db.internal.metadata.AbstractQueryMetadataProvider.getInputMetaData(AbstractQueryMetadataProvider.java:289) at org.mule.module.db.internal.processor.AbstractDbMessageProcessor.getInputMetaData(AbstractDbMessageProcessor.java:136) at org.mule.tooling.metadata.api.utils.MetadataRetriever.getExternalMetadata(MetadataRetriever.java:68) at org.mule.tooling.ui.modules.core.metadata.MetadataManager.getInputOutputMetadata(MetadataManager.java:137) at org.mule.tooling.ui.modules.core.metadata.action.GetInputOutputMetadataAction$1.run(GetInputOutputMetadataAction.java:60) at java.lang.Thread.run(Thread.java:745) at org.mule.tooling.metadata.utils.MetadataUtils.showErrorMessage(MetadataUtils.java:332) at org.mule.tooling.metadata.utils.MetadataUtils.showGetMetadataErrorMessage(MetadataUtils.java:289) at org.mule.tooling.ui.modules.core.metadata.AbstractMetadataStrategy.doGetMetadata(AbstractMetadataStrategy.java:59) at org.mule.tooling.ui.modules.core.metadata.AbstractMetadataStrategy.getMetadata(AbstractMetadataStrategy.java:25) at org.mule.tooling.ui.modules.core.metadata.DataSenseEditorController.doUpdate(DataSenseEditorController.java:45) at org.mule.tooling.ui.modules.core.widgets.ClickHandlerRegistry.proceed(ClickHandlerRegistry.java:62) at org.mule.tooling.ui.modules.core.widgets.meta.DefaultDialogController.doUpdate(DefaultDialogController.java:20) at org.mule.tooling.properties.editor.EntityEditPartPropertiesEditor.apply(EntityEditPartPropertiesEditor.java:108) at org.mule.tooling.properties.views.MulePropertiesView.closeCurrentEditor(MulePropertiesView.java:263) at org.mule.tooling.properties.views.MulePropertiesView.showSelection(MulePropertiesView.java:202) at org.mule.tooling.properties.views.MulePropertiesView.showSelection(MulePropertiesView.java:184) at org.mule.tooling.properties.views.MulePropertiesView$MuleSelectionListener.selectionChanged(MulePropertiesView.java:704) at org.eclipse.ui.internal.AbstractSelectionService.firePostSelection(AbstractSelectionService.java:179) at org.eclipse.ui.internal.AbstractSelectionService$2.selectionChanged(AbstractSelectionService.java:71) at org.eclipse.ui.part.MultiPageSelectionProvider$1.run(MultiPageSelectionProvider.java:110) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) at org.eclipse.ui.part.MultiPageSelectionProvider.fireEventChange(MultiPageSelectionProvider.java:108) at org.eclipse.ui.part.MultiPageSelectionProvider.firePostSelectionChanged(MultiPageSelectionProvider.java:102) at org.eclipse.ui.part.MultiPageEditorSite.handlePostSelectionChanged(MultiPageEditorSite.java:428) at org.eclipse.ui.part.MultiPageEditorSite$3.selectionChanged(MultiPageEditorSite.java:340) at org.eclipse.gef.ui.parts.AbstractEditPartViewer.fireSelectionChanged(AbstractEditPartViewer.java:247) at org.eclipse.gef.ui.parts.AbstractEditPartViewer$1.run(AbstractEditPartViewer.java:131) at org.eclipse.gef.SelectionManager.fireSelectionChanged(SelectionManager.java:144) at org.eclipse.gef.SelectionManager.appendSelection(SelectionManager.java:83) at org.eclipse.gef.ui.parts.AbstractEditPartViewer.appendSelection(AbstractEditPartViewer.java:190) at org.eclipse.gef.ui.parts.AbstractEditPartViewer.select(AbstractEditPartViewer.java:599) at org.eclipse.gef.tools.SelectEditPartTracker.performSelection(SelectEditPartTracker.java:221) at org.eclipse.gef.tools.SelectEditPartTracker.performConditionalSelection(SelectEditPartTracker.java:167) at org.eclipse.gef.tools.SelectEditPartTracker.handleButtonDown(SelectEditPartTracker.java:92) at org.eclipse.gef.tools.AbstractTool.mouseDown(AbstractTool.java:1091) at org.eclipse.gef.tools.SelectionTool.mouseDown(SelectionTool.java:514) at org.eclipse.gef.EditDomain.mouseDown(EditDomain.java:245) at org.eclipse.gef.ui.parts.DomainEventDispatcher.dispatchMousePressed(DomainEventDispatcher.java:348) at org.eclipse.draw2d.LightweightSystem$EventHandler.mouseDown(LightweightSystem.java:523) at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:192) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4136) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1458) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1481) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1466) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1271) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3982) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3621) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2701) at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2665) at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2499) at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:679) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:668) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149) at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124) at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584) at org.eclipse.equinox.launcher.Main.run(Main.java:1438) at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
    via by Jorge D'Alessandro,
    • java.lang.NullPointerException at org.mule.module.db.internal.domain.connection.DefaultDbConnection.isClosed(DefaultDbConnection.java:99) at org.mule.module.db.internal.domain.connection.TransactionalDbConnectionFactory.releaseConnection(TransactionalDbConnectionFactory.java:150) at org.mule.module.db.internal.processor.AbstractDbMessageProcessor.process(AbstractDbMessageProcessor.java:87)
    No Bugmate found.