You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2013/09/12 18:49:10 UTC

[Bug 55554] New: NoSuchMethodError on ConcurrentHashMap$KeySetView

https://issues.apache.org/bugzilla/show_bug.cgi?id=55554

            Bug ID: 55554
           Summary: NoSuchMethodError on ConcurrentHashMap$KeySetView
           Product: Tomcat 8
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Catalina
          Assignee: dev@tomcat.apache.org
          Reporter: rstoyanchev@yahoo.com

I'm getting the following stack trace with Java 7 (but no with Java 8):


java.lang.NoSuchMethodError:
java.util.concurrent.ConcurrentHashMap.keySet()Ljava/util/concurrent/ConcurrentHashMap$KeySetView;
        at
org.apache.catalina.core.ApplicationContext.getInitParameterNames(ApplicationContext.java:319)
        at
org.apache.catalina.core.ApplicationContextFacade.getInitParameterNames(ApplicationContextFacade.java:368)
        at
org.springframework.web.context.support.WebApplicationContextUtils.registerEnvironmentBeans(WebApplicationContextUtils.java:201)
        at
org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.postProcessBeanFactory(AbstractRefreshableWebApplicationContext.java:175)
        at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:461)
        at
org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:389)
        at
org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:294)
        at
org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:106)
        at
org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4830)
        at
org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5276)
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
        at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:726)
        at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:702)
        at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:698)
        at
org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:968)
        at
org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1742)
        at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
        at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
        at java.util.concurrent.FutureTask.run(FutureTask.java:166)
        at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
        at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
        at java.lang.Thread.run(Thread.java:722)

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


[Bug 55554] NoSuchMethodError on ConcurrentHashMap$KeySetView

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=55554

Christopher Schultz <ch...@christopherschultz.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|FIXED                       |INVALID

--- Comment #3 from Christopher Schultz <ch...@christopherschultz.net> ---
Bug is INVALID, not FIXED.

When you run in Java 7 mode, something must be terribly wrong, because it looks
like it's trying to use a Java 8 class. That's what makes your environment
broken. Try re-installing the JRE?

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


[Bug 55554] NoSuchMethodError on ConcurrentHashMap$KeySetView

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=55554

rstoyanchev@yahoo.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|INVALID                     |FIXED

--- Comment #2 from rstoyanchev@yahoo.com ---
Odd, because that is a JDK class and the issue occurs when I run with JDK 1.7.

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


[Bug 55554] NoSuchMethodError on ConcurrentHashMap$KeySetView

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=55554

Mark Thomas <ma...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |INVALID

--- Comment #1 from Mark Thomas <ma...@apache.org> ---
java.util.concurrent.ConcurrentHashMap$KeySetView doesn't exist in Java 7. I'm
not sure how but you appear to have a Java 8 artifact involved here. Whatever
is going on, it is an environmental issue on your system.

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org