[ 
https://issues.apache.org/jira/browse/TOMEE-1994?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15804131#comment-15804131
 ] 

Uwe commented on TOMEE-1994:
----------------------------

log message:

 WARNING [ContainerBackgroundProcessor[StandardEngine[Catalina]]] 
null.openjpa.Enhance An exception was thrown while attempting to perform class 
file transformation on "myapp.db.entities.UserEntity":
 java.lang.IllegalArgumentException: type = 18
        at serp.bytecode.lowlevel.Entry.create(Entry.java:78)
        at serp.bytecode.lowlevel.Entry.read(Entry.java:36)
        at serp.bytecode.lowlevel.ConstantPool.read(ConstantPool.java:412)
        at serp.bytecode.BCClass.read(BCClass.java:89)
        at serp.bytecode.Project.loadClass(Project.java:211)
        at 
org.apache.openjpa.enhance.PCClassFileTransformer.transform0(PCClassFileTransformer.java:151)

Surprisingly, this is logged only as a warning..
..

> Outdated serp version: Entites with Java 8 features not mapped
> --------------------------------------------------------------
>
>                 Key: TOMEE-1994
>                 URL: https://issues.apache.org/jira/browse/TOMEE-1994
>             Project: TomEE
>          Issue Type: Dependency upgrade
>          Components: TomEE Core Server
>    Affects Versions: 7.0.2
>            Reporter: Uwe
>            Assignee: Romain Manni-Bucau
>             Fix For: 7.0.3
>
>
> Long story short: To fix, upgrade to newest serp-1.15.1 which supports Java 
> 8; the one packaged with TomEE 7.0.2 (1.14.1) only supports Java 7.
> I run TomEE Plus 7.0.2 on Java 8.
> One of my entity classes uses Java 8 Lambdas. When I deploy the application, 
> TomEE will map all entities except for the one that contains lambdas. There's 
> an exception from the serp library that it can't read the class in question, 
> but TomEE seems to continue anyway. At runtime, the EntityManager does not 
> recognize the entity.
> Replacing serp-1.14.1.jar with serp-1.15.1.jar in ${catalina}/lib fixes the 
> problem - I suggest an upgrade to the new serp version in the next TomEE 
> release.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to