You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomee.apache.org by Matthew Theriot <Ma...@aigdirect.com> on 2016/04/22 21:48:42 UTC

TomEE lus 1.5.4 Error using JPA

Trying to get an older ejb app that needs JPA to work with TomEE-plus 1.7.4.

I can get normal apps that just use JDBC directly to work OK, but keep getting errors about setting properties in the sql server database driver classes (Merlia is the name of the database driver, that is where the class reference com.inet.tds.TdsDataSource is coming from)

I've been poking at the persistence.xml and tomee.xml files, but no luck so far. It's rare that a stack trace explicitly tells me to email it somewhere though, so here you go:


SEVERE: FATAL ERROR: Unknown error in Assembler.  Please send the following stack trace and this message to users@tomee.apache.org :
org.apache.xbean.recipe.ConstructionException: Error setting property: public void com.inet.tds.TdsDataSource.setProperties(java.util.Properties)
                at org.apache.xbean.recipe.ObjectRecipe.setProperty(ObjectRecipe.java:521)
                at org.apache.xbean.recipe.ObjectRecipe.setProperties(ObjectRecipe.java:371)
                at org.apache.xbean.recipe.ObjectRecipe.internalCreate(ObjectRecipe.java:286)
                at org.apache.xbean.recipe.AbstractRecipe.create(AbstractRecipe.java:96)
                at org.apache.xbean.recipe.AbstractRecipe.create(AbstractRecipe.java:61)
                at org.apache.openejb.assembler.classic.Assembler.doCreateResource(Assembler.java:2673)
                at org.apache.openejb.assembler.classic.Assembler.createResource(Assembler.java:2553)
                at org.apache.openejb.assembler.classic.Assembler.buildContainerSystem(Assembler.java:552)
                at org.apache.openejb.assembler.classic.Assembler.build(Assembler.java:464)
                at org.apache.openejb.OpenEJB$Instance.<init>(OpenEJB.java:151)
                at org.apache.openejb.OpenEJB.init(OpenEJB.java:309)
                at org.apache.tomee.catalina.TomcatLoader.initialize(TomcatLoader.java:256)
                at org.apache.tomee.catalina.ServerListener.install(ServerListener.java:167)
                at org.apache.tomee.catalina.ServerListener.lifecycleEvent(ServerListener.java:54)
                at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
                at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
                at org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:394)
                at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:110)
                at org.apache.catalina.startup.Catalina.load(Catalina.java:642)
                at org.apache.catalina.startup.Catalina.load(Catalina.java:667)
                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
                at java.lang.reflect.Method.invoke(Method.java:497)
                at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:253)
                at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:427)
Caused by: java.lang.NullPointerException
                at java.util.Hashtable.put(Hashtable.java:459)
                at java.util.Properties.setProperty(Properties.java:166)
                at com.inet.tds.TdsDataSource.setProperties(TdsDataSource.java:224)
                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
                at java.lang.reflect.Method.invoke(Method.java:497)
                at org.apache.xbean.recipe.ObjectRecipe$MethodMember.setValue(ObjectRecipe.java:641)
                at org.apache.xbean.recipe.ObjectRecipe.setProperty(ObjectRecipe.java:512)
                ... 25 more



Thanks for your time.


Re: TomEE lus 1.5.4 Error using JPA

Posted by Romain Manni-Bucau <rm...@gmail.com>.
Answering from phone but check SkipXXAttributes properties for the resource
definition. Should help.
Le 23 avr. 2016 03:01, "Matthew Theriot" <Ma...@aigdirect.com> a
écrit :

> Trying to get an older ejb app that needs JPA to work with TomEE-plus
> 1.7.4.
>
> I can get normal apps that just use JDBC directly to work OK, but keep
> getting errors about setting properties in the sql server database driver
> classes (Merlia is the name of the database driver, that is where the class
> reference com.inet.tds.TdsDataSource is coming from)
>
> I've been poking at the persistence.xml and tomee.xml files, but no luck
> so far. It's rare that a stack trace explicitly tells me to email it
> somewhere though, so here you go:
>
>
> SEVERE: FATAL ERROR: Unknown error in Assembler.  Please send the
> following stack trace and this message to users@tomee.apache.org :
> org.apache.xbean.recipe.ConstructionException: Error setting property:
> public void com.inet.tds.TdsDataSource.setProperties(java.util.Properties)
>                 at
> org.apache.xbean.recipe.ObjectRecipe.setProperty(ObjectRecipe.java:521)
>                 at
> org.apache.xbean.recipe.ObjectRecipe.setProperties(ObjectRecipe.java:371)
>                 at
> org.apache.xbean.recipe.ObjectRecipe.internalCreate(ObjectRecipe.java:286)
>                 at
> org.apache.xbean.recipe.AbstractRecipe.create(AbstractRecipe.java:96)
>                 at
> org.apache.xbean.recipe.AbstractRecipe.create(AbstractRecipe.java:61)
>                 at
> org.apache.openejb.assembler.classic.Assembler.doCreateResource(Assembler.java:2673)
>                 at
> org.apache.openejb.assembler.classic.Assembler.createResource(Assembler.java:2553)
>                 at
> org.apache.openejb.assembler.classic.Assembler.buildContainerSystem(Assembler.java:552)
>                 at
> org.apache.openejb.assembler.classic.Assembler.build(Assembler.java:464)
>                 at
> org.apache.openejb.OpenEJB$Instance.<init>(OpenEJB.java:151)
>                 at org.apache.openejb.OpenEJB.init(OpenEJB.java:309)
>                 at
> org.apache.tomee.catalina.TomcatLoader.initialize(TomcatLoader.java:256)
>                 at
> org.apache.tomee.catalina.ServerListener.install(ServerListener.java:167)
>                 at
> org.apache.tomee.catalina.ServerListener.lifecycleEvent(ServerListener.java:54)
>                 at
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
>                 at
> org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
>                 at
> org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:394)
>                 at
> org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:110)
>                 at
> org.apache.catalina.startup.Catalina.load(Catalina.java:642)
>                 at
> org.apache.catalina.startup.Catalina.load(Catalina.java:667)
>                 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> Method)
>                 at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>                 at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>                 at java.lang.reflect.Method.invoke(Method.java:497)
>                 at
> org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:253)
>                 at
> org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:427)
> Caused by: java.lang.NullPointerException
>                 at java.util.Hashtable.put(Hashtable.java:459)
>                 at java.util.Properties.setProperty(Properties.java:166)
>                 at
> com.inet.tds.TdsDataSource.setProperties(TdsDataSource.java:224)
>                 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> Method)
>                 at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>                 at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>                 at java.lang.reflect.Method.invoke(Method.java:497)
>                 at
> org.apache.xbean.recipe.ObjectRecipe$MethodMember.setValue(ObjectRecipe.java:641)
>                 at
> org.apache.xbean.recipe.ObjectRecipe.setProperty(ObjectRecipe.java:512)
>                 ... 25 more
>
>
>
> Thanks for your time.
>
>