java.lang.NullPointerException

mulesoft.org | 4 months ago
  1. 0

    Mule generic database connection.DefaultDbConnection:99 (null)

    Stack Overflow | 2 years ago | bekur
    java.lang.NullPointerException
  2. 0

    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>

    MuleSoft JIRA | 2 years ago | Utsac Vishnoi
    java.lang.NullPointerException
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    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>

    MuleSoft JIRA | 2 years ago | Utsac Vishnoi
    java.lang.NullPointerException

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at org.mule.module.db.internal.domain.connection.DefaultDbConnection.isClosed()
    2. org.mule.module
      AbstractDbMessageProcessor.process
      1. org.mule.module.db.internal.domain.connection.DefaultDbConnection.isClosed(DefaultDbConnection.java:99)
      2. org.mule.module.db.internal.domain.connection.TransactionalDbConnectionFactory.releaseConnection(TransactionalDbConnectionFactory.java:150)
      3. org.mule.module.db.internal.processor.AbstractDbMessageProcessor.process(AbstractDbMessageProcessor.java:87)
      3 frames