tomee-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Geeth Narayanan (Jira)" <j...@apache.org>
Subject [jira] [Commented] (OPENEJB-2145) java.util.ConcurrentModificationException error deploying ear in TomEE Plus 7.1.2
Date Wed, 27 Jan 2021 01:02:18 GMT

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

Geeth Narayanan commented on OPENEJB-2145:
------------------------------------------

This code seemed to be changed between 7.1.1 and 7.1.2. I have attached a screenshot diff.

> java.util.ConcurrentModificationException error deploying ear in TomEE Plus 7.1.2
> ---------------------------------------------------------------------------------
>
>                 Key: OPENEJB-2145
>                 URL: https://issues.apache.org/jira/browse/OPENEJB-2145
>             Project: OpenEJB
>          Issue Type: Bug
>          Components: tomee
>            Reporter: Tom
>            Priority: Blocker
>         Attachments: CodeDiff.JPG
>
>
> Starting with tomee plus 7.1.2, ear files are failing deploying on startup.   In the
openejb-core-7.1.2 jar, some code that was introduced in org.apache.open.ejb.assembler.classic.Assembler
that is causing the ear file in the apps folder to fail on deployment.   Specifically this
for loop introduced at line 829.    
> for (Map.Entry entry : appContext.getProperties().entrySet()) {
>  if (Module.class.isInstance(entry.getValue())) {
>  appContext.getProperties().remove(entry.getKey());
>  }
> When I put the class from the 7.1.1 jar in the jar, I do not get the error.   Here
is the stacktrace on startup.
> 05-Mar-2020 11:07:34.045 SEVERE [main] org.apache.openejb.assembler.classic.Assembler.buildContainerSystem
Application could not be deployed:  C:\apps\apache-tomee-plus-7.1.2\apps\ourapplication05-Mar-2020
11:07:34.045 SEVERE [main] org.apache.openejb.assembler.classic.Assembler.buildContainerSystem
Application could not be deployed:  C:\apps\apache-tomee-plus-7.1.2\apps\ourapplication org.apache.openejb.OpenEJBException:
Creating application failed: C:\apps\apache-tomee-plus-7.1.2\apps\ourapplication: null at
org.apache.openejb.assembler.classic.Assembler.createApplication(Assembler.java:1101) at org.apache.openejb.assembler.classic.Assembler.createApplication(Assembler.java:755)
at org.apache.openejb.assembler.classic.Assembler.buildContainerSystem(Assembler.java:633)
at org.apache.openejb.assembler.classic.Assembler.build(Assembler.java:485) at org.apache.openejb.OpenEJB$Instance.<init>(OpenEJB.java:150)
at org.apache.openejb.OpenEJB.init(OpenEJB.java:307) at org.apache.tomee.catalina.TomcatLoader.initialize(TomcatLoader.java:247)
at org.apache.tomee.catalina.ServerListener.lifecycleEvent(ServerListener.java:168) at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:123)
at org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:423) at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:137)
at org.apache.catalina.startup.Catalina.load(Catalina.java:639) at org.apache.catalina.startup.Catalina.load(Catalina.java:662)
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:498) at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:303)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:473) Caused by: java.util.ConcurrentModificationException
at java.util.LinkedHashMap$LinkedHashIterator.nextNode(LinkedHashMap.java:719) at java.util.LinkedHashMap$LinkedEntryIterator.next(LinkedHashMap.java:752)
at java.util.LinkedHashMap$LinkedEntryIterator.next(LinkedHashMap.java:750) at java.util.Collections$UnmodifiableCollection$1.next(Collections.java:1042)
at org.apache.openejb.assembler.classic.Assembler.createApplication(Assembler.java:829) ...
18 more
>  
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Mime
View raw message