java.util.zip.ZipException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • Android ZipException
    via Stack Overflow by Tdonut
    ,
  • Erreur lors de la compilation d'un projet importé
    via by Unknown author,
  • After downloading 1.2.2 from http://s3.amazonaws.com/dist.springframework.org/release/ROO/spring-roo-1.2.2.RELEASE.zip Ran the script for expenses, script reported numerous tailoring errors such as {code} field reference --type Employee supervisor Error tailoring, cancelled command execution: You cannot add more than one default option ('supervisor') in a single command ... field number --type java.lang.Double amount Error tailoring, cancelled command execution: You cannot add more than one default option ('amount') in a single command {code} On running mvn gwt:run receive the following error on launching in my default browser (chrome): {code} HTTP ERROR: 503 SERVICE_UNAVAILABLE RequestURI=/ApplicationScaffold.html Powered by jetty:// {code} Shell std out is: {code} $ mvn gwt:run [INFO] Scanning for projects... [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building extrack 0.1.0.BUILD-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] >>> gwt-maven-plugin:2.2.0:run (default-cli) @ extrack >>> [INFO] [INFO] --- aspectj-maven-plugin:1.2:compile (default) @ extrack --- [WARNING] advice defined in org.springframework.mock.staticmock.AnnotationDrivenStaticEntityMockingControl has not been applied [Xlint:adviceDidNotMatch] [WARNING] advice defined in org.springframework.mock.staticmock.AbstractMethodMockingControl has not been applied [Xlint:adviceDidNotMatch] [WARNING] advice defined in org.springframework.scheduling.aspectj.AbstractAsyncExecutionAspect has not been applied [Xlint:adviceDidNotMatch] [INFO] [INFO] --- maven-resources-plugin:2.5:resources (default-resources) @ extrack --- [debug] execute contextualize [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 4 resources [INFO] [INFO] --- maven-compiler-plugin:2.4:compile (default-compile) @ extrack --- [INFO] Nothing to compile - all classes are up to date [INFO] [INFO] --- exec-maven-plugin:1.2:exec (default) @ extrack --- error: error reading /Users/nigelthomas/.m2/repository/org/springframework/spring-jdbc/3.1.1.RELEASE/spring-jdbc-3.1.1.RELEASE.jar; cannot read zip file entry [INFO] [INFO] <<< gwt-maven-plugin:2.2.0:run (default-cli) @ extrack <<< [INFO] [INFO] --- gwt-maven-plugin:2.2.0:run (default-cli) @ extrack --- [INFO] create exploded Jetty webapp in /Users/nigelthomas/springsource/spring-roo-1.2.2.RELEASE/samples/expenses/target/extrack-0.1.0.BUILD-SNAPSHOT [ERROR] Aug 21 20:48:50 Nigels-MacBook-Pro-2.local java[19938] <Error>: CGContextGetCTM: invalid context 0x0 [ERROR] Aug 21 20:48:50 Nigels-MacBook-Pro-2.local java[19938] <Error>: CGContextSetBaseCTM: invalid context 0x0 [ERROR] Aug 21 20:48:50 Nigels-MacBook-Pro-2.local java[19938] <Error>: CGContextGetCTM: invalid context 0x0 [ERROR] Aug 21 20:48:50 Nigels-MacBook-Pro-2.local java[19938] <Error>: CGContextSetBaseCTM: invalid context 0x0 [INFO] 2012-08-21 20:48:53,008 [main] INFO org.springframework.web.context.ContextLoader - Root WebApplicationContext: initialization started [INFO] 2012-08-21 20:48:53,113 [main] INFO org.springframework.web.context.support.XmlWebApplicationContext - Refreshing Root WebApplicationContext: startup date [Tue Aug 21 20:48:53 BST 2012]; root of context hierarchy [INFO] 2012-08-21 20:48:53,197 [main] INFO org.springframework.beans.factory.xml.XmlBeanDefinitionReader - Loading XML bean definitions from file [/Users/nigelthomas/springsource/spring-roo-1.2.2.RELEASE/samples/expenses/target/extrack-0.1.0.BUILD-SNAPSHOT/WEB-INF/classes/META-INF/spring/applicationContext.xml] [INFO] 2012-08-21 20:48:53,238 [main] ERROR org.springframework.web.context.ContextLoader - Context initialization failed [INFO] org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from file [/Users/nigelthomas/springsource/spring-roo-1.2.2.RELEASE/samples/expenses/target/extrack-0.1.0.BUILD-SNAPSHOT/WEB-INF/classes/META-INF/spring/applicationContext.xml]; nested exception is java.lang.IllegalStateException: Unable to load schema mappings from location [META-INF/spring.schemas] [INFO] at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:412) [INFO] at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:334) [INFO] at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:302) [INFO] at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:174) [INFO] at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:209) [INFO] at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:180) [INFO] at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:125) [INFO] at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:94) [INFO] at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:131) [INFO] at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:522) [INFO] at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:436) [INFO] at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:385) [INFO] at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:284) [INFO] at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:111) [INFO] at org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.java:543) [INFO] at org.mortbay.jetty.servlet.Context.startContext(Context.java:136) [INFO] at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1220) [INFO] at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:513) [INFO] at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:448) [INFO] at com.google.gwt.dev.shell.jetty.JettyLauncher$WebAppContextWithReload.doStart(JettyLauncher.java:468) [INFO] at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39) [INFO] at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130) [INFO] at org.mortbay.jetty.handler.RequestLogHandler.doStart(RequestLogHandler.java:115) [INFO] at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39) [INFO] at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130) [INFO] at org.mortbay.jetty.Server.doStart(Server.java:222) [INFO] at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39) [INFO] at com.google.gwt.dev.shell.jetty.JettyLauncher.start(JettyLauncher.java:672) [INFO] at com.google.gwt.dev.DevMode.doStartUpServer(DevMode.java:509) [INFO] at com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java:1068) [INFO] at com.google.gwt.dev.DevModeBase.run(DevModeBase.java:811) [INFO] at com.google.gwt.dev.DevMode.main(DevMode.java:311) [INFO] Caused by: java.lang.IllegalStateException: Unable to load schema mappings from location [META-INF/spring.schemas] [INFO] at org.springframework.beans.factory.xml.PluggableSchemaResolver.getSchemaMappings(PluggableSchemaResolver.java:153) [INFO] at org.springframework.beans.factory.xml.PluggableSchemaResolver.resolveEntity(PluggableSchemaResolver.java:110) [INFO] at org.springframework.beans.factory.xml.DelegatingEntityResolver.resolveEntity(DelegatingEntityResolver.java:85) [INFO] at org.springframework.beans.factory.xml.ResourceEntityResolver.resolveEntity(ResourceEntityResolver.java:74) [INFO] at com.sun.org.apache.xerces.internal.util.EntityResolverWrapper.resolveEntity(EntityResolverWrapper.java:107) [INFO] at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.resolveEntity(XMLEntityManager.java:1098) [INFO] at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaLoader.resolveDocument(XMLSchemaLoader.java:599) [INFO] at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.findSchemaGrammar(XMLSchemaValidator.java:2438) [INFO] at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.handleStartElement(XMLSchemaValidator.java:1788) [INFO] at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.startElement(XMLSchemaValidator.java:711) [INFO] at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(XMLNSDocumentScannerImpl.java:400) [INFO] at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl$NSContentDriver.scanRootElementHook(XMLNSDocumentScannerImpl.java:626) [INFO] at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:3104) [INFO] at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDriver.next(XMLDocumentScannerImpl.java:921) [INFO] at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:647) [INFO] at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:140) [INFO] at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:511) [INFO] at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:808) [INFO] at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737) [INFO] at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:119) [INFO] at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:232) [INFO] at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:284) [INFO] at org.springframework.beans.factory.xml.DefaultDocumentLoader.loadDocument(DefaultDocumentLoader.java:75) [INFO] at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:388) [INFO] ... 31 more [INFO] Caused by: java.util.zip.ZipException: invalid LOC header (bad signature) [INFO] at java.util.zip.ZipFile.read(Native Method) [INFO] at java.util.zip.ZipFile.access$1200(ZipFile.java:31) [INFO] at java.util.zip.ZipFile$ZipFileInputStream.read(ZipFile.java:459) [INFO] at java.util.zip.ZipFile$1.fill(ZipFile.java:242) [INFO] at java.util.zip.InflaterInputStream.read(InflaterInputStream.java:141) [INFO] at java.io.FilterInputStream.read(FilterInputStream.java:116) [INFO] at java.io.FilterInputStream.read(FilterInputStream.java:90) [INFO] at java.util.Properties$LineReader.readLine(Properties.java:418) [INFO] at java.util.Properties.load0(Properties.java:337) [INFO] at java.util.Properties.load(Properties.java:325) [INFO] at org.springframework.core.io.support.PropertiesLoaderUtils.loadAllProperties(PropertiesLoaderUtils.java:112) [INFO] at org.springframework.beans.factory.xml.PluggableSchemaResolver.getSchemaMappings(PluggableSchemaResolver.java:144) [INFO] ... 54 more {code}
    via by Nigel V Thomas,
  • After downloading 1.2.2 from http://s3.amazonaws.com/dist.springframework.org/release/ROO/spring-roo-1.2.2.RELEASE.zip Ran the script for expenses, script reported numerous tailoring errors such as {code} field reference --type Employee supervisor Error tailoring, cancelled command execution: You cannot add more than one default option ('supervisor') in a single command ... field number --type java.lang.Double amount Error tailoring, cancelled command execution: You cannot add more than one default option ('amount') in a single command {code} On running mvn gwt:run receive the following error on launching in my default browser (chrome): {code} HTTP ERROR: 503 SERVICE_UNAVAILABLE RequestURI=/ApplicationScaffold.html Powered by jetty:// {code} Shell std out is: {code} $ mvn gwt:run [INFO] Scanning for projects... [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building extrack 0.1.0.BUILD-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] >>> gwt-maven-plugin:2.2.0:run (default-cli) @ extrack >>> [INFO] [INFO] --- aspectj-maven-plugin:1.2:compile (default) @ extrack --- [WARNING] advice defined in org.springframework.mock.staticmock.AnnotationDrivenStaticEntityMockingControl has not been applied [Xlint:adviceDidNotMatch] [WARNING] advice defined in org.springframework.mock.staticmock.AbstractMethodMockingControl has not been applied [Xlint:adviceDidNotMatch] [WARNING] advice defined in org.springframework.scheduling.aspectj.AbstractAsyncExecutionAspect has not been applied [Xlint:adviceDidNotMatch] [INFO] [INFO] --- maven-resources-plugin:2.5:resources (default-resources) @ extrack --- [debug] execute contextualize [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 4 resources [INFO] [INFO] --- maven-compiler-plugin:2.4:compile (default-compile) @ extrack --- [INFO] Nothing to compile - all classes are up to date [INFO] [INFO] --- exec-maven-plugin:1.2:exec (default) @ extrack --- error: error reading /Users/nigelthomas/.m2/repository/org/springframework/spring-jdbc/3.1.1.RELEASE/spring-jdbc-3.1.1.RELEASE.jar; cannot read zip file entry [INFO] [INFO] <<< gwt-maven-plugin:2.2.0:run (default-cli) @ extrack <<< [INFO] [INFO] --- gwt-maven-plugin:2.2.0:run (default-cli) @ extrack --- [INFO] create exploded Jetty webapp in /Users/nigelthomas/springsource/spring-roo-1.2.2.RELEASE/samples/expenses/target/extrack-0.1.0.BUILD-SNAPSHOT [ERROR] Aug 21 20:48:50 Nigels-MacBook-Pro-2.local java[19938] <Error>: CGContextGetCTM: invalid context 0x0 [ERROR] Aug 21 20:48:50 Nigels-MacBook-Pro-2.local java[19938] <Error>: CGContextSetBaseCTM: invalid context 0x0 [ERROR] Aug 21 20:48:50 Nigels-MacBook-Pro-2.local java[19938] <Error>: CGContextGetCTM: invalid context 0x0 [ERROR] Aug 21 20:48:50 Nigels-MacBook-Pro-2.local java[19938] <Error>: CGContextSetBaseCTM: invalid context 0x0 [INFO] 2012-08-21 20:48:53,008 [main] INFO org.springframework.web.context.ContextLoader - Root WebApplicationContext: initialization started [INFO] 2012-08-21 20:48:53,113 [main] INFO org.springframework.web.context.support.XmlWebApplicationContext - Refreshing Root WebApplicationContext: startup date [Tue Aug 21 20:48:53 BST 2012]; root of context hierarchy [INFO] 2012-08-21 20:48:53,197 [main] INFO org.springframework.beans.factory.xml.XmlBeanDefinitionReader - Loading XML bean definitions from file [/Users/nigelthomas/springsource/spring-roo-1.2.2.RELEASE/samples/expenses/target/extrack-0.1.0.BUILD-SNAPSHOT/WEB-INF/classes/META-INF/spring/applicationContext.xml] [INFO] 2012-08-21 20:48:53,238 [main] ERROR org.springframework.web.context.ContextLoader - Context initialization failed [INFO] org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from file [/Users/nigelthomas/springsource/spring-roo-1.2.2.RELEASE/samples/expenses/target/extrack-0.1.0.BUILD-SNAPSHOT/WEB-INF/classes/META-INF/spring/applicationContext.xml]; nested exception is java.lang.IllegalStateException: Unable to load schema mappings from location [META-INF/spring.schemas] [INFO] at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:412) [INFO] at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:334) [INFO] at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:302) [INFO] at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:174) [INFO] at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:209) [INFO] at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:180) [INFO] at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:125) [INFO] at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:94) [INFO] at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:131) [INFO] at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:522) [INFO] at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:436) [INFO] at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:385) [INFO] at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:284) [INFO] at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:111) [INFO] at org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.java:543) [INFO] at org.mortbay.jetty.servlet.Context.startContext(Context.java:136) [INFO] at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1220) [INFO] at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:513) [INFO] at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:448) [INFO] at com.google.gwt.dev.shell.jetty.JettyLauncher$WebAppContextWithReload.doStart(JettyLauncher.java:468) [INFO] at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39) [INFO] at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130) [INFO] at org.mortbay.jetty.handler.RequestLogHandler.doStart(RequestLogHandler.java:115) [INFO] at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39) [INFO] at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130) [INFO] at org.mortbay.jetty.Server.doStart(Server.java:222) [INFO] at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39) [INFO] at com.google.gwt.dev.shell.jetty.JettyLauncher.start(JettyLauncher.java:672) [INFO] at com.google.gwt.dev.DevMode.doStartUpServer(DevMode.java:509) [INFO] at com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java:1068) [INFO] at com.google.gwt.dev.DevModeBase.run(DevModeBase.java:811) [INFO] at com.google.gwt.dev.DevMode.main(DevMode.java:311) [INFO] Caused by: java.lang.IllegalStateException: Unable to load schema mappings from location [META-INF/spring.schemas] [INFO] at org.springframework.beans.factory.xml.PluggableSchemaResolver.getSchemaMappings(PluggableSchemaResolver.java:153) [INFO] at org.springframework.beans.factory.xml.PluggableSchemaResolver.resolveEntity(PluggableSchemaResolver.java:110) [INFO] at org.springframework.beans.factory.xml.DelegatingEntityResolver.resolveEntity(DelegatingEntityResolver.java:85) [INFO] at org.springframework.beans.factory.xml.ResourceEntityResolver.resolveEntity(ResourceEntityResolver.java:74) [INFO] at com.sun.org.apache.xerces.internal.util.EntityResolverWrapper.resolveEntity(EntityResolverWrapper.java:107) [INFO] at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.resolveEntity(XMLEntityManager.java:1098) [INFO] at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaLoader.resolveDocument(XMLSchemaLoader.java:599) [INFO] at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.findSchemaGrammar(XMLSchemaValidator.java:2438) [INFO] at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.handleStartElement(XMLSchemaValidator.java:1788) [INFO] at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.startElement(XMLSchemaValidator.java:711) [INFO] at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(XMLNSDocumentScannerImpl.java:400) [INFO] at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl$NSContentDriver.scanRootElementHook(XMLNSDocumentScannerImpl.java:626) [INFO] at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:3104) [INFO] at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDriver.next(XMLDocumentScannerImpl.java:921) [INFO] at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:647) [INFO] at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:140) [INFO] at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:511) [INFO] at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:808) [INFO] at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737) [INFO] at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:119) [INFO] at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:232) [INFO] at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:284) [INFO] at org.springframework.beans.factory.xml.DefaultDocumentLoader.loadDocument(DefaultDocumentLoader.java:75) [INFO] at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:388) [INFO] ... 31 more [INFO] Caused by: java.util.zip.ZipException: invalid LOC header (bad signature) [INFO] at java.util.zip.ZipFile.read(Native Method) [INFO] at java.util.zip.ZipFile.access$1200(ZipFile.java:31) [INFO] at java.util.zip.ZipFile$ZipFileInputStream.read(ZipFile.java:459) [INFO] at java.util.zip.ZipFile$1.fill(ZipFile.java:242) [INFO] at java.util.zip.InflaterInputStream.read(InflaterInputStream.java:141) [INFO] at java.io.FilterInputStream.read(FilterInputStream.java:116) [INFO] at java.io.FilterInputStream.read(FilterInputStream.java:90) [INFO] at java.util.Properties$LineReader.readLine(Properties.java:418) [INFO] at java.util.Properties.load0(Properties.java:337) [INFO] at java.util.Properties.load(Properties.java:325) [INFO] at org.springframework.core.io.support.PropertiesLoaderUtils.loadAllProperties(PropertiesLoaderUtils.java:112) [INFO] at org.springframework.beans.factory.xml.PluggableSchemaResolver.getSchemaMappings(PluggableSchemaResolver.java:144) [INFO] ... 54 more {code}
    via by Nigel V Thomas,
    • java.util.zip.ZipException: invalid code lengths set" error when I try to get a bin file from the assets. I can not figure out how to fix it or what it means. Please help. My code: SentenceModel model = null; InputStream modelIn = null; try { modelIn = IOUtils.toInputStream(ReadFromfile("en-sent.bin", context)); model = new SentenceModel(modelIn); } catch (IOException e) { e.printStackTrace(); } finally { if (modelIn != null) { try { modelIn.close(); } catch (IOException e) { } } } Stack trace: 08-04 11:34:14.461 21060-21060/com.gigstudios.newssummary W/System.err: java.util.zip.ZipException: invalid code lengths set 08-04 11:34:14.461 21060-21060/com.gigstudios.newssummary W/System.err: at java.util.zip.ZipInputStream.read(ZipInputStream.java:360) 08-04 11:34:14.461 21060-21060/com.gigstudios.newssummary W/System.err: at java.io.InputStreamReader.read(InputStreamReader.java:233) 08-04 11:34:14.461 21060-21060/com.gigstudios.newssummary W/System.err: at java.io.BufferedReader.fillBuf(BufferedReader.java:145) 08-04 11:34:14.461 21060-21060/com.gigstudios.newssummary W/System.err: at java.io.BufferedReader.readChar(BufferedReader.java:263) 08-04 11:34:14.461 21060-21060/com.gigstudios.newssummary W/System.err: at java.io.BufferedReader.read(BufferedReader.java:253) 08-04 11:34:14.461 21060-21060/com.gigstudios.newssummary W/System.err: at java.util.Properties.load(Properties.java:289) at java.util.Properties.load(Properties.java:248) at opennlp.tools.util.model.PropertiesSerializer.create(PropertiesSerializer.java:34) at opennlp.tools.util.model.PropertiesSerializer.create(PropertiesSerializer.java:29) at opennlp.tools.util.model.BaseModel.loadModel(BaseModel.java:241) at opennlp.tools.util.model.BaseModel.<init>(BaseModel.java:179) at opennlp.tools.sentdetect.SentenceModel.<init>(SentenceModel.java:96) at com.gigstudios.newssummary.WordCounter.makeSentences(WordCounter.java:61) at com.gigstudios.newssummary.Article.<init>(Article.java:19) at com.gigstudios.newssummary.ArticleReceiver.receiveNewsArticles(ArticleReceiver.java:87) at com.gigstudios.newssummary.ArticleReceiver.<init>(ArticleReceiver.java:37) at com.gigstudios.newssummary.MainActivity.fetchNews(MainActivity.java:114) at com.gigstudios.newssummary.MainActivity$1.run(MainActivity.java:52) at android.os.Handler.handleCallback(Handler.java:746) at android.os.Handler.dispatchMessage(Handler.java:95) at android.os.Looper.loop(Looper.java:148) at android.app.ActivityThread.main(ActivityThread.java:5443) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:728) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
    No Bugmate found.