Keystore error signing jar file

I am having trouble signing a jar file. I have deleted and recreated the keystore file. Has anyone encountered this error before:
[signjar] jarsigner error: java.lang.RuntimeException keystore load: Not logged in

See my update in this thread:
error signing jar file

Similar Messages

  • Error signing jar file

    I am using oracle Devsuite10g 10.1.2.1 on windows when I signed the webuitl.jar and jacob.jar it gives me the follwing error
    E:\dev10g\forms\webutil>sign_webutil.bat e:\dev10g\forms\java\frmwebutil.jar
    Generating a self signing certificate for key=webutil...
    keytool error: java.lang.Exception: Key pair not generated, alias <webutil> alre
    ady exists
    There were warnings or errors while generating a self signing certificate. Pleas
    e review them.
    Backing up e:\dev10g\forms\java\frmwebutil.jar as e:\dev10g\forms\java\frmwebuti l.jar.old...
    1 file(s) copied.
    Signing e:\dev10g\forms\java\frmwebutil.jar using key=webutil...
    The system cannot find the path specified.
    There were warnings or errors while signing the jar. Please review them.
    E:\dev10g\forms\webutil>sign_webutil.bat e:\dev10g\forms\java\jacob.jar
    Generating a self signing certificate for key=webutil...
    keytool error: java.lang.Exception: Key pair not generated, alias <webutil> alre
    ady exists
    There were warnings or errors while generating a self signing certificate. Please review them.
    and later check the formweb.cfg
    WebUtilArchive=frmwebutil.jar,jacob.jar
    WebUtilLogging=off
    WebUtilLoggingDetail=normal
    WebUtilErrorMode=Alert
    WebUtilDispatchMonitorInterval=5
    WebUtilTrustInternal=true
    WebUtilMaxTransferSize=16384
    baseHTMLjinitiator=webutiljini.htm
    baseHTMLjpi=webutiljpi.htm
    baseHTML=webutilbase.htm
    archive_jini=frmall_jinit.jar,frmwebutil.jar,jacob.jar
    archive=frmall.jar
    lookAndFeel=oracle
    and the webutil.cfg is as follows
    archive_jini=f90all_jinit.jar,frmwebutil.jar,jacob.jar
    WebUtilArchive=frmwebutil.jar,jacob.jar
    install.syslin.location=/webutil
    transfer.APPSRV.READ=C:\
    transfer.APPSRV.WRITE.1=C:\WORK\UPLOAD
    transfer.APPSRV.WRITE.2=C:\WORK\LOG
    transfer.appsrv.workAreaRoot=d:\temp
    transfer.appsrv.accessControl=true
    transfer.database.enabled=TRUE
    transfer.appsrv.enabled=TRUE
    plz help to come out from this error

    This occurs when you attempt to run the provided script (batch) more than once or the Key name is already in the keystore. If you are not familiar with how to sign JARs on your own, the easiest solution is likely to change the value of JAR_KEY in the script.
    The script is provided as a courtesy more than anything else. Oracle doesn't do any magic in the script. It is simply a scripted version of what is required by Sun in order to create a certificate and sign a JAR. You can get more info about how to sign a JAR file from Sun or by doing a Google search. You can also refer to an older Oracle white paper which offered step-by-step instructions for signing:
    http://www.oracle.com/technology/products/forms/pdf/SigningJint13.pdf

  • URLClassLoader + dynamically loading signed jar files

    I have an applet that does not know all of the jar files it will need to load at startup.
    I would like to dynamically load these signed jar files using the URLClassLoader, however it does not recognize these jar files as being signed and I get java.security.AccessControlException: access denied errors.
    Any suggestions?
    Thanks!

    Try this classloader for loading the jars, it should to the trick:
    import java.net.URL;
    import java.net.URLClassLoader;
    import java.net.URLStreamHandlerFactory;
    import java.security.AllPermission;
    import java.security.CodeSource;
    import java.security.PermissionCollection;
    import java.security.Permissions;
    public class AllPermissionsClassLoader extends URLClassLoader {
        public AllPermissionsClassLoader (URL[] urls) {
            super(urls);
        public AllPermissionsClassLoader (URL[] urls, ClassLoader parent) {
            super(urls, parent);
            System.out.println(parent);
        public AllPermissionsClassLoader (URL[] urls, ClassLoader parent, URLStreamHandlerFactory factory) {
            super(urls, parent, factory);
        protected PermissionCollection getPermissions (CodeSource codesource) {
            Permissions permissions = new Permissions();
            permissions.add(new AllPermission());
            return permissions;
    }

  • Error opening jar file

    I'm using WLS 5.1 SP8 on NT 4.0 and trying to setup a cluster. The cluster
              starts fine except when I try to deploy a session bean that is marked as
              clustered. I get an error about reading a jar file
              (D:/weblogic/mycluster/server196/tmp_deployments/ejbjar1559.jar) that WLS
              created when the server started. Every server is getting this error and I
              tried setting up the same paths (D:\weblogic) but it doesn't matter. Any
              ideas?
              Wed Jan 24 15:04:10 EST 2001:<I> <WebLogicServer> WebLogic Server started
              java.util.zip.ZipException: error in opening zip file
              at java.util.zip.ZipFile.open(Native Method)
              at java.util.zip.ZipFile.<init>(ZipFile.java:69)
              at java.util.zip.ZipFile.<init>(ZipFile.java:84)
              at
              weblogic.boot.ServerClassLoader.deploy(ServerClassLoader.java:141)
              at
              weblogic.cluster.AnnotatedServiceOffer.expandClassPath(AnnotatedServiceOffer
              .java:74)
              at
              weblogic.cluster.AnnotatedServiceOffer.readObject(AnnotatedServiceOffer.java
              , Compiled Code)
              at
              weblogic.common.internal.WLObjectInputStreamBase.readPublicSerializable(WLOb
              jectInputStreamBase.java, Compiled
              Code)
              at
              weblogic.common.internal.WLObjectInputStreamBase.readLeftover(WLObjectInputS
              treamBase.java, Compiled Code)
              at
              weblogic.common.internal.WLObjectInputStreamBase.readObjectBody(WLObjectInpu
              tStreamBase.java, Compiled Code)
              at
              weblogic.common.internal.WLObjectInputStreamBase.readObject(WLObjectInputStr
              eamBase.java, Compiled Code)
              at
              weblogic.common.internal.WLObjectInputStreamBase.readObjectWL(WLObjectInputS
              treamBase.java, Compiled Code)
              at
              weblogic.common.internal.WLObjectInputStreamBase.readArrayList(WLObjectInput
              StreamBase.java, Compiled Code)
              at weblogic.cluster.StateDump.readObject(StateDump.java:59)
              at
              weblogic.common.internal.WLObjectInputStreamBase.readPublicSerializable(WLOb
              jectInputStreamBase.java, Compiled
              Code)
              at
              weblogic.common.internal.WLObjectInputStreamBase.readLeftover(WLObjectInputS
              treamBase.java, Compiled Code)
              at
              weblogic.common.internal.WLObjectInputStreamBase.readObjectBody(WLObjectInpu
              tStreamBase.java, Compiled Code)
              at
              weblogic.common.internal.WLObjectInputStreamBase.readObject(WLObjectInputStr
              eamBase.java, Compiled Code)
              at
              weblogic.common.internal.WLObjectInputStreamBase.readObjectWL(WLObjectInputS
              treamBase.java, Compiled Code)
              at weblogic.cluster.TMSocket.execute(TMSocket.java, Compiled Code)
              at weblogic.kernel.ExecuteThread.run(ExecuteThread.java, Compiled
              Code)
              Wed Jan 24 15:04:19 EST 2001:<E> <MulticastSocket> Multicast socket receive
              error: java.lang.RuntimeException: I/O error
              opening JAR file from
              file:/D:/weblogic/mycluster/server196/tmp_deployments/ejbjar1559.jar
              

    From previous posts I see this is a known bug. Is there a fix yet? btw, how
              did a bug of this magnitude
              get past QA. :(
              Elan Halfin <[email protected]> wrote in message
              news:[email protected]...
              > I'm using WLS 5.1 SP8 on NT 4.0 and trying to setup a cluster. The cluster
              > starts fine except when I try to deploy a session bean that is marked as
              > clustered. I get an error about reading a jar file
              > (D:/weblogic/mycluster/server196/tmp_deployments/ejbjar1559.jar) that WLS
              > created when the server started. Every server is getting this error and I
              > tried setting up the same paths (D:\weblogic) but it doesn't matter. Any
              > ideas?
              >
              > Wed Jan 24 15:04:10 EST 2001:<I> <WebLogicServer> WebLogic Server started
              > java.util.zip.ZipException: error in opening zip file
              > at java.util.zip.ZipFile.open(Native Method)
              > at java.util.zip.ZipFile.<init>(ZipFile.java:69)
              > at java.util.zip.ZipFile.<init>(ZipFile.java:84)
              > at
              > weblogic.boot.ServerClassLoader.deploy(ServerClassLoader.java:141)
              > at
              >
              weblogic.cluster.AnnotatedServiceOffer.expandClassPath(AnnotatedServiceOffer
              > .java:74)
              > at
              >
              weblogic.cluster.AnnotatedServiceOffer.readObject(AnnotatedServiceOffer.java
              > , Compiled Code)
              > at
              >
              weblogic.common.internal.WLObjectInputStreamBase.readPublicSerializable(WLOb
              > jectInputStreamBase.java, Compiled
              >
              > Code)
              > at
              >
              weblogic.common.internal.WLObjectInputStreamBase.readLeftover(WLObjectInputS
              > treamBase.java, Compiled Code)
              > at
              >
              weblogic.common.internal.WLObjectInputStreamBase.readObjectBody(WLObjectInpu
              > tStreamBase.java, Compiled Code)
              > at
              >
              weblogic.common.internal.WLObjectInputStreamBase.readObject(WLObjectInputStr
              > eamBase.java, Compiled Code)
              > at
              >
              weblogic.common.internal.WLObjectInputStreamBase.readObjectWL(WLObjectInputS
              > treamBase.java, Compiled Code)
              > at
              >
              weblogic.common.internal.WLObjectInputStreamBase.readArrayList(WLObjectInput
              > StreamBase.java, Compiled Code)
              > at weblogic.cluster.StateDump.readObject(StateDump.java:59)
              > at
              >
              weblogic.common.internal.WLObjectInputStreamBase.readPublicSerializable(WLOb
              > jectInputStreamBase.java, Compiled
              >
              > Code)
              > at
              >
              weblogic.common.internal.WLObjectInputStreamBase.readLeftover(WLObjectInputS
              > treamBase.java, Compiled Code)
              > at
              >
              weblogic.common.internal.WLObjectInputStreamBase.readObjectBody(WLObjectInpu
              > tStreamBase.java, Compiled Code)
              > at
              >
              weblogic.common.internal.WLObjectInputStreamBase.readObject(WLObjectInputStr
              > eamBase.java, Compiled Code)
              > at
              >
              weblogic.common.internal.WLObjectInputStreamBase.readObjectWL(WLObjectInputS
              > treamBase.java, Compiled Code)
              > at weblogic.cluster.TMSocket.execute(TMSocket.java, Compiled Code)
              > at weblogic.kernel.ExecuteThread.run(ExecuteThread.java, Compiled
              > Code)
              > Wed Jan 24 15:04:19 EST 2001:<E> <MulticastSocket> Multicast socket
              receive
              > error: java.lang.RuntimeException: I/O error
              >
              > opening JAR file from
              > file:/D:/weblogic/mycluster/server196/tmp_deployments/ejbjar1559.jar
              >
              >
              

  • How can i add update signed jar file

    I am developing an applet which requires signing to run in a browser.
    I am developing supporting classes. But these class files have to be added
    to the jar. Isnt it??
    But to test the applet i need to load it in the browser each time i modify the class files. So the jar file need to be updated every time. But an
    IOError
    is being displayed when i try to update the signed jar file.
    How can i update signed jar file?? Or is there any othe way to test the signed applet during development??

    How can i update signed jar file?You can't, the signature is there to make sure the content of the jare hasn't been messed
    with.
    Either recreate the jar and re sign it or set up a policy during testing.

  • Is it possible to verify a signed jar-file from a program?

    Is it possible to verify a signed jar-file from a program
    (using some API) likewise jarsigner does?

    Is it possible to verify a signed jar-file from a
    program
    (using some API) likewise jarsigner does?Hi,
    You would have to open the jarfile, read each jar entry and for each of them do a getCertificates() and then in turn verify each certificate with the public key of the enclosed certificates in the jar file.
    An easier solution would be to use the verify flag of the JarFile or JarInputStream.
    Hope it helps..
    Cheers,
    Vijay

  • Turning off jar cache causes classnotfound with signed jar files

    Hi,
    I have a problem with applet signed jars when the java cache is turned off.
    With the cache turned off, I get a class not found for the first class it attempts to use from the signed jar file from an applet.
    If I turn the jar caching on, all works perfectly with no other changes.
    Anyone have any ideas? This is java 6u16.
    Thanks

    jkc532 wrote:
    .. Is the fact that the CachedJarFile class doesn't attempt to reload the resource when it can't retrieve it from MemoryCache a bug? From your comprehensive investigation and report, it seems so to me.
    ..I've dug as deep as I can on this and I'm at wits end, does anybody have any ideas?Just after read the summary I was tired, so I have some understanding of the effort you have already invested in this (the 'wits' you have already spent). I think you should raise a bug report and seek Oracle's response.

  • Three questions about signed jar file and applet

    I use three signed jar file. Each of them signed by different certificate. First of JARs contain applet class. When I start applet from html page I see message &#8220;This applet was signed by&#8230;&#8230; but Java cannot verify it&#8230; Do you trust&#8230;?&#8221;. All times I press &#8220;Yes I trust&#8221; and after this questions applet stop to work end exit. If I use only one certificate for signing of three JARs then applet continue to work after question. 1) What should I do to fix this bug? 2) Is it any method to check from applet that user press Trust button? Is it any method to emulate work of SecurityManager to check that Certificate object is trusted (I want do call some method check(Certificate) and if certificate is not trusted I want to see message with question: &#8220;Do you want to trust this certificate&#8221; and so on)?

    Hello Jarman,
    1. If I have a signed jar file, then as long as the
    certificate is recognised as trusted that applet can
    run as a fully trusted application on the client
    machine. So I should not have to add lines such as
    permission java.lang.RuntimePermission
    "readFileDescriptor", "read" ;
    permission java.lang.RuntimePermission
    "writeFileDescriptor", "write" ;
    to my java.policy file. true/false ?true
    2. If I am running a signed jar file in the Java
    plugin then I do not need to have a verisign or thawte
    certificate (however to allow my certificate to be
    accepted I do have to import it into the cacerts file
    on the client machine). True/false?true
    3. Following on from question 2, if I want to be able
    to run an applet on a client machine, without messing
    around with ANY files on those machines, I need a
    verisign or thawte certificate. True/false?true
    4. (And finally) Apart from a security exception
    saying that I need to add one of the lines like those
    of question 1, is there any way I can get other debug
    information as to why the signed jar file is not being
    recognised as signed?No. This could be a problem of importing your certifcate into the wrong place.
    The information on the following link is a little bit dated but it helped me to successfully install a testcertificate and sign an applet with it.
    http://www.suitable.com/Doc_CodeSigning.shtml

  • MulticastSocket Multicast socket receive error: java.lang.RuntimeException: I/O error opening JAR file from file:/D:/weblogic/mycluster/server86/tmp_deployments/ejbjar-17327.jar

    Hi,
              I need some help.
              Product=weblogic5.1.0
              Revision=(Release Level)=
              Problem Description=
              I am doing cluster of weblogic server, I have no problem to set up the
              cluster and to run servlet and EJB examples.
              However, on my command line for startcluster I got a lot of message as
              followed:
              Fri Aug 18 11:31:44 EDT 2000:<E> <MulticastSocket> Multicast socket receive
              error: java.lang.RuntimeException: I/O error opening JAR file from
              file:/D:/weblogic/mycluster/server86/tmp_deployments/ejbjar-17327.jar
              java.util.zip.ZipException: error in opening zip file
              at java.util.zip.ZipFile.open(Native Method)
              at java.util.zip.ZipFile.<init>(ZipFile.java, Compiled Code)
              at java.util.zip.ZipFile.<init>(ZipFile.java, Compiled Code)
              at weblogic.boot.ServerClassLoader.deploy(ServerClassLoader.java,
              Compiled Code)
              at
              weblogic.cluster.AnnotatedServiceOffer.expandClassPath(AnnotatedServiceOffer
              .java, Compiled Code)
              at
              weblogic.cluster.AnnotatedServiceOffer.readObject(AnnotatedServiceOffer.java
              , Compiled Code)
              at
              weblogic.common.internal.WLObjectInputStreamBase.readPublicSerializable(WLOb
              jectInputStreamBase.java, Compiled Co
              de)
              at
              weblogic.common.internal.WLObjectInputStreamBase.readLeftover(WLObjectInputS
              treamBase.java, Compiled Code)
              at
              weblogic.common.internal.WLObjectInputStreamBase.readObjectBody(WLObjectInpu
              tStreamBase.java, Compiled Code)
              at
              weblogic.common.internal.WLObjectInputStreamBase.readObject(WLObjectInputStr
              eamBase.java, Compiled Code)
              at
              weblogic.common.internal.WLObjectInputStreamBase.readObjectWL(WLObjectInputS
              treamBase.java, Compiled Code)
              at
              weblogic.common.internal.WLObjectInputStreamBase.readArrayList(WLObjectInput
              StreamBase.java, Compiled Code)
              at weblogic.cluster.StateDump.readObject(StateDump.java, Compiled
              Code)
              at
              weblogic.common.internal.WLObjectInputStreamBase.readPublicSerializable(WLOb
              jectInputStreamBase.java, Compiled Co
              de)
              at
              weblogic.common.internal.WLObjectInputStreamBase.readLeftover(WLObjectInputS
              treamBase.java, Compiled Code)
              at
              weblogic.common.internal.WLObjectInputStreamBase.readObjectBody(WLObjectInpu
              tStreamBase.java, Compiled Code)
              at
              weblogic.common.internal.WLObjectInputStreamBase.readObject(WLObjectInputStr
              eamBase.java, Compiled Code)
              at
              weblogic.common.internal.WLObjectInputStreamBase.readObjectWL(WLObjectInputS
              treamBase.java, Compiled Code)
              at weblogic.cluster.TMSocket.execute(TMSocket.java, Compiled Code)
              at weblogic.kernel.ExecuteThread.run(ExecuteThread.java, Compiled
              Code)
              The message freshed about every 20 seconds.
              Another question, I used a iplanet web server as a proxy server with a
              cluster of two weblogic servers pluged in, although I set
              weblogic.properties to round-robin, however, when I run a fibonacci servlet,
              it does not do the round-robin. It always go to one machine for a lot of
              times. Any idea?
              Thank you for your help.
              Tom
              

    May i presume that your cluster is configured on a shared file system?.
              I have seen this problem only if you cluster is configured on different machines
              and if the directory structure is not identical.
              let us know..
              Kumar
              Cameron Purdy wrote:
              > First, update to SP4 (or SP5 if it is out now). Second, follow the cluster
              > instructions on setting up deployments for a cluster. The only
              > implementation that I have used is the single shared location that all the
              > servers load from.
              >
              > --
              >
              > Cameron Purdy
              > http://www.tangosol.com
              >
              > "Tom Gan" <[email protected]> wrote in message
              > news:[email protected]...
              > > Hi,
              > > I need some help.
              > >
              > > Product=weblogic5.1.0
              > > Revision=(Release Level)=
              > > Problem Description=
              > > I am doing cluster of weblogic server, I have no problem to set up the
              > > cluster and to run servlet and EJB examples.
              > > However, on my command line for startcluster I got a lot of message as
              > > followed:
              > > Fri Aug 18 11:31:44 EDT 2000:<E> <MulticastSocket> Multicast socket
              > receive
              > > error: java.lang.RuntimeException: I/O error opening JAR file from
              > > file:/D:/weblogic/mycluster/server86/tmp_deployments/ejbjar-17327.jar
              > > java.util.zip.ZipException: error in opening zip file
              > > at java.util.zip.ZipFile.open(Native Method)
              > > at java.util.zip.ZipFile.<init>(ZipFile.java, Compiled Code)
              > > at java.util.zip.ZipFile.<init>(ZipFile.java, Compiled Code)
              > > at weblogic.boot.ServerClassLoader.deploy(ServerClassLoader.java,
              > > Compiled Code)
              > > at
              > >
              > weblogic.cluster.AnnotatedServiceOffer.expandClassPath(AnnotatedServiceOffer
              > > .java, Compiled Code)
              > > at
              > >
              > weblogic.cluster.AnnotatedServiceOffer.readObject(AnnotatedServiceOffer.java
              > > , Compiled Code)
              > > at
              > >
              > weblogic.common.internal.WLObjectInputStreamBase.readPublicSerializable(WLOb
              > > jectInputStreamBase.java, Compiled Co
              > > de)
              > > at
              > >
              > weblogic.common.internal.WLObjectInputStreamBase.readLeftover(WLObjectInputS
              > > treamBase.java, Compiled Code)
              > > at
              > >
              > weblogic.common.internal.WLObjectInputStreamBase.readObjectBody(WLObjectInpu
              > > tStreamBase.java, Compiled Code)
              > > at
              > >
              > weblogic.common.internal.WLObjectInputStreamBase.readObject(WLObjectInputStr
              > > eamBase.java, Compiled Code)
              > > at
              > >
              > weblogic.common.internal.WLObjectInputStreamBase.readObjectWL(WLObjectInputS
              > > treamBase.java, Compiled Code)
              > > at
              > >
              > weblogic.common.internal.WLObjectInputStreamBase.readArrayList(WLObjectInput
              > > StreamBase.java, Compiled Code)
              > > at weblogic.cluster.StateDump.readObject(StateDump.java, Compiled
              > > Code)
              > > at
              > >
              > weblogic.common.internal.WLObjectInputStreamBase.readPublicSerializable(WLOb
              > > jectInputStreamBase.java, Compiled Co
              > > de)
              > > at
              > >
              > weblogic.common.internal.WLObjectInputStreamBase.readLeftover(WLObjectInputS
              > > treamBase.java, Compiled Code)
              > > at
              > >
              > weblogic.common.internal.WLObjectInputStreamBase.readObjectBody(WLObjectInpu
              > > tStreamBase.java, Compiled Code)
              > > at
              > >
              > weblogic.common.internal.WLObjectInputStreamBase.readObject(WLObjectInputStr
              > > eamBase.java, Compiled Code)
              > > at
              > >
              > weblogic.common.internal.WLObjectInputStreamBase.readObjectWL(WLObjectInputS
              > > treamBase.java, Compiled Code)
              > > at weblogic.cluster.TMSocket.execute(TMSocket.java, Compiled Code)
              > > at weblogic.kernel.ExecuteThread.run(ExecuteThread.java, Compiled
              > > Code)
              > >
              > > The message freshed about every 20 seconds.
              > >
              > > Another question, I used a iplanet web server as a proxy server with a
              > > cluster of two weblogic servers pluged in, although I set
              > > weblogic.properties to round-robin, however, when I run a fibonacci
              > servlet,
              > > it does not do the round-robin. It always go to one machine for a lot of
              > > times. Any idea?
              > > Thank you for your help.
              > > Tom
              > >
              > >
              > >
              

  • Multicast socket receive error: java.lang.RuntimeException: I/O error opening JAR file

    I received Multicast socket receive error when I tried to restart the weblogic cluster in our pre-prod box.
              The error message I received lkie this:
              Multicast socket receive error: java.lang.RuntimeException: I/O error opening JAR file from file:/vol01/sites/vinlkup/site/versionc/local_classes/VIN/DeliveryTypeLookupEJB.jar
              

    Yuping,
              What release of WLS w/ service pack are you using? Make sure, if you are using a non-shared file system, to have the same absolute paths to your application on your file systems.
              yuping xu wrote:
              > I received Multicast socket receive error when I tried to restart the weblogic cluster in our pre-prod box.
              > The error message I received lkie this:
              > Multicast socket receive error: java.lang.RuntimeException: I/O error opening JAR file from file:/vol01/sites/vinlkup/site/versionc/local_classes/VIN/DeliveryTypeLookupEJB.jar
              

  • Java.lang.RuntimeException : I/O error opening JAR file

              Hi,
              Cluster configuration : 2 NT boxes WLS5.1(SP6). On one m/c weblogic
              is installed on drive C:\ and on another m/c weblogic is installed on drive D:\.
              i.e. all jars are at two place m/c 1 : c:\weblogic\myserver\*.jar
              m/c 2 : d:\weblogic \myserver\*.jar
              When servers startup successfully, error is coming :
              on the console of m/c 1 :
              java.lang.RuntimeException : I/O error opening JAR file from
              file:/d:/weblogic/myserver/eb_arn.jar
              on the console of m/c 2 :
              java.lang.RuntimeException : I/O error opening JAR file from
              file:/c:/weblogic/myserver/eb_arn.jar
              When both the weblgoic servers are installed on two machines and
              on same drive(c:\), this error is not coming.
              i.e. all jars are at two place m/c 1 : c:\weblogic\myserver\*.jar
              m/c 2 : c:\weblogic \myserver\*.jar
              Regards,
              Jitendra Kumar.
              

    Jitendra,
              This looks like a bug. Please approach support.
              - Prasad
              Jitendra Kumar wrote:
              > Hi,
              >
              > I'm deploying as per server property, because all servers have got their own myserver
              > directory and jars under that.
              > primary key class is not a problem at all, because that file is anyway under serverclasses directory.
              >
              > The problem starts when two weblogic servers on two m/c are installed on different drive(one on 'C:\' dirve
              > and another on 'D:\' drive or a unix machine in cluster).
              >
              > Regards,
              > Jitendra Kumar.
              >
              > Prasad Peddada <[email protected]> wrote:
              > >Are you sure that the the primary key class is there in the jar file.
              > >
              > >Are you deploying as per cluster property? Deploy on all the servers as per server property.
              > >
              > >
              > >- Prasad
              > >
              > >Jitendra Kumar wrote:
              > >
              > >> Hi,
              > >>
              > >> I don't have any problem in deploying beans and all servers have their local jar files.
              > >> Today I started solaris server in cluster and that also giving the same error message in console.
              > >> Now 2NT and One Solaris m/c running in cluster.
              > >>
              > >> error message on NT console is :
              > >> **************************************************
              > >> Sat Nov 04 15:43:14 GMT+05:30 2000:<E> <MulticastSocket> Multicast socket receive error: java.lang.R
              > >> untimeException: I/O error opening JAR file from file:/mazaa/weblogic/weblogic/myserver/voter.jar
              > >> <ServerClassLoader><W>: com.cot.eis.vl.eb_voter.VoterPK in not in archive java.util.zip.ZipFile@b902
              > >> 66be
              > >> java.util.zip.ZipException: error in opening zip file
              > >> at java.util.zip.ZipFile.open(Native Method)
              > >> at java.util.zip.ZipFile.<init>(ZipFile.java, Compiled Code)
              > >> at java.util.zip.ZipFile.<init>(ZipFile.java, Compiled Code)
              > >> at weblogic.boot.ServerClassLoader.deploy(ServerClassLoader.java, Compiled Code)
              > >> at weblogic.cluster.AnnotatedServiceOffer.expandClassPath(AnnotatedServiceOffer.java, Compil
              > >> ed Code)
              > >> at weblogic.cluster.AnnotatedServiceOffer.readObject(AnnotatedServiceOffer.java, Compiled Co
              > >> de)
              > >> at weblogic.common.internal.WLObjectInputStreamBase.readPublicSerializable(WLObjectInputStre
              > >> amBase.java, Compiled Code)
              > >> at weblogic.common.internal.WLObjectInputStreamBase.readLeftover(WLObjectInputStreamBase.jav
              > >> a, Compiled Code)
              > >> at weblogic.common.internal.WLObjectInputStreamBase.readObjectBody(WLObjectInputStreamBase.j
              > >> ava, Compiled Code)
              > >> at weblogic.common.internal.WLObjectInputStreamBase.readObject(WLObjectInputStreamBase.java,
              > >> Compiled Code)
              > >> at weblogic.common.internal.WLObjectInputStreamBase.readObjectWL(WLObjectInputStreamBase.jav
              > >> a, Compiled Code)
              > >> at weblogic.common.internal.WLObjectInputStreamBase.readArrayList(WLObjectInputStreamBase.ja
              > >> va, Compiled Code)
              > >> at weblogic.cluster.StateDump.readObject(StateDump.java, Compiled Code)
              > >> at weblogic.common.internal.WLObjectInputStreamBase.readPublicSerializable(WLObjectInputStre
              > >> amBase.java, Compiled Code)
              > >> at weblogic.common.internal.WLObjectInputStreamBase.readLeftover(WLObjectInputStreamBase.jav
              > >> a, Compiled Code)
              > >> at weblogic.common.internal.WLObjectInputStreamBase.readObjectBody(WLObjectInputStreamBase.j
              > >> ava, Compiled Code)
              > >> at weblogic.common.internal.WLObjectInputStreamBase.readObject(WLObjectInputStreamBase.java,
              > >> Compiled Code)
              > >> at weblogic.common.internal.WLObjectInputStreamBase.readObjectWL(WLObjectInputStreamBase.jav
              > >> a, Compiled Code)
              > >> at weblogic.cluster.TMSocket.execute(TMSocket.java, Compiled Code)
              > >> at weblogic.kernel.ExecuteThread.run(ExecuteThread.java, Compiled Code)
              > >> Sat Nov 04 15:54:24 GMT+05:30 2000:<E> <MulticastSocket> Multicast socket receive error: java.lang.R
              > >> untimeException: I/O error opening JAR file from file:/mazaa/weblogic/weblogic/myserver/voter.jar
              > >>
              > >> error message on Solaris console is :
              > >> ******************************************
              > >> java.util.zip.ZipException: error in opening zip file
              > >> at java.util.zip.ZipFile.open(Native Method)
              > >> at java.util.zip.ZipFile.open(Compiled Code)
              > >> at java.util.zip.ZipFile.<init>(Compiled Code)
              > >> at java.util.zip.ZipFile.<init>(Compiled Code)
              > >> at weblogic.boot.ServerClassLoader.deploy(Compiled Code)
              > >> at weblogic.cluster.AnnotatedServiceOffer.expandClassPath(Compiled Code)
              > >> at weblogic.cluster.AnnotatedServiceOffer.readObject(Compiled Code)
              > >> at weblogic.common.internal.WLObjectInputStreamBase.readPublicSerializab
              > >> le(Compiled Code)
              > >> at weblogic.common.internal.WLObjectInputStreamBase.readLeftover(Compile
              > >> d Code)
              > >> at weblogic.common.internal.WLObjectInputStreamBase.readObjectBody(Compi
              > >> led Code)
              > >> at weblogic.common.internal.WLObjectInputStreamBase.readObject(Compiled
              > >> Code)
              > >> at weblogic.common.internal.WLObjectInputStreamBase.readObjectWL(Compile
              > >> d Code)
              > >> at weblogic.common.internal.WLObjectInputStreamBase.readArrayList(Compil
              > >> ed Code)
              > >> at weblogic.cluster.StateDump.readObject(Compiled Code)
              > >> at weblogic.common.internal.WLObjectInputStreamBase.readPublicSerializab
              > >> le(Compiled Code)
              > >> at weblogic.common.internal.WLObjectInputStreamBase.readLeftover(Compile
              > >> d Code)
              > >> at weblogic.common.internal.WLObjectInputStreamBase.readObjectBody(Compi
              > >> led Code)
              > >> at weblogic.common.internal.WLObjectInputStreamBase.readObject(Compiled
              > >> Code)
              > >> at weblogic.common.internal.WLObjectInputStreamBase.readObjectWL(Compile
              > >> d Code)
              > >> at weblogic.cluster.TMSocket.execute(Compiled Code)
              > >> at weblogic.kernel.ExecuteThread.run(Compiled Code)
              > >> Sat Nov 04 15:55:09 GMT+00:00 2000:<E> <MulticastSocket> Multicast socket receiv
              > >> e error: java.lang.RuntimeException: I/O error opening JAR file from file:/C:/we
              > >> blogic/myserver/eb_arn.jar
              > >>
              > >> Regards,
              > >> Jitendra Kumar
              > >>
              > >> Prasad Peddada <[email protected]> wrote:
              > >> >Do you trouble deploying the app also.
              > >> >
              > >> >- Prasad
              > >> >
              > >> >Jitendra Kumar wrote:
              > >> >
              > >> >> Hi,
              > >> >>
              > >> >> Cluster configuration : 2 NT boxes WLS5.1(SP6). On one m/c weblogic
              > >> >> is installed on drive C:\ and on another m/c weblogic is installed on drive D:\.
              > >> >> i.e. all jars are at two place m/c 1 : c:\weblogic\myserver\*.jar
              > >> >> m/c 2 : d:\weblogic \myserver\*.jar
              > >> >> When servers startup successfully, error is coming :
              > >> >>
              > >> >> on the console of m/c 1 :
              > >> >> java.lang.RuntimeException : I/O error opening JAR file from
              > >> >> file:/d:/weblogic/myserver/eb_arn.jar
              > >> >>
              > >> >> on the console of m/c 2 :
              > >> >> java.lang.RuntimeException : I/O error opening JAR file from
              > >> >> file:/c:/weblogic/myserver/eb_arn.jar
              > >> >>
              > >> >> When both the weblgoic servers are installed on two machines and
              > >> >> on same drive(c:\), this error is not coming.
              > >> >> i.e. all jars are at two place m/c 1 : c:\weblogic\myserver\*.jar
              > >> >> m/c 2 : c:\weblogic \myserver\*.jar
              > >> >>
              > >> >> Regards,
              > >> >> Jitendra Kumar.
              > >> >
              > >
              > >--
              > >Cheers
              > >
              > >- Prasad
              > >
              > >
              

  • Signing jar file error

    i am trying to sign the sql server jdbc driver jar file to use in my jnlp application.but but i get this error.
    C:\JNLP>jarsigner -keystore myKe sqljdbc.jar jdc
    Enter Passphrase for keystore: asdfre
    jarsigner: unable to sign jar: java.util.zip.ZipException: invalid entry compres
    sed size (expected 5311 but got 5281 bytes)

    i am trying to sign the sql server jdbc driver jar
    file to use in my jnlp application.but but i get this
    error.
    C:\JNLP>jarsigner -keystore myKe sqljdbc.jar jdc
    Enter Passphrase for keystore: asdfre
    jarsigner: unable to sign jar:
    java.util.zip.ZipException: invalid entry compres
    sed size (expected 5311 but got 5281 bytes)1. Try unjarring the jdbc driver file and rejar it again.
    2. Are you sure you have the latest JDK. Previous versions had these issues.

  • Unable to get jarsigner to sign jar file using pkcs11 smartcard

    I'm using a JDK jdk1.6.0_14 with a datakey smartcard with the below info in pkcs11.cfg file:
    name = DK330
    library = c:\windows\system32\dkck232.dll
    I have also configured the java.security file to include the security.provider.10=sun.security.pkcs11.SunPKCS11 c:/pkcs11.cfg
    I have my environment set for the below to keep it simple as possible:
    JAVA_HOME=C:\Program Files\Java\jdk1.6.0_14
    CLASSPATH=C:\Program Files\Java\jdk1.6.0_14\lib
    PATH=C:\Program Files\Java\jdk1.6.0_14\bin;c:\windows;c:\windows\system32
    1) I am able to Confirm that the secret key is present in the keystore
    keytool -v -list -keystore NONE -storetype PKCS11 -storepass xxxxxx
    Keystore type: PKCS11
    Keystore provider: SunPKCS11-DK330
    Your keystore contains 1 entry
    Alias name: CS.NOLSC.002's U.S. Government ID
    Entry type: PrivateKeyEntry
    Certificate chain length: 1
    Certificate[1]:
    Owner: CN=CS.NOLSC.002, OU=USN, OU=PKI, OU=DoD, O=U.S. Government, C=US, OU=PKI, OU=DoD, O=U.S. Government, C=US
    Issuer: CN=DOD CA-14, OU=PKI, OU=DoD, O=U.S. Government, C=US
    Serial number: 3e8e
    Valid from: Mon Feb 05 14:53:22 EST 2007 until: Thu Feb 04 14:53:22 EST 2010
    Certificate fingerprints:
    MD5: 9D:34:AF:D8:DE:18:15:78:D6:88:3D:37:83:FA:DC:E8
    SHA1: 8A:BB:39:D5:2B:45:F7:CE:A3:93:C5:71:5C:36:DC:FE:3F:B4:7D:9A
    Signature algorithm name: SHA1withRSA
    Version: 3
    Extensions:
    #1: ObjectId: 2.5.29.15 Criticality=true
    KeyUsage [
    DigitalSignature etc
    2) When I try to sign the applet using the below commands I get the same errors:
    command 1:
    jarsigner -keystore NONE -storetype PKCS11 -providerClass sun.security.pkcs11.SunPKCS11 -providerArg ${java.home}/lib/security/pkcs11.cfg sfilechooser.jar "CS.NOLSC.002's U.S. Government ID"
    I get this error::
    jarsigner error: java.security.ProviderException: sun.security.pkcs11.wrapper.PKCS11Exception: CKR_ATTRIBUTE_TYPE_INVALID
    command 2:
    jarsigner -verbose -keystore NONE -storetype PKCS11 -storepass xxxxxx sfilechooser.jar "CS.NOLSC.002's U.S. Government ID"jarsigner error: java.security.ProviderException: sun.security.pkcs11.wrapper.PKCS11Exception: CKR_ATTRIBUTE_TYPE_INVALID
    I can also confirm the jar file that I'm trying to sign is unsigned using the below command without problem.
    C:\Program Files\Java\jdk1.6.0_14\bin>jarsigner -verify -verbose -certs -keystore NONE -storetype PKCS11 sfilechooser.jar
    Enter Passphrase for keystore:
    0 Wed Jul 08 09:36:06 EDT 2009 META-INF/
    71 Wed Jul 08 09:36:06 EDT 2009 META-INF/MANIFEST.MF
    4227 Tue Jun 09 09:56:20 EDT 2009 DirList.class
    0 Wed Jul 08 09:29:52 EDT 2009 FileChooserPackage/
    4728 Tue Jun 09 09:56:20 EDT 2009 FileChooserPackage/DirUtil.class
    809 Fri May 29 13:05:42 EDT 2009 FileChooserPackage/FileChooserBean$AWTFileDialogThread.class
    765 Fri May 29 13:05:42 EDT 2009 FileChooserPackage/FileChooserBean$AWTSaveDialogThread.class
    819 Tue Jun 09 09:56:20 EDT 2009 FileChooserPackage/FileChooserBean$FileChooserBeanThread.class
    1015 Tue Jun 09 09:56:20 EDT 2009 FileChooserPackage/FileChooserBean$FormsDecoderException.class
    815 Tue Jun 09 09:56:20 EDT 2009 FileChooserPackage/FileChooserBean$SaveFileChooserThread.class
    17198 Tue Jun 09 09:56:20 EDT 2009 FileChooserPackage/FileChooserBean.class
    s = signature was verified
    m = entry is listed in manifest
    k = at least one certificate was found in keystore
    i = at least one certificate was found in identity scope
    jar is unsigned. (signatures missing or not parsable)
    ======================================
    What could be my problem to get my applet signed? I'm at a loss.

    I found the problem.
    I was able to use jarsigner correctly after I backed off on the GemPlus driver version from v4.7.062 file name dkck232.dll to the previous version of dkck201.dll at v4.7.062.

  • Problems with signed JAR files in JWS/JRE6 environment.

    Hello All,
    I'm encountering a problem running our desktop application as a Java Web Start deployment in a JRE 6 environment. There were never any problems when running the same application as a JWS deployment in JRE 1.4, or 5, environments. There are also currently no problems in a JRE 6 environment when running the application as a standard desktop application.
    The problem which I am having has nothing to do with launching the application. But for good measure, I verified the JNLP file with JaNeLA. A couple things we out of order, which I addressed to make JaNeLA happy, but my problem still persists. Here is my JNLP file (anonymized to protect the innocent):
    TS: 2010-10-18 17:04:46
    <?xml version="1.0" encoding="UTF-8"?>
    <jnlp codebase="$$codebase" href="$$name">
         <information>
              <title>Acme Desktop</title>
              <vendor>Acme Corporation</vendor>
              <homepage href="http://www.acme.com/"/>
              <description>Acme Client for Acme Server</description>
              <description kind="tooltip">Acme Client for Acme Server</description>
              <icon href="desktop.gif"/>
              <offline-allowed/>
         </information>
         <security>
              <all-permissions/>
         </security>
         <resources>
              <j2se version="1.5+"/>
              <jar href="acmedesktop.jar" download="eager" version="8.00.01.00+"/>
              <jar href="lib/antlr-2.7.2.jar" download="eager" version="8.00.01.00+"/>
              <jar href="lib/backport-util-concurrent.jar" download="eager" version="8.00.01.00+"/>
              <jar href="lib/commons-codec-1.3.jar" download="eager" version="8.00.01.00+"/>
              <jar href="lib/commons-httpclient.jar" download="eager" version="8.00.01.00+"/>
              <jar href="lib/commons-logging.jar" download="eager" version="8.00.01.00+"/>
              <jar href="lib/acmeapi.jar" download="eager" version="8.00.01.00+"/>
              <jar href="lib/HelpJavaDT.jar" download="eager" version="8.00.01.00+"/>
              <jar href="lib/HelpJavaDT_es.jar" download="eager" version="8.00.01.00+"/>
              <jar href="lib/jacorb.jar" download="eager" version="8.00.01.00+"/>
              <jar href="lib/Multivalent.jar" download="eager" version="8.00.01.00+"/>
              <jar href="lib/slf4j-api-1.5.6.jar" download="eager" version="8.00.01.00+"/>
              <jar href="lib/slf4j-jdk14-1.5.6.jar" download="eager" version="8.00.01.00+"/>
              <jar href="lib/snow.jar" download="lazy" version="8.00.01.00+"/>
              <jar href="lib/AcmeTMClient.jar" download="eager" version="8.00.01.00+"/>
              <jar href="lib/xercesImpl.jar" download="eager" version="8.00.01.00+"/>
              <jar href="lib/xml-apis.jar" download="eager" version="8.00.01.00+"/>
              <extension name="installer" href="desktopInstaller.jnlp" />
              <extension name="Java Help" href="help.jnlp"/>
              <property name="java.library.path" value="./lib"/>
              <property name="admin" value="false"/>
              <property name="webstart" value="true"/>          
              <!-- The following two lines are for SSO implementation only
              <property name="urladdress" value="http://localhost:8080/AcmeDesktop/servlet/AcmeServlet"/>
              <property name="cookiespec" value="RFC2109"/>
              -->          
         </resources>
         <resources os="Windows">
              <nativelib href="lib/jniWin32.jar" version="8.00.01.00+"/>
         </resources>
         <application-desc main-class="desktop"/>     
    </jnlp>-----
    When running as a JWS deployment, on JRE 6, the application will be functioning normally for a little while, and then suddenly the following exception is thrown, and the current operation fails because the class in question cannot be accessed:
    java.lang.SecurityException: class "acmeapi.communication.CDocImpl"'s signer information does not match signer information of other classes in the same package
         at java.lang.ClassLoader.checkCerts(ClassLoader.java:807)
         at java.lang.ClassLoader.preDefineClass(ClassLoader.java:488)
         at java.lang.ClassLoader.defineClassCond(ClassLoader.java:626)
         at java.lang.ClassLoader.defineClass(ClassLoader.java:616)
         at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
         at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
         at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
         at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
         at com.sun.jnlp.JNLPClassLoader.findClass(JNLPClassLoader.java:288)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
         at acmeapi.common.CDoc.getAnnotationsInfo(CDoc.java:493)
         at acmedesktop.communication.CCommunicationManager.privateGetAnnotations(CCommunicationManager.java:1976)
         at acmedesktop.communication.CCommunicationManager.getAnnotations(CCommunicationManager.java:1828)
         at acmedesktop.annotations.CViewAnnotations.getAnnotations(CViewAnnotations.java:826)
         at acmedesktop.annotations.CViewAnnotations.createView(CViewAnnotations.java:583)
         at acmedesktop.annotations.CViewAnnotations.setData(CViewAnnotations.java:736)
         at acmedesktop.annotations.CViewAnnotations.init(CViewAnnotations.java:205)
         at acmedesktop.hitspanel.CHitsPanel.viewAnnotations(CHitsPanel.java:281)
         at acmedesktop.hitspanel.CHitsTab$3.mousePressed(CHitsTab.java:316)
         at java.awt.AWTEventMulticaster.mousePressed(AWTEventMulticaster.java:263)
         at java.awt.Component.processMouseEvent(Component.java:6260)
         at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
         at java.awt.Component.processEvent(Component.java:6028)
         at java.awt.Container.processEvent(Container.java:2041)
         at java.awt.Component.dispatchEventImpl(Component.java:4630)
         at java.awt.Container.dispatchEventImpl(Container.java:2099)
         at java.awt.Component.dispatchEvent(Component.java:4460)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4574)
         at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4235)
         at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4168)
         at java.awt.Container.dispatchEventImpl(Container.java:2085)
         at java.awt.Window.dispatchEventImpl(Window.java:2478)
         at java.awt.Component.dispatchEvent(Component.java:4460)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
         at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
         at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)-----
    The classes of our desktop product are contained within the 'acmedesktop' and 'acmeapi' packages. It requires access to the hard drive of the workstation, and therefore, all jar files included with the application are signed using the following ANT task when compiled:
    <signjar keystore="resources/codesigning/keystore.pfx" storetype="pkcs12" storepass="myPassword" alias="myAlias">
         <fileset dir="${jws_dist}/app" includes="*.jar"/>
         <fileset dir="${jws_dist}/app/lib" includes="*.jar" excludes="jhall__V${dt_version}.jar"/>
    </signjar>-----
    Therefore, all classes, within all jar files, are signed with the same certificate (with the exception of the JavaHelp libraries, which are already signed by Sun - but the class in question attempting to be loaded here is not contained within the JavaHelp jar file anyway). So, the point being, that the exception message stating that the "signer information of the acmeapi.communication.CDocImpl class doesn't match the signer information of other classes in the same package", is simply not correct. All classes within that jar file were signed using the same certificate.
    I downloaded the JRE 6 source from dev.java.net and picked through this issue with a debugger. The ClassLoader.checkCerts() method compares the certificate used to sign the current class which is attempting to be loaded, with the certificates which signed all other previously loaded classes within the same package. If they don't match, the exception above is thrown. What is causing the issue is when the checkCerts() method attempts to get the certificates which signed the currently loading class, null is returned. And obviously, comparing null, with an array of the certificates which signed the previously loaded classes, isn't going to match; therefore this exception is thrown.
    The checkCerts() method gets the certificates of the currently loading class by calling the java.security.CodeSource.getCertificates() method. Tracing deeper in the debugger, the CodeSource object ultimately gets the certificates from the 'signersRef' member variable of the com.sun.deploy.cache.CachedJarFile class. signerRef is a SoftReference object and can therefore be garbage collected at some point. If it has already been garbage collected, the CachedJarFile class will attempt to retrieve it again from the loaded cache entry by calling com.sun.deploy.cache.MemoryCache.getLoadedResource().
    The MemoryCache class maintains the cache entries to the jar files as MemoryCache.CachedResourceReference objects, which subclass WeakReference, and therefore these objects can be garbage collected as well. If the cache entries have also been garbage collected, this leaves the CachedJarFile class with no ability to repopulate the CachedJarFile.signerRef object. Therefore it is completely out of luck getting the certificates which signed the currently loading class, which ultimately causes the above exception.
    When the com.sun.deploy.cache.Cache class attempts to retrieve a cache entry using its getCacheEntry() method, it will attempt to get the entry from the MemoryCache class, if null is returned, it will recreate the cache entry and add it back to the MemoryCache. In contrast, when the CachedJarFile class attempts to get a cache entry from the MemoryCache class, if null is returned, it just gives up.
    (from com.sun.deploy.cache.CachedJarFile:244)
    private CacheEntry getCacheEntry() {
         /* if it was not created by Cache do not search for entry */
         if (resourceURL == null)
              return null;
         CacheEntry ce = (CacheEntry) MemoryCache.getLoadedResource(resourceURL);
         if (ce == null) {
              //This should not happen because CacheEntry should not get collected
              // before CachedJarFile is collected.
              Trace.println("Missing CacheEntry for " + resourceURL + "\n" + ce,
                   TraceLevel.CACHE);
         return ce;
    When debugging, code execution falls within the code block with the comment stating "This should not happen...", but it is happening in my case.
    On an interesting side note, using the jvisualvm.exe tool included with JDK 6, I was able to tell that it seems as though these objects are collected the first time that the JVM allocates more heap space, and then the issue will occur. If I set the initial heap size very large (using -Xms) this issue won't occur at all. But that is kind of a bad solution which I would rather not do, but it is interesting to note for the sake of troubleshooting this issue. The max heap size (-Xmx) is plenty big enough, so the issue is not that we are running out of memory here.
    Does anyone have any insight as to what could be causing this? I've searched, and found a couple threads with similar problems but with no clear solutions. It is not just one workstation either, it happens everywhere I deploy the app as a Java Web Start application in a JRE 6 environment. I have been using version 1.6.0_18 on XP, but it seems to happen on any update version of 1.6. Is the fact that the CachedJarFile class doesn't attempt to reload the resource when it can't retrieve it from MemoryCache a bug? I've dug as deep as I can on this and I'm at wits end, does anybody have any ideas?
    Thank you
    Jake
    Edited by: jkc532 on Nov 12, 2010 10:35 AM

    jkc532 wrote:
    .. Is the fact that the CachedJarFile class doesn't attempt to reload the resource when it can't retrieve it from MemoryCache a bug? From your comprehensive investigation and report, it seems so to me.
    ..I've dug as deep as I can on this and I'm at wits end, does anybody have any ideas?Just after read the summary I was tired, so I have some understanding of the effort you have already invested in this (the 'wits' you have already spent). I think you should raise a bug report and seek Oracle's response.

  • Adjava hangs while signing jar files in the middle of patching

    Hi,
    While applying patch 8815204 (11g/11i interoperability patch) "adjava -mx512m -nojit oracle.apps.ad.jri.adjmx @c:\oracle\testappl\admin\TEST\out\genjars.cmd" hangs for hours.
    Even I tried with "adjava -mx512m -nojit oracle.apps.ad.jri.adjmx @c:\oracle\testappl\admin\TEST\out\genjars.cmd" command manually on console. This also behaves the same way. (hangs for more than 2 hours. Since this does not produce detailed log, I'm not sure what's going behind the process.).
    This is a Cloned environment.
    My DB is 10.2.0.4 for x86_64 bit windows Running on MSwindows 2k3 R2 64 bit server. The application tier is on MSWin 2k3 R2 32bit server. Installed with cygwin, MSVC++ 6, gnumake 3.81, jdk1.6.0_24 mixed mode. Perl is 5.005_03
    The patches '7429271', '9535311', '3453499', '9171650', '9874305', '8977646' are applied on my environment.
    The PATH variable's value is :
    C:\MVS\Common\msdev98\BIN;C:\MVS\VC98\BIN;C:\MVS\Common\TOOLS\WINNT;C:\MVS\Common\TOOLS;c:\oracle\testappl\au\11.5.0\bin
    ;c:\oracle\testappl\fnd\11.5.0\bin;c:\oracle\testappl\ad\11.5.0\bin;c:\jdk16\jre\bin;c:\Oracle\testora\iAS_10\Apache\per
    l\5.00503\bin\MSWin32-x86\;c:\oracle\testcomn\util\unzip\unzip;c:\oracle\testora\8.0.6_10\bin;c:\jdk16\bin;c:\cygwin\bin
    ;C:\WINDOWS;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\system32;c:\windows;c:\windows\system32;c:\mvs\MSDev
    98\Bin;c:\mvs\Tools\WinNT;c:\mvs\Tools\WinNT;c:\mvs\MSDev98\Bin;C:\mvs\Tools;
    The include, lib,MSDevDir Env Variables are also set to correct value.
    Relinking works perfectly. Even I tried the adjava command after relinking all the AD executables. Nothing seems working fine.
    The adjava command hangs when it tries to sign the JAR files. When using "-verbose " parameter, the adjava produces more output and it stops while signing the JAR files.
    Given below the Final page of the log file, which shows the jar signing process is hung
    Done Generating fndnetcharts.jar : Thu Apr 04 2013 18:31:58
    * About to Sign fndnetcharts.jar : Thu Apr 04 2013 18:31:58 *
    [Loaded oracle.apps.ad.latest.util.JarSignUtilsI from file:/C:/Oracle/testappl/ad/11.5.0/java/adjri.zip]
    [Loaded java.lang.InterruptedException from shared objects file]
    [Loaded oracle.apps.ad.latest.util.JarSignerOptionsI from file:/C:/Oracle/testappl/ad/11.5.0/java/adjri.zip]
    [Loaded java.lang.ProcessBuilder from shared objects file]
    [Loaded java.lang.Process from shared objects file]
    [Loaded java.lang.ProcessImpl from shared objects file]
    [Loaded java.lang.ProcessEnvironment from shared objects file]
    [Loaded java.lang.ProcessEnvironment$NameComparator from shared objects file]
    [Loaded java.lang.ProcessEnvironment$EntryComparator from shared objects file]
    [Loaded java.util.Collections$UnmodifiableMap from shared objects file]
    [Loaded java.lang.ProcessEnvironment$CheckedEntrySet from shared objects file]
    [Loaded java.lang.ProcessEnvironment$CheckedEntrySet$1 from shared objects file]
    [Loaded java.util.HashMap$HashIterator from shared objects file]
    [Loaded java.util.HashMap$EntryIterator from shared objects file]
    [Loaded java.lang.ProcessEnvironment$CheckedEntry from shared objects file]
    [Loaded java.lang.ProcessImpl$1 from shared objects file]
    Executing: c:\jdk16\jre\bin\java.exe sun.security.tools.JarSigner -keystore ******** -storepass ******** -keypass ******** -sigfile CUST -signedjar c:\oracle\testcomn\java\oracle\apps\fnd\jar\fndnetcharts.jar.sig c:\oracle\testcomn\java\oracle\apps\fnd\jar\fndnetcharts.jar.uns URC
    And I'm sure there's not much memory and cpu usage on my server. The resources are not utilized more than 40%.
    The problem in my instance is similar to the one descirbed in *Patch 9239090 R12.1.3 Upgrade Driver Hangs At Genjars.cmd [ID 1521006.1]*
    But, my instance is 11i where as the above doc tell about the same in R12. Moreover, the fix given by this doc is to replace the jarsigner.exe under JAVA_HOME/bin directory, with the one from $IAS_ORACLE_HOME/Appsutil/jdk/bin. I'm sure 11i EBS dont have jarsigner under $IAS_ORACLE_HOME/Appsutil/jdk/bin .
    Does anyone knows any fix for this problem ?
    Thank You in Advance.
    Sundar K

    Please log a SR for this issue.
    Thanks,
    Hussein

Maybe you are looking for

  • Error message while deleting files from the tracker

    I deleted four files from Acrobat.com before removing them from the desktop tracker and now I don't seem to be able to remove them or stop collecting data on the files in the tracker.  Am I missing something or is there not a way to get rid of them?

  • Help with creating a photo gallery?

    im trying to create a simple photo gallery. all i need to know is the lingo so that i can rollover a thumbnail of an image and it appears in place of a black box.... any help would be much appreciated.

  • Incorrect bookmark is highlighted

    This post relates to Acrobat 9.1.2. Pro on Windows XP sp3. When jumping to a page by clicking a Link on another page, the correct page is displayed in the Document Pane, but somtimes the incorrect (next-following) Bookmark is highlighted in the Bookm

  • SRM UI Add-on

    Hi, We are in the process of implementing SRM UI Add-on, and we have assigned users with /SRMNXP/EMPLOYEE role to the users. But when trying to access the new UI we are getting an error No authorization to access Service 'ZGETDEFUSRSET_0001'. Is ther

  • ODI Delete Member

    Hello, I have a level0 member in the source file that was built into Planning. Now I deleted the level0 member in the source file and run ODI to update Planning, does that member get deleted in Planning or do I have it explicitily tell ODI to delete