Bugs item #1056478, was opened at 2004-10-28 17:38
Message generated for change (Comment added) made by starksm
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=376685&aid=1056478&group_id=22866
Category: JBossCMP
Group: v3.2
Status: Open
Resolution: None
Priority: 5
Submitted By: Ivan Parra (ioparra)
Assigned to: Alexey Loubyansky (loubyansky)
Summary: jdbc2 cmp container assumes tx exists
Initial Comment:
Schema:22 can get NullPointer
on multi-row finder.
Session Facade is doing call with "supports"
the finder is marked as "supports".
It worked in 3.2.5, but now null pointers.
I, personally, don't think supports should be allowed,
especially for local collections. Perhaps a more logical
exception would work?
java.lang.NullPointerException
at
org.jboss.ejb.plugins.cmp.jdbc2.schema.Schema$1.initialV
alue(Schema.java:42)
at org.jboss.tm.TransactionLocal.get
(TransactionLocal.java:145)
at org.jboss.tm.TransactionLocal.get
(TransactionLocal.java:128)
at
org.jboss.ejb.plugins.cmp.jdbc2.schema.Schema.flush
(Schema.java:122)
at
org.jboss.ejb.plugins.cmp.jdbc2.AbstractQueryCommand.f
etchCollection(AbstractQueryCommand.java:101)
at
org.jboss.ejb.plugins.cmp.jdbc2.JDBCStoreManager2.findE
ntities(JDBCStoreManager2.java:335)
at
org.jboss.ejb.plugins.CMPPersistenceManager.findEntities
(CMPPersistenceManager.java:278)
at
org.jboss.resource.connectionmanager.CachedConnection
Interceptor.findEntities(CachedConnectionInterceptor.jav
at org.jboss.ejb.EntityContainer.findLocal
(EntityContainer.java:613)
at sun.reflect.GeneratedMethodAccessor112.invoke
(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke
(Method.java:324)
at
org.jboss.ejb.EntityContainer$ContainerInterceptor.invoke
Home(EntityContainer.java:1070)
at
org.jboss.ejb.plugins.AbstractInterceptor.invokeHome
(AbstractInterceptor.java:88)
at
org.jboss.ejb.plugins.AbstractInterceptor.invokeHome
(AbstractInterceptor.java:88)
at
org.jboss.ejb.plugins.EntitySynchronizationInterceptor.inv
okeHome(EntitySynchronizationInterceptor.java:204)
at
org.jboss.resource.connectionmanager.CachedConnection
Interceptor.invokeHome
(CachedConnectionInterceptor.java:
at
org.jboss.ejb.plugins.AbstractInterceptor.invokeHome
(AbstractInterceptor.java:88)
at
org.jboss.ejb.plugins.EntityInstanceInterceptor.invokeHo
me(EntityInstanceInterceptor.java:90)
at
org.jboss.ejb.plugins.EntityCreationInterceptor.invokeHom
e(EntityCreationInterceptor.java:28)
at
org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext
(AbstractTxInterceptor.java:88)
at
org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransacti
ons(TxInterceptorCMT.java:341)
at
org.jboss.ejb.plugins.TxInterceptorCMT.invokeHome
(TxInterceptorCMT.java:128)
at
org.jboss.ejb.plugins.SecurityInterceptor.invokeHome
(SecurityInterceptor.java:85)
at org.jboss.ejb.plugins.LogInterceptor.invokeHome
(LogInterceptor.java:120)
at
org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invok
eHome(ProxyFactoryFinderInterceptor.java:93)
at org.jboss.ejb.EntityContainer.internalInvokeHome
(EntityContainer.java:478)
at org.jboss.ejb.Container.invoke
(Container.java:729)
at
org.jboss.ejb.plugins.local.BaseLocalProxyFactory.invokeH
ome(BaseLocalProxyFactory.java:347)
at
org.jboss.ejb.plugins.local.LocalHomeProxy.invoke
(LocalHomeProxy.java:110)
at $Proxy487.findAll(Unknown Source)
at
<TRANSACTION=SUPPORTS>
com.activereasoning.session.company.OrgOperationBean.
getAllOrgs(OrgOperationBean.java:142)
at sun.reflect.NativeMethodAccessorImpl.invoke0
(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke
(Method.java:324)
at
org.jboss.ejb.StatelessSessionContainer$ContainerInterce
ptor.invoke(StatelessSessionContainer.java:683)
at
org.jboss.resource.connectionmanager.CachedConnection
Interceptor.invoke
(CachedConnectionInterceptor.java:186)
at
org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor
.invoke(StatelessSessionInstanceInterceptor.java:72)
at
org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext
(AbstractTxInterceptor.java:84)
at
org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransacti
ons(TxInterceptorCMT.java:341)
at org.jboss.ejb.plugins.TxInterceptorCMT.invoke
(TxInterceptorCMT.java:148)
at org.jboss.ejb.plugins.AbstractInterceptor.invoke
(AbstractInterceptor.java:94)
at
com.activereasoning.metrics.MetricsInterceptor.invoke
(MetricsInterceptor.java:63)
at org.jboss.ejb.plugins.SecurityInterceptor.invoke
(SecurityInterceptor.java:111)
at org.jboss.ejb.plugins.LogInterceptor.invoke
(LogInterceptor.java:191)
at
org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invok
e(ProxyFactoryFinderInterceptor.java:122)
at
org.jboss.ejb.StatelessSessionContainer.internalInvoke
(StatelessSessionContainer.java:331)
at org.jboss.ejb.Container.invoke
(Container.java:709)
at sun.reflect.GeneratedMethodAccessor92.invoke
(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke
(Method.java:324)
at
org.jboss.mx.server.ReflectedDispatcher.dispatch
(ReflectedDispatcher.java:60)
at org.jboss.mx.server.Invocation.dispatch
(Invocation.java:62)
at org.jboss.mx.server.Invocation.dispatch
(Invocation.java:54)
at org.jboss.mx.server.Invocation.invoke
(Invocation.java:82)
at
org.jboss.mx.server.AbstractMBeanInvoker.invoke
(AbstractMBeanInvoker.java:197)
at org.jboss.mx.server.MBeanServerImpl.invoke
(MBeanServerImpl.java:473)
at
org.jboss.invocation.jrmp.server.JRMPInvoker.invoke
(JRMPInvoker.java:360)
at sun.reflect.NativeMethodAccessorImpl.invoke0
(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke
(Method.java:324)
at sun.rmi.server.UnicastServerRef.dispatch
(UnicastServerRef.java:261)
at sun.rmi.transport.Transport$1.run
(Transport.java:148)
at java.security.AccessController.doPrivileged
(Native Method)
at sun.rmi.transport.Transport.serviceCall
(Transport.java:144)
at
sun.rmi.transport.tcp.TCPTransport.handleMessages
(TCPTransport.java:460)
at
sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.ru
n(TCPTransport.java:701)
at java.lang.Thread.run(Thread.java:534)
----------------------------------------------------------------------
Comment By: Scott M Stark (starksm)
Date: 2004-12-29 12:52
Message:
Logged In: YES
user_id=175228
All issues have been moved to http://jira.jboss.com. Existing
issues have been moved. New issues will be closed with this
canned reponse.
----------------------------------------------------------------------
Comment By: Ivan Parra (ioparra)
Date: 2004-10-29 10:43
Message:
Logged In: YES
user_id=812998
didn't try jdbc2 on 3.2.5... only know it worked with jdbc(1)
on 3.2.5.
As far as working, I know that any release has few results.
1) Things that didn't work before, now works correctly(bug
fixes)
2) Bugs are exposed b/c the application has a bug
3) Bugs are exposed b/c the appserver has a bug
I feel like this is a middle ground, simply because I don't like
having our SB w/o a transaction. On a "just make it work"
philosophy, I'd prefer to say this problem is a #2. But I think
the j2ee requirement says it #3.
I considered not mentioning it, but figured you'd like to know.
----------------------------------------------------------------------
Comment By: Alexey Loubyansky (loubyansky)
Date: 2004-10-28 23:32
Message:
Logged In: YES
user_id=543482
Did it work for jdbc2 pm in 3.2.5?
Standard (older) persistence manager and a newer one (jdbc2
package) are very different. Something that works in one not
necessarily is going to work for the other one.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=376685&aid=1056478&group_id=22866
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
_______________________________________________
JBoss-Development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-development