Bugs item #651476, was opened at 2002-12-10 15:30
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=376685&aid=651476&group_id=22866
Category: JBossCX
Group: v3.2
Status: Open
Resolution: None
Priority: 5
Submitted By: Bernd Zeitler (frito)
>Assigned to: David Jencks (d_jencks)
Summary: scope in BaseManagedConnectionFactory
Initial Comment:
The method scope for getConnectionProperties(Subject,
ConnectionRequestInfo) is protected but must be public
or at least package scope because
BaseWrapperManagedConnection tries to access the
method of its member mcf which can be (or is) a
BaseManagedConnectionFactory.
javac should fail to compile, but "build clean most"
doesn't even complain. When JBoss tries to access the
method, the following error is produced:
15:35:26,176 WARN [ServiceController] Problem
starting service jboss.mq:service=PersistenceManager
java.lang.IllegalAccessError: tried to access method
org.jboss.resource.adapter.jdbc.BaseWrapperManagedC
onnectionFactory.getConnectionProperties
(Ljavax/security/auth/Subject;Ljavax/resource/spi/Connec
tionRequestInfo;)Ljava/util/Properties; from class
org.jboss.resource.adapter.jdbc.BaseWrapperManagedC
onnection
at
org.jboss.resource.adapter.jdbc.BaseWrapperManagedC
onnection.checkIdentity
(BaseWrapperManagedConnection.java:296)
at
org.jboss.resource.adapter.jdbc.BaseWrapperManagedC
onnection.getConnection
(BaseWrapperManagedConnection.java:189)
at
org.jboss.resource.connectionmanager.BaseConnection
Manager2.allocateConnection
(BaseConnectionManager2.java:596)
at
org.jboss.resource.connectionmanager.BaseConnection
Manager2$ConnectionManagerProxy.allocateConnection
(BaseConnectionManager2.java:885)
at
org.jboss.resource.adapter.jdbc.WrapperDataSource.get
Connection(WrapperDataSource.java:102)
at
org.jboss.mq.pm.jdbc2.PersistenceManager.resolveAllUn
commitedTXs(PersistenceManager.java:212)
at
org.jboss.mq.pm.jdbc2.PersistenceManager.startService
(PersistenceManager.java:1089)
at org.jboss.system.ServiceMBeanSupport.start
(ServiceMBeanSupport.java:197)
at sun.reflect.GeneratedMethodAccessor42.invoke
(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
org.jboss.mx.capability.ReflectedMBeanDispatcher.invok
e(ReflectedMBeanDispatcher.java:284)
at org.jboss.mx.server.MBeanServerImpl.invoke
(MBeanServerImpl.java:549)
at
org.jboss.system.ServiceController$ServiceProxy.invoke
(ServiceController.java:962)
at $Proxy9.start(Unknown Source)
at org.jboss.system.ServiceController.start
(ServiceController.java:388)
at org.jboss.system.ServiceController.start
(ServiceController.java:404)
at sun.reflect.GeneratedMethodAccessor11.invoke
(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
org.jboss.mx.capability.ReflectedMBeanDispatcher.invok
e(ReflectedMBeanDispatcher.java:284)
at org.jboss.mx.server.MBeanServerImpl.invoke
(MBeanServerImpl.java:549)
at org.jboss.util.jmx.MBeanProxy.invoke
(MBeanProxy.java:174)
at $Proxy5.start(Unknown Source)
at org.jboss.deployment.SARDeployer.start
(SARDeployer.java:307)
at org.jboss.deployment.MainDeployer.start
(MainDeployer.java:818)
at org.jboss.deployment.MainDeployer.deploy
(MainDeployer.java:630)
at org.jboss.deployment.MainDeployer.deploy
(MainDeployer.java:594)
at sun.reflect.GeneratedMethodAccessor30.invoke
(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
org.jboss.mx.capability.ReflectedMBeanDispatcher.invok
e(ReflectedMBeanDispatcher.java:284)
at org.jboss.mx.server.MBeanServerImpl.invoke
(MBeanServerImpl.java:549)
at org.jboss.util.jmx.MBeanProxy.invoke
(MBeanProxy.java:174)
at $Proxy7.deploy(Unknown Source)
at
org.jboss.deployment.scanner.URLDeploymentScanner.
deploy(URLDeploymentScanner.java:400)
at
org.jboss.deployment.scanner.URLDeploymentScanner.
scanDirectory(URLDeploymentScanner.java:619)
at
org.jboss.deployment.scanner.URLDeploymentScanner.
scan(URLDeploymentScanner.java:472)
at
org.jboss.deployment.scanner.AbstractDeploymentScan
ner$ScannerThread.doScan
(AbstractDeploymentScanner.java:195)
at
org.jboss.deployment.scanner.AbstractDeploymentScan
ner.startService(AbstractDeploymentScanner.java:268)
at org.jboss.system.ServiceMBeanSupport.start
(ServiceMBeanSupport.java:197)
at sun.reflect.GeneratedMethodAccessor12.invoke
(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
org.jboss.mx.capability.ReflectedMBeanDispatcher.invok
e(ReflectedMBeanDispatcher.java:284)
at org.jboss.mx.server.MBeanServerImpl.invoke
(MBeanServerImpl.java:549)
at
org.jboss.system.ServiceController$ServiceProxy.invoke
(ServiceController.java:962)
at $Proxy0.start(Unknown Source)
at org.jboss.system.ServiceController.start
(ServiceController.java:388)
at sun.reflect.GeneratedMethodAccessor11.invoke
(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
org.jboss.mx.capability.ReflectedMBeanDispatcher.invok
e(ReflectedMBeanDispatcher.java:284)
at org.jboss.mx.server.MBeanServerImpl.invoke
(MBeanServerImpl.java:549)
at org.jboss.util.jmx.MBeanProxy.invoke
(MBeanProxy.java:174)
at $Proxy5.start(Unknown Source)
at org.jboss.deployment.SARDeployer.start
(SARDeployer.java:307)
at org.jboss.deployment.MainDeployer.start
(MainDeployer.java:818)
at org.jboss.deployment.MainDeployer.deploy
(MainDeployer.java:630)
at org.jboss.deployment.MainDeployer.deploy
(MainDeployer.java:594)
at org.jboss.deployment.MainDeployer.deploy
(MainDeployer.java:578)
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.mx.capability.ReflectedMBeanDispatcher.invok
e(ReflectedMBeanDispatcher.java:284)
at org.jboss.mx.server.MBeanServerImpl.invoke
(MBeanServerImpl.java:549)
at org.jboss.util.jmx.MBeanProxy.invoke
(MBeanProxy.java:174)
at $Proxy6.deploy(Unknown Source)
at org.jboss.system.server.ServerImpl.doStart
(ServerImpl.java:325)
at org.jboss.system.server.ServerImpl.start
(ServerImpl.java:232)
at org.jboss.Main.boot(Main.java:155)
at org.jboss.Main$1.run(Main.java:393)
at java.lang.Thread.run(Thread.java:536)
In my case, i had the following situation:
I built JBoss 3.2 beta2 out of sources (archive, not cvs)
on Win 2000, JDK 1.4.1.
I deployed an oracle-xa-service.xml for my datasource.
I deployed my xa-jbossmq-service.xml which uses the
datasource above as persistent store.
I worked around the problem by using a qick'n'dirty hack
commenting out checkIdentity() when getConnection() is
called on the wrapper.
Greetings,
Frito
----------------------------------------------------------------------
Comment By: Bernd Zeitler (frito)
Date: 2002-12-10 19:27
Message:
Logged In: YES
user_id=603154
Well, I think the build magic isn't as magic as I thought
before. Since "protected" is even package scope, the
compiler won't ever complain (thx Alex for pointing this out) ;-
)
But commenting out the line did the clue to me for now and
the error is still there. Perhaps it has something to do with
the Build System (*.jpp) and should be moved there?
Frito
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=376685&aid=651476&group_id=22866
-------------------------------------------------------
This sf.net email is sponsored by:
With Great Power, Comes Great Responsibility
Learn to use your power at OSDN's High Performance Computing Channel
http://hpc.devchannel.org/
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development