Corrupt java files

I suspect that my java has corrupt files. I would like to remove all traces of java and reinstall with the latest version. However, when i go to my "install/uninstall" in my computer, the uninstall option is not available. Is there another way to uninstall all java?

shooter308 wrote:
. . . Is there a reason I cannot delete the older versions from "my computer" install/uninstall files?Apparently the files have been corrupted (as you say.) At this point, there is no single correct answer. Do some searching, and see if you can find any similar problems with solutions. There are many, many posts about this on the net and in these forums that might be useful.
One of the things you can look for is information about a corrupted MSI (Microsoft Installer) program, which is what is executed to install or uninstall Java.
At the worst, you will have to manually delete directories and Registry entries. This can be dangerous if done incorrectly, however.

Similar Messages

  • Invalid or COrrupt JAR file

    I have one jar file of java classfiles created in eclipse. Its working fine with eclipse after giving Run Configuration (main class).
    But when I try to run jar file from command prompt its giving me error - ' Invalid or corrupt jar file'
    I have edited Manifest.mf for adding Main-Class also.
    I have also checked in Tools-->folder option-->File Types-->Selecting Jar-->Advanced-->Edit and given the correct path of javaw.exe like - "D:\SDP75\jdk\bin\javaw.exe" -jar "%1" %*. The same jdk used for compling the classes.
    Please help me. I have done volumes of googling for this. This is very crtytical to me.
    Thanks

    802387 wrote:
    Its working fine with eclipse after giving Run Configuration (main class).So it works if you just run the main class.
    >
    But when I try to run jar file from command prompt its giving me error - ' Invalid or corrupt jar file'
    But it doesn't when you attempt to run it as an executable jar.
    I have edited Manifest.mf for adding Main-Class also.
    As a guess that is the problem. You messed up that file.
    Or you are not running the same thing in both cases.

  • JBoss Shuts Down while reading a Corrupt Zip File

    Hi,
    I have a strange problem, where the jboss crashes when i read a corrupt file.
    Code is like this :
    ZipFile zipfile = null;
    Enumeration e = null;
    try
    zipfile = new ZipFile(zipFile);
    e = zipfile.entries();
    catch(Exception e1) {
    e1.printStackTrace();
    while(e.hasMoreElements()) {
    ZipEntry entry = (ZipEntry) e.nextElement();
    JBoss Error Description :
    An unexpected exception has been detected in native code outside the VM.
    Unexpected Signal : EXCEPTION_ACCESS_VIOLATION (0xc0000005) occurred at PC=0x77FCD91F
    Function=RtlDestroyHeap+0x2DB
    Library=C:\WINNT\system32\ntdll.dll
    Current Java thread:
         at java.util.zip.ZipFile.getNextEntry(Native Method)
         at java.util.zip.ZipFile.access$400(Unknown Source)
         at java.util.zip.ZipFile$2.nextElement(Unknown Source)
         - locked <0x1122c828> (a java.util.zip.ZipFile)
         at com.intruvert.alertarchival.process.CoreRestore.extractDescriptionXML(Unknown Source)
         at com.intruvert.alertarchival.process.ArchivalManager.getArchivalZipFileInfo(Unknown Source)
         - locked <0x330cf478> (a com.intruvert.alertarchival.process.ArchivalManager)
         at com.intruvert.mgmt.alertarchival.AlertArchivalBean.getArchivalZipFileInfo(AlertArchivalBean.java:235)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:683)
         at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:186)
         at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:72)
         at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:84)
         at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:315)
         at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:148)
         at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:111)
         at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:191)
         at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:122)
         at org.jboss.ejb.StatelessSessionContainer.internalInvoke(StatelessSessionContainer.java:331)
         at org.jboss.ejb.Container.invoke(Container.java:709)
         at sun.reflect.GeneratedMethodAccessor103.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:60)
         at org.jboss.mx.server.Invocation.dispatch(Invocation.java:62)
         at org.jboss.mx.server.Invocation.dispatch(Invocation.java:54)
         at org.jboss.mx.server.Invocation.invoke(Invocation.java:82)
         at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:197)
         at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
         at org.jboss.invocation.local.LocalInvoker.invoke(LocalInvoker.java:97)
         at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:90)
         at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:46)
         at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:55)
         at org.jboss.proxy.ejb.StatelessSessionInterceptor.invoke(StatelessSessionInterceptor.java:100)
         at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:85)
         at $Proxy236.getArchivalZipFileInfo(Unknown Source)
         at com.intruvert.ui.util.busobj.DBManager.getArchividFile(DBManager.java:397)
         at com.intruvert.ui.util.busobj.DBManager.getFileTransferInfo(DBManager.java:274)
         - locked <0x10ee9ed8> (a com.intruvert.ui.util.busobj.DBManager)
         at com.intruvert.ui.util.servlet.CArchivalUploadServlet.doUpload(CArchivalUploadServlet.java:157)
         - locked <0x15789860> (a com.intruvert.ui.util.servlet.CArchivalUploadServlet)
         at com.intruvert.ui.util.servlet.CArchivalUploadServlet.doPost(CArchivalUploadServlet.java:58)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
         at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:75)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
         at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
         at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:66)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
         at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:158)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
         at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
         at java.lang.Thread.run(Unknown Source)
    Dynamic libraries:
    0x00400000 - 0x0040B000      C:\CVS_TRIMBLE\ems\Install\jre\bin\java.exe
    0x77F80000 - 0x77FFD000      C:\WINNT\system32\ntdll.dll
    0x7C2D0000 - 0x7C332000      C:\WINNT\system32\ADVAPI32.dll
    0x7C570000 - 0x7C623000      C:\WINNT\system32\KERNEL32.DLL
    0x77D30000 - 0x77DA1000      C:\WINNT\system32\RPCRT4.DLL
    0x78000000 - 0x78045000      C:\WINNT\system32\MSVCRT.dll
    0x75030000 - 0x75044000      C:\WINNT\system32\WS2_32.DLL
    0x75020000 - 0x75028000      C:\WINNT\system32\WS2HELP.DLL
    0x08000000 - 0x08138000      C:\CVS_TRIMBLE\ems\Install\jre\bin\client\jvm.dll
    0x77E10000 - 0x77E6F000      C:\WINNT\system32\USER32.dll
    0x77F40000 - 0x77F7B000      C:\WINNT\system32\GDI32.dll
    0x77570000 - 0x775A0000      C:\WINNT\system32\WINMM.dll
    0x10000000 - 0x10007000      C:\CVS_TRIMBLE\ems\Install\jre\bin\hpi.dll
    0x007C0000 - 0x007CE000      C:\CVS_TRIMBLE\ems\Install\jre\bin\verify.dll
    0x007D0000 - 0x007E9000      C:\CVS_TRIMBLE\ems\Install\jre\bin\java.dll
    0x007F0000 - 0x007FE000      C:\CVS_TRIMBLE\ems\Install\jre\bin\zip.dll
    0x44420000 - 0x4443C000      C:\CVS_TRIMBLE\ems\Install\jre\bin\jdwp.dll
    0x48440000 - 0x48445000      C:\CVS_TRIMBLE\ems\Install\jre\bin\dt_socket.dll
    0x74FD0000 - 0x74FEE000      C:\WINNT\system32\msafd.dll
    0x75010000 - 0x75017000      C:\WINNT\System32\wshtcpip.dll
    0x487D0000 - 0x487DF000      C:\CVS_TRIMBLE\ems\Install\jre\bin\net.dll
    0x782C0000 - 0x782CC000      C:\WINNT\System32\rnr20.dll
    0x77980000 - 0x779A4000      C:\WINNT\system32\DNSAPI.DLL
    0x75050000 - 0x75058000      C:\WINNT\system32\WSOCK32.DLL
    0x77340000 - 0x77353000      C:\WINNT\system32\iphlpapi.dll
    0x77520000 - 0x77525000      C:\WINNT\system32\ICMP.DLL
    0x77320000 - 0x77337000      C:\WINNT\system32\MPRAPI.DLL
    0x75150000 - 0x7515F000      C:\WINNT\system32\SAMLIB.DLL
    0x75170000 - 0x751BF000      C:\WINNT\system32\NETAPI32.DLL
    0x7C340000 - 0x7C34F000      C:\WINNT\system32\Secur32.dll
    0x77BF0000 - 0x77C01000      C:\WINNT\system32\NTDSAPI.dll
    0x77950000 - 0x7797A000      C:\WINNT\system32\WLDAP32.DLL
    0x751C0000 - 0x751C6000      C:\WINNT\system32\NETRAP.dll
    0x77A50000 - 0x77B3F000      C:\WINNT\system32\OLE32.DLL
    0x779B0000 - 0x77A4B000      C:\WINNT\system32\OLEAUT32.DLL
    0x773B0000 - 0x773DF000      C:\WINNT\system32\ACTIVEDS.DLL
    0x77380000 - 0x773A3000      C:\WINNT\system32\ADSLDPC.DLL
    0x77830000 - 0x7783E000      C:\WINNT\system32\RTUTILS.DLL
    0x77880000 - 0x7790E000      C:\WINNT\system32\SETUPAPI.DLL
    0x7C0F0000 - 0x7C151000      C:\WINNT\system32\USERENV.DLL
    0x774E0000 - 0x77513000      C:\WINNT\system32\RASAPI32.DLL
    0x774C0000 - 0x774D1000      C:\WINNT\system32\RASMAN.DLL
    0x77530000 - 0x77552000      C:\WINNT\system32\TAPI32.DLL
    0x77B50000 - 0x77BD9000      C:\WINNT\system32\COMCTL32.DLL
    0x77C70000 - 0x77CB9000      C:\WINNT\system32\SHLWAPI.DLL
    0x77360000 - 0x77379000      C:\WINNT\system32\DHCPCSVC.DLL
    0x777E0000 - 0x777E8000      C:\WINNT\System32\winrnr.dll
    0x777F0000 - 0x777F5000      C:\WINNT\system32\rasadhlp.dll
    0x49330000 - 0x49335000      C:\CVS_TRIMBLE\ems\Install\jre\bin\rmi.dll
    0x49E80000 - 0x49E88000      C:\CVS_TRIMBLE\ems\Install\jre\bin\nio.dll
    0x4A550000 - 0x4A556000      C:\CVS_TRIMBLE\ems\Install\jre\bin\ioser12.dll
    0x4BEE0000 - 0x4BFF2000      C:\CVS_TRIMBLE\ems\Install\jre\bin\awt.dll
    0x77800000 - 0x7781E000      C:\WINNT\system32\WINSPOOL.DRV
    0x76620000 - 0x76630000      C:\WINNT\system32\MPR.DLL
    0x75E60000 - 0x75E7A000      C:\WINNT\system32\IMM32.dll
    0x7CA00000 - 0x7CA23000      C:\WINNT\system32\rsaenh.dll
    0x7C740000 - 0x7C7C7000      C:\WINNT\system32\CRYPT32.dll
    0x77430000 - 0x77440000      C:\WINNT\system32\MSASN1.DLL
    0x77920000 - 0x77943000      C:\WINNT\system32\imagehlp.dll
    0x72A00000 - 0x72A2D000      C:\WINNT\system32\DBGHELP.dll
    0x690A0000 - 0x690AB000      C:\WINNT\system32\PSAPI.DLL
    Heap at VM Abort:
    Heap
    def new generation total 54464K, used 24954K [0x10010000, 0x13b20000, 0x13b20000)
    eden space 48448K, 39% used [0x10010000, 0x1128eb08, 0x12f60000)
    from space 6016K, 100% used [0x13540000, 0x13b20000, 0x13b20000)
    to space 6016K, 0% used [0x12f60000, 0x12f60000, 0x13540000)
    tenured generation total 725952K, used 562288K [0x13b20000, 0x40010000, 0x40010000)
    the space 725952K, 77% used [0x13b20000, 0x3603c398, 0x3603c400, 0x40010000)
    compacting perm gen total 39424K, used 39287K [0x40010000, 0x42690000, 0x44010000)
    the space 39424K, 99% used [0x40010000, 0x4266de88, 0x4266e000, 0x42690000)
    Local Time = Tue Jun 21 10:27:43 2005
    Elapsed Time = 198
    # The exception above was detected in native code outside the VM
    # Java VM: Java HotSpot(TM) Client VM (1.4.2_08-b03 mixed mode)
    Could you please hep me out....
    Thanks,
    ~ Ajay Sandesh

    Simply remove the corrupt zip file, and replace it with the valid copy of the zip file.
    regards,
    Owen

  • Adding Path corrupts PS3 file!

    Hi,
    I've just started getting a problem which results in a totally corrupt PSD file. If I add a path (say I'm doing a clipping path around some people) I can get so far then if I close the file I cannot open it again "Could not complete your request because it is not a valid Photoshop document".
    The file size is only about 11mb, 8-bit RGB.
    As a trial I started adding a path and closing the document every couple of minutes (to the desktop) reopening then continuing the path. This worked up until some point where the path seems to corrupt the entire file. The finder preview is fine yet the file won't open. Tried importing it into Illustrator and it imports as a text file. InDesign refuses to import it as it doesn't have a suitable filter.
    Running Leopard 10.5.3 on Dual 2.8ghz Quad core Mac Pro with 4gb RAM
    HELP!

    This documentation should help:
    http://java.sun.com/javase/6/docs/technotes/guides/lang/resources.html

  • JFileChooser problem opening just java files

    Hi everyone, trying to write simple text ed. that will only open java files (part of JFileChooser). Yes have looked at API but so stupid that i couldnt get it to work can anyone help?
    public void openFile() {
              BufferedReader in = null;
              try {
                   JFileChooser chooser = new JFileChooser();
                   //---Open Java Files only---
                   if (chooser.showOpenDialog(null)
                   == JFileChooser.APPROVE_OPTION) {
                   File selectedFile = chooser.getSelectedFile();          
                   in = new BufferedReader
                             (new FileReader(selectedFile));
         catch(FileNotFoundException e) {
              JOptionPane.showMessageDialog
                   (null, "Bad Filename. Try Again");
         catch(IOException e) {
              JOptionPane.showMessageDialog
                   (null, "Corrupted File. Try Again");
         finally {
              if (in != null)
                   try {
                        StringBuffer buffer = new StringBuffer();
                        String text = new String();
                        text_chat.setText(text + "\n\n");
                        while((text=in.readLine())!=null)
                             buffer.append(text+ "\n");
                        text_chat.setText(buffer.toString());
                   catch(IOException e) {
                        JOptionPane.showMessageDialog
                             (null, "Error closing File.");
    }

    Can you tell me how did you solve the problem? Right now I am encounter ing the same problem. The java files on JFileChooser did not show up!

  • Corrupted zip file of download pkg

    I've tried downloading App server 7 (Platform edition) several times and from several download locations but each time I get corrupted zip file and can't open it. BTW, other stuff (Application framework, Studio 4, etc) is downloaded correctly. I'm using IE 6.
    Has anyone experienced anything like this ?

    No clue. Too few info.
    Post a small demo code that is generally compilable, runnable and could reproduce your problem. See: http://homepage1.nifty.com/algafield/sscce.html and http://www.yoda.arachsys.com/java/newsgroups.html

  • Corrupted pack file: magic/ver = CAFED00D/160.1 should be CAFED00D/150.7

    Hi
    While unpacking the jars I am getting the following exception...
    Corrupted pack file: magic/ver = CAFED00D/160.1 should be CAFED00D/150.7
    Can anyone please comment.?

    Yes..The jars were created with building project with ant script(setting target="1.5").And I was trying to unpack these jars with java1.5
    As per javac sepcifications we can do a cross compile(http://java.sun.com/j2se/1.4.2/docs/tooldocs/windows/javac.html).
    Edited by: Vikz on May 15, 2009 5:05 PM

  • Corrupted Preferences File - Why?

    Trash your Prefs! You know the mantra. When PS fails to do something, its trash your prefs!
    I wondered why/how ones preferences ever get corrupted. Ive use PS, since 2.5 on all sorts of PCs, sometimes with it running around the clock for days. Never once had I encountered a corrupted preferences file until now, that is.
    What I encountered can only be listed as an observation. Im sure that it is but one possible cause. Still, I thought that Id share my experience.
    Up at 4:00AM to start a rush scan job. Everything boots up fine, and I start PS CS2. As its loading the plug-ins, etc., I notice that Sun Microsystems Java wants an update and its icon has appeared in the Tasktray of my XP-Pro SP3. I open it, and click Update Later, or whatever the exact dialog is. It drops back to the Tasktray. PS seems to be taking a long time to load on my workstation, but I give it a few moments. Nothing. Its hung at Reading Text Global Resources. I check Task Manager PS is shown as Not Responding. Odd, this has NEVER happened before in all those years. Not so much as once.
    I remembered that there was an update for Extend Script, that I told PS to hold off on. I go to Updates, via Bridge and its still there waiting. I End Task for PS and look for something usable from MS. Of course theres nothing. Event Viewer shows an Application Hang, with no useful info. I install the Extend Script Update, and try PS again. It gets to the same spot and hangs.
    OK, I allow Java to update (making sure to NOT allow the installation of the MSN Search Toolbar - sheezh! I try PS yet again. Hang at the same spot.
    Re-boot and hang. Though I have said it a thousand times, trash your prefs, it takes a moment for it to sink in. I trash my prefs and all is good with PS. Luckily, I had my dual-monitor Workspace saved, and it only takes a minute to change the default preferences back to what I want.
    Normally, I have everything, and I mean everything, set to NOT auto-update. I turn this feature off for every program that I install. I use Premiere a lot, and do not want Norton, or anybody, waking up and phoning home. Ill tell em when to update. Well, I missed Java.
    I can only guess that it did its update thing, just at a critical time for PSs loading and blew up the prefs file. Had it popped up a second later, or maybe a second earlier, I doubt that Id have had to trash my prefs. After all these years (decades really), I had a corrupt preferences file.
    Im sure there are a myriad things that can corrupt a preferences file, and I am only guessing at what caused mine. However, the timing is perfect, so Java gets the blame.
    Just thought Id share,
    Hunt

    Ho,
    I'm squarely with you on that one. If one's computer is just used for e-mail and browsing, it's not an issue. Real work, however, trumps getting the latest update, as soon as is possible. I just missed setting Java to manual. It slipped by my defenses. Won't happen again. I also hate any auto-update, that will require a reboot. Hey, I'm working here. I'll update and reboot, when I'm finished.
    I also think that I need to clarify that I was only making an observation of what was happening on my system. The Java updater was not running yet, but only the "message" pop-up. Also, these two occurrances could have been purely coincidental. I was just the observer. After the prefs corruption, I did run the Java updater, and after the "trashing" of my perfs, all ran very well.
    I do not want to scare people off from updating, Java, or anything. I am sorry if I was not clear. As I said, I have no idea whether the message pop-up had any effect whatsoever. It just hit at the same time. [and pissed me off, that I had not thought to properly configure it for my workflow]
    Hunt

  • Unzipping corrupted zip file

    I have a corrupted zip file whose contents I'm trying to salvage. I know that the problem is with one of the files in the sbutman/taxes/ directory, and I've resigned myself to losing it. I've written the following short program to try to extract as much data as I can from the archive:
    * Created on Sep 7, 2005
    import java.io.*;
    import java.util.zip.*;
    * @author sbutman
    public class ZipExtractor {
        static final int BUFFER = 8192;
        public static void main( String argv[] ) {
            try {
                BufferedOutputStream dest = null;
                FileInputStream fis = new FileInputStream( argv[0] );
                ZipInputStream zis = new ZipInputStream( new BufferedInputStream(
                        fis ) );
                ZipEntry entry;
                while( true ) {
                    try {
                        entry = zis.getNextEntry( );
                        if ( entry == null ) break;
                        if ( entry.getName( ).startsWith( "sbutman/taxes/" ) )
                                continue;
                        System.out.println( "Extracting: " + entry.getName( ) );
                        if ( entry.isDirectory( ) ) {
                            File directoryEntry = new File( entry.getName( ) );
                            directoryEntry.mkdir( );
                        else {
                            int count;
                            byte data[] = new byte[BUFFER];
                            // write the files to the disk
                            FileOutputStream fos = new FileOutputStream( entry
                                    .getName( ) );
                            dest = new BufferedOutputStream( fos, BUFFER );
                            while( ( count = zis.read( data, 0, BUFFER ) ) != -1 ) {
                                dest.write( data, 0, count );
                            dest.flush( );
                            dest.close( );
                    catch( IOException ioe ) {
                        System.out.println( "An IO exception has occurred:" );
                        ioe.printStackTrace( );
                        continue;
                zis.close( );
            catch( Exception e ) {
                System.out.println( "A general exception occurred:" );
                e.printStackTrace( );
    }When I run the program, everything works fine until I get to the zip file entry causing the problem. The output looks like this:
    An IO exception has occurred:
    java.util.zip.ZipException: invalid entry size (expected 4007 but got 4055 bytes)
            at java.util.zip.ZipInputStream.readEnd(ZipInputStream.java:367)
            at java.util.zip.ZipInputStream.read(ZipInputStream.java:141)
            at java.util.zip.ZipInputStream.closeEntry(ZipInputStream.java:91)
            at java.util.zip.ZipInputStream.getNextEntry(ZipInputStream.java:69)
            at ZipExtractor.main(ZipExtractor.java:23)
    An IO exception has occurred:
    java.io.IOException: Push back buffer is full
            at java.io.PushbackInputStream.unread(PushbackInputStream.java:204)
            at java.util.zip.ZipInputStream.readEnd(ZipInputStream.java:348)
            at java.util.zip.ZipInputStream.read(ZipInputStream.java:141)
            at java.util.zip.ZipInputStream.closeEntry(ZipInputStream.java:91)
            at java.util.zip.ZipInputStream.getNextEntry(ZipInputStream.java:69)
            at ZipExtractor.main(ZipExtractor.java:23)
    An IO exception has occurred:
    java.io.IOException: Push back buffer is full
            at java.io.PushbackInputStream.unread(PushbackInputStream.java:204)
            at java.util.zip.ZipInputStream.readEnd(ZipInputStream.java:348)
            at java.util.zip.ZipInputStream.read(ZipInputStream.java:141)
            at java.util.zip.ZipInputStream.closeEntry(ZipInputStream.java:91)
            at java.util.zip.ZipInputStream.getNextEntry(ZipInputStream.java:69)
            at ZipExtractor.main(ZipExtractor.java:23)The second error repeats itself until I ctrl-c out of the program.
    What's happening is that the inner catch block detects the zip entry error as expected. It continues on the next pass through the while loop and attempts to read the next entry, whereupon the second IOException is thrown over and over again. (Incidentally, I've also tried using java.util.zip.ZipFile, but it won't even open the file.)
    My questions are these:
    1. What exactly does "Push back buffer is full" mean? I've looked through the javadocs, but my understanding is still sketchy. Can I manipulate the buffer or otherwise code around the problem in order to prevent this error from being thrown?
    2. Is there any way I can see the source code for java.util.zip.ZipInputStream? It would be very helpful to see exactly where and why this error is being thrown.
    Any help anyone can provide would be greatly appreciated. By the way, if this question should be better posted in another forum, let me know and I'll re-post it there.

    No clue. Too few info.
    Post a small demo code that is generally compilable, runnable and could reproduce your problem. See: http://homepage1.nifty.com/algafield/sscce.html and http://www.yoda.arachsys.com/java/newsgroups.html

  • I am trying to use java  file as Model layer and jsf as presentation layer

    I am trying to use java file as Model layer and jsf as presentation layer and need some help
    I successfully get the value of h:outputText from java file by doing simple binding operation but I am facing problems when I am trying to fill h:dataTable
    I create java file
    package oracle.model;
    import java.sql.;*
    import java.util.;*
    *public class TableBean {*
    Connection con ;
    Statement ps;
    ResultSet rs;
    private List perInfoAll = new ArrayList();
    *public List getperInfoAll() {*
    perInfoAll.add(0,new perInfo("name","username","blablabla"));
    return perInfoAll;
    *public class perInfo {*
    String uname;
    String firstName;
    String lastName;
    *public perInfo(String firstName,String lastName,String uname) {*
    this.uname = uname;
    this.firstName = firstName;
    this.lastName = lastName;
    *public String getUname() {*
    return uname;
    *public String getFirstName() {*
    return firstName;
    *public String getLastName() {*
    return lastName;
    right click on the file and choose 'create data control'
    then i wrote the jsf file:
    *<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>*
    *<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>*
    *<f:view>*
    *<h:dataTable id="dt1" value="#{bindings.perInfoAll}"*
    var="item" bgcolor="#F1F1F1" border="10"
    cellpadding="5" cellspacing="3" rows="4" width="50%"
    dir="LTR" frame="hsides" rules="all"
    *>*
    *<f:facet name="header">*
    *<h:outputText value="This is 'dataTable' demo" id="ot6"/>*
    *</f:facet>*
    *<h:column id="c2">*
    *<f:facet name="header">*
    *<h:outputText value="First Name" id="ot1"/>*
    *</f:facet>*
    *<h:outputText style="" value="#{item.firstName}"*
    id="ot2"/>
    *</h:column>*
    *<h:column id="c4">*
    *<f:facet name="header">*
    *<h:outputText value="Last Name" id="ot9"/>*
    *</f:facet>*
    *<h:outputText value="#{item.lastName}" id="ot8"/>*
    *</h:column>*
    *<h:column id="c3">*
    *<f:facet name="header">*
    *<h:outputText value="Username" id="ot7"/>*
    *</f:facet>*
    *<h:outputText value="#{item.uname}" id="ot4"/>*
    *</h:column>*
    *<f:facet name="footer">*
    *<h:outputText value="The End" id="ot3"/>*
    *</f:facet>*
    *</h:dataTable>*
    *</center>*
    *</af:document>*
    *</f:view>*
    but nothing is appear in my table
    I know that there is something wrong in calling the binding object
    I need help pls and where can i find some help to deal with another tag types
    thanks

    i dragged the "perInfoAll" from my "Data Controls" and choosed adf table (even I know that new table with adf tags well be generated and i want table with jsf tags)
    and this code is generated
    *<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"*
    *"http://www.w3.org/TR/html4/loose.dtd">*
    *<%@ page contentType="text/html;charset=UTF-8"%>*
    *<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>*
    *<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>*
    *<%@ taglib uri="http://xmlns.oracle.com/adf/faces/rich" prefix="af"%>*
    *<f:view>*
    *<af:document id="d1">*
    *<af:messages id="m1"/>*
    *<af:form id="f1">*
    *<af:table value="#{bindings.perInfoAll1.collectionModel}" var="row"*
    *rows="#{bindings.perInfoAll1.rangeSize}"*
    *emptyText="#{bindings.perInfoAll1.viewable ? 'No data to display.' : 'Access Denied.'}"*
    *fetchSize="#{bindings.perInfoAll1.rangeSize}"*
    *rowBandingInterval="0"*
    *selectionListener="#{bindings.perInfoAll1.collectionModel.makeCurrent}"*
    *rowSelection="multiple" id="t1">*
    *<af:column sortProperty="uname" sortable="false"*
    *headerText="#{bindings.perInfoAll1.hints.uname.label}"*
    *id="c1">*
    *<af:inputText value="#{row.bindings.uname.inputValue}"*
    *label="#{bindings.perInfoAll1.hints.uname.label}"*
    *required="#{bindings.perInfoAll1.hints.uname.mandatory}"*
    *columns="#{bindings.perInfoAll1.hints.uname.displayWidth}"*
    *maximumLength="#{bindings.perInfoAll1.hints.uname.precision}"*
    *shortDesc="#{bindings.perInfoAll1.hints.uname.tooltip}"*
    *id="it3">*
    *<f:validator binding="#{row.bindings.uname.validator}"/>*
    *</af:inputText>*
    *</af:column>*
    *<af:column sortProperty="firstName" sortable="false"*
    *headerText="#{bindings.perInfoAll1.hints.firstName.label}"*
    *id="c2">*
    *<af:inputText value="#{row.bindings.firstName.inputValue}"*
    *label="#{bindings.perInfoAll1.hints.firstName.label}"*
    *required="#{bindings.perInfoAll1.hints.firstName.mandatory}"*
    *columns="#{bindings.perInfoAll1.hints.firstName.displayWidth}"*
    *maximumLength="#{bindings.perInfoAll1.hints.firstName.precision}"*
    *shortDesc="#{bindings.perInfoAll1.hints.firstName.tooltip}"*
    *id="it2">*
    *<f:validator binding="#{row.bindings.firstName.validator}"/>*
    *</af:inputText>*
    *</af:column>*
    *<af:column sortProperty="lastName" sortable="false"*
    *headerText="#{bindings.perInfoAll1.hints.lastName.label}"*
    *id="c3">*
    *<af:inputText value="#{row.bindings.lastName.inputValue}"*
    *label="#{bindings.perInfoAll1.hints.lastName.label}"*
    *required="#{bindings.perInfoAll1.hints.lastName.mandatory}"*
    *columns="#{bindings.perInfoAll1.hints.lastName.displayWidth}"*
    *maximumLength="#{bindings.perInfoAll1.hints.lastName.precision}"*
    *shortDesc="#{bindings.perInfoAll1.hints.lastName.tooltip}"*
    *id="it1">*
    *<f:validator binding="#{row.bindings.lastName.validator}"/>*
    *</af:inputText>*
    *</af:column>*
    *</af:table>*
    *</af:form>*
    *</af:document>*
    *</f:view>*
    but when run it i see the following errors
    *Class oracle.adf.model.adapter.bean.BeanDataControl can not access a member of class nl.amis.hrm.EmpManager with modifiers "private"*
    *Object EmpManager of type DataControl is not found.*
    *java.lang.NullPointerException*
    *Class oracle.adf.model.adapter.bean.BeanDataControl can not access a member of class nl.amis.hrm.EmpManager with modifiers "private"*
    *Object EmpManager of type DataControl is not found.*
    *java.lang.NullPointerException*
    :(

  • View Object to read data from a java file

    Hi,
    I am using JDeveloper 11.1.1.4 and ADF-BC in my application.
    For one of my view objects , I want the data to be read from a java file which exposes some method to return a collection.
    I cannot use a static view object in this case.
    Please suggest the best way to implement this requirement.Basically build a view object that should read data from a java file.
    Thanks,
    Praveen

    Depending on your use case you can either use a programmatic VO or directly expose the JV class as a data control.
    http://docs.oracle.com/cd/E18941_01/tutorials/jdtut_11r2_36/jdtut_11r2_36.html

  • Import statement in .java files and .jsp files

    Guys I have few mysteries about this import statement.
    Please correct me if I am wrong.
    1)Suppose if I have a folder c:\SourceFolder it has one.java and two.java files.If I compile one.java then one.class files is created in c:\ClassFolder .Now two.java uses one of the method of one.java,and without using import statement I am able to compile two.java, and two.class file is created in c:\ClassFolder.I assume that the path of one.class was taken from the CLASSPATH environment variable,hence I there was no need for import statement .........am i right ?
    BUT... in My.jsp,which is in C:\JspFolder, if I want to use one.class,then I have to specifically import the class I want to use.That is i have to say
    <%@page import="one"%>
    and since the classpath is C:\ClassFolder ,it finds one.class in the C:\ClassFolder.(Note that My.class is created in a folder different from c:\ClassFolder )
    But I am wondering why was there no need for me to import one.class in two.java.
    (Note I am using JDeveloper and Apache server)
    Please help.
    In this case the pSo I am wondering in JSP why it doesn't take the class I am looking for from the classpath .
    Help.

    You have to understand Java scoping rules. In the 1st scenario with the two Java files I am guessing neither one of them begins with a package statement. This means that they belong to the default package. When you compile the compiler uses the classpath to resolve method calls looking in the default package since there was no import statement specified in two.java. JSP is a little different. Now I just read this here in these forums a couple of days ago. Since the classfiles generated from the JSP files are not in the CLASSPATH they are loaded by a different classloader. This is why you have to import all references to all classes in the default package.

  • Import statement in .java files and .jsp files ..correction

    Guys I have few mysteries about this import statement.
    Please correct me if I am wrong.
    1)Suppose if I have a folder c:\SourceFolder it has one.java and two.java files.If I compile one.java then one.class files is created in c:\ClassFolder .Now two.java uses one of the method of one.java,and without using import statement in two.java I am able to compile two.java, and two.class file is created in c:\ClassFolder.I assume that the path of one.class was taken from the CLASSPATH environment variable,hence I there was no need for import statement .........am i right ?
    BUT... in My.jsp,which is in C:\JspFolder, if I want to use one.class,then I have to specifically import one.class in My.jsp .That is i have to say
    <%@page import="one"%>
    in My.jsp.
    and since the classpath is C:\ClassFolder ,it finds one.class in the C:\ClassFolder and MyJsp is compiled sucessfully.(Note that My.class is created in a folder different from c:\ClassFolder )
    But I am wondering why was there no need for me to import one.class in two.java.
    (Note I am using JDeveloper and Apache server)
    Please help.

    It has to do with packages. Most java classes are in a package, the name of which must conform to its place on the filesystem relative to the classpath. By that I mean that if you have com.mystuff.One.java, it must be in a folder com/mystuff where com is located somewhere in the classpath.
    What you've done is a little different. I'm assuming a couple of things:
    1. you have no package declaration at the top of one.java or two.java
    2. you have the current directory "." in your classpath.
    Java has the concept of the "default package", which covers classes without a declared package, and in your case is the current directory.
    So when you're in c:\sourcefolder and run the compiler, then "."="c:\sourcefolder", and that directory is part of the default package. No import statements are necessary for classes that are in the same package. This is why two.java can call methods in one.java without an import statement.
    When you run your jsp, the "current directory" part of your classpath is not c:\sourcefolder, but some other value (probably the directory you start your jsp engine from) You will have to import all non-java-library classes because the jsp itself becomes a java class, with a package that is determined by the jsp engine.

  • Can not see the design view nor the java file in CentOS

    Hi all. I've recently installed JSC2 in CentOS. I find this tool really useful. But I have a problem with the design view and the java file view. At the beginning, when I first create a Page1.jsp, I can see the design view and the java view with no problem. I run apps correctly. But after a while, I get a "null pointer exception" error and I am able to see only the jsp view, not the others. I don't even have the option to see the Design and Java views. And the page icon in the project window appears to be darker than a well working page. I'm not really sure what sequence of actions I do to get this error, it just suddenly happens. What I've done so far in JSC2 is to link to pages in the Page Navigation view. It works fine for a while, but after a while I get the error I've described.

    Yes, if I do that It happens the same. I've tried everything. Now I'm using Window$ 2000 and it works properly. Thanks anyway.

  • Corrupt Dock File?

    Hi,
    So on my dock, I have my Applications Folder on it to use as a shortcut, but just recently, it started to display two of every application. See my picture:
    I also have my Downloads Folder on my Dock. When I drag things from the Downloads folder into the trash can, nothing happens. But then when I click +Show In Finder+, it shows the file as deleted.
    So it seems my Dock is not refreshing or something? So what I did to fix it was just remove the Applications and Downloads Folders from the Dock, and drag the Applications and Downloads folder from my hard drive to the dock. But everytime I log back in or download something else, the problem will arise again.
    Do I have a corrupt dock file? I didn't want to try messing with that until I consulted +Apple Discussions+ first.
    Thanks, Alex

    if recreating those stacks doesn't help try resetting your dock preference file. delete the file /users/user/library/preferences/com.apple.dock.plist and enter the following terminal command
    killall Dock
    your dock will be rest to the default. see if the problem goes away.

Maybe you are looking for

  • ITunes latest update 10.5 affects Snow Leopard OSX 10.6.8

    MacBook Pro, Mac OS X (10.6.8)I have a couple year old Macbok pro with Intel Processor. I am running the latest version of Snow Leopard 10.6.8.  After updating to the new iTunes version 10.5, two of my three USB Jump drives would no longer function.

  • Photoshop 32bits does not start up anymore on Windows 7 64bits.

    This is the situation: We have 2 PCs that have been configured identically, with the exception of a scanner (canonScan 9950F) attached to the computer and the 32 bits twain scanner driver installed. Both PCs worked correctly, the one with the scanner

  • Pan and Zoom (Ken Burns Effect)

    Does iDVD 06 support the Ken Burns Effect? When I import a Slide Show from iPhoto to iDVD it looses the transitions and the pan and zoom features. I can add the transitions back through iDVD, but I can't find anywhere to add the Ken Burns effect back

  • Changin gateway hostname in SMGW

    Dear all, This is an issue with SM51 TCODE. While accessing the central instance, it displays value of the application server in the display tab at the bottom right IE the value of the current instance. does not shift. So in our work around analysis,

  • Problems ressources bundles in a jar

    Hi ! I have a ".propeties" file wich I acces from a java application. Launched from Eclipse : no prb ! Launched form a exectutable jar : MissingRessourcesException. But the ressource is in the jar ! Here is the code : import java.util.Locale; import