Java.util.zip.ZipException: error in opening
i ahve problem unzipping some zip file
any one help me
the zip file is name PRICE.ZIP and content is PRICE.TXT
Please help
code
//zf will contain the actual zip file object
System.out.println("FILE TO UNZIP"+SERVER_DIRECTORY+zipfilename);
ZipFile zf = new ZipFile(SERVER_DIRECTORY+zipfilename);
//enumeration will contain the list of files in the zip archive
Enumeration enumeration = zf.entries();
while (enumeration.hasMoreElements())
//zipentry will contain the actual files in the zip archive
ZipEntry zipentry = (ZipEntry)enumeration.nextElement();
InputStream ins = zf.getInputStream(zipentry);
//System.out.println(SERVER_DIRECTORY+zipentry.getName());
File outFile = new File(SERVER_DIRECTORY+zipentry.getName());
FileOutputStream fos = new FileOutputStream(outFile);
byte[] neo = new byte[14096];
//loop through reading the zipped file entry and
// write it to the external file
while ((spice = ins.read(neo, 0, 14096)) > -1)
fos.write(neo, 0, spice);
ins.close();
fos.close();
}
Your code looks right on. Problem has to be in the two variables (String, one presumes) that hold directory and name. To isolate the problem, use those two as soon as they are created to open a FileInputStream. Bet that will fail and lead you to the solution. Probably:
using a relative dir that's not valid: here/there/ (try /root/here/there)
or using the wrong slash direction (for'd for Unix, backr'd for Wintel)
Similar Messages
-
Java.util.zip.ZipException error in opening zip file
Hello all,
We are using Sun Java System web server 6.1 SP2. When I tried to deploy an application, I received this message: "Posted content length of --- exceeds limit of --- " the -dashes are the size of the file actually.
I then added an init-param to the web.xml specifying the maximum size.
After doing that, I tried to deploy the war file using administration interface, but received a network tcp/ip error. I then deployed it using command line wdeploy command. It worked but the web server won't start up after the deployment. The following error messages are found in the log file. Any thoughts as to whats wrong here? Is there a bug in SP2?
[22/Sep/2006:17:30:44] finer ( 5668): ContextConfig[search]: URI='/search', ResourcePath='/WEB-INF/sun-web-search.tld' [22/Sep/2006:17:30:44] finer ( 5668): ContextConfig[search]:
tldConfigJar(/WEB-INF/sun-web-search.tld): java.util.zip.ZipException: error in opening zip file
[22/Sep/2006:17:30:44] finer ( 5668): ContextConfig[search]: URI='/jstl-fmt', ResourcePath='/WEB-INF/fmt.tld' [22/Sep/2006:17:30:44] finer ( 5668): ContextConfig[search]: tldConfigJar(/WEB-INF/fmt.tld): java.util.zip.ZipException: error in opening zip file
[22/Sep/2006:17:30:48] failure ( 5668): CORE4007: Internal error: Unexpected Java exception thrown (java.lang.NoClassDefFoundError: org/xml/sax/ext/Attributes2, org/xml/sax/ext/Attributes2), stack: java.lang.NoClassDefFoundError: org/xml/sax/ext/Attributes2 at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:537) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123) at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1717) at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:983) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1431) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1301) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302) at org.apache.xerces.parsers.AbstractSAXParser.<init>(Unknown Source) at org.apache.xerces.parsers.SAXParser.<init>(Unknown Source) at org.apache.xerces.parsers.SAXParser.<init>(Unknown Source) at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.<init>(Unknown Source) at org.apache.xerces.jaxp.SAXParserImpl.<init>(Unknown Source) at org.apache.xerces.jaxp.SAXParserFactoryImpl.newSAXParser(Unknown Source) at org.apache.catalina.util.xml.XmlMapper.readXml(XmlMapper.java:274) at org.apache.catalina.startup.ContextConfig.defaultConfig(ContextConfig.java:882) at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:1004) at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:257) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:155) at org.apache.catalina.core.StandardContext.start(StandardContext.java:3752) at com.iplanet.ias.web.WebModule.start(WebModule.java:257) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1133) at org.apache.catalina.core.StandardHost.start(StandardHost.java:652) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1133) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:355) at org.apache.catalina.startup.Embedded.start(Embedded.java:995) at com.iplanet.ias.web.WebContainer.start(WebContainer.java:431) at com.iplanet.ias.web.WebContainer.startInstance(WebContainer.java:500) at com.iplanet.ias.server.J2EERunner.confPostInit(J2EERunner.java:161) [22/Sep/2006:17:30:48] failure ( 5668): CORE3186: Failed to set configurationooks like you are running into bug: 4719677
When you deploy a web application using the Administration Server from a
remote machine, the maximum upload size by default is 10 MB. This can be
changed by editing the
install-root/bin/https/webapps/instance-app/WEB-INF/web.xml file. In the
servlet webappdeploy, insert an init param named maxUploadSize with a
value in bytes specifying the maximum upload size. Example:
<init-param>
<param-name>maxUploadSize</param-name>
<param-value>90000000</param-value>
</init-param> -
Java.util.zip.ZipException: error in opening zip file Deploment Error
Hi All,
I am getting the fallowing Deployment exception while i am trying to deploy my webdynpro DC. Kindly help me if anybody know the solution for it.
deployment aborted : file:/C:/DOCUME1/291123/LOCALS1/Temp/temp7081pg.comiprscipr~dc_intreg_process.ear
Aborted: development component 'ipr/scipr/dc_intreg_process'/'pg.com'/'GGD_EPREGDEV_D'/'20101220152524'/'0':Caught exception during application deployment from SAP J2EE Engine's deploy service:java.rmi.RemoteException: Error while getting the internal libraries of application pg.com/iprsciprdc_intreg_process in operation update.. Reason: error in opening zip file; nested exception is: java.util.zip.ZipException: error in opening zip file (message ID: com.sap.sdm.serverext.servertype.i
Thanks,
Mahesh Nuli.Hello Ram,
It is saying that the library file is missing. Can you deploy pg.com/iprsciprdc_intreg_process first and try to deploy this ear temp7081pg.comiprscipr~dc_intreg_process.ear.
Regards
Nizamudeen SM -
Webb Exception - java.util.zip.ZipException: error in opening zip file
I am tring to run my Servlet with myWAR.war. So I started first installing the CookieCounter example that came with weblogic, I did exactly as the document said but I getting the following exception:
Thu Jan 04 11:26:45 MST 2001:<E> <HTTP> Error reading Web application '/weblogic/myserver/cookieWar.war'
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 weblogic.utils.jar.JarFile.<init>(JarFile.java:57)
at weblogic.utils.jar.JarFile.<init>(JarFile.java:44)
at weblogic.t3.srvr.HttpServer.loadWARContext(HttpServer.java:582)
at weblogic.t3.srvr.HttpServer.initServletContexts(HttpServer.java, Compiled Code)
at weblogic.t3.srvr.HttpServer.start(HttpServer.java:388)
at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java, Compiled Code)
at weblogic.t3.srvr.T3Srvr.main(T3Srvr.java:827)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.Server.startServerDynamically(Server.java:99)
at weblogic.Server.main(Server.java:65)
at weblogic.Server.main(Server.java:55)
at weblogic.NTServiceHelper.run(NTServiceHelper.java:19)
at java.lang.Thread.run(Thread.java:479)
Has anybody encountered the problem before I created the jar using jar cvf cookieWar.war cookie- under the command line
I have seen problems like this in the past. When you create your war file, try using "jar
cv0f" so that the jar file won't be compressed...
mark bouchard wrote:
> I am having this same error... the strange thing is i have two different ear files...
> one of them works, the other doesn't. there are NO differences between them according
> to Araxis Merge... both will deploy, and both show servlets as being registered,
> but i can only call the servlets from one...
>
> what is BEA's suggested way of creating an ear file? on NT and on UNIX please....
>
> use the java.util.zip methods? or use a utility like jar or winzip? Personally,
> i've found this deployment to be HIGHLY flakey at best.... my same ear files
> deploy perfectly with iPlanet's app server.
>
> Mark Spotswood <[email protected]> wrote:
> >I think this is basically the same as a file not found error.
> >The error message says it can't open the file. Its looking
> >for the file under: /weblogic/myserver/cookieWar.war
> >Make sure the file is in that directory/readable, etc.
> >--
> >mark
> >
> >Paul Garduno wrote:
> >
> >> Just to let you know, I am getting the same error message. I haven't
> >worked on it but hope to at some point. I would like to know if the
> >Weblogic people have seen this error.
> >>
> >> Paul Garduno
> >>
> >> bionic99 wrote:
> >>
> >> > I am tring to run my Servlet with myWAR.war. So I started first installing
> >the CookieCounter example that came with weblogic, I did exactly as
> >the document said but I getting the following exception:
> >> > Thu Jan 04 11:26:45 MST 2001:<E> <HTTP> Error reading Web application
> >'/weblogic/myserver/cookieWar.war'
> >> > 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 weblogic.utils.jar.JarFile.<init>(JarFile.java:57)
> >> > at weblogic.utils.jar.JarFile.<init>(JarFile.java:44)
> >> > at weblogic.t3.srvr.HttpServer.loadWARContext(HttpServer.java:582)
> >> > at weblogic.t3.srvr.HttpServer.initServletContexts(HttpServer.java,
> >Compiled Code)
> >> > at weblogic.t3.srvr.HttpServer.start(HttpServer.java:388)
> >> > at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java, Compiled Code)
> >> > at weblogic.t3.srvr.T3Srvr.main(T3Srvr.java:827)
> >> > at java.lang.reflect.Method.invoke(Native Method)
> >> > at weblogic.Server.startServerDynamically(Server.java:99)
> >> > at weblogic.Server.main(Server.java:65)
> >> > at weblogic.Server.main(Server.java:55)
> >> > at weblogic.NTServiceHelper.run(NTServiceHelper.java:19)
> >> > at java.lang.Thread.run(Thread.java:479)
> >> >
> >> > Has anybody encountered the problem before I created the jar using
> >jar cvf cookieWar.war cookie- under the command line
> >
-
I am getting the following error. Can someone help me on how to fix this issue?
Thanks
E:\oracle\product\oas\10.1.3.1\j2ee\home>java -jar oc4j.jar
OC4J startup failed
org.xml.sax.SAXException: META-INF/boot.xml in E:\oracle\product\oas\10.1.3.1\j2
ee\home\oc4j.jar, line 466: Could not process 'external-classes' for /E:/oracle/
product/oas/10.1.3.1/j2ee/home/lib/oc4j-internal.jar (from <code-source> in META
-INF/boot.xml in E:\oracle\product\oas\10.1.3.1\j2ee\home\oc4j.jar): caught java
.util.zip.ZipException: error in opening zip file.
at oracle.classloader.util.XMLConfiguration.fail(XMLConfiguration.java:1
279)
at oracle.classloader.util.XMLConfiguration.registerExternalsFromPackage
Names(XMLConfiguration.java:833)
at oracle.classloader.util.XMLConfiguration.registerExternalsForPostProc
essing(XMLConfiguration.java:842)
at oracle.classloader.util.XMLConfiguration.endElement(XMLConfiguration.
java:716)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endEleme
nt(AbstractSAXParser.java:633)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp
l.scanEndElement(XMLDocumentFragmentScannerImpl.java:1241)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp
l$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1685)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp
l.scanDocument(XMLDocumentFragmentScannerImpl.java:368)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(X
ML11Configuration.java:834)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(X
ML11Configuration.java:764)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.
java:148)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Ab
stractSAXParser.java:1242)
at oracle.classloader.util.XMLConfiguration.configureLoaders(XMLConfigur
ation.java:277)
at oracle.classloader.util.InitialLoadersFactory.populateLoaders(Initial
LoadersFactory.java:389)
at oracle.classloader.util.InitialLoadersFactory.initLoaders(InitialLoad
ersFactory.java:230)
at oracle.classloader.util.InitialLoadersFactory.create(InitialLoadersFa
ctory.java:167)
at oracle.oc4j.loader.boot.BootStrap.main(BootStrap.java:26)Sorry for the delay, i can't attach it so i'll just post it
User:
Logname: root
Monday February 23 14:29:15 GMT 2009
smpatch settings:
smpatch analyze:
Entitlement:
Sun UC patch revision:
112945-03
Solaris release:
Solaris 9 s9_58shwpl3 SPARC
Copyright 2002 Sun Microsystems, Inc. All Rights Reserved.
Use is subject to license terms.
Assembled 15 April 2002
Solaris Kernel: Generic_112233-05
Machine Type: sun4u
Platform: SUNW,Sun-Fire
Java -version:
Unrecognized option: -version:1.5+
Could not create the Java virtual machine.
Software Cluster:
CLUSTER=SUNWCXall
All ccr properties:
Sun UC package status:
SUNWbreg not installed
SUNWccccr not installed
SUNWccccrr not installed
SUNWccsign not installed
SUNWcsmauth not installed
SUNWppro-plugin-sunos-base not installed
SUNWppror not installed
SUNWpprou not installed
SUNWupdatemgrr not installed
SUNWupdatemgru not installed -
IOException java.util.zip.ZipException: error in opening zip file
Hi Folks,
In my application one Zip file will be placed in the server. to unzip that zip file i have used java.util.Zip.
It is working fine.but some times it gets the following error.
**IOException java.util.zip.ZipException: error in opening zip file**
why is it so? but very rarely. I couldnt identify the exact scenario, where it causes the problem.
Normally that zip file contains set of images of customer.
Please share your inputs.
Thanks,
Balu.Thanks for ur reply.
EJB is not used in my application.
VC++ application at customer side prepares the zip file, and it will upload that zip to te server using ftp.
After uploading done, at the server end one java program(contains main function) will access that folder to unzip.
Thanks,
Balu. -
WHY? java.util.zip.ZipException: error in opening zip file
i'm trying to restart tomcat 4.1 (bin/startup.bat) and getting the following error (windows xp profession machine)
code:
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:112)
at java.util.jar.JarFile.<init>(JarFile.java:127)
at java.util.jar.JarFile.<init>(JarFile.java:65)
at org.apache.catalina.loader.StandardClassLoader.addRepositoryInternal(StandardClassLoader.java:1082)
at org.apache.catalina.loader.StandardClassLoader.<init>(StandardClassLoader.java:200)
at org.apache.catalina.startup.ClassLoaderFactory.createClassLoader(ClassLoaderFactory.java:202)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:140)
Bootstrap: Class loader creation threw exception
java.lang.IllegalArgumentException: addRepositoryInternal: java.util.zip.ZipException: error in opening zip file
at org.apache.catalina.loader.StandardClassLoader.addRepositoryInternal(StandardClassLoader.java:1110)
at org.apache.catalina.loader.StandardClassLoader.<init>(StandardClassLoader.java:200)
at org.apache.catalina.startup.ClassLoaderFactory.createClassLoader(ClassLoaderFactory.java:202)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:140)
thanks!These exceptions occur when opening JAR files (since they are renamed ZIPs). Most likely the file cannot be ffound because you have classpaths setup incorrectly
-
Instead of uploading the servlet via the WL Console, try FTPing it into the
applications directory and starting up WL
"robert wright" <[email protected]> wrote in message
news:3b96bd64$[email protected]..
> I am having this problem as well has anyone found a solution?
I have the same problem using FTP and hotdeploy, when i try to upload the application, half of the times it fails with the "error in opening zip file
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(Unknown Source)"
I dont know why it happens, it seemed that was needed more space, but now, it has enough space for everything in everywhere...
Has anybody another idea?
-
Java.util.zip.ZipException error when building
Good Day All,
I am a newbie and this is my first JWS deployment. I have an app that I am writing in Netbeans 6.1 that I want to deploy via JWS. The app accesses five different JAR libraries and that is where my troubles started. I thought that I needed to figure a way to configure Netbeans so the libraries would be deployed with my app JAR so it would run correctly using JWS.
I was trying to get things working and now my problem is that when I build I am getting the following error:
init:
deps-jar:
compile:
Copy libraries to C:\Java\DataMed\dist\lib.
To run this application from the command line without Ant, try:
java -jar "C:\Java\DataMed\dist\DataMed.jar"
jnlp:
jnlp-init-generate-master:
C:\Java\DataMed\nbproject\jnlp-impl.xml:61: The following error occurred while executing this line:
C:Java\DataMed\nbproject\jnlp-impl.xml:386: java.util.zip.ZipException: error in opening zip file
BUILD FAILED (total time: 0seconds)Scrolling to line 386 in the jnlp-impl.xml file it says:
componentsprop="jnlp.components">I futzed with my options so much I can't seem to figure out how to get everything reset so I can get a clean build ! As a newbie to Netbeans I sometimes have difficulty figuring out where all the different things are hidden ... I **think** it all went bad when I was working on the Properties > Libraries > Compile > Compile-time Libraries but I can't remember.
So I have two questions really:
1) How can I resolve the ZipException error? I suspect it is one of the JAR libraries but how can I tell ?
2) How do I get JWS to find my five libraries ? I now suspect that I am supposed to upload the five libraries to the webserver and then in my JNLP it will have links to the libraries in the <resources> part of the code. Is that correct ?
Edited by: DBirdManAR on Aug 10, 2008 7:22 AM
Rather than spend to much time figuring this out, I just used my revert modifications through my SVN to go back to a previous version that builds correctly.Hi,
I have the same problem but I cannot solve it.
Help much appreciated.
Regards, -
Java.util.zip.ZipException: Too many open files on Linux
Hi,
We have web application running on Caucho's resin server on jdk 1.5.0_11 and Red hat Linux. We are noticing that java process is running out of file handles within 24-30 hours. We have file limit of 5000 which it consumes in 24 hours throwing 'java.util.zip.ZipException: Too many open files'.
I have made sure all sorts of file handles are closed from application point of view. Here is the snapshot of lsof (list of file handles) from java process. The following list keeps growing until it runs out of limit. Do you have tips/suggestions on how to mitigate this problem (considering we dont want to increase ulimit for this process)? Also, can you make out any thing more from the description of file handles like, are they unclosed POP3 connections or URL connection to external sites?
java 7156 resin 120u IPv4 34930051 UDP localhost.localdomain:59693
java 7156 resin 121u IPv4 34927823 UDP localhost.localdomain:59663
java 7156 resin 122u IPv4 34931861 UDP localhost.localdomain:59739
java 7156 resin 123u IPv4 34932023 UDP localhost.localdomain:59745
java 7156 resin 124u IPv4 34930054 UDP localhost.localdomain:59700
java 7156 resin 125u IPv4 34927826 UDP localhost.localdomain:59665
java 7156 resin 126u IPv4 34927829 UDP localhost.localdomain:59666
java 7156 resin 127u IPv4 34930057 UDP localhost.localdomain:59703
java 7156 resin 128u IPv4 34930713 UDP localhost.localdomain:59727
java 7156 resin 129u IPv4 34930716 UDP localhost.localdomain:59730
java 7156 resin 130u IPv4 34932238 UDP localhost.localdomain:59789
java 7156 resin 131u IPv4 34932026 UDP localhost.localdomain:59749
java 7156 resin 132u IPv4 34932221 UDP localhost.localdomain:59770
java 7156 resin 133u IPv4 34932224 UDP localhost.localdomain:59775
java 7156 resin 134u IPv4 34932029 UDP localhost.localdomain:59753
java 7156 resin 135u IPv4 34932032 UDP localhost.localdomain:59754
java 7156 resin 138u IPv4 34932035 UDP localhost.localdomain:59760
java 7156 resin 139u IPv4 34932038 UDP localhost.localdomain:59763
java 7156 resin 140u IPv4 34932227 UDP localhost.localdomain:59780
java 7156 resin 141u IPv4 34932230 UDP localhost.localdomain:59781
java 7156 resin 144u IPv4 34932234 UDP localhost.localdomain:59786
java 7156 resin 146u IPv4 34932241 UDP localhost.localdomain:59792
java 7156 resin 147u IPv4 34932247 UDP localhost.localdomain:59802Finally we resolved this issue. It was oracle driver which had some compatibility issue, we upgraded our Oracle client driver to newer version, and this fixed the problem. Base line, there was nothing wrong with application code, code was doing good resource clean up, but oracle driver was leaking handles per every connection.
-
Java.util.zip.ZipException Error
I created a jar file, and put in C:\tools
C:\tools>java -jar myjar.jar is working fine
However, if I try to run myjar.jar in other directories, then I have problems.
I already set the classpath:
SET CLASSPATH=.;%CLASSPATH%;C:\tools\myjar.jar;
Here's the error. Any ideas???
C:\>java -jar myjar.jar
Exception in thread "main" java.util.zip.ZipException: The system cannot find th
e file specified
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(ZipFile.java:112)
at java.util.jar.JarFile.<init>(JarFile.java:117)
at java.util.jar.JarFile.<init>(JarFile.java:55)You always need to specify a proper file name when you use the -jar switch. If you are not in c:\tools you have to run with "java -jar c:\tools\myjar.jar".
Setting the classpath in particular doesn't help becuase the file name given to the -jar switch will override all settings for classpath. http://java.sun.com/j2se/1.4/docs/tooldocs/findingclasses.html#userclass
But since you now have myjar.jar in your classpath, you can run the application from any directory with "java your.main.ClassName" :) -
Java.util.zip ZipException Error Opening File
I have code that uploads a file in my strut then i change its extension to .zip and want to extract that file.
(please note that the file is create under zip and renamed as .xtr before upload, when user uploads it we change its name to zip. I am telling here so that u can see there s nothing wrong with the file. Soem how, I can also extract it from windows. )
when my code runs, and it tried to read entries in the enumeration, it says "error opening file". I am not posting the code because, I hve used many examples and it has nothing to do with the code.
My problem is as i mentioned above, my files` name is changed may be its handler doesnt quiet. more over i hve tried the code with upload a zip file. After upload it says the same.
Can any one provide me a clue to move around ??when my code runs, and it tried to read entries in
the enumeration, it says "error opening file". I am
not posting the code because, I hve used many
examples and it has nothing to do with the code. Then I would suggest you fix your code to tell you what the error is. Printing the stack trace would be a good start. -
When preview a portal application's iview throws java.util.zip.ZipException
this is the exception info who can help me ,thank you!
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:111)
at java.util.zip.ZipFile.<init>(ZipFile.java:127)
at com.sapmarkets.bam.jmxadapter.AbstractLog.getArchiveInfo(AbstractLog.java:328)
at com.sapmarkets.bam.jmxadapter.AbstractLog.getArchives(AbstractLog.java:455)
at com.sapmarkets.bam.jmxadapter.AbstractLog.getArchives(AbstractLog.java:478)
at sun.reflect.GeneratedMethodAccessor729.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.sap.pj.jmx.introspect.DefaultMBeanInvoker.getAttribute(DefaultMBeanInvoker.java:129)
at javax.management.StandardMBean.getAttribute(StandardMBean.java:229)
at com.sap.pj.jmx.server.MBeanServerImpl.getAttribute(MBeanServerImpl.java:1296)
at com.sap.pj.jmx.server.interceptor.MBeanServerWrapperInterceptor.getAttribute(MBeanServerWrapperInterceptor.java:181)
at com.sap.engine.services.jmx.CompletionInterceptor.getAttribute(CompletionInterceptor.java:309)
at com.sap.pj.jmx.server.interceptor.BasicMBeanServerInterceptor.getAttribute(BasicMBeanServerInterceptor.java:169)
at com.sap.jmx.provider.ProviderInterceptor.getAttribute(ProviderInterceptor.java:195)
at com.sap.engine.services.jmx.RedirectInterceptor.getAttribute(RedirectInterceptor.java:232)
at com.sap.pj.jmx.server.interceptor.MBeanServerInterceptorChain.getAttribute(MBeanServerInterceptorChain.java:124)
at com.sap.engine.services.jmx.MBeanServerSecurityWrapper.getAttribute(MBeanServerSecurityWrapper.java:234)
at com.sap.engine.services.jmx.ClusterInterceptor.getAttribute(ClusterInterceptor.java:522)
at com.sap.pj.jmx.server.interceptor.MBeanServerInterceptorChain.getAttribute(MBeanServerInterceptorChain.java:124)
at com.sapmarkets.bam.logcontroller.jmx.LogControllerFacade.getLogInfo(LogControllerFacade.java:227)
at com.sapmarkets.bam.logcontroller.jmx.LogControllerFacade.getLogInfosWithPattern(LogControllerFacade.java:193)
at com.sapmarkets.bam.logcontroller.jmx.LogControllerFacade.getLogInfos(LogControllerFacade.java:174)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.sap.pj.jmx.introspect.DefaultMBeanInvoker.getAttribute(DefaultMBeanInvoker.java:129)
at javax.management.StandardMBean.getAttribute(StandardMBean.java:229)
at com.sap.pj.jmx.server.MBeanServerImpl.getAttribute(MBeanServerImpl.java:1296)
at com.sap.pj.jmx.server.interceptor.MBeanServerWrapperInterceptor.getAttribute(MBeanServerWrapperInterceptor.java:181)
at com.sap.engine.services.jmx.CompletionInterceptor.getAttribute(CompletionInterceptor.java:309)
at com.sap.pj.jmx.server.interceptor.BasicMBeanServerInterceptor.getAttribute(BasicMBeanServerInterceptor.java:169)
at com.sap.jmx.provider.ProviderInterceptor.getAttribute(ProviderInterceptor.java:195)
at com.sap.engine.services.jmx.RedirectInterceptor.getAttribute(RedirectInterceptor.java:232)
at com.sap.pj.jmx.server.interceptor.MBeanServerInterceptorChain.getAttribute(MBeanServerInterceptorChain.java:124)
at com.sap.engine.services.jmx.MBeanServerSecurityWrapper.getAttribute(MBeanServerSecurityWrapper.java:234)
at com.sap.engine.services.jmx.ClusterInterceptor.getAttribute(ClusterInterceptor.java:522)
at com.sap.pj.jmx.server.interceptor.MBeanServerInterceptorChain.getAttribute(MBeanServerInterceptorChain.java:124)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.sap.tc.logviewer.mbean.LocalLVMBeanServer.invoke(LocalLVMBeanServer.java:73)
at $Proxy164.getAttribute(Unknown Source)
at com.sapmarkets.bam.application.logdepot.AbstractLogDepot.getAttribute(AbstractLogDepot.java:236)
at com.sapmarkets.bam.application.logdepot.AbstractLogDepot.getLogDescriptors(AbstractLogDepot.java:84)
at com.sap.tc.logviewer.mbean.ServerModelLogDepot.getLogDescriptors(ServerModelLogDepot.java:79)
at com.sap.tc.logviewer.mbean.ServerModelLogDepotGroup$GetLogDescriptorsTask.run(ServerModelLogDepotGroup.java:60)
at com.sap.tc.logviewer.mbean.ServerModelLogDepotGroup.execute(ServerModelLogDepotGroup.java:173)
at com.sap.tc.logviewer.mbean.ServerModelLogDepotGroup.getLogDescriptors(ServerModelLogDepotGroup.java:119)
at com.sap.tc.logviewer.mbean.LogviewerServer.getLogs(LogviewerServer.java:137)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.sap.pj.jmx.introspect.DefaultMBeanInvoker.invoke(DefaultMBeanInvoker.java:58)
at javax.management.StandardMBean.invoke(StandardMBean.java:286)
at com.sap.pj.jmx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:944)
at com.sap.pj.jmx.server.interceptor.MBeanServerWrapperInterceptor.invoke(MBeanServerWrapperInterceptor.java:288)
at com.sap.engine.services.jmx.CompletionInterceptor.invoke(CompletionInterceptor.java:409)
at com.sap.pj.jmx.server.interceptor.BasicMBeanServerInterceptor.invoke(BasicMBeanServerInterceptor.java:277)
at com.sap.jmx.provider.ProviderInterceptor.invoke(ProviderInterceptor.java:258)
at com.sap.engine.services.jmx.RedirectInterceptor.invoke(RedirectInterceptor.java:340)
at com.sap.pj.jmx.server.interceptor.MBeanServerInterceptorChain.invoke(MBeanServerInterceptorChain.java:330)
at com.sap.engine.services.jmx.MBeanServerSecurityWrapper.invoke(MBeanServerSecurityWrapper.java:287)
at com.sap.engine.services.jmx.ClusterInterceptor.invoke(ClusterInterceptor.java:776)
at com.sap.pj.jmx.server.interceptor.MBeanServerInterceptorChain.invoke(MBeanServerInterceptorChain.java:330)
at com.sap.tc.logviewer.client.j2ee.J2EELogviewerServerInvoker.invoke(J2EELogviewerServerInvoker.java:111)
at com.sap.tc.logviewer.client.j2ee.J2EELogviewerServerProxy.getLogs(J2EELogviewerServerProxy.java:105)
at com.sap.tc.logviewer.client.base.LogviewerClientImpl.getLogs(LogviewerClientImpl.java:114)
at com.sap.lm.webadmin.logviewer.impl.LV_View.getLogs(LV_View.java:831)
at com.sap.lm.webadmin.logviewer.impl.LV_View.fetchLogs(LV_View.java:801)
at com.sap.lm.webadmin.logviewer.impl.LV_View.fetchView(LV_View.java:484)
at com.sap.lm.webadmin.logviewer.impl.LV_View.fetchView(LV_View.java:464)
at com.sap.lm.webadmin.logviewer.impl.LV_View.fetchView(LV_View.java:460)
at com.sap.lm.webadmin.logviewer.impl.LVUI.openView(LVUI.java:609)
at com.sap.lm.webadmin.logviewer.impl.LVUI.openView(LVUI.java:577)
at com.sap.lm.webadmin.logviewer.impl.LVUI.openView(LVUI.java:573)
at com.sap.lm.webadmin.logviewer.LVView.onActionOpenSingleView(LVView.java:1648)
at com.sap.lm.webadmin.logviewer.wdp.InternalLVView.wdInvokeEventHandler(InternalLVView.java:1560)
at com.sap.tc.webdynpro.progmodel.generation.DelegatingView.invokeEventHandler(DelegatingView.java:87)
at com.sap.tc.webdynpro.progmodel.controller.Action.fire(Action.java:67)
at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.doHandleActionEvent(WindowPhaseModel.java:420)
at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processRequest(WindowPhaseModel.java:132)
at com.sap.tc.webdynpro.clientserver.window.WebDynproWindow.processRequest(WebDynproWindow.java:335)
at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:143)
at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:319)
at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessingStandalone(ClientSession.java:713)
at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java:666)
at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:250)
at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:149)
at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:62)
at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doPost(DispatcherServlet.java:53)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:386)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:364)
at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:1039)
at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:265)
at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)
at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:175)
at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
at java.security.AccessController.doPrivileged(Native Method)
at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:102)
at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:172)Hi,
Check this thread it will resolve your issue.
server startup error logs EP 60 Sp2 patch4 Solaris
Regards, -
Java.util.zip.ZIPException in clusters??
Hi,
am getting this problem.
Iam working on NT.
thanks
vallabh
Mon Nov 22 04:15:10 GMT+05:30 1999:<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:132)
at
weblogic.cluster.AnnotatedServiceOffer.expandClassPath(AnnotatedServiceOffer.java:74)
at
weblogic.cluster.AnnotatedServiceOffer.readObject(AnnotatedServiceOffer.java,
Compiled Code)
at
weblogic.common.internal.WLObjectInputStreamBase.readPublicSerializable(WLObjectInputStreamBase.java,
Compiled Code)
at
weblogic.common.internal.WLObjectInputStreamBase.readLeftover(WLObjectInputStreamBase.java,
Compiled Code)
at
weblogic.common.internal.WLObjectInputStreamBase.readObjectBody(WLObjectInputStreamBase.java,
Compiled Code)
at
weblogic.common.internal.WLObjectInputStreamBase.readObject(WLObjectInputStreamBase.java,
Compiled Code)
at
weblogic.common.internal.WLObjectInputStreamBase.readObjectWL(WLObjectInputStreamBase.java,
Compiled Code)
at
weblogic.common.internal.WLObjectInputStreamBase.readArrayList(WLObjectInputStreamBase.java,
Compiled Code)
at weblogic.cluster.StateDump.readObject(StateDump.java:59)
at
weblogic.common.internal.WLObjectInputStreamBase.readPublicSerializable(WLObjectInputStreamBase.java,
Compiled Code)
at
weblogic.common.internal.WLObjectInputStreamBase.readLeftover(WLObjectInputStreamBase.java,
Compiled Code)
at
weblogic.common.internal.WLObjectInputStreamBase.readObjectBody(WLObjectInputStreamBase.java,
Compiled Code)
at
weblogic.common.internal.WLObjectInputStreamBase.readObject(WLObjectInputStreamBase.java,
Compiled Code)
at
weblogic.common.internal.WLObjectInputStreamBase.readObjectWL(WLObjectInputStreamBase.java,
Compiled Code)
at weblogic.cluster.TMSocket.execute(TMSocket.java, Compiled
Code)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java,
Compiled Code)
Mon Nov 22 04:15:20 GMT+05:30 1999:<E> <MulticastSocket> Multicast
socket receive error: java.lang.RuntimeException: I/O error opening JAR
file from
file:/C:/weblogic/mycluster/server195/tmp_deployments/ejbjar21587.jar
java.util.zip.ZipException: error in opening zip fileMon Nov 22 04:15:51
GMT+05:30 1999:<I> <NT Performance Pack> Allocating: '2' NT reader
threads
at java.util.zip.ZipFile.open(Native Method)
I think problem may be with ZIP file, try to open with WinZip, if it opens
try to extract to some folder and once again zip it, then try with new file.
Raj
"vallabh Srinivas" <[email protected]> wrote in message
news:[email protected]...
> Hi,
> am getting this problem.
> Iam working on NT.
>
> thanks
> vallabh
>
> Mon Nov 22 04:15:10 GMT+05:30 1999:<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:132)
> 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)
> Mon Nov 22 04:15:20 GMT+05:30 1999:<E> <MulticastSocket> Multicast
> socket receive error: java.lang.RuntimeException: I/O error opening JAR
> file from
> file:/C:/weblogic/mycluster/server195/tmp_deployments/ejbjar21587.jar
> java.util.zip.ZipException: error in opening zip fileMon Nov 22 04:15:51
> GMT+05:30 1999:<I> <NT Performance Pack> Allocating: '2' NT reader
> threads
>
> at java.util.zip.ZipFile.open(Native Method)
>
-
Hi All,
We are using WLS 5.1 clustering. 2 WLS are running in 2 different unix box in same subnet. But we are getting the following exception ( Though all the Beans have been deployed successfully).
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(ServerClassLoader.java:132)
at weblogic.cluster.AnnotatedServiceOffer.expandClassPath(Compiled Code)
at weblogic.cluster.AnnotatedServiceOffer.readObject(Compiled Code)
at weblogic.common.internal.WLObjectInputStreamBase.readPublicSerializable(Compiled Code)
Fri Jan 25 16:57:22 MST 2002:<E> <MulticastSocket> Multicast socket receive error: java.lang.RuntimeException: I/O error opening JAR file from file:/opt/wlogic/weblogic/obscluster/server113/tmp_deployments/ejbjar-4247.jar
(cluster name we have changed to obscluster )
This Exception is coming in both the servers The difference is that the server whose ip ends with 112 is trying to open the file from server113 dir and the server whose ip ends with 113 is trying to open the file from server112 dir.
In web I have found that if the directory structure of 2 servers doesn't match then this porblem can arise. But for both of my servers the directory structure is same , at least until /opt/wlogic/weblogic/obscluster/ and then the directory server113 or server112 is created by Weblogic automatically when I have started the Server.
Any help regarding this will be very helpful.
Thanks & Regards
Srijeeb.Hi everyone,
I think I have got the solution. Using sp11. added sp11 related jar in PRE_CLASSPATH . Problem Solved....
Thanks
Srijeeb
Maybe you are looking for
-
Hi Experts, To post Advances given to Vendors we are using A/P down Payment invoices and Outgoing Payments linked to A/P Down Payment. This in turn will be linked to A/P Invoice. But our accountants are finding difficulty when they look at the vendor
-
Finder long term general issues, apple not solving
I have been using mac and their finder since 1991 or so and since osx things seem to go off the rails increasingly. I thought it is time to try to collect and mention them... maybe apple becomes aware of them ?.... In os8.6 and 9 the finder was worki
-
I have a mac book retina (13-late 2013) and I can´t see the pictures with photoshop cs6 or neither with digital professional of Canon. I use EXTREME PRO SAND DISK and I have other macs older than this and I never have any problem like this. Could you
-
Where's the suggestion box?
I've read a lot of these posts and other discussions on line about ATV. Initially, lots of people thought ATV should have a DVD player or a larger disk drive or whatever. After using the box since the day after it became available, I humbly offer the
-
Keynote: where do trashed images and slides go
I'm editing a keynote and need to reclaim some trashed slides/images/text. It's not in my trashcan, and KNote doesn't appear to have a dedicated trashcan, at least that I can find. Further, there's nothing in KNote help. Any ideas? Thanks in advance