ClassNotFound Exception Traced to sun.misc.Launcher

ARGH!!!
Does anyone know where I can find the source for sun.misc.Launcher? I did find a version dated 1.26 00/02/07. But I think thats the 1.3 version. I need the source to track my bug... Help me...

You shouldn't need the source of this, travel upthe
call stack until you reach your own code is.That
will be the bug....
Interesting statement, this assumes that any code in the sun namespace is error free...
The funny thing is that if I execute the same code in 1.4 it works fine, go to 1.4.2 and it breaks, th eonly difference is the JDK. More wierdness, if the stubs and skels that would normally be created at runtime are pregenerated with 1.4 and then the app is run in 1.4.2 it works fine, pregen the files with 1.4.2 and run it in 1.4.2 and it fails... So again I ask, Does anyone know where to get the code for sun.misc.Launcher?

Similar Messages

  • Sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)

    Hi Avi,
    Refer the earlier message below::
    Now I have OC4J version 9.0.2.
    The JDK version is Java(TM) 2 SDK, Standard Edition Version 1.3.1
    OS : Solaris
    I am trying to deploy the "How-To" example from the otn sample examples for JSP. It's a implementation of simple iterator tag. When I try to access the JSp page which has the taglib, it gives me the following error.
    Can u tell me what this error is ????
    500 Internal Server Error
    OracleJSP:
    JSP Error:
    Request URI:/iterate/iterateSample.jsp
    Exception:
    java.lang.NullPointerException
         at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at oracle.jsp.parse.JspUtils.loadClassJDK(JspUtils.java:219)
         at oracle.jsp.parse.JspUtils.loadClass(JspUtils.java:209)
         at oracle.jsp.parse.JspRTTag.(JspRTTag.java:102)
         at oracle.jsp.parse.JspParseState.createTagParser(JspParseState.java:410)
         at oracle.jsp.parse.JspParseTag.parseNextTag(JspParseTag.java:538)
         at oracle.jsp.parse.JspParseTagFile.parse(JspParseTagFile.java:160)
         at oracle.jsp.parse.OracleJsp2Java.transform(OracleJsp2Java.java:40)
         at oracle.jsp.runtimev2.JspPageCompiler.attemptCompilePage(JspPageCompiler.java:295)
         at oracle.jsp.runtimev2.JspPageCompiler.compilePage(JspPageCompiler.java:181)
         at oracle.jsp.runtimev2.JspPageInfo.compileAndLoad(JspPageInfo.java:338)
         at oracle.jsp.runtimev2.JspPageTable.compileAndServe(JspPageTable.java:481)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:255)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:407)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:330)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:336)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:696)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:281)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:735)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:243)
         at com.evermind.util.ThreadPoolThread.run(ThreadPoolThread.java:64)
    Hi,
    I developed a component using struts framework and deployed it in TOMCAT. It works fine. Now I am trying to deploy it in OC4J. I get the following error when I try to access the JSP. Can anybody tell me what this error is and how to resolve it?
    java.lang.NullPointerException
    at java.lang.String.startsWith(Compiled Code)
    at com.evermind[Oracle9iAS (1.0.2.2.1) Containers for J2EE].server.http.TagLibraryStorage.getTagLibContext(Compiled Code)
    at com.evermind[Oracle9iAS (1.0.2.2.1) Containers for J2EE].server.http.HttpServer.getTagLibContext(Compiled Code)
    at com.evermind[Oracle9iAS (1.0.2.2.1) Containers for J2EE].server.http.HttpApplication.getTagLibContext(Compiled Code)
    at com.evermind[Oracle9iAS (1.0.2.2.1) Containers for J2EE].server.http.JSPPageCompilation.addTagLibTag(Compiled Code)
    at com.evermind[Oracle9iAS (1.0.2.2.1) Containers for J2EE].server.http.JSPPageCompilation.compile(Compiled Code)
    at com.evermind[Oracle9iAS (1.0.2.2.1) Containers for J2EE].server.http.JSPPage.compile(Compiled Code)
    at com.evermind[Oracle9iAS (1.0.2.2.1) Containers for J2EE].server.http.HttpApplication.getJSP(Compiled Code)
    at com.evermind[Oracle9iAS (1.0.2.2.1) Containers for J2EE].server.http.HttpApplication.serviceJSP(Compiled Code)
    at com.evermind[Oracle9iAS (1.0.2.2.1) Containers for J2EE].server.http.JSPServlet.service(Compiled Code)
    at com.evermind[Oracle9iAS (1.0.2.2.1) Containers for J2EE].server.http.ServletRequestDispatcher.invoke(Compiled Code)
    at com.evermind[Oracle9iAS (1.0.2.2.1) Containers for J2EE].server.http.ServletRequestDispatcher.forwardInternal(Compiled Code)
    at com.evermind[Oracle9iAS (1.0.2.2.1) Containers for J2EE].server.http.HttpRequestHandler.processRequest(Compiled Code)
    at com.evermind[Oracle9iAS (1.0.2.2.1) Containers for J2EE].server.http.HttpRequestHandler.run(Compiled Code)
    at com.evermind[Oracle9iAS (1.0.2.2.1) Containers for J2EE].util.ThreadPoolThread.run(Compiled Code)
    With Regards
    Amit Kapoor
    Title : re:OC4J Null Pointer Exception O/S : Solaris POST: REPLY (W/QUOTE)
    Author : Amit Kapoor Type : Statement
    Date : Jul 25, 2002 03:26 PT
    The version of the OC4J is 1.0.2.2.1
    Title : re:OC4J Null Pointer Exception O/S : Solaris POST: REPLY (W/QUOTE)
    Author : Avi Abrami Type : Question
    Date : Jul 25, 2002 03:31 PT
    Hi Amit,
    For starters, you are using an old version (1.0.2.2.1) of OC4J.
    You can download newer versions from this web page:
    http://technet.oracle.com/tech/java/oc4j/content.html
    That page also has links to documentation, "how-to" documents and
    sample code. Note that you also need to use compatible versions
    of java.
    Personally, I am using OC4J version 9.0.2.0.0 on SUN Solaris 7
    with JDK 1.3.1 (also from SUN).
    Also, (and if you don't already know about them) the following web
    sites may also be useful to you:
    http://www.orionserver.com
    http://www.orionsupport.com
    http://www.atlassian.com
    http://www.elephantwalker.com
    Good Luck,
    Avi.

    Sorry Amit,
    I have absolutely no idea. However, have you tried these other two
    forums:
    Technologies > Java > Java Server Pages (JSP)
    http://forums.oracle.com/forums/forum.jsp?id=399160
    Technologies > Other > Sample Code
    http://forums.oracle.com/forums/forum.jsp?id=428078
    Hope it helps.
    Good Luck,
    Avi.

  • ClassNotFound Exception integrating Coherence and Eclipselink with composite key entity objects

    I am hooking up coherence as an L2 cache for eclipselink in weblogic 12c (using the latest released weblogic and eclipselink 2.4.2.v20130514-5956486).  I have my application war and coherence gar packaged in the same EAR file.  For Entity Objects with single primary keys (Longs) coherence integration works as expected.  However I have several multi-part key Entity Objects that use an IdClass to represent the key.  When these objects get serialized, coherence throws a class not found exception.  I'm assuming its because the cachekey used is an instance of my applications IdClass, and the weblogic classloader doesn't have access to this.  Since eclipselink hides the cache integration with coherence, I cannot pass my classloader off to coherence (as i do with other caches i'm using directly with coherence).
    How can I get around this problem? 
    I saw this option in ExternalizableHelper.xml, but modifying it directly had no effect:
      <!-- if deploying Coherence in CLASSPATH and deploying application
           classes within a hot-redeployable archive (e.g. ".ear"), set this to
           true -->
      <!-- *** WARNING *** all cluster nodes must use the same setting -->
      <force-classloader-resolving>false</force-classloader-resolving>
    Here is the stack trace:
    ClassLoader: null) java.io.IOException: readObject failed: java.lang.ClassNotFoundException: com.oracle.pgbu.common.data.OverlayIdClass
      at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
      at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
      at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
      at java.lang.Class.forName0(Native Method)
      at java.lang.Class.forName(Class.java:270)
      at java.io.ObjectInputStream.resolveClass(ObjectInputStream.java:623)
      at weblogic.coherence.service.internal.io.WLSObjectInputStream.resolveClass(WLSObjectInputStream.java:45)
      at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1610)
      at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1515)
      at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1769)
      at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1348)
      at java.io.ObjectInputStream.readArray(ObjectInputStream.java:1704)
      at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1342)
      at java.io.ObjectInputStream.readObject(ObjectInputStream.java:370)
      at com.tangosol.util.ExternalizableHelper.readSerializable(ExternalizableHelper.java:2262)
      at com.tangosol.util.ExternalizableHelper.readObjectInternal(ExternalizableHelper.java:2393)
      at com.tangosol.util.ExternalizableHelper.readObject(ExternalizableHelper.java:2336)
      at com.tangosol.util.ExternalizableHelper.readObject(ExternalizableHelper.java:2315)
      at oracle.eclipselink.coherence.integrated.internal.cache.RelationshipUpdateProcessor.readExternal(RelationshipUpdateProcessor.java:82)
      at com.tangosol.util.ExternalizableHelper.readExternalizableLite(ExternalizableHelper.java:2086)
      at com.tangosol.util.ExternalizableHelper.readObjectInternal(ExternalizableHelper.java:2390)
      at com.tangosol.util.ExternalizableHelper.readObject(ExternalizableHelper.java:2336)
      at oracle.eclipselink.coherence.integrated.cache.WrapperSerializer.deserialize(WrapperSerializer.java:79)
      at com.tangosol.util.ExternalizableHelper.deserializeInternal(ExternalizableHelper.java:2791)
      at com.tangosol.util.ExternalizableHelper.fromBinary(ExternalizableHelper.java:266)
    ClassLoader: null
      at com.tangosol.util.Base.ensureRuntimeException(Base.java:286)
      at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.tagException(Grid.CDB:50)
      at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache.onInvokeRequest(PartitionedCache.CDB:61)
      at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache$InvokeRequest.run(PartitionedCache.CDB:1)
      at com.tangosol.coherence.component.util.DaemonPool.add(DaemonPool.CDB:20)
      at com.tangosol.coherence.component.util.DaemonPool.add(DaemonPool.CDB:1)
      at com.tangosol.coherence.component.net.message.requestMessage.DistributedCacheKeyRequest.onReceived(DistributedCacheKeyRequest.CDB:2)
      at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.onMessage(Grid.CDB:38)
      at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.onNotify(Grid.CDB:23)
      at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.PartitionedService.onNotify(PartitionedService.CDB:3)
      at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache.onNotify(PartitionedCache.CDB:3)
      at com.tangosol.coherence.component.util.Daemon.run(Daemon.CDB:51)
      at java.lang.Thread.run(Thread.java:724)
    Caused by: java.io.IOException: readObject failed: java.lang.ClassNotFoundException: com.oracle.pgbu.common.data.OverlayIdClass
      at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
      at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
      at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
      at java.lang.Class.forName0(Native Method)
      at java.lang.Class.forName(Class.java:270)
      at java.io.ObjectInputStream.resolveClass(ObjectInputStream.java:623)
      at weblogic.coherence.service.internal.io.WLSObjectInputStream.resolveClass(WLSObjectInputStream.java:45)
      at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1610)
      at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1515)
      at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1769)
      at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1348)
      at java.io.ObjectInputStream.readArray(ObjectInputStream.java:1704)
      at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1342)
      at java.io.ObjectInputStream.readObject(ObjectInputStream.java:370)
      at com.tangosol.util.ExternalizableHelper.readSerializable(ExternalizableHelper.java:2262)
      at com.tangosol.util.ExternalizableHelper.readObjectInternal(ExternalizableHelper.java:2393)
      at com.tangosol.util.ExternalizableHelper.readObject(ExternalizableHelper.java:2336)
      at com.tangosol.util.ExternalizableHelper.readObject(ExternalizableHelper.java:2315)
      at oracle.eclipselink.coherence.integrated.internal.cache.RelationshipUpdateProcessor.readExternal(RelationshipUpdateProcessor.java:82)
      at com.tangosol.util.ExternalizableHelper.readExternalizableLite(ExternalizableHelper.java:2086)
      at com.tangosol.util.ExternalizableHelper.readObjectInternal(ExternalizableHelper.java:2390)
      at com.tangosol.util.ExternalizableHelper.readObject(ExternalizableHelper.java:2336)
      at oracle.eclipselink.coherence.integrated.cache.WrapperSerializer.deserialize(WrapperSerializer.java:79)
      at com.tangosol.util.ExternalizableHelper.deserializeInternal(ExternalizableHelper.java:2791)
      at com.tangosol.util.ExternalizableHelper.fromBinary(ExternalizableHelper.java:266)
    ClassLoader: null
      at com.tangosol.util.ExternalizableHelper.readSerializable(ExternalizableHelper.java:2270)
      at com.tangosol.util.ExternalizableHelper.readObjectInternal(ExternalizableHelper.java:2393)
      at com.tangosol.util.ExternalizableHelper.readObject(ExternalizableHelper.java:2336)
      at com.tangosol.util.ExternalizableHelper.readObject(ExternalizableHelper.java:2315)
      at oracle.eclipselink.coherence.integrated.internal.cache.RelationshipUpdateProcessor.readExternal(RelationshipUpdateProcessor.java:82)
      at com.tangosol.util.ExternalizableHelper.readExternalizableLite(ExternalizableHelper.java:2086)
      at com.tangosol.util.ExternalizableHelper.readObjectInternal(ExternalizableHelper.java:2390)
      at com.tangosol.util.ExternalizableHelper.readObject(ExternalizableHelper.java:2336)
      at oracle.eclipselink.coherence.integrated.cache.WrapperSerializer.deserialize(WrapperSerializer.java:79)
      at com.tangosol.util.ExternalizableHelper.deserializeInternal(ExternalizableHelper.java:2791)
      at com.tangosol.util.ExternalizableHelper.fromBinary(ExternalizableHelper.java:266)
      at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache$InvokeRequest.deserializeProcessor(PartitionedCache.CDB:7)
      at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache.onInvokeRequest(PartitionedCache.CDB:37)
      ... 10 more

    I am hooking up coherence as an L2 cache for eclipselink in weblogic 12c (using the latest released weblogic and eclipselink 2.4.2.v20130514-5956486).  I have my application war and coherence gar packaged in the same EAR file.  For Entity Objects with single primary keys (Longs) coherence integration works as expected.  However I have several multi-part key Entity Objects that use an IdClass to represent the key.  When these objects get serialized, coherence throws a class not found exception.  I'm assuming its because the cachekey used is an instance of my applications IdClass, and the weblogic classloader doesn't have access to this.  Since eclipselink hides the cache integration with coherence, I cannot pass my classloader off to coherence (as i do with other caches i'm using directly with coherence).
    How can I get around this problem? 
    I saw this option in ExternalizableHelper.xml, but modifying it directly had no effect:
      <!-- if deploying Coherence in CLASSPATH and deploying application
           classes within a hot-redeployable archive (e.g. ".ear"), set this to
           true -->
      <!-- *** WARNING *** all cluster nodes must use the same setting -->
      <force-classloader-resolving>false</force-classloader-resolving>
    Here is the stack trace:
    ClassLoader: null) java.io.IOException: readObject failed: java.lang.ClassNotFoundException: com.oracle.pgbu.common.data.OverlayIdClass
      at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
      at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
      at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
      at java.lang.Class.forName0(Native Method)
      at java.lang.Class.forName(Class.java:270)
      at java.io.ObjectInputStream.resolveClass(ObjectInputStream.java:623)
      at weblogic.coherence.service.internal.io.WLSObjectInputStream.resolveClass(WLSObjectInputStream.java:45)
      at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1610)
      at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1515)
      at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1769)
      at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1348)
      at java.io.ObjectInputStream.readArray(ObjectInputStream.java:1704)
      at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1342)
      at java.io.ObjectInputStream.readObject(ObjectInputStream.java:370)
      at com.tangosol.util.ExternalizableHelper.readSerializable(ExternalizableHelper.java:2262)
      at com.tangosol.util.ExternalizableHelper.readObjectInternal(ExternalizableHelper.java:2393)
      at com.tangosol.util.ExternalizableHelper.readObject(ExternalizableHelper.java:2336)
      at com.tangosol.util.ExternalizableHelper.readObject(ExternalizableHelper.java:2315)
      at oracle.eclipselink.coherence.integrated.internal.cache.RelationshipUpdateProcessor.readExternal(RelationshipUpdateProcessor.java:82)
      at com.tangosol.util.ExternalizableHelper.readExternalizableLite(ExternalizableHelper.java:2086)
      at com.tangosol.util.ExternalizableHelper.readObjectInternal(ExternalizableHelper.java:2390)
      at com.tangosol.util.ExternalizableHelper.readObject(ExternalizableHelper.java:2336)
      at oracle.eclipselink.coherence.integrated.cache.WrapperSerializer.deserialize(WrapperSerializer.java:79)
      at com.tangosol.util.ExternalizableHelper.deserializeInternal(ExternalizableHelper.java:2791)
      at com.tangosol.util.ExternalizableHelper.fromBinary(ExternalizableHelper.java:266)
    ClassLoader: null
      at com.tangosol.util.Base.ensureRuntimeException(Base.java:286)
      at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.tagException(Grid.CDB:50)
      at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache.onInvokeRequest(PartitionedCache.CDB:61)
      at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache$InvokeRequest.run(PartitionedCache.CDB:1)
      at com.tangosol.coherence.component.util.DaemonPool.add(DaemonPool.CDB:20)
      at com.tangosol.coherence.component.util.DaemonPool.add(DaemonPool.CDB:1)
      at com.tangosol.coherence.component.net.message.requestMessage.DistributedCacheKeyRequest.onReceived(DistributedCacheKeyRequest.CDB:2)
      at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.onMessage(Grid.CDB:38)
      at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.onNotify(Grid.CDB:23)
      at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.PartitionedService.onNotify(PartitionedService.CDB:3)
      at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache.onNotify(PartitionedCache.CDB:3)
      at com.tangosol.coherence.component.util.Daemon.run(Daemon.CDB:51)
      at java.lang.Thread.run(Thread.java:724)
    Caused by: java.io.IOException: readObject failed: java.lang.ClassNotFoundException: com.oracle.pgbu.common.data.OverlayIdClass
      at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
      at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
      at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
      at java.lang.Class.forName0(Native Method)
      at java.lang.Class.forName(Class.java:270)
      at java.io.ObjectInputStream.resolveClass(ObjectInputStream.java:623)
      at weblogic.coherence.service.internal.io.WLSObjectInputStream.resolveClass(WLSObjectInputStream.java:45)
      at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1610)
      at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1515)
      at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1769)
      at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1348)
      at java.io.ObjectInputStream.readArray(ObjectInputStream.java:1704)
      at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1342)
      at java.io.ObjectInputStream.readObject(ObjectInputStream.java:370)
      at com.tangosol.util.ExternalizableHelper.readSerializable(ExternalizableHelper.java:2262)
      at com.tangosol.util.ExternalizableHelper.readObjectInternal(ExternalizableHelper.java:2393)
      at com.tangosol.util.ExternalizableHelper.readObject(ExternalizableHelper.java:2336)
      at com.tangosol.util.ExternalizableHelper.readObject(ExternalizableHelper.java:2315)
      at oracle.eclipselink.coherence.integrated.internal.cache.RelationshipUpdateProcessor.readExternal(RelationshipUpdateProcessor.java:82)
      at com.tangosol.util.ExternalizableHelper.readExternalizableLite(ExternalizableHelper.java:2086)
      at com.tangosol.util.ExternalizableHelper.readObjectInternal(ExternalizableHelper.java:2390)
      at com.tangosol.util.ExternalizableHelper.readObject(ExternalizableHelper.java:2336)
      at oracle.eclipselink.coherence.integrated.cache.WrapperSerializer.deserialize(WrapperSerializer.java:79)
      at com.tangosol.util.ExternalizableHelper.deserializeInternal(ExternalizableHelper.java:2791)
      at com.tangosol.util.ExternalizableHelper.fromBinary(ExternalizableHelper.java:266)
    ClassLoader: null
      at com.tangosol.util.ExternalizableHelper.readSerializable(ExternalizableHelper.java:2270)
      at com.tangosol.util.ExternalizableHelper.readObjectInternal(ExternalizableHelper.java:2393)
      at com.tangosol.util.ExternalizableHelper.readObject(ExternalizableHelper.java:2336)
      at com.tangosol.util.ExternalizableHelper.readObject(ExternalizableHelper.java:2315)
      at oracle.eclipselink.coherence.integrated.internal.cache.RelationshipUpdateProcessor.readExternal(RelationshipUpdateProcessor.java:82)
      at com.tangosol.util.ExternalizableHelper.readExternalizableLite(ExternalizableHelper.java:2086)
      at com.tangosol.util.ExternalizableHelper.readObjectInternal(ExternalizableHelper.java:2390)
      at com.tangosol.util.ExternalizableHelper.readObject(ExternalizableHelper.java:2336)
      at oracle.eclipselink.coherence.integrated.cache.WrapperSerializer.deserialize(WrapperSerializer.java:79)
      at com.tangosol.util.ExternalizableHelper.deserializeInternal(ExternalizableHelper.java:2791)
      at com.tangosol.util.ExternalizableHelper.fromBinary(ExternalizableHelper.java:266)
      at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache$InvokeRequest.deserializeProcessor(PartitionedCache.CDB:7)
      at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache.onInvokeRequest(PartitionedCache.CDB:37)
      ... 10 more

  • Java.lang.OutOfMemoryError  at sun.misc.Unsafe.allocateMemory(Native Metho

    Hi All,
    I have noticed the below OOM exception in one of my TCP Node. This OOM didn't cause the JVM to crash. The JVM seems to be running and The node seems to be part of the Cluster. However this TCP node is not receiving and request and not logging anything since the error.
    Has anyone experinced this exception/behaviour with JVM/coherence ?
    Regards
    S
    An exception occ
    urred while encoding a Response for Service=Proxy:ExendTcpProxyService:TcpAcceptor: java.lang.OutOfMemoryError
    at sun.misc.Unsafe.allocateMemory(Native Method)
    at java.nio.DirectByteBuffer.<init>(DirectByteBuffer.java:99)
    at java.nio.ByteBuffer.allocateDirect(ByteBuffer.java:288)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.service.peer.acceptor.TcpAcceptor$BufferPool.instantiateResource(TcpAcceptor.CDB:8)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.service.peer.acceptor.TcpAcceptor$BufferPool.acquire(TcpAcceptor.CDB:25)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.service.peer.acceptor.TcpAcceptor$BufferPool.allocate(TcpAcceptor.CDB:3)
    at com.tangosol.io.MultiBufferWriteBuffer.advance(MultiBufferWriteBuffer.java:903)
    at com.tangosol.io.MultiBufferWriteBuffer.write(MultiBufferWriteBuffer.java:311)
    at com.tangosol.io.AbstractWriteBuffer.write(AbstractWriteBuffer.java:110)
    at com.tangosol.io.AbstractWriteBuffer$AbstractBufferOutput.writeBuffer(AbstractWriteBuffer.java:1276)
    at com.tangosol.io.MultiBufferWriteBuffer$MultiBufferOutput.writeBuffer(MultiBufferWriteBuffer.java:648)
    at com.tangosol.io.pof.WritingPofHandler.onOctetString(WritingPofHandler.java:637)
    at com.tangosol.io.pof.PofBufferWriter.writeBinary(PofBufferWriter.java:602)
    at com.tangosol.io.pof.PofBufferWriter.writeObject(PofBufferWriter.java:1329)
    at com.tangosol.io.pof.PofBufferWriter$UserTypeWriter.writeObject(PofBufferWriter.java:2092)
    at com.tangosol.io.pof.PofBufferWriter.writeMap(PofBufferWriter.java:1739)
    at com.tangosol.io.pof.PofBufferWriter.writeObject(PofBufferWriter.java:1421)
    at com.tangosol.io.pof.PofBufferWriter$UserTypeWriter.writeObject(PofBufferWriter.java:2092)
    at com.tangosol.coherence.component.net.extend.message.Response.writeExternal(Response.CDB:15)
    at com.tangosol.coherence.component.net.extend.Codec.encode(Codec.CDB:23)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Peer.encodeMessage(Peer.CDB:23)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.service.peer.acceptor.TcpAcceptor.encodeMessage(TcpAcceptor.CDB:8)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Peer.send(Peer.CDB:16)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Peer.post(Peer.CDB:23)
    at com.tangosol.coherence.component.net.extend.Channel.post(Channel.CDB:25)
    at com.tangosol.coherence.component.net.extend.Channel.send(Channel.CDB:6)
    at com.tangosol.coherence.component.net.extend.Channel.receive(Channel.CDB:55)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Peer$DaemonPool$WrapperTask.run(Peer.CDB:9)
    at com.tangosol.coherence.component.util.DaemonPool$WrapperTask.run(DaemonPool.CDB:32)
    at com.tangosol.coherence.component.util.DaemonPool$Daemon.onNotify(DaemonPool.CDB:63)
    at com.tangosol.coherence.component.util.Daemon.run(Daemon.CDB:42)
    at java.lang.Thread.run(Thread.java:619)

    So there are 2 parallel approaches to tackle this
    1) Try to figure out if your objects being exchanged are large and if there are bursts of traffic. i.e is the size of your nio buffer sufficient to handle your load. If so, check if the node doing the processing is unable to deal with events in a timely manner.
    2) Open a ticket. What I heard from training is that in 3.5 coherence should have started choking traffic to the TCP node once it recognized the nio buffers are approaching capacity. So, this is not working
    Fixing 2 will not solve 1. It will just delay the problem in my opinion.
    Bottom line is that there is too much data backlogging in the buffer, either because of unexpected bursts, or because of large objects or because of slowdown in processing in the node.

  • Java.lang.ClassNotFound Exception whenever I include .send()

    Everything runs fine, but when I add the .send(message); [it is in bold] I get a java.lang.ClassNotFound Exception.
    It still compiles, it just won't allow me to launch the program in the emulator. If I take that one piece of code out, everything runs fine again. I've been messing with it, and searching for a long time in an attempt to solve the problem but I've yet to come across a solution.
    I'm also using Bluej
    import java.io.*;
    import java.lang.*;
    import javax.microedition.lcdui.*;
    import javax.microedition.io.*;//Add SMS text, Map selection (upload image/altitude-scale)
    import javax.microedition.lcdui.Font;
    import javax.microedition.lcdui.Graphics;
    import javax.microedition.lcdui.Image;
    import javax.microedition.lcdui.Canvas;
    import javax.microedition.lcdui.Graphics;
    import javax.microedition.lcdui.game.GameCanvas;
    import javax.wireless.messaging.*;
       public class cardcanvas extends GameCanvas implements Runnable, CommandListener {
        Image i, Mortar, Target, paintballcharleston, selectimg, Cursor;
        SendSMS sendtext;
        Thread t = new Thread(this);
        Command cmdfire=new Command("Fire", Command.BACK, 1 );
        Command cmdreset=new Command("Reset", Command.ITEM, 2 );
        String text, message;
        static Image Map;
        MessageConnection messageConnection;
        TextMessage textMessage;
        int mortarX=5500, mortarY=5500, targetX=5500, targetY=5500, distanceX, distanceY, delay, mapx=-250, mapy=-250, xvel=115, yvel=130, gameAction=0, timer=0;
        double A, B, C, b, degreeX, degreeY, degreeV, voltageX, voltageY, scale=1.4235, findDegree=90;//get scale of pixel:realtime feet
        boolean paintdown=false, paintup=false, paintright=false, paintleft=false, left, finish, firemor, initiate, click, bottom=true, noYdegree, reset, sms=false;
        public cardcanvas(){
            super(false);
            this.addCommand(cmdfire);
            this.addCommand(cmdreset);
            this.setCommandListener(this);
        public void intit() {}
        public void start() {
            t.start() {}
        public void run()
            try{
                while(true)
                    if(paintright) {
                        timer++;
                        if(timer>1&&timer<4) xvel=xvel+5;
                        if(timer>=4&&timer<6) xvel=xvel+10;
                        if(timer>=6) xvel=xvel+20;
                    if(paintleft) {
                        timer++;
                        if(timer>1&&timer<4) xvel=xvel-5;
                        if(timer>=4&&timer<6) xvel=xvel-10;
                        if(timer>=6) xvel=xvel-20;
                    if(paintup) {
                        timer++;
                        if(timer>1&&timer<4) yvel=yvel-5;
                        if(timer>=4&&timer<6) yvel=yvel-10;
                        if(timer>=6) yvel=yvel-20;
                    if(paintdown) {
                        timer++;
                        if(timer>1&&timer<4) yvel=yvel+5;
                        if(timer>=4&&timer<6) yvel=yvel+10;
                        if(timer>=6) yvel=yvel+20;
                    if(mapy<-320) mapy=-320;
                    if(mapx>0) mapx=0;
                    if(mapy>0) mapy=0;
                    if(mapx>197) mapx=197;
                    if(xvel>225)
                        mapx=mapx-5;
                        targetX=targetX-5;
                        mortarX=mortarX-5;
                        xvel=225;
                    if(xvel<5)
                        mapx=mapx+5;
                        targetX=targetX+5;
                        mortarX=mortarX+5;
                        xvel=5;
                    if(yvel>260)
                        mapy=mapy-5;
                        targetY=targetY-5;
                        mortarY=mortarY-5;
                        yvel=260;
                    if(yvel<5)
                        mapy=mapy+5;
                        targetY=targetY+5;
                        mortarY=mortarY+5;
                        yvel=5;
                        if(reset) {
                            mapx=-250;
                            mapy=-250;
                            xvel=115;
                            yvel=130;
                            left=false;
                            firemor=false;
                            finish=false;
                            initiate=false;
                            click=false;
                            bottom=true;
                            noYdegree=false;
                            reset=false;
                            targetX=5500;
                            targetY=5500;
                            mortarX=5500;
                            mortarY=5500;
                            A=0;
                            B=0;
                            C=0;
                            b=0;
                            degreeX=0;
                        if(initiate) {
                           distanceX=targetX-mortarX;
                           distanceY=targetY-mortarY;
                           A=distanceY;
                           B=distanceX;
                               if(distanceY<0)
                                    A=distanceY*-1;
                                    bottom=false;
                               if(distanceX<0)
                                    B=distanceX*-1;
                                    left=true;
                            A=A*scale;
                            B=B*scale;
                            C=Math.sqrt((A*A)+(B*B));
                                while(((A*(Math.tan(b)))<B+.00002))
                                    b=b+.0001;
                            b=b*180/3.1415926535897932384626435;
                            degreeX=b;
                                if(bottom)
                                    b=90-b;
                                    b=b+90;
                                    degreeX=b;
                                if(left)
                                    degreeX=360-b;
                            initiate=false;
                            text=("DegreeX is "+degreeX+" Range is "+C);
                             sendTextMessage();
                     verifyGameState();
                     paint(getGraphics());
                     Thread.currentThread().sleep(1);
                catch (Exception E) {}
        private void verifyGameState() {}
        public void sendTextMessage()
            try
                String message = " ";
                MessageConnection messageConnection = (MessageConnection)Connector.open("sms://18433036060");
                TextMessage textMessage = (TextMessage)messageConnection.newMessage(
                        MessageConnection.TEXT_MESSAGE, "18433036060");
                textMessage.setPayloadText(message);
                *messageConnection.send(textMessage);*
            catch (Exception e) {}
    }If I remove messageConnection.send(texstMessage); the error is gone.
    Thanks in advance for your time

    cardmidlet:
    import javax.microedition.lcdui.*;
    import javax.microedition.midlet.MIDlet;
    import javax.microedition.midlet.MIDletStateChangeException;
    import java.io.IOException;
    import java.lang.*;
    public class cardmidlet extends MIDlet implements CommandListener {
        private Display display; Display map;
        cardmidlet midlet;
        private Form form; Form mapselection;
        private List menuList ;
        String[] elements=new String[]{"Initiate Program","Select Map","Help","About"};
        private Command selectCommand;
        Alert alert;
            private Command fnext=new Command("NEXT",Command.ITEM,1);
            private Command fback=new Command("BACK",Command.BACK,1);
            private Command mapnext=new Command("Next",Command.ITEM,1);
        private TextField uname; TextField mapchoice;
        public String nname, nmap;
        cardcanvas cd;
        protected void destroyApp(boolean arg0) throws MIDletStateChangeException {
        protected void pauseApp() {
        public cardmidlet() {
             menuList();
             cd = new cardcanvas();
        public void menuList(){
             display = Display.getDisplay(this);
             menuList = new List("Menu", List.IMPLICIT, elements, null);
             selectCommand=new Command("open",Command.ITEM,1);
             menuList.setSelectCommand(selectCommand);
             menuList.setCommandListener(this);  
        protected void startApp() throws MIDletStateChangeException {
            display.setCurrent(menuList);
        public void about(){
            alert = new Alert("Option Selected", "This program is created by"+"\n"+" Chris Furlong.", null, null);
              alert.setTimeout(Alert.FOREVER);
              alert.setType(AlertType.INFO);
              display.setCurrent(alert);
        public void help() {
            alert = new Alert("Option Selected", "Use the 4 d-pad keys to move the cursor. Press the center button once to select the mortar position, and a second time to select the target position. When both the mortar and the target are on screen, press the upper left key to begin the firing process. If you place one on the map by mistake, simply reset the program with the upper right key and start over.", null, null);
            alert.setTimeout(Alert.FOREVER);
            alert.setType(AlertType.INFO);
            display.setCurrent(alert);
        public void InitiateProgram(){
            display=Display.getDisplay(this);
            uname=new TextField("Enter your name","",50,TextField.ANY);
            form =new Form("New User");
            form.append(uname);
            form.addCommand(fnext);
            form.addCommand(fback);
            form.setCommandListener(this);
            display.setCurrent(form);
        public void selectmap()
           /* display=map.getDisplay(this);
            mapchoice=new TextField("Enter Map Name","",50,TextField.ANY);
            mapselection=new Form("Map Selection");
            mapselection.append(mapchoice);
            mapselection.addCommand(mapnext);
            mapselection.addCommand(fback);
            mapselection.setCommandListener(this);
            display.setCurrent(mapselection);*/
            display = map.getDisplay(this);
            map choose=new map();
        public String name(){
            nname=uname.getString();
            return nname;
    /*   public String mapname() {
            nmap=mapchoice.getString();
            return nmap;
        public void commandAction(Command com, Displayable arg1) {
             if(com==selectCommand)
                if(menuList.getSelectedIndex()==3)
                    about();
                if(menuList.getSelectedIndex()==2)
                    help();
                if(menuList.getSelectedIndex()==1)
                    selectmap();
                if(menuList.getSelectedIndex()==0)
                    InitiateProgram();
            if(com==fback)
                display.setCurrent(menuList);
            if(com==fnext){
                display = Display.getDisplay(this);
                cd.start();
                display.setCurrent(cd);
            if(com==mapnext)
                display = map.getDisplay(this);
                map choose=new map();
                display.setCurrent(choose);
    }

  • Any class can replace sun.misc.BASE64Encoder?

    In my program i want encode something, so i use the sun.misc.BASE64Encoder . But according to the JDK documents, i should not call "sun.*" package. In my applet program the access control exception occurs with the sun.misc. I have to give up the sun.misc.BASE64Encoder .
    Any other class replace BASE64Encoder that i can use?
    Please help me.
    Thank you very much!
    coral9527

    Read the whole page:
    http://iharder.sourceforge.net/xmlizable/

  • JRE 1.4.x : ClassNotFound exception

    Hello
    I am having a problem in running a Swing based applet in 1.4.x JRE in Internet Explorer 6.0 SP1
    The HTML page loads the applet using the <APPLET> tag and the applet is loaded from a remote server.
    Via the browser settings, the browser has been instructed to use the SUN JRE Plugin for all <APPLET> tags.
    The plugin is able to retrieve the applet correctly, but, throws a ClassNotFound exception.
    The same works just fine in 1.3.1_x versions of JRE.
    Does anybody have a clue as to what is going on ?
    Thank you
    Regards

    First of all give the details about the exceptions thrown i.e. which class and what exception. Secondly install Java on the machine which is accessing APPLET through web browser. If the problem is solved it means that your internet explorer is not supporting Swing class (i.e. the required environment was not present) and this can be the problem.
    Intekhab

  • Req Help for  "warning: sun.misc.SignalHandler is Sun proprietary API "

    Hi All,
    I am getting the below exception when i am building the class. Please guide me and please provide any alternate solution for this.
    [javac] main\SignalHandler.java:35: warning: sun.misc.SignalHandler is Sun proprietary API and may be removed in a future release
    [javac] implements sun.misc.SignalHandler
    [javac] ^
    [javac] main\SignalHandler.java:69: warning: sun.misc.Signal is Sun proprietary API and may be removed in a future release
    [javac] public void handle( final sun.misc.Signal signal )
    [javac] ^
    [javac] auditlog\core\AuditLogFileWriter.java:26: warning: com.sun.org.apache.xalan.internal.xsltc.runtime.Hashtable is Sun proprietary API and may be removed in a future release
    [javac] public static Hashtable writingStatus=new Hashtable();
    [javac] ^
    [javac] ftpcommon\ftp\PasswordEnDecrypt.java:156: warning: sun.misc.BASE64Encoder is Sun proprietary API and may be removed in a future release
    [javac] return new sun.misc.BASE64Encoder().encode(enc);
    [javac] ^
    [javac] ftpcommon\ftp\PasswordEnDecrypt.java:182: warning: sun.misc.BASE64Decoder is Sun proprietary API and may be removed in a future release
    [javac] byte[] dec = new sun.misc.BASE64Decoder().decodeBuffer(str);
    [javac] ^
    [javac] ftpcommon\main\SignalHandler.java:57: warning: sun.misc.Signal is Sun proprietary API and may be removed in a future release
    [javac] sun.misc.Signal.handle( new sun.misc.Signal(signalName), this );
    [javac] ^
    [javac] main\SignalHandler.java:57: warning: sun.misc.Signal is Sun proprietary API and may be removed in a future release
    [javac] sun.misc.Signal.handle( new sun.misc.Signal(signalName), this );
    Thanks & Regards,
    Rajeshwar
    Edited by: Rajeshwar_Java on Apr 27, 2009 5:31 AM
    Edited by: Rajeshwar_Java on Apr 27, 2009 5:32 AM

    as corlettk already told you: avoid those API whenever possible.
    Regarding your cases:
    * SignalHandler: proprietary API, there's not alternative. Use it if you must. Fail gracefully if it isn't there
    * Hashtable: seems like you simply picked the wrong one. Use the one in java.util
    * Base64 stuff: Plenty of free (BSD licensed) implementations out there, I'm sure there's one in commons-codec as well. Use those instead.

  • JavaScript throwing sun.misc.InvalidJarIndexException: Invalid index

    I'm trying to run a importPackage call in JavaScript code that I'm invoking in my application and it's throwing a "sun.misc.InvalidJarIndexException: Invalid index" exception.
    The exact line of code that's throwing the exception is:
    importPackage(com.mathworks.toolbox.javabuilder);
    This works fine when I run my application in Windows XP, but now that I'm trying to run it in Windows 7 64-bit it's not working. Another weird thing is that if I try to import any other packages that have the "com" prefix I get the same exception, I'm not sure if this has anything to do with it or if it's purely coincidental. I have other imports with out the "com" prefix that work just fine.
    Has anybody ever seen this before?
    Thanks for the help.

    Found it!
    jfxrt.jar was conflicting with the imports. I don't know why, but removing it from the classpath solved the problem. Maybe it was jfxrt.jar's INDEX.LIST file. I'm going to dig a bit further...

  • Classnotfound exception in Studio

    I have this entity bean that I have deployed in weblogic. I am now trying to use
    the studio to create a business operation from one of the Bean methods. When I
    click on Configuration->Business Operations, I get a Classnotfound exception for
    the beans remote class.
    To get around this, I placed the bean jar file in the classpath in startweblogic.cmd
    for the domain. After this the problem went away and I was able to create the operation.
    Question is, is this the right way to have WLI find the class? Since I have deployed
    this in weblogic, shouldn't it be able to find the class files? What is the recommended
    way or am I doing something wrong.
    Thanks,
    --Krish.

    Use
    Class.forName("com.mysql.jdbc.Driver");Is the MySQL JDBC JAR file listed in project path.?

  • Jasper Reports error LINUX "sun.misc.Unsafe.ensureClassInitialized(Native "

    I have a servlet generating Reports using jasper reports. Its working perfectly on windows machine but on LINUX RHEL 4 SERVER it is throwing some error which is I am trying to tackle.
    TOMCAT :5.0.28
    JDK 1.4.2_08
    I installed the deprecated libraries for X-windows server.
    I think its JRloader which is throwing error but i have no clue how should I remove it.
    I hope someone knows this problem.
    error
    javax.servlet.ServletException
         org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:682)
         org.apache.jsp.Login.MCRServlet_jsp._jspService(MCRServlet_jsp.java:220)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    root cause
    java.lang.NoClassDefFoundError
         sun.misc.Unsafe.ensureClassInitialized(Native Method)
         sun.reflect.UnsafeFieldAccessorFactory.newFieldAccessor(UnsafeFieldAccessorFactory.java:20)
         sun.reflect.ReflectionFactory.newFieldAccessor(ReflectionFactory.java:122)
         java.lang.reflect.Field.acquireFieldAccessor(Field.java:779)
         java.lang.reflect.Field.getFieldAccessor(Field.java:760)
         java.lang.reflect.Field.getLong(Field.java:398)
         java.io.ObjectStreamClass.getDeclaredSUID(ObjectStreamClass.java:1478)
         java.io.ObjectStreamClass.access$400(ObjectStreamClass.java:47)
         java.io.ObjectStreamClass$3.run(ObjectStreamClass.java:335)
         java.security.AccessController.doPrivileged(Native Method)
         java.io.ObjectStreamClass.<init>(ObjectStreamClass.java:333)
         java.io.ObjectStreamClass.lookup(ObjectStreamClass.java:253)
         java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:453)
         java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1521)
         java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1435)
         java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1626)
         java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
         java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1845)
         java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1769)
         java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1646)
         java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
         java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)
         java.util.ArrayList.readObject(ArrayList.java:554)
         sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         java.lang.reflect.Method.invoke(Method.java:324)
         java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:838)
         java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1746)
         java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1646)
         java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
         java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1845)
         java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1769)
         java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1646)
         java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
         java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1845)
         java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1769)
         java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1646)
         java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
         java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)
         net.sf.jasperreports.engine.util.JRLoader.loadObject(JRLoader.java:88)
         net.sf.jasperreports.engine.util.JRLoader.loadObject(JRLoader.java:64)
         ReportGenerator.ReportServlet.getCompiledReport(ReportServlet.java:210)
         ReportGenerator.ReportServlet.doPost(ReportServlet.java:55)
         ReportGenerator.ReportServlet.doGet(ReportServlet.java:39)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

    jaumev wrote:
    I have exactly th e same problem.
    Have someone solved it?
    Thanks in advancePlease, don't resurrect old threads. Start a new thread if you have a specific question. I'm locking this one.
    Kaj

  • Import sun.misc.BASE64Encoder;

    Hi,
    Can we use "import sun.misc.BASE64Encoder;" library in java mapping?
    Thanks,
    Best Regards.

    Yes,you can.
    Check out the following blog for an example : http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=(J2EE3417400)ID1015865250DB11252644827406985331End?blog=/pub/wlg/9793%3Fpage%3Dlast%26x-order%3Ddate
    Thanks,
    Pooja Pandey

  • Where to find sun.misc.BASE64Encoder

    Hi!
    I'm not sure if this is the right forum but...
    I need to encode a string in Base64 but I don't know how.
    I found people using the class sun.misc.BASE64Encoder but I can�t find it.
    I suppose it is part of a package that is downloadable (i hope at least) but I don't know where to search.
    I don't need an automatic encoder really. I just want to encode a particular string. Is there another one-time-solution?
    Please help
    Kind regards
    /Stefan F�gersten, InfoGrator

    There are a number of free open source Base64 encoders. As a rule, you should not rely on classes in 'com.sun'. It's somewhat unfortunate that they didn't provide a Base64 encoder/decoder in the stock library, it's quite a common request.
    http://www.google.com/search?q=Java+Base64+Encode
    Good luck,
    -Derek

  • Where to find sun.misc package???

    Hi everybody,
    I need to do uuencoding and read about appropriate classes within the sun.misc package. Regrettably I can't it.
    Any advice???
    Kind regards,
    Gunnar Osterode

    By the way, the sun.misc.* package is included in
    rt.jar, the Java runtime classes - these should always
    be available ... in the sun's implementation.
    http://java.sun.com/products/jdk/faq/faq-sun-packages.html

  • Serialization - ClassNotFound Exception ?!

    First hallo every one :
    Second:
    i have a problem with deserialization , i have here 3 machines talk to each others through objects (Called MessageX) this happen through sockets and Object Input & Output Streams .
    now class MessageX is inside the package of each program of the 3 machines , but once one of them receive an object at casting it back to the MessageX type i get a nice Exception saying that ClassNotFound Exception .
    so now does that mean that i cant talk through objects [i guess not] , and if i can how i can overcome the class not found exception ?!
    thanks in advance for each replay .

    so now does that mean that i cant talk through objectsNo, of course it doesn't.
    if i can how i can overcome the class not found exception ?!The machine where you got the exception doesn't have the class named in the exception available in its classpath. It's as simple as that.

Maybe you are looking for

  • My Dock is not opening - Please help.

    I have my dock hidden so when i hover my mouse over it, the dock pops up usually but now it stay hidden unless i use a keyboard shortcut to open it. I have reinstalled the OS via archive and install but i still have the problems. Can anyone help me r

  • Using Variable in AGO - TODATE - not working  - only Integer?

    Hi All, I'm trying to do the following. I have a dynamic variable Difference - which is pretty much: YEAR (CURRENT_DATE) - YEAR (BASELINE_DATE) This part is working fine. When I'm trying to substitute it into the AGO function, I get syntax error: AGO

  • Read and sort a semicolon seperated csv file

    Hi all, I need to sort the given csv file columnwise (alphabatically)... which means the corresponding row/rows also have to be sorted. need help. the csv file looks like: Wear;9;;; ;;;Image;1 ;;;Area;2 ;;;ner;3 ;;;Content;1 ;;;BContainer;1 ;;;View;1

  • Black area

    When I use Safari, sometimes address bar area gets (light) black. At the first time, I thought it's a screen problem. But it's not because the screen shot also shows the problem. I wish I could attach the picture here. Does anybody had the same exper

  • Startup from external hard disk

    I have made a system backup volume on an external Firewire HD. However, since I am using Apple Bluetooth Mouse and Keyboard when I start up from the external disk the wireless devices do not connect reliably, sometimes they do, sometimes they don't.