java.lang.RuntimeException: java.util.zip.ZipException: duplicate entry: lib/classes/com/samplerealm/SampleLoginModule.class

Java.net JIRA | sonialiu | 5 years ago
  1. 0

    OS: solaris and Linux build: v3.1.2 b09 We tried to run security BAT test against V3.1.2 and it failed to start cluster after ran a customrealm test. Steps to reproduce the bug: 1.Checkout SQE workspace: cvs co appserver-sqe/bootstrap.xml (CVSROOT=:pserver:cvsguest@sunsw.us.oracle.com:/m/jws) cd appserver-sqe ant -f bootstrap.xml co-security 2. install GF V3.1.12, don NOT start domain1 (otherwise it will cause port conflict when run SQE setup-cluster-profile target) 3. Set env. variables S1AS_HOME <GF installation dir> (example: /export/sonia/v3/glassfishv3/glassfish SPS_HOME <workspace dir> (example: /export/sonia/appserver-sqe) ANT_HOME <ant dir> JAVA_HOME <java dir> 4. cd appserver-sqe/, run "ant setup-cluster-profile" 5. cd appserver-sqe/pe/security/customrealm/, run "ant ee all-appservrealm" The test failed to start cluster after configured customrealm: start-domain-ee: [exec] Deprecated syntax, instead use: [exec] asadmin --user admin --passwordfile /export/sonia/appserver-sqe/build-config/adminpassword.txt --echo --terse=false --host localhost --port 4848 start-cluster [options] ... [exec] asadmin --host localhost --port 4848 --user admin --passwordfile /export/sonia/appserver-sqe/build-config/adminpassword.txt --interactive=false --echo=true --terse=false start-cluster --verbose=false sqe-cluster [exec] remote failure: clustered_instance_1: Could not start instance clustered_instance_1 on node localhost-domain1 (localhost). [exec] [exec] Command failed on node localhost-domain1 (localhost): Command start-local-instance failed. [exec] [exec] CLI802 Synchronization failed for directory lib, caused by: [exec] HTTP connection failed with code 500, message: Internal Error [exec] [exec] To complete this operation run the following command locally on host localhost from the GlassFish install location /export/sonia/v3/glassfish3: [exec] [exec] bin/asadmin start-local-instance --node localhost-domain1 --sync normal clustered_instance_1 [exec] Command start-cluster failed. The server.log showed the following exeptions: [#|2011-11-11T17:48:28.758-0800|SEVERE|glassfish3.1.2|com.sun.grizzly.config.GrizzlyServiceListener|_ThreadID=79;_ThreadName=Thread-2;|service exception java.lang.RuntimeException: java.util.zip.ZipException: duplicate entry: lib/classes/samples/security/customrealm/appserv/SimpleCustomRealm.class at com.sun.enterprise.v3.admin.AdminAdapter.service(AdminAdapter.java:243) at com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:179) at com.sun.enterprise.v3.server.HK2Dispatcher.dispath(HK2Dispatcher.java:117) at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:238) at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:833) at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:730) at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1031) at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:228) at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137) at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104) at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90) at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79) at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54) at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59) at com.sun.grizzly.ContextTask.run(ContextTask.java:71) at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532) at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513) at java.lang.Thread.run(Thread.java:722) Caused by: java.util.zip.ZipException: duplicate entry: lib/classes/samples/security/customrealm/appserv/SimpleCustomRealm.class at java.util.zip.ZipOutputStream.putNextEntry(ZipOutputStream.java:215) at org.glassfish.admin.payload.ZipPayloadImpl$Outbound.prepareEntry(ZipPayloadImpl.java:94) at org.glassfish.admin.payload.ZipPayloadImpl$Outbound.writePartsTo(ZipPayloadImpl.java:100) at org.glassfish.admin.payload.PayloadImpl$Outbound.writeTo(PayloadImpl.java:359) at com.sun.enterprise.v3.admin.AdminAdapter.service(AdminAdapter.java:239) ... 17 more |#] [#|2011-11-11T17:48:28.782-0800|INFO|glassfish3.1.2|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=91;_ThreadName=Thread-2;|CLI802 Synchronization failed for directory lib, caused by:|#] [#|2011-11-11T17:48:28.784-0800|INFO|glassfish3.1.2|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=91;_ThreadName=Thread-2;| HTTP connection failed with code 500, message: Internal Error|#] The server.log is attached.

    Java.net JIRA | 5 years ago | sonialiu
    java.lang.RuntimeException: java.util.zip.ZipException: duplicate entry: lib/classes/com/samplerealm/SampleLoginModule.class
  2. 0

    java.util.zip: putNextEntry

    Stack Overflow | 7 years ago | Atmocreations
    java.util.zip.ZipException: invalid entry size (expected 39 but got 0 bytes)
  3. 0

    XML Bursting duplicate entry Problem | Oracle Community

    oracle.com | 11 months ago
    java.util.zip.ZipException: duplicate entry: /Filename_14:00:41.pdf
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Export Project Error when more than one .project.json file in folder

    GitHub | 3 years ago | hirokiterashima
    java.util.zip.ZipException: duplicate entry: 9700/wise4.project.json
  6. 0

    Java - Determine if a ZipInputStream contains a Entry

    Stack Overflow | 3 years ago | BrainStone
    java.util.zip.ZipException: invalid entry compressed size (expected 1506 but got 1507 bytes)

    1 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.util.zip.ZipException

      duplicate entry: lib/classes/com/samplerealm/SampleLoginModule.class

      at java.util.zip.ZipOutputStream.putNextEntry()
    2. Java RT
      ZipOutputStream.putNextEntry
      1. java.util.zip.ZipOutputStream.putNextEntry(ZipOutputStream.java:192)
      1 frame
    3. Common Utilities
      PayloadImpl$Outbound.writeTo
      1. org.glassfish.admin.payload.ZipPayloadImpl$Outbound.prepareEntry(ZipPayloadImpl.java:94)
      2. org.glassfish.admin.payload.ZipPayloadImpl$Outbound.writePartsTo(ZipPayloadImpl.java:100)
      3. org.glassfish.admin.payload.PayloadImpl$Outbound.writeTo(PayloadImpl.java:359)
      3 frames
    4. Kernel Classes
      AdminAdapter.service
      1. com.sun.enterprise.v3.admin.AdminAdapter.service(AdminAdapter.java:242)
      1 frame
    5. Grizzly WS
      GrizzlyAdapter.service
      1. com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:179)
      1 frame
    6. Kernel Classes
      ContainerMapper.service
      1. com.sun.enterprise.v3.server.HK2Dispatcher.dispath(HK2Dispatcher.java:117)
      2. com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:238)
      2 frames
    7. Grizzly WS
      AbstractThreadPool$Worker.run
      1. com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:833)
      2. com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:730)
      3. com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1031)
      4. com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:228)
      5. com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137)
      6. com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104)
      7. com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90)
      8. com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79)
      9. com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54)
      10. com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59)
      11. com.sun.grizzly.ContextTask.run(ContextTask.java:71)
      12. com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532)
      13. com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513)
      13 frames
    8. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:636)
      1 frame