tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alex Soto <asot...@gmail.com>
Subject Re: OpenJPA and Java 1.8
Date Thu, 04 Sep 2014 12:05:29 GMT
Not seen on pom


2014-09-04 14:02 GMT+02:00 Maxim Solodovnik <solomax666@gmail.com>:

> Maybe classes are being enhances in build time? (using ant or maven)
>
>
> On 4 September 2014 19:01, Alex Soto <asotobu@gmail.com> wrote:
>
> > :( but examples provided in github about EntityManager does not use
> > javaagent. This is because java 8?
> >
> >
> > 2014-09-04 13:58 GMT+02:00 Jean-Louis Monteiro <jlmonteiro@tomitribe.com
> >:
> >
> > > Subclassing works sometimes (deprecated mode), but it's definitely what
> > > OpenJPA recommends.
> > >
> > >
> > > --
> > > Jean-Louis Monteiro
> > > http://twitter.com/jlouismonteiro
> > > http://www.tomitribe.com
> > >
> > >
> > > On Thu, Sep 4, 2014 at 1:53 PM, Alex Soto <asotobu@gmail.com> wrote:
> > >
> > > > O thanks but it worked in other examples where no javaagent was
> added.
> > :)
> > > >
> > > >
> > > > 2014-09-04 13:18 GMT+02:00 Romain Manni-Bucau <rmannibucau@gmail.com
> >:
> > > >
> > > > > Hi
> > > > >
> > > > > you need to enhance your classes at build time or ensure you have
> > > > > openejb-javaagent set on the JVM
> > > > >
> > > > >
> > > > > Romain Manni-Bucau
> > > > > Twitter: @rmannibucau
> > > > > Blog: http://rmannibucau.wordpress.com/
> > > > > LinkedIn: http://fr.linkedin.com/in/rmannibucau
> > > > > Github: https://github.com/rmannibucau
> > > > >
> > > > >
> > > > > 2014-09-04 13:14 GMT+02:00 Alex Soto <asotobu@gmail.com>:
> > > > > > Hi,
> > > > > >
> > > > > > I am creating a very simple example using OpenJPA and TomEE
and I
> > > > receive
> > > > > > this exception.
> > > > > >
> > > > > > INFO: Creating subclass and redefining methods for "[class
> > > > > > org.superbiz.Book]". This means that your application will be
> less
> > > > > > efficient than it would if you ran the OpenJPA enhancer.
> > > > > > Sep 04, 2014 1:09:31 PM
> > > > > > org.apache.openejb.core.transaction.EjbTransactionUtil
> > > > > handleSystemException
> > > > > > SEVERE: EjbTransactionUtil.handleSystemException: null
> > > > > > <openjpa-2.4.0-nonfinal-1598334-r422266:1599166 fatal general
> > error>
> > > > > > org.apache.openjpa.persistence.PersistenceException: null
> > > > > > at
> > > > > >
> > > > >
> > > >
> > >
> >
> org.apache.openjpa.enhance.ClassRedefiner.redefineClasses(ClassRedefiner.java:96)
> > > > > > at
> > > > > >
> > > > >
> > > >
> > >
> >
> org.apache.openjpa.enhance.ManagedClassSubclasser.prepareUnenhancedClasses(ManagedClassSubclasser.java:176)
> > > > > > at
> > > > > >
> > > > >
> > > >
> > >
> >
> org.apache.openjpa.kernel.AbstractBrokerFactory.loadPersistentTypes(AbstractBrokerFactory.java:311)
> > > > > > at
> > > > > >
> > > > >
> > > >
> > >
> >
> org.apache.openjpa.kernel.AbstractBrokerFactory.initializeBroker(AbstractBrokerFactory.java:235)
> > > > > > at
> > > > > >
> > > > >
> > > >
> > >
> >
> org.apache.openjpa.kernel.AbstractBrokerFactory.newBroker(AbstractBrokerFactory.java:211)
> > > > > > at
> > > > > >
> > > > >
> > > >
> > >
> >
> org.apache.openjpa.kernel.DelegatingBrokerFactory.newBroker(DelegatingBrokerFactory.java:155)
> > > > > > at
> > > > > >
> > > > >
> > > >
> > >
> >
> org.apache.openjpa.persistence.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:226)
> > > > > > at
> > > > > >
> > > > >
> > > >
> > >
> >
> org.apache.openjpa.persistence.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:59)
> > > > > > at
> > > > > >
> > > > >
> > > >
> > >
> >
> org.apache.openejb.assembler.classic.ReloadableEntityManagerFactory.createEntityManager(ReloadableEntityManagerFactory.java:160)
> > > > > > at
> > > > > >
> > > > >
> > > >
> > >
> >
> org.apache.openejb.persistence.JtaEntityManagerRegistry.getEntityManager(JtaEntityManagerRegistry.java:119)
> > > > > > at
> > > > > >
> > > > >
> > > >
> > >
> >
> org.apache.openejb.persistence.JtaEntityManager.getEntityManager(JtaEntityManager.java:96)
> > > > > > at
> > > > > >
> > > > >
> > > >
> > >
> >
> org.apache.openejb.persistence.JtaEntityManager.persist(JtaEntityManager.java:144)
> > > > > > at org.superbiz.BookManager.createBook(BookManager.java:14)
> > > > > > 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:483)
> > > > > > at
> > > > > >
> > > > >
> > > >
> > >
> >
> org.apache.openejb.core.interceptor.ReflectionInvocationContext$Invocation.invoke(ReflectionInvocationContext.java:192)
> > > > > > at
> > > > > >
> > > > >
> > > >
> > >
> >
> org.apache.openejb.core.interceptor.ReflectionInvocationContext.proceed(ReflectionInvocationContext.java:173)
> > > > > > at
> > > > > >
> > > > >
> > > >
> > >
> >
> org.apache.openejb.monitoring.StatsInterceptor.record(StatsInterceptor.java:181)
> > > > > > at
> > > > > >
> > > > >
> > > >
> > >
> >
> org.apache.openejb.monitoring.StatsInterceptor.invoke(StatsInterceptor.java:100)
> > > > > > 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:483)
> > > > > > at
> > > > > >
> > > > >
> > > >
> > >
> >
> org.apache.openejb.core.interceptor.ReflectionInvocationContext$Invocation.invoke(ReflectionInvocationContext.java:192)
> > > > > > at
> > > > > >
> > > > >
> > > >
> > >
> >
> org.apache.openejb.core.interceptor.ReflectionInvocationContext.proceed(ReflectionInvocationContext.java:173)
> > > > > > at
> > > > > >
> > > > >
> > > >
> > >
> >
> org.apache.openejb.core.interceptor.InterceptorStack.invoke(InterceptorStack.java:85)
> > > > > > at
> > > > > >
> > > > >
> > > >
> > >
> >
> org.apache.openejb.core.stateless.StatelessContainer._invoke(StatelessContainer.java:227)
> > > > > > at
> > > > > >
> > > > >
> > > >
> > >
> >
> org.apache.openejb.core.stateless.StatelessContainer.invoke(StatelessContainer.java:194)
> > > > > > at
> > > > > >
> > > > >
> > > >
> > >
> >
> org.apache.openejb.core.ivm.EjbObjectProxyHandler.synchronizedBusinessMethod(EjbObjectProxyHandler.java:308)
> > > > > > at
> > > > > >
> > > > >
> > > >
> > >
> >
> org.apache.openejb.core.ivm.EjbObjectProxyHandler.businessMethod(EjbObjectProxyHandler.java:303)
> > > > > > at
> > > > > >
> > > > >
> > > >
> > >
> >
> org.apache.openejb.core.ivm.EjbObjectProxyHandler._invoke(EjbObjectProxyHandler.java:92)
> > > > > > at
> > > > > >
> > > > >
> > > >
> > >
> >
> org.apache.openejb.core.ivm.BaseEjbProxyHandler.invoke(BaseEjbProxyHandler.java:308)
> > > > > > at
> > > > > >
> > > > >
> > > >
> > >
> >
> org.superbiz.BookManager$$LocalBeanProxy.createBook(org/superbiz/BookManager.java)
> > > > > >
> > > > > > It is a really simple example do you think it may be caused
> because
> > > of
> > > > > > using Java 8?
> > > > > > --
> > > > > > +----------------------------------------------------------+
> > > > > >   Alex Soto Bueno
> > > > > >   www.lordofthejars.com
> > > > > > +----------------------------------------------------------+
> > > > >
> > > >
> > > >
> > > >
> > > > --
> > > > +----------------------------------------------------------+
> > > >   Alex Soto Bueno - Computer Engineer
> > > >   www.lordofthejars.com
> > > > +----------------------------------------------------------+
> > > >
> > >
> >
> >
> >
> > --
> > +----------------------------------------------------------+
> >   Alex Soto Bueno - Computer Engineer
> >   www.lordofthejars.com
> > +----------------------------------------------------------+
> >
>
>
>
> --
> WBR
> Maxim aka solomax
>



-- 
+----------------------------------------------------------+
  Alex Soto Bueno - Computer Engineer
  www.lordofthejars.com
+----------------------------------------------------------+

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message