You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomee.apache.org by Judah Greenblatt <ju...@3ds.com> on 2013/11/04 19:01:05 UTC

TomEE+ 1.6.0-SNAPSHOT will not work with ojdbc6_g.jar

We are using TomEE+ 1.6.0-SNAPSHOT to develop a large EJB/JMS application
that uses a mixture of EJB 2 and EJB 3 beans.   It runs fine with Oracle
11.2 using  the driver in ojdbc6.jar.  When I replace ojdbc6.jar with
ojdbc6_g.jar, TomEE fails to start (stack trace below).   I need
ojdbc6_g.jar to try to diagnose a separate problem with the EJB 2 CMP 'find'
method returning over 400 items. This does not happen with TomEE+ 1.5.2
final.   [Aside: we cannot use TomEE+ 1.5.2 for other reasons.]

Nov 04, 2013 12:56:25 PM org.apache.openejb.util.OpenEJBErrorHandler
handleUnknownError
SEVERE: FATAL ERROR: Unknown error in Assembler.  Please send the following
stack trace and this message to users@openej
b.apache.org :
 org.apache.xbean.recipe.ConstructionException: Error invoking factory
method: public static javax.sql.DataSource org.ap
ache.openejb.resource.jdbc.DataSourceFactory.create(java.lang.String,boolean,java.lang.Class,java.lang.String,org.apache
.openejb.util.Duration,org.apache.openejb.util.Duration,org.apache.openejb.util.Duration)
throws java.lang.IllegalAccess
Exception,java.lang.InstantiationException,java.io.IOException
        at
org.apache.xbean.recipe.ReflectionUtil$StaticFactory.create(ReflectionUtil.java:1008)
        at
org.apache.xbean.recipe.ObjectRecipe.internalCreate(ObjectRecipe.java:276)
        at
org.apache.xbean.recipe.AbstractRecipe.create(AbstractRecipe.java:96)
        at
org.apache.xbean.recipe.AbstractRecipe.create(AbstractRecipe.java:61)
        at
org.apache.xbean.recipe.AbstractRecipe.create(AbstractRecipe.java:49)
        at
org.apache.openejb.assembler.classic.Assembler.createResource(Assembler.java:2098)
        at
org.apache.openejb.assembler.classic.Assembler.buildContainerSystem(Assembler.java:490)
        at
org.apache.openejb.assembler.classic.Assembler.build(Assembler.java:409)
        at org.apache.openejb.OpenEJB$Instance.<init>(OpenEJB.java:147)
        at org.apache.openejb.OpenEJB.init(OpenEJB.java:292)
        at
org.apache.tomee.catalina.TomcatLoader.initialize(TomcatLoader.java:245)
        at
org.apache.tomee.catalina.TomcatLoader.init(TomcatLoader.java:133)
        at
org.apache.tomee.catalina.ServerListener.lifecycleEvent(ServerListener.java:121)
        at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
        at
org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
        at
org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:402)
        at
org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:110)
        at org.apache.catalina.startup.Catalina.load(Catalina.java:640)
        at org.apache.catalina.startup.Catalina.load(Catalina.java:665)
        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.apache.catalina.startup.Bootstrap.load(Bootstrap.java:281)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:455)
Caused by: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
        at java.util.ArrayList.rangeCheck(ArrayList.java:635)
        at java.util.ArrayList.set(ArrayList.java:426)
        at
org.apache.xbean.recipe.XbeanAsmParameterNameLoader$AllParameterNamesDiscoveringVisitor$1.visitLocalVariable(
XbeanAsmParameterNameLoader.java:296)
        at org.apache.xbean.asm4.ClassReader.a(Unknown Source)
        at org.apache.xbean.asm4.ClassReader.b(Unknown Source)
        at org.apache.xbean.asm4.ClassReader.accept(Unknown Source)
        at org.apache.xbean.asm4.ClassReader.accept(Unknown Source)
        at
org.apache.xbean.recipe.XbeanAsmParameterNameLoader.getAllConstructorParameters(XbeanAsmParameterNameLoader.j
ava:115)
        at
org.apache.xbean.recipe.XbeanAsmParameterNameLoader.get(XbeanAsmParameterNameLoader.java:83)
        at
org.apache.xbean.recipe.ReflectionUtil.getParameterNames(ReflectionUtil.java:914)
        at
org.apache.xbean.recipe.ReflectionUtil.findConstructor(ReflectionUtil.java:644)
        at
org.apache.xbean.recipe.ObjectRecipe.findFactory(ObjectRecipe.java:563)
        at
org.apache.xbean.recipe.ObjectRecipe.internalCreate(ObjectRecipe.java:274)
        at
org.apache.xbean.recipe.AbstractRecipe.create(AbstractRecipe.java:96)
        at
org.apache.xbean.recipe.AbstractRecipe.create(AbstractRecipe.java:61)
        at
org.apache.xbean.recipe.AbstractRecipe.create(AbstractRecipe.java:49)
        at
org.apache.openejb.resource.jdbc.DataSourceFactory.create(DataSourceFactory.java:103)
        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.apache.xbean.recipe.ReflectionUtil$StaticFactory.create(ReflectionUtil.java:998)
        ... 24 more



--
View this message in context: http://openejb.979440.n4.nabble.com/TomEE-1-6-0-SNAPSHOT-will-not-work-with-ojdbc6-g-jar-tp4665944.html
Sent from the OpenEJB User mailing list archive at Nabble.com.

Re: TomEE+ 1.6.0-SNAPSHOT will not work with ojdbc6_g.jar

Posted by Romain Manni-Bucau <rm...@gmail.com>.
Hi

Does it run on the correct java version?
Le 4 nov. 2013 19:27, "Judah Greenblatt" <ju...@3ds.com> a
écrit :

> We are using TomEE+ 1.6.0-SNAPSHOT to develop a large EJB/JMS application
> that uses a mixture of EJB 2 and EJB 3 beans.   It runs fine with Oracle
> 11.2 using  the driver in ojdbc6.jar.  When I replace ojdbc6.jar with
> ojdbc6_g.jar, TomEE fails to start (stack trace below).   I need
> ojdbc6_g.jar to try to diagnose a separate problem with the EJB 2 CMP
> 'find'
> method returning over 400 items. This does not happen with TomEE+ 1.5.2
> final.   [Aside: we cannot use TomEE+ 1.5.2 for other reasons.]
>
> Nov 04, 2013 12:56:25 PM org.apache.openejb.util.OpenEJBErrorHandler
> handleUnknownError
> SEVERE: FATAL ERROR: Unknown error in Assembler.  Please send the following
> stack trace and this message to users@openej
> b.apache.org :
>  org.apache.xbean.recipe.ConstructionException: Error invoking factory
> method: public static javax.sql.DataSource org.ap
>
> ache.openejb.resource.jdbc.DataSourceFactory.create(java.lang.String,boolean,java.lang.Class,java.lang.String,org.apache
>
> .openejb.util.Duration,org.apache.openejb.util.Duration,org.apache.openejb.util.Duration)
> throws java.lang.IllegalAccess
> Exception,java.lang.InstantiationException,java.io.IOException
>         at
>
> org.apache.xbean.recipe.ReflectionUtil$StaticFactory.create(ReflectionUtil.java:1008)
>         at
> org.apache.xbean.recipe.ObjectRecipe.internalCreate(ObjectRecipe.java:276)
>         at
> org.apache.xbean.recipe.AbstractRecipe.create(AbstractRecipe.java:96)
>         at
> org.apache.xbean.recipe.AbstractRecipe.create(AbstractRecipe.java:61)
>         at
> org.apache.xbean.recipe.AbstractRecipe.create(AbstractRecipe.java:49)
>         at
>
> org.apache.openejb.assembler.classic.Assembler.createResource(Assembler.java:2098)
>         at
>
> org.apache.openejb.assembler.classic.Assembler.buildContainerSystem(Assembler.java:490)
>         at
> org.apache.openejb.assembler.classic.Assembler.build(Assembler.java:409)
>         at org.apache.openejb.OpenEJB$Instance.<init>(OpenEJB.java:147)
>         at org.apache.openejb.OpenEJB.init(OpenEJB.java:292)
>         at
> org.apache.tomee.catalina.TomcatLoader.initialize(TomcatLoader.java:245)
>         at
> org.apache.tomee.catalina.TomcatLoader.init(TomcatLoader.java:133)
>         at
>
> org.apache.tomee.catalina.ServerListener.lifecycleEvent(ServerListener.java:121)
>         at
>
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
>         at
>
> org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
>         at
>
> org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:402)
>         at
> org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:110)
>         at org.apache.catalina.startup.Catalina.load(Catalina.java:640)
>         at org.apache.catalina.startup.Catalina.load(Catalina.java:665)
>         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.apache.catalina.startup.Bootstrap.load(Bootstrap.java:281)
>         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:455)
> Caused by: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
>         at java.util.ArrayList.rangeCheck(ArrayList.java:635)
>         at java.util.ArrayList.set(ArrayList.java:426)
>         at
>
> org.apache.xbean.recipe.XbeanAsmParameterNameLoader$AllParameterNamesDiscoveringVisitor$1.visitLocalVariable(
> XbeanAsmParameterNameLoader.java:296)
>         at org.apache.xbean.asm4.ClassReader.a(Unknown Source)
>         at org.apache.xbean.asm4.ClassReader.b(Unknown Source)
>         at org.apache.xbean.asm4.ClassReader.accept(Unknown Source)
>         at org.apache.xbean.asm4.ClassReader.accept(Unknown Source)
>         at
>
> org.apache.xbean.recipe.XbeanAsmParameterNameLoader.getAllConstructorParameters(XbeanAsmParameterNameLoader.j
> ava:115)
>         at
>
> org.apache.xbean.recipe.XbeanAsmParameterNameLoader.get(XbeanAsmParameterNameLoader.java:83)
>         at
>
> org.apache.xbean.recipe.ReflectionUtil.getParameterNames(ReflectionUtil.java:914)
>         at
>
> org.apache.xbean.recipe.ReflectionUtil.findConstructor(ReflectionUtil.java:644)
>         at
> org.apache.xbean.recipe.ObjectRecipe.findFactory(ObjectRecipe.java:563)
>         at
> org.apache.xbean.recipe.ObjectRecipe.internalCreate(ObjectRecipe.java:274)
>         at
> org.apache.xbean.recipe.AbstractRecipe.create(AbstractRecipe.java:96)
>         at
> org.apache.xbean.recipe.AbstractRecipe.create(AbstractRecipe.java:61)
>         at
> org.apache.xbean.recipe.AbstractRecipe.create(AbstractRecipe.java:49)
>         at
>
> org.apache.openejb.resource.jdbc.DataSourceFactory.create(DataSourceFactory.java:103)
>         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.apache.xbean.recipe.ReflectionUtil$StaticFactory.create(ReflectionUtil.java:998)
>         ... 24 more
>
>
>
> --
> View this message in context:
> http://openejb.979440.n4.nabble.com/TomEE-1-6-0-SNAPSHOT-will-not-work-with-ojdbc6-g-jar-tp4665944.html
> Sent from the OpenEJB User mailing list archive at Nabble.com.
>

Re: TomEE+ 1.6.0-SNAPSHOT will not work with ojdbc6_g.jar

Posted by Romain Manni-Bucau <rm...@gmail.com>.
Thanks for the feedback and tests!
Le 5 nov. 2013 19:08, "Judah Greenblatt" <ju...@3ds.com> a
écrit :

> That fixed it nicely.   Thanks.  Now I can debug my CMP Bean problem.
>
>
>
> --
> View this message in context:
> http://openejb.979440.n4.nabble.com/TomEE-1-6-0-SNAPSHOT-will-not-work-with-ojdbc6-g-jar-tp4665944p4665983.html
> Sent from the OpenEJB User mailing list archive at Nabble.com.
>

Re: TomEE+ 1.6.0-SNAPSHOT will not work with ojdbc6_g.jar

Posted by Judah Greenblatt <ju...@3ds.com>.
That fixed it nicely.   Thanks.  Now I can debug my CMP Bean problem.



--
View this message in context: http://openejb.979440.n4.nabble.com/TomEE-1-6-0-SNAPSHOT-will-not-work-with-ojdbc6-g-jar-tp4665944p4665983.html
Sent from the OpenEJB User mailing list archive at Nabble.com.

Re: TomEE+ 1.6.0-SNAPSHOT will not work with ojdbc6_g.jar

Posted by Romain Manni-Bucau <rm...@gmail.com>.
Think I got the issue (in XBean).

I'll try to push a fix in the afternoon (should be < 1h).

To test it just replace tomee/lib/xbean-reflect*.jar by the one which
will be https://repository.apache.org/content/groups/snapshots/org/apache/xbean/xbean-reflect/3.15-SNAPSHOT/
(last digit would be 3)
Romain Manni-Bucau
Twitter: @rmannibucau
Blog: http://rmannibucau.wordpress.com/
LinkedIn: http://fr.linkedin.com/in/rmannibucau
Github: https://github.com/rmannibucau



2013/11/5 Judah Greenblatt <ju...@3ds.com>:
> Setting '-Djava.util.logging.config.file=/jdbc/demo/OracleLog.properties
> -Doracle.jdbc.Trace=true' or not setting these system properties has no
> effect.   The error happens before the Oracle code can fully load and start
> logging.
>
>
>
> --
> View this message in context: http://openejb.979440.n4.nabble.com/TomEE-1-6-0-SNAPSHOT-will-not-work-with-ojdbc6-g-jar-tp4665944p4665974.html
> Sent from the OpenEJB User mailing list archive at Nabble.com.

Re: TomEE+ 1.6.0-SNAPSHOT will not work with ojdbc6_g.jar

Posted by Judah Greenblatt <ju...@3ds.com>.
Setting '-Djava.util.logging.config.file=/jdbc/demo/OracleLog.properties
-Doracle.jdbc.Trace=true' or not setting these system properties has no
effect.   The error happens before the Oracle code can fully load and start
logging.



--
View this message in context: http://openejb.979440.n4.nabble.com/TomEE-1-6-0-SNAPSHOT-will-not-work-with-ojdbc6-g-jar-tp4665944p4665974.html
Sent from the OpenEJB User mailing list archive at Nabble.com.

Re: TomEE+ 1.6.0-SNAPSHOT will not work with ojdbc6_g.jar

Posted by dsh <da...@gmail.com>.
Hi,

did you set these properties:

-Djava.util.logging.config.file=/jdbc/demo/OracleLog.properties
-Doracle.jdbc.Trace=true

Maybe the log/trace file doesn't exist or the location is inaccessible?

Cheers
Daniel



--
View this message in context: http://openejb.979440.n4.nabble.com/TomEE-1-6-0-SNAPSHOT-will-not-work-with-ojdbc6-g-jar-tp4665944p4665973.html
Sent from the OpenEJB User mailing list archive at Nabble.com.

Re: TomEE+ 1.6.0-SNAPSHOT will not work with ojdbc6_g.jar

Posted by Judah Greenblatt <ju...@3ds.com>.
We run TomEE+ 1.6.0-Snapshot on Sun (well, now Oracle) Java 7 64-bit, at
various patch levels.   Official tests are run on: 
    java version "1.7.0_11"
    Java(TM) SE Runtime Environment (build 1.7.0_11-b21)
    Java HotSpot(TM) 64-Bit Server VM (build 23.6-b04, mixed mode)
while development is on the latest-and-greatest:
    java version "1.7.0_45"
    Java(TM) SE Runtime Environment (build 1.7.0_45-b18)
    Java HotSpot(TM) 64-Bit Server VM (build 24.45-b08, mixed mode)
This is on Windows (Windows-7 64-bit).
However, a few quick tests showed exactly the same behavior on Linux (SuSE
11.2 64-bit).
The TomEE+ 1.6.0-SNAPSHOT we use was built on 2013-07-29.  However, I get
the same behavior on the latest snapshot (2013-11-04).



--
View this message in context: http://openejb.979440.n4.nabble.com/TomEE-1-6-0-SNAPSHOT-will-not-work-with-ojdbc6-g-jar-tp4665944p4665968.html
Sent from the OpenEJB User mailing list archive at Nabble.com.