[ https://issues.apache.org/jira/browse/DERBY-3197?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12543717 ]
Knut Anders Hatlen commented on DERBY-3197: ------------------------------------------- What seems to be the same NullPointerException was mentioned in this comment on DERBY-3175: https://issues.apache.org/jira/browse/DERBY-3175#action_12541670 And it also contains line numbers for the Derby code: Caused by: java.lang.NullPointerException at org.apache.derby.impl.sql.execute.BasicNoPutResultSetImpl.finishAndRTS(BasicNoPutResultSetImpl.java:634) at org.apache.derby.impl.sql.execute.BasicNoPutResultSetImpl.finish(BasicNoPutResultSetImpl.java:607) at org.apache.derby.impl.sql.execute.BaseActivation.close(BaseActivation.java:351) at org.apache.derby.impl.sql.GenericActivationHolder.execute(GenericActivationHolder.java:304) at org.apache.derby.impl.sql.GenericPreparedStatement.execute(GenericPreparedStatement.java:368) at org.apache.derby.impl.jdbc.EmbedStatement.executeStatement(EmbedStatement.java:1203) ... 24 more No repro was attached, though. > NPE in ProjectRestrictResultSet on finishAndRTS > ------------------------------------------------ > > Key: DERBY-3197 > URL: https://issues.apache.org/jira/browse/DERBY-3197 > Project: Derby > Issue Type: Bug > Affects Versions: 10.3.1.4 > Environment: Mac os X java 1.5.0_07 Jboss > Reporter: Patrick > > I got the NPE on my jboss Derby is uses as XA Datasource after this NPE the > connection to the DB is broken > Thread [WorkerThread#2[127.0.0.1:55525]] (Suspended (exception > NullPointerException)) > ProjectRestrictResultSet(BasicNoPutResultSetImpl).finishAndRTS() line: > not available > ProjectRestrictResultSet.finish() line: not available > acb9810038x0116x2de8xc403xffffdf5ec298b3(BaseActivation).close() line: > not available > GenericActivationHolder.execute() line: not available > GenericPreparedStatement.execute(Activation, boolean, long) line: not > available > EmbedPreparedStatement30(EmbedStatement).executeStatement(Activation, > boolean, boolean) line: not available > > EmbedPreparedStatement30(EmbedPreparedStatement).executeStatement(Activation, > boolean, boolean) line: not available > EmbedPreparedStatement30(EmbedPreparedStatement).executeQuery() line: > not available > BrokeredPreparedStatement30(BrokeredPreparedStatement).executeQuery() > line: not available > WrappedPreparedStatement.executeQuery() line: 236 > > SingleTableEntityPersister(AbstractEntityPersister).getDatabaseSnapshot(Serializable, > SessionImplementor) line: 1021 > StatefulPersistenceContext.getDatabaseSnapshot(Serializable, > EntityPersister) line: 234 > ForeignKeys.isTransient(String, Object, Boolean, SessionImplementor) > line: 189 > ForeignKeys$Nullifier.isNullifiable(String, Object) line: 137 > ForeignKeys$Nullifier.nullifyTransientReferences(Object, Type) line: 69 > ForeignKeys$Nullifier.nullifyTransientReferences(Object[], Type[]) > line: 47 > > EJB3PersistEventListener(AbstractSaveEventListener).performSaveOrReplicate(Object, > EntityKey, EntityPersister, boolean, Object, EventSource, boolean) line: 288 > EJB3PersistEventListener(AbstractSaveEventListener).performSave(Object, > Serializable, EntityPersister, boolean, Object, EventSource, boolean) line: > 181 > > EJB3PersistEventListener(AbstractSaveEventListener).saveWithGeneratedId(Object, > String, Object, EventSource, boolean) line: 121 > > EJB3PersistEventListener(DefaultPersistEventListener).entityIsTransient(PersistEvent, > Map) line: 131 > > EJB3PersistEventListener(DefaultPersistEventListener).onPersist(PersistEvent, > Map) line: 87 > > EJB3PersistEventListener(DefaultPersistEventListener).onPersist(PersistEvent) > line: 38 > SessionImpl.firePersist(PersistEvent) line: 618 > SessionImpl.persist(String, Object) line: 592 > SessionImpl.persist(Object) line: 596 > EntityManagerImpl(AbstractEntityManagerImpl).persist(Object) line: 212 > TransactionScopedEntityManager.persist(Object) line: 182 > BatchADCHomeSession(HomeSession<T>).persist(T) line: 47 > GeneratedMethodAccessor91.invoke(Object, Object[]) line: not available > DelegatingMethodAccessorImpl.invoke(Object, Object[]) line: 25 > Method.invoke(Object, Object...) line: 585 > EJBContainerInvocation<A,T>(MethodInvocation).invokeNext() line: 112 > InvocationContextImpl.proceed() line: 166 > EJB3InterceptorsInterceptor.invoke(Invocation) line: 63 > EJBContainerInvocation<A,T>(MethodInvocation).invokeNext() line: 101 > TransactionScopedEntityManagerInterceptor.invoke(Invocation) line: 54 > EJBContainerInvocation<A,T>(MethodInvocation).invokeNext() line: 101 > AllowedOperationsInterceptor.invoke(Invocation) line: 47 > EJBContainerInvocation<A,T>(MethodInvocation).invokeNext() line: 101 > Ejb3TxPolicy(TxPolicy).invokeInOurTx(Invocation, TransactionManager) > line: 79 > TxInterceptor$Required.invoke(Invocation) line: 191 > EJBContainerInvocation<A,T>(MethodInvocation).invokeNext() line: 101 > TxPropagationInterceptor.invoke(Invocation) line: 76 > EJBContainerInvocation<A,T>(MethodInvocation).invokeNext() line: 101 > StatelessInstanceInterceptor.invoke(Invocation) line: 62 > EJBContainerInvocation<A,T>(MethodInvocation).invokeNext() line: 101 > > Ejb3AuthenticationInterceptor(AuthenticationInterceptor).invoke(Invocation) > line: 77 > Ejb3AuthenticationInterceptor.invoke(Invocation) line: 106 > EJBContainerInvocation<A,T>(MethodInvocation).invokeNext() line: 101 > ENCPropagationInterceptor.invoke(Invocation) line: 46 > EJBContainerInvocation<A,T>(MethodInvocation).invokeNext() line: 101 > AsynchronousInterceptor.invoke(Invocation) line: 106 > EJBContainerInvocation<A,T>(MethodInvocation).invokeNext() line: 101 > StatelessContainer.dynamicInvoke(Object, Invocation) line: 278 > Dispatcher.invoke(Invocation) line: 106 > AOPRemotingInvocationHandler.invoke(InvocationRequest) line: 82 > SocketServerInvoker(ServerInvoker).invoke(InvocationRequest) line: 734 > ServerThread.processInvocation(SocketWrapper) line: 560 > ServerThread.dorun() line: 369 > ServerThread.run() line: 165 -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.