Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

java.util.zip.ZipException: zip END header not found #1

Open
oOhyeahh opened this issue Oct 18, 2021 · 0 comments
Open

java.util.zip.ZipException: zip END header not found #1

oOhyeahh opened this issue Oct 18, 2021 · 0 comments

Comments

@oOhyeahh
Copy link

Hi there. I try to follow the instruction and add sentry to keycloak container. It looks fine when I run make module and make install. Here's the log

keycloak    | [standalone@embedded /] /subsystem=logging/custom-handler=sentry:add(name=io.sentry,class=io.sentry.jul.SentryHandler, module=io.sentry, level=ALL,enabled=true)
keycloak    | {"outcome" => "success"}
keycloak    | [standalone@embedded /] /subsystem=logging/root-logger=ROOT:add-handler(name=sentry)
keycloak    | {"outcome" => "success"}
keycloak    | [standalone@embedded /] /subsystem=logging/root-logger=ROOT:read-resource
keycloak    | {
keycloak    |     "outcome" => "success",
keycloak    |     "result" => {
keycloak    |         "filter" => undefined,
keycloak    |         "filter-spec" => undefined,
keycloak    |         "handlers" => [
keycloak    |             "CONSOLE",
keycloak    |             "sentry"
keycloak    |         ],
keycloak    |         "level" => expression "${env.ROOT_LOGLEVEL:INFO}"
keycloak    |     }
keycloak    | }
keycloak    | [standalone@embedded /] stop-embedded-server

However, when it finish the start up script and start keycloak, it gives me the following error. Any idea about the error?

keycloak    | 02:39:41,580 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) WFLYCTL0013: Operation ("add") failed - address: ([
keycloak    |     ("subsystem" => "logging"),
keycloak    |     ("custom-handler" => "sentry")
keycloak    | ]): java.lang.IllegalArgumentException: WFLYLOG0019: Failed to load module 'io.sentry' for handler 'sentry'
keycloak    | 	at [email protected]//org.jboss.as.logging.handlers.HandlerOperations$HandlerAddOperationStepHandler.createHandlerConfiguration(HandlerOperations.java:279)
keycloak    | 	at [email protected]//org.jboss.as.logging.handlers.HandlerOperations$HandlerAddOperationStepHandler.performRuntime(HandlerOperations.java:193)
keycloak    | 	at [email protected]//org.jboss.as.logging.LoggingOperations$LoggingAddOperationStepHandler.performRuntime(LoggingOperations.java:216)
keycloak    | 	at [email protected]//org.jboss.as.controller.AbstractAddStepHandler.performRuntime(AbstractAddStepHandler.java:343)
keycloak    | 	at [email protected]//org.jboss.as.controller.AbstractAddStepHandler$1.execute(AbstractAddStepHandler.java:164)
keycloak    | 	at [email protected]//org.jboss.as.controller.AbstractOperationContext.executeStep(AbstractOperationContext.java:1040)
keycloak    | 	at [email protected]//org.jboss.as.controller.AbstractOperationContext.processStages(AbstractOperationContext.java:779)
keycloak    | 	at [email protected]//org.jboss.as.controller.AbstractOperationContext.executeOperation(AbstractOperationContext.java:468)
keycloak    | 	at [email protected]//org.jboss.as.controller.OperationContextImpl.executeOperation(OperationContextImpl.java:1415)
keycloak    | 	at [email protected]//org.jboss.as.controller.ModelControllerImpl.boot(ModelControllerImpl.java:529)
keycloak    | 	at [email protected]//org.jboss.as.controller.AbstractControllerService.boot(AbstractControllerService.java:515)
keycloak    | 	at [email protected]//org.jboss.as.controller.AbstractControllerService.boot(AbstractControllerService.java:477)
keycloak    | 	at [email protected]//org.jboss.as.server.ServerService.boot(ServerService.java:459)
keycloak    | 	at [email protected]//org.jboss.as.server.ServerService.boot(ServerService.java:412)
keycloak    | 	at [email protected]//org.jboss.as.controller.AbstractControllerService$1.run(AbstractControllerService.java:416)
keycloak    | 	at java.base/java.lang.Thread.run(Thread.java:829)
keycloak    | Caused by: org.jboss.modules.ModuleLoadException: Error loading module from /opt/jboss/keycloak/modules/io/sentry/main/module.xml
keycloak    | 	at org.jboss.modules.xml.ModuleXmlParser.parseModuleXml(ModuleXmlParser.java:337)
keycloak    | 	at org.jboss.modules.xml.ModuleXmlParser.parseModuleXml(ModuleXmlParser.java:293)
keycloak    | 	at org.jboss.modules.xml.ModuleXmlParser.parseModuleXml(ModuleXmlParser.java:254)
keycloak    | 	at org.jboss.modules.LocalModuleFinder.parseModuleXmlFile(LocalModuleFinder.java:250)
keycloak    | 	at org.jboss.modules.LocalModuleFinder.lambda$findModule$1(LocalModuleFinder.java:195)
keycloak    | 	at java.base/java.security.AccessController.doPrivileged(Native Method)
keycloak    | 	at org.jboss.modules.LocalModuleFinder.findModule(LocalModuleFinder.java:195)
keycloak    | 	at org.jboss.modules.ModuleLoader.findModule0(ModuleLoader.java:700)
keycloak    | 	at org.jboss.modules.ModuleLoader.findModule(ModuleLoader.java:693)
keycloak    | 	at org.jboss.modules.ModuleLoader.loadModuleLocal(ModuleLoader.java:503)
keycloak    | 	at org.jboss.modules.DelegatingModuleLoader.preloadModule(DelegatingModuleLoader.java:57)
keycloak    | 	at org.jboss.modules.ModuleLoader.loadModule(ModuleLoader.java:299)
keycloak    | 	at [email protected]//org.jboss.as.logging.handlers.HandlerOperations$HandlerAddOperationStepHandler.createHandlerConfiguration(HandlerOperations.java:254)
keycloak    | 	... 15 more
keycloak    | Caused by: org.jboss.modules.xml.XmlPullParserException: Failed to add resource root 'sentry-jul-5.2.3.jar' at path 'sentry-jul-5.2.3.jar' (position: END_TAG seen ...<resources>\n        <resource-root path="sentry-jul-5.2.3.jar"/>... @6:53) caused by: java.util.zip.ZipException: zip END header not found
keycloak    | 	at org.jboss.modules.xml.ModuleXmlParser.parseResourceRoot(ModuleXmlParser.java:1121)
keycloak    | 	at org.jboss.modules.xml.ModuleXmlParser.parseResources(ModuleXmlParser.java:932)
keycloak    | 	at org.jboss.modules.xml.ModuleXmlParser.parseModuleContents(ModuleXmlParser.java:697)
keycloak    | 	at org.jboss.modules.xml.ModuleXmlParser.parseDocument(ModuleXmlParser.java:469)
keycloak    | 	at org.jboss.modules.xml.ModuleXmlParser.parseModuleXml(ModuleXmlParser.java:335)
keycloak    | 	... 27 more
keycloak    | Caused by: java.util.zip.ZipException: zip END header not found
keycloak    | 	at java.base/java.util.zip.ZipFile$Source.zerror(ZipFile.java:1581)
keycloak    | 	at java.base/java.util.zip.ZipFile$Source.findEND(ZipFile.java:1476)
keycloak    | 	at java.base/java.util.zip.ZipFile$Source.initCEN(ZipFile.java:1483)
keycloak    | 	at java.base/java.util.zip.ZipFile$Source.<init>(ZipFile.java:1288)
keycloak    | 	at java.base/java.util.zip.ZipFile$Source.get(ZipFile.java:1251)
keycloak    | 	at java.base/java.util.zip.ZipFile$CleanableResource.<init>(ZipFile.java:732)
keycloak    | 	at java.base/java.util.zip.ZipFile$CleanableResource.get(ZipFile.java:849)
keycloak    | 	at java.base/java.util.zip.ZipFile.<init>(ZipFile.java:247)
keycloak    | 	at java.base/java.util.zip.ZipFile.<init>(ZipFile.java:177)
keycloak    | 	at java.base/java.util.jar.JarFile.<init>(JarFile.java:348)
keycloak    | 	at org.jboss.modules.xml.JDKSpecific.getJarFile(JDKSpecific.java:33)
keycloak    | 	at org.jboss.modules.xml.ModuleXmlParser$DefaultResourceRootFactory.createResourceLoader(ModuleXmlParser.java:1618)
keycloak    | 	at org.jboss.modules.LocalModuleFinder.lambda$new$0(LocalModuleFinder.java:103)
keycloak    | 	at org.jboss.modules.xml.ModuleXmlParser.parseResourceRoot(ModuleXmlParser.java:1119)
keycloak    | 	... 31 more
keycloak    |
keycloak    | 02:39:41,587 INFO  [org.jboss.remoting] (MSC service thread 1-2) JBoss Remoting version 5.0.20.Final
keycloak    | 02:39:41,659 FATAL [org.jboss.as.server] (Controller Boot Thread) WFLYSRV0056: Server boot has failed in an unrecoverable manner; exiting. See previous messages for details.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant