Cannot open zip file generated with java

Hello everybody !
I work on a web application ( servlet, JSP... ).
I generate a zip file containing only one file corresponding to a JSP page but when I try to open it thanks to Winzip 8.0, I have the following message :
Error : invalid compressed data to inflate.
The zipped file is not empty, does anybody know what is the problem, here is the source code of my servlet :
public void trt (HttpServletRequest req, HttpServletResponse res)     throws ServletException, IOException
URL l_JspPage;
String temp;
ByteArrayOutputStream l_ByteArrayOutputStream = new ByteArrayOutputStream();
ZipOutputStream l_ZipOutputStream = new ZipOutputStream(l_ByteArrayOutputStream);
l_ZipOutputStream.setMethod(ZipOutputStream.DEFLATED);
ServletOutputStream out = res.getOutputStream();
ServletContext servletContext = getServletContext();
if ((temp=req.getParameter("url"))!=null)
try
l_JspPage = new URL(temp);
DataInputStream l_DataInputStream = new DataInputStream(l_JspPage.openStream());
int l_iBufferSize = l_DataInputStream.available();
byte l_byJspPageData[] = new byte[l_iBufferSize];
l_DataInputStream.read(l_byJspPageData, 0, l_iBufferSize);
l_ZipOutputStream.putNextEntry(new ZipEntry("file.html"));
l_ZipOutputStream.write(l_byJspPageData,0,l_iBufferSize);
l_ZipOutputStream.closeEntry();
l_ZipOutputStream.finish();
String zip=l_ByteArrayOutputStream.toString();
res.setContentType("application/zip");
res.setHeader("Content-Disposition","inline; filename=output.zip;");
out.println(zip);
out.flush();
Thanks for your help.

Your code is somewhat obscure, but it appears that you are writing a zip file to a byte array, converting the byte array to a string, and writing the string to "out" - whatever that is.
I'm not sure why you are going through all this, but in any case the string conversion is probably a wrong step. Zipping results in binary data, and string conversion will probably result in changes to the binary values.

Similar Messages

  • Problems with CRC in some windows app's whit zip files generated with Java

    Hello,
    That is very strange but, we have an app for compressing a folder into a zip. For making, we use the Java.Util.Zip API. Our zip file looks fine, we can unzip the files into another folder without problems, even we can open the file with Winzip or Winrar.
    But, we had encountered problems with anothers win apps like "Recovery ToolBox", or another win app built with the "Dynazip.dll" library. This apps give us the next error.
    "Bad Crc".
    But if we unzip this "corrupt" file and we zip the content again, all work without errors.
    [http://img297.imageshack.us/i/dibujoou.jpg/]
    Our code (this function only zips a single file):
        public static File zipFile(String sFile, String sNameFileIn, String sFileOut)
                throws IOException {
            File file = new File(sFile);
            FileOutputStream out = new FileOutputStream(sFileOut);
            FileInputStream fin = new FileInputStream(file);
            byte[] fileContent = new byte[(int) file.length()];
            fin.read(fileContent);
            ByteArrayOutputStream bout = new ByteArrayOutputStream();
            ZipOutputStream zout = new ZipOutputStream(bout);
            ZipEntry zipEntry = new ZipEntry(sNameFileIn);
            zout.putNextEntry(zipEntry);
            zout.write(fileContent, 0, fileContent.length);
            zout.closeEntry();
            zout.finish();
            zout.flush();
            zout.close();
            out.write(bout.toByteArray());
            out.flush();
            out.close();
            File fich = new File(sFileOut);
            fin.close();
            return fich;
        }I try to calculate the crc number for my own without success... I don't know what's happening
    Thanks in advance

    FileOutputStream out = new FileOutputStream(sFileOut);ZipOutputStream zout = new ZipOutputStream(new FileOutputStream(sFileOut));
    byte[] fileContent = new byte[(int) file.length()];Here you are assuming the file size is <= Integer.MAX_VALUE. What if it isn't? Remove.
    fin.read(fileContent);Here you are assuming you filled the buffer. There is nothing in the API specification to warrant that assumption. Remove. See below.
    ByteArrayOutputStream bout = new ByteArrayOutputStream();
    ZipOutputStream zout = new ZipOutputStream(bout);Remove.
    ZipEntry zipEntry = new ZipEntry(sNameFileIn);
    zout.putNextEntry(zipEntry);Correct.
    zout.write(fileContent, 0, fileContent.length);int count;
    byte[] buffer = new byte[8192];
    while ((count = fin.read(buffer)) > 0)
    zout.write(buffer, 0, count);
    zout.closeEntry();Correct.
    zout.finish();
    zout.flush();Redundant but not incorrect.
    zout.close();Correct.
    out.write(bout.toByteArray());
    out.flush();
    out.close();Remove.
    File fich = new File(sFileOut);
    fin.close();
    return fich;I don't know why this method returns a File constructed out of one of its own arguments, which the caller could equally well do for himself, otherwise OK.

  • Cannot open PDF files - generated response says I have to accept Licence Agreement. How?

    Cannot open PDF files. Message generated says "Before viewing PDF documents in this browser you must launch Adobe Reader and accept the End User Licence Agreement, then Quit and relaunch the browser." Surely I must have accepted the Licence Agreement at the time of installation and am unable to "launch" Adobe reader. Anyone else had this issue please?

    For Chrome I went went into the plugins: chrome://plugins/
    The "Chrome PDF Viewer" was disabled. I reenabled it and it allowed me to view the PDFs again.

  • Cannot open ZIP files in mail

    Anyone else having trouble opening zip files in mail. It does not work on iPhone either - but that was not an issue since very rarely does one want to open a large document.
    Any solutions out there ?

    Zips and other archived/compressed files won't work as expected on an iPad since you can't just preview/view the contents directly from the attachment currently like you can with quicktime-compatible or other common media formats. Basically you would need to be able to save the zip file to the finder and extract it, and view the contents from there. But since the iPad doesn't have anything like a user-accessible Finder, it's tricky to implement.
    There may be third-party apps that deal with this eventually (or maybe even something from the upcoming 4.0 software, who knows), but it would probably be easier to just have people send you attachments that aren't zipped up for now.

  • Zipped files created with Java won't unzip with Java

    Hello there,
    I have written a class for unzipping a zip file using the 'ZipFile' class. It works perfectly fine when I extract zip files that have been created with XP, Winzip, or Winrar.
    I am now experimenting with creating zip files using the ZipOutputStream (http://forum.java.sun.com/thread.jspa?forumID=256&threadID=366550 by author smeee). The code works great for creating the zip file, but when I try and unzip it with the zipfile class mentioned above it throws an exception.
    The error that the following code gives me when it tries to convert an element from the enumeration to a ZipEntry is this: java.io.FileNotFoundException: C:\testfiles\out\high\BAUMAN\00001.jpg (The system cannot find the path specified)
    NOTE: The file is there by the way!!! :-)
    See the code for extracting here:
    try {
                 zippy = new ZipFile(fileName);
                 Enumeration all = zippy.entries();
                 while (all.hasMoreElements()) {//loop through all zip entries
                              getFile((ZipEntry)all.nextElement()); <<<=====FAILS HERE
    } catch (IOException err) {
                 System.err.println(err.toString());
                 return;
    }Now if I extract the zip file with winzip, then rezip it with winzip and run the above method again it works with no errors. Any thoughts. Any help would be greatly appreciated.
    Jared

    Hello All,
    For anyone else who use the forum posting by smeee as a guide to create a zipper (http://forum.java.sun.com/thread.jspa?forumID=256&threadID=366550 by author smeee).
    I was tracing through the code and found that there is a statement that adds 1 character (strSource.length()+1) to the source path. This was causing the following bug:
    In windows it was placing objects like this \myfolder\myfile.txt
    In unix it was placing objects like this yfolder\myfile.txt
    Naturally a path like \myfolder... in the zip index was causing problems. I have added a case statement that tests the OS and then adds two chars if windows to compensate for the 'C:' and does nothing if Unix. The code now runs perfectly on either OS.
    Thanks for your response guys!
    Jared

  • Cannot open ZIP files???

    Hello,
    My new MacBook Pro with OS 10.5.7 doesn't seem to recognize zip files and tries to open them with TextEdit. Of course it doesn't work. I am very surprised, I thought zip support was built into the OS. I looked for a utility app but apparently there is nothing in the Application folder. Do I really need to download Stuffit Expander? There should be another option.
    Thanks for your help
    Florence

    I re-opened my old Mac, and it recognizes zip files as "zip archives" and proposes to open them with something called "archive utility" (it's a translation, I use French as a system language), which I cannot find on the hard drive but seems to work nonetheless. On the new Mac the same files are marked as text files. Where can I find this archive utility and install it? This is all very confusing.

  • I cannot open raw file shot with canon 20d. I get an error message.

    I recently used a 50d camera and shot in raw +jpeg. Downloaded into computer. Was able to view jpeg but was unable to view raw version.At first I attributed this to needing software update for 50d. I brought up a raw file taken with a 20d and the same error message appeared. I could open a 20d file before. This morning I tried again.I did open a 20d file.I tried a 50d file and the error message appeared. Went back to 20d file and the error message appeared saying it cannot open file.I am less than a novice. I purchased elements 6 a year ago and am just starting to try to use it. Are there updates that I need to do .

    sdefr0ghsf wrote:
    Further to my above reply, I have just discovered this on the web:
    Why Adobe doesn't touch proprietary raw files
    Touching the bits of raw image formats that aren't publicly documented well (or at all) seems like a bad idea, bound to end in tears. Microsoft is advising customers not to edit metadata using Vista, saying,
    Microsoft has received reports of compatibility issues with Nikon NEF files after installing version 1.0 of Nikon's raw codec posted in January. Tagging the raw files through Windows Vista or the Microsoft Photo Info tool after the codec is installed appears to cause these files to become unreadable in other applications, such as Adobe Photoshop. [Via]
    I'm sure the problem will get sorted out soon enough, but it does illustrate why Camera Raw and Lightroom insist on using sidecar data files for raw formats other than DNG. It's less convenient, but we've seen far too many conflicts arise from touching metadata in these other formats. DNG was designed with flexible internal storage of metadata in mind, and now Lightroom and Bridge offer conversion to DNG as part of their photo-import processes. (For what it's worth, on my MacBook Pro, converting an 8MP CR2 file to DNG takes roughly 1-1.5 seconds--not a bad price for portability & reduced file size.)
    Posted by            John Nack at 01:47 AM on February 12, 2007
    You will note this this was posed on Feb 12th 2007 and that it appears to still be an issue. Oh dear.
    Sure would be nice to see the link to where you got this.
    This refers to problems using Microsoft software and Vista, not Adobe software and Vista. I believe it is saying that Adobe properly handles both .nef and .dng files. I have no idea how this quote relates to this thread at all.

  • Recipient Cannot Open Zip File of photos

    This issue was happening to me with Tiger. I have upgraded to SL, and now it continues to happen. I send a Windows user a zip file of photos. They are able to open the file, but when they try to extract/open the individual photos, a dialogue box appears that indicates that they are "Password Protected, please indicate the password in the box below".
    I am doing nothing that I know of the make it password protected. Any ideas on how to solve this?

    What do you mean by that? JPEG is a file type, and ZIP is a file type. Do you mean that you are sending people a single zip file containing a bunch of plain jpeg files? Or do you mean that you are taking a bunch of individual jpeg files, zipping them one at a time, then taking all the zipped jpeg files and putting them all inside one big zip file?

  • Cannot open PDF files online with Firefox 4, help suggests foxit but don't know what that is?

    Earlier versions of Firefox allowed me to open PDF files online, without downloading. Firefox 4 does not allow me to open and read PDF files online, but requires downloading to computer.
    Help suggest altering settings in FOXIT READER, manually, but I don't know how to access Foxit reader, if I have it.
    Can I alter settings in Firefox 4, or do I have to go back to earlier version.
    Thanks

    I was under the impression Foxit was a pdf viewer rather than an addon for Firefox, but maybe there is more than one application with a similar name.
    I did not notice mention of foxit in the help, but add-ons are not always mentioned.
    * https://support.mozilla.com/en-US/kb/Opening%20PDF%20files%20within%20Firefox#os=mac&browser=fx35
    * general articles
    **[[Using the Adobe Reader plugin with Firefox]]
    ** & [[Opening PDF files within Firefox]]

  • I cannot open raw files taken with my Canon Mark III in CS5

    I am running CS5 on a newer computer (2012)... Every time I try to edit raw images taken with my Canon Mark III, a text box appears alerting me that my camera model is not supported by camera raw. I have tried various updates and software installations, but I have been unsuccessful in remedying the problem. Can anyone help or tell me what update/ software to download? I apologize if this thread already exists.

    Canon Mark III do you mean Canon 1D Mark III or Canon 1DS Mark III or Canon 5D Mark III ???
    In any case CS 5  ACR update 6.7 should handle all those cameras.
    Adobe - Photoshop : For Windows
    Adobe - Photoshop : For Macintosh
    Camera Raw 6.7 Update
    This new version of the Camera Raw plug-in replaces the original Camera Raw plug-in that was installed with Adobe® Creative Suite® 5 or Adobe® Photoshop® CS5 software.
    Support for the following cameras has been added in this update. Visit the Camera Rawpage for a complete list of supported cameras.
    Canon EOS 1D X
    Canon EOS 5D Mark III
    Supported camera models
    Camera
    Raw image filename extension
    Minimum Camera Raw plug-in version required
    Minimum Lightroom version required
    Canon
    EOS-1D
    CRW
    1.0
    1.0
    EOS 1D C
    CR2
    7.4
    4.4
    EOS-1D Mark II
    CR2
    2.2
    1.0
    EOS-1D Mark II N
    CR2
    3.3
    1.0
    EOS-1D Mark III
    CR2
    4.1
    1.1
    EOS-1D Mark IV
    CR2
    5.6
    2.6
    EOS-1Ds
    CR2
    1.0
    1.0
    EOS-1Ds Mark II
    CR2
    3.0
    1.0
    EOS-1Ds Mark III
    CR2
    4.3
    1.3.1
    EOS 1DX
    CR2
    6.7, 7.1
    4.1
    EOS 10D
    CRW
    2.0
    1.0
    EOS 20D
    CR2
    2.4
    1.0
    EOS 20Da
    CR2
    3.3
    1.0
    EOS 30D
    CR2
    3.4
    1.0
    EOS 40D
    CR2
    4.2
    1.2
    EOS 5D
    CR2
    3.3
    1.0
    EOS 5D Mark II
    CR2
    5.2
    2.2
    EOS 5D Mark III
    CR2
    6.7, 7.1
    4.1
    EOS 50D
    CR2
    4.6, 5.1
    2.1
    EOS 60D
    CR2
    6.2
    3.2
    EOS 60Da
    CR2
    7.1
    4.1
    EOS 70D
    CS2
    8.2
    5.2
    EOS D30
    CRW
    1.0
    1.0
    EOS 6D
    CR2
    7.3
    4.3
    EOS 7D
    CR2
    5.6
    2.6
    EOS 7D Mark II
    CR2
    8.7
    5.7
    EOS D60
    CRW
    1.0
    1.0
    EOS Digital Rebel EOS 300D EOS Kiss Digital
    CRW
    2.0
    1.0
    EOS Digital Rebel XS EOS 1000D EOS Kiss F
    CR2
    4.6, 5.1
    2.1
    EOS Digital Rebel XSi EOS 450D EOS Kiss Digital X2
    CR2
    4.4
    1.4.1
    EOS Digital Rebel XT EOS 350D EOS Kiss Digital N
    CR2, CRW
    3.1
    1.0
    EOS Digital Rebel XTi EOS 400D EOS Kiss Digital X
    CR2
    3.6
    1.0
    EOS Digital Rebel T1i EOS 500D EOS Kiss X3 Digital
    CR2
    5.4
    2.4
    Digital Rebel T2i EOS 550D EOS Kiss X4 Digital
    CR2
    5.7, 6.1
    3.1
    Digital Rebel T3i EOS 600D EOS Kiss X5 Digital
    CR2
    6.4
    3.4.1
    Digital Rebel T3 EOS 1100D EOS Kiss X50 Digital
    CR2
    6.4
    3.4.1
    Digital Rebel T5 EOS 1200D EOS Kiss X70
    CR2
    8.4
    5.4
    Digital Rebel T4i EOS 650D EOS Kiss X4i
    CR2
    7.1
    4.1
    Digital Rebel SL1 EOS 100D EOS Kiss X7
    CR2
    7.4
    4.4
    Digital Rebel T5i EOS 700D EOS Kiss X7i
    CR2
    7.4
    4.4
    PowerShot 600
    CRW
    1.0
    1.0
    PowerShot A5
    CRW
    1.0
    1.0
    PowerShot A50
    CRW
    1.0
    1.0
    PowerShot G1
    CRW
    1.0
    1.0
    PowerShot G1 X
    CR2
    6.7, 7.1
    4.1
    Powershot G1 X Mark II
    CR2
    8.5
    5.5
    PowerShot G2
    CRW
    1.0
    1.0
    PowerShot G3
    CRW
    1.0
    1.0
    PowerShot G5
    CRW
    2.0
    1.0
    PowerShot G6
    CRW
    2.4
    1.0
    PowerShot G7 X
    CR2
    8.7
    5.7
    PowerShot G9
    CR2
    4.3
    1.3.1
    PowerShot G10
    CR2
    5.2
    2.2
    PowerShot G11
    CR2
    5.6
    2.6
    PowerShot G12
    CR2
    6.3
    3.3
    PowerShot G15
    CR2
    7.3
    4.3
    PowerShot G16
    CR2
    8.2
    5.2
    PowerShot Pro 1
    CRW
    2.2
    1.0
    PowerShot Pro70
    CRW
    1.0
    1.0
    PowerShot Pro90 IS
    CRW
    1.0
    1.0
    PowerShot S30
    CRW
    1.0
    1.0
    PowerShot S40
    CRW
    1.0
    1.0
    PowerShot S45
    CRW
    1.0
    1.0
    PowerShot S50
    CRW
    2.0
    1.0
    PowerShot S60
    CRW
    2.3
    1.0
    PowerShot S90
    CR2
    5.6
    2.6
    PowerShot S95
    CR2
    6.3
    3.3
    PowerShot S70
    CRW
    2.4
    1.0
    PowerShot S100
    CR2
    6.6
    3.6
    PowerShot S100V
    CR2
    6.7
    4.0
    PowerShot S110
    CR2
    7.3
    4.3
    PowerShot S120
    CR2
    8.3
    5.3
    PowerShot SX50
    CR2
    7.3
    4.3
    PowerShot SX 60 HS
    CR2
    8.7
    5.7
    PowerShot SX1 IS
    CR2
    5.4
    2.4
    EOS M
    CR2
    7.2
    4.2
    EOS M2
    CR2
    8.3
    5.3
    Casio
    EXILIM EX-FH100
    DNG
    6.2
    3.2
    EXILIM EX-ZR1000
    DNG
    7.3
    4.3
    EXILIM EX-FC300S
    DNG
    7.3
    4.3
    EXLIM EX-ZR700
    DNG
    7.4
    4.4
    EXLIM EX-ZR710
    DNG

  • Open zip file

    cannot open zip file LicFix_21319 in windows pro 7

    I did a screen print to paint yesterday to send you  but it  did not post to the forum   right click give the usual options:  Open; Run as administrator; Trouble shoot compatibility;Scan;Shred;share with; Pin to task bar; Pin to Start menu; Restore previous session; Send to;cut;copy; create shortcut; rename; properties
    I never tried your 1st suggest to use PK zip, should I do that??  Many thanks!!

  • Can't open DNG files created with Mac CS5 downloader in Mac CS4 Photoshop

    I recently installed CS5 on my mac but I kept CS4 installed as well.  I notice that I cannot open DNG files created with CS5 in Photoshop CS4.  Bridge CS4 shows the files only as icons - no image thumbnails.  I am able to open these same files on a Windows version of CS4.  Is there some plugin for my mac CS4 that will enable me to access the DNG files created with CS5?  Is there a way to use my CS5 downloader when converting my raw files from my camera to DNG files that will make them compatiple with PS and Bridge CS4?

    rr3rd wrote:
    Is there a way to use my CS5 downloader when converting my raw files from my camera to DNG files that will make them compatiple with PS and Bridge CS4?
    Well, yes...but you'll need to modify your DNG Converter prefs to allow for that. You''ll need a recent (ideally current DNG Converter 6.4.1 or above) and click on the DNG Converter preferences and select the correct DNG Converter options. Check DNG Converter 6.4.1 (the current version) and click on "Change Preferences" to be sure select Camera Raw 5.4 and later then make sure CS4 is updated to ACR 5.7 (which is the last version of ACR for CS4) However, the changes made to ACR 6.x really should be adopted since IQ for ACR 6.4.x is a lot better...

  • How to open .zip files downloaded

    I've downloaded a number of zip files using Firefox Mobile, first clicking on the "Open" button after clicking on the link to the zip file (it didn't work) , and clicking "Save" and after downloading trying to click "Open" (it didn't work either).
    How do I open zip files downloaded with Firefox for Mobile? And where are they stored when saved?
    == Extensions installed: ==
    Weave Sync

    hi i m salim dhannani from india and i want to contack with you so plz contack with me , and i want shoes buckles if you have tahn plz send me

  • J2ee Log is filled all time with  "error in opening zip file"

    Hi,
    When I check the J2ee log in NWA, there is a lot of messages
    " java.util.zip.ZipException: error in opening zip file", all time!.
    any idea???
    thanks in advance.
    Detail:
      error 2008-11-11 20:44:12:544 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)... [see details]
    /System/Server com.sapmarkets.bam.jmxadapter.AbstractLog sap.com/tcwddispwda server-epdesa Server 0 0_36836
       error 2008-11-11 20:44:12:404 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)... [see details]
    /System/Server com.sapmarkets.bam.jmxadapter.AbstractLog sap.com/tcwddispwda server-epdesa Server 0 0_36836
       error 2008-11-11 20:44:12:404 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)... [see details]
    /System/Server com.sapmarkets.bam.jmxadapter.AbstractLog sap.com/tcwddispwda server-epdesa Server 0 0_36836
       error 2008-11-11 20:44:12:404 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)... [see details]

    Hi Guys -
    I am facing a similar issue while trying to run a VC model. I am using BAPI_SALESORDER_GETLIST with two input fields and some output columns.
    The problem here is that when I check the output using this BAPI on the backend system (ABAP), I can see the output. However, with VC it always generated a log in defaultTrace file with the following content;
    #1.5 #001E0BC934680032000001D300001A500004633307D8A2D2#1234970732710#com.sapmarkets.bam.jmxadapter.AbstractLog##com.sapmarkets.bam.jmxadapter.AbstractLog#Administrator#57787##n/a##61c79e80fdd011ddcf25001e0bc93468#SAPEngine_Application_Thread[impl:3]_7##0#0#Error#1#/System/Server#Plain###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:454)
         at com.sapmarkets.bam.jmxadapter.AbstractLog.getArchives(AbstractLog.java:477)
         at sun.reflect.GeneratedMethodAccessor905.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.sapmarkets.bam.jmx.connector.AbstractLVServer.invoke(AbstractLVServer.java:183)
         at sun.reflect.GeneratedMethodAccessor470.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at com.sap.engine.services.rmi_p4.P4DynamicSkeleton.dispatch(P4DynamicSkeleton.java:161)
         at com.sap.engine.services.rmi_p4.DispatchImpl._runInternal(DispatchImpl.java:319)
         at com.sap.engine.services.rmi_p4.DispatchImpl._run(DispatchImpl.java:200)
         at com.sap.engine.services.rmi_p4.server.P4SessionProcessor.request(P4SessionProcessor.java:136)
         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)
    An error was returned from the back-end system: [V4213] No data found
    Do you have a clue as to why this is happening?
    Kind Regards,
    Raza.

  • 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 configuration

    ooks 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>

Maybe you are looking for

  • Why do i no longer have a previously baught album

    i paid for an album "chief" by Eric Church. my ipod had an issue so i factory reset it. upon compleation while i was adding my music to my ipod i realized i no longer have the ablum Chief. i paid for it and you can see on my reciepts that it was down

  • Macbook Pro 17 - Version differences

    I am looking at purchasing a MBP 17. I'm looking at a 2.4Ghz high res MBP 17 from either MacMall or as a refurb from Apple. Being new to the Mac world, I am trying to understand the differences between the 2.4Ghz MBP 17 and the new 2.5/2.6Ghz MBP 17.

  • Newbie:Problems with SCSI root disk

    Hello I have periodic problems with no matter what disk I put in my root partition. My Sun has several disks, so I can take another disk not being used and configure it as my new root disk, installing Solaris root on it. But when, this way, I replace

  • Compatible problems with Logic 9.1.6 and 96 i/O Digidesign

    Hi There, I am on Mac OSX 10.6.8. When loading Logic, the 96 i/O displays various signals on the input channels and for some reason, I can not use the dsp card of the interface with Logic on the DAE page and the signal are still continuous with selec

  • "Echo" error from deletion script.

    Hey forum! I've got this deletion script (attached) that's throw back this error: Error: Error #2101: The String passed to URLVariables.decode() must be a URL-encoded query string containing name/value pairs. at Error$/throwError() at flash.net::URLV