Results 1 to 3 of 3
  1. #1
    ev54yqwk is offline Member
    Join Date
    Jun 2011
    Posts
    2
    Rep Power
    0

    Default Cannot initialize a class which is already loaded

    Hi,

    I am trying to figure out why the following class "LockSupport" cannot be initialised, even though it's already loaded onto JVM. Any idea?

    [Loaded java.util.concurrent.locks.LockSupport from /usr/jdk1.6.0_25/jre/lib/rt.jar]
    java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.apache.catalina.startup.Bootstrap.stop(Bootstr ap.java:300)
    at org.apache.catalina.startup.Bootstrap.main(Bootstr ap.java:409)
    at org.dacapo.tomcat.Control.exec(Control.java:61)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.dacapo.harness.Tomcat.cleanup(Tomcat.java:133)
    at org.dacapo.harness.TestHarness.runBenchmark(TestHa rness.java:220)
    at org.dacapo.harness.TestHarness.main(TestHarness.ja va:171)
    at Harness.main(Harness.java:17)
    Caused by: java.lang.NoClassDefFoundError: Could not initialize class java.util.concurrent.locks.LockSupport
    at java.util.concurrent.locks.AbstractQueuedSynchroni zer.doAcquireSharedNanos(AbstractQueuedSynchronize r.java:1011)
    at java.util.concurrent.locks.AbstractQueuedSynchroni zer.tryAcquireSharedNanos(AbstractQueuedSynchroniz er.java:1303)
    at java.util.concurrent.CountDownLatch.await(CountDow nLatch.java:253)
    at org.apache.tomcat.util.net.NioEndpoint$Poller.dest roy(NioEndpoint.java:1410)
    at org.apache.tomcat.util.net.NioEndpoint.stop(NioEnd point.java:926)
    at org.apache.tomcat.util.net.NioEndpoint.destroy(Nio Endpoint.java:953)
    at org.apache.coyote.http11.Http11NioProtocol.destroy (Http11NioProtocol.java:201)
    at org.apache.catalina.connector.Connector.stop(Conne ctor.java:1189)
    at org.apache.catalina.core.StandardService.stop(Stan dardService.java:593)
    at org.apache.catalina.core.StandardServer.stop(Stand ardServer.java:744)
    at org.apache.catalina.startup.Catalina.stop(Catalina .java:633)
    ... 15 more

  2. #2
    sunde887's Avatar
    sunde887 is offline Moderator
    Join Date
    Jan 2011
    Location
    Richmond, Virginia
    Posts
    3,069
    Blog Entries
    3
    Rep Power
    8

    Default

    What does the code for LockSupport look like? Where is the code that causes problems? Which lines? Please use code tags if posting code
    [code]
    YOUR CODE HERE
    [/code]

  3. #3
    ev54yqwk is offline Member
    Join Date
    Jun 2011
    Posts
    2
    Rep Power
    0

    Default

    sunde887

    Thank you for caring this matter. The issue is already solved. Sorry for taking long time to reply. (I've tried BCI and my instrumentation messed up everything. That is the main cause.) Thanks again.

Similar Threads

  1. Could not initialize class com.geopista.app.AppContex
    By rafacabanas in forum Advanced Java
    Replies: 2
    Last Post: 10-08-2010, 09:11 AM
  2. Replies: 3
    Last Post: 09-29-2010, 09:26 AM
  3. How to unload previous class when it has loaded
    By luoluo in forum Advanced Java
    Replies: 4
    Last Post: 04-26-2010, 05:36 PM
  4. How to show class initialize data in JSP ?
    By tking88 in forum New To Java
    Replies: 0
    Last Post: 03-07-2010, 09:17 AM
  5. Replies: 16
    Last Post: 05-08-2008, 09:45 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •