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

[Bug] Throw StorageResourceServiceKnativeImpl StorageResourceServiceKnativeImpl when start runtime with start.sh #3595

Closed
2 tasks done
mxsm opened this issue Apr 1, 2023 · 0 comments · Fixed by #3596
Closed
2 tasks done
Labels
bug Something isn't working
Milestone

Comments

@mxsm
Copy link
Member

mxsm commented Apr 1, 2023

Search before asking

  • I had searched in the issues and found no similar issues.

Environment

Linux

EventMesh version

master

What happened

image
when I use start.sh to start runtime. then throw org.apache.eventmesh.spi.ExtensionException: load extension class error

How to reproduce

bash start.sh

Debug logs

2023-04-01 22:20:39,342 INFO  [main] JarExtensionClassLoader(JarExtensionClassLoader.java:132) - load extension class success, extensionType: interface org.apache.eventmesh.trace.api.EventMeshTraceService, extensionClass: class org.apache.eventmesh.tra
ce.zipkin.ZipkinTraceService
2023-04-01 22:20:39,347 INFO  [main] EventMeshExtensionFactory(EventMeshExtensionFactory.java:92) - initialize extension instance success, extensionType: interface org.apache.eventmesh.trace.api.EventMeshTraceService, extensionInstanceName: zipkin
2023-04-01 22:20:39,362 INFO  [main] JarExtensionClassLoader(JarExtensionClassLoader.java:132) - load extension class success, extensionType: interface org.apache.eventmesh.api.storage.StorageResourceService, extensionClass: class org.apache.eventmesh.
storage.kafka.storage.StorageResourceServiceKafkaImpl
2023-04-01 22:20:39,500 pool-1-thread-1 DEBUG Stopping LoggerContext[name=135fbaa4, org.apache.logging.log4j.core.LoggerContext@54a7079e]
2023-04-01 22:20:39,500 pool-1-thread-1 DEBUG Stopping LoggerContext[name=135fbaa4, org.apache.logging.log4j.core.LoggerContext@54a7079e]...
2023-04-01 22:20:39,496 ERROR [main] EventMeshStartup(EventMeshStartup.java:56) - EventMesh start fail.
org.apache.eventmesh.spi.ExtensionException: load extension class error
        at org.apache.eventmesh.spi.loader.JarExtensionClassLoader.lambda$loadResources$1(JarExtensionClassLoader.java:139) ~[eventmesh-spi-1.8.0-release.jar:1.8.0-release]
        at java.util.Hashtable.forEach(Hashtable.java:879) ~[?:1.8.0_342]
        at org.apache.eventmesh.spi.loader.JarExtensionClassLoader.loadResources(JarExtensionClassLoader.java:127) ~[eventmesh-spi-1.8.0-release.jar:1.8.0-release]
        at org.apache.eventmesh.spi.loader.JarExtensionClassLoader.doLoadExtensionClass(JarExtensionClassLoader.java:87) ~[eventmesh-spi-1.8.0-release.jar:1.8.0-release]
        at org.apache.eventmesh.spi.loader.JarExtensionClassLoader.lambda$loadExtensionClass$0(JarExtensionClassLoader.java:69) ~[eventmesh-spi-1.8.0-release.jar:1.8.0-release]
        at java.util.concurrent.ConcurrentHashMap.computeIfAbsent(ConcurrentHashMap.java:1660) ~[?:1.8.0_342]
        at org.apache.eventmesh.spi.loader.JarExtensionClassLoader.loadExtensionClass(JarExtensionClassLoader.java:69) ~[eventmesh-spi-1.8.0-release.jar:1.8.0-release]
        at org.apache.eventmesh.spi.EventMeshExtensionFactory.getExtensionInstanceClass(EventMeshExtensionFactory.java:129) ~[eventmesh-spi-1.8.0-release.jar:1.8.0-release]
        at org.apache.eventmesh.spi.EventMeshExtensionFactory.lambda$getSingletonExtension$0(EventMeshExtensionFactory.java:84) ~[eventmesh-spi-1.8.0-release.jar:1.8.0-release]
        at java.util.concurrent.ConcurrentHashMap.computeIfAbsent(ConcurrentHashMap.java:1660) ~[?:1.8.0_342]
        at org.apache.eventmesh.spi.EventMeshExtensionFactory.getSingletonExtension(EventMeshExtensionFactory.java:83) ~[eventmesh-spi-1.8.0-release.jar:1.8.0-release]
        at org.apache.eventmesh.spi.EventMeshExtensionFactory.getExtension(EventMeshExtensionFactory.java:76) ~[eventmesh-spi-1.8.0-release.jar:1.8.0-release]
        at org.apache.eventmesh.runtime.storage.StorageResource.storageResourceBuilder(StorageResource.java:49) ~[eventmesh-runtime-1.8.0-release.jar:1.8.0-release]
        at java.util.HashMap.computeIfAbsent(HashMap.java:1128) ~[?:1.8.0_342]
        at org.apache.eventmesh.runtime.storage.StorageResource.getInstance(StorageResource.java:45) ~[eventmesh-runtime-1.8.0-release.jar:1.8.0-release]
        at org.apache.eventmesh.runtime.boot.EventMeshServer.<init>(EventMeshServer.java:72) ~[eventmesh-runtime-1.8.0-release.jar:1.8.0-release]
        at org.apache.eventmesh.runtime.boot.EventMeshStartup.main(EventMeshStartup.java:37) [eventmesh-runtime-1.8.0-release.jar:1.8.0-release]
Caused by: java.lang.ClassNotFoundException: org.apache.eventmesh.storage.knative.storage.StorageResourceServiceKnativeImpl
        at java.net.URLClassLoader.findClass(URLClassLoader.java:387) ~[?:1.8.0_342]
        at java.lang.ClassLoader.loadClass(ClassLoader.java:418) ~[?:1.8.0_342]
        at java.lang.ClassLoader.loadClass(ClassLoader.java:351) ~[?:1.8.0_342]
        at org.apache.eventmesh.spi.loader.JarExtensionClassLoader.lambda$loadResources$1(JarExtensionClassLoader.java:131) ~[eventmesh-spi-1.8.0-release.jar:1.8.0-release]
        ... 16 more
2023-04-01 22:20:39,502 pool-1-thread-1 DEBUG Shutting down OutputStreamManager SYSTEM_OUT.false.false
2023-04-01 22:20:39,502 pool-1-thread-1 DEBUG OutputStream closed
2023-04-01 22:20:39,502 pool-1-thread-1 DEBUG Shut down OutputStreamManager SYSTEM_OUT.false.false, all resources released: true
2023-04-01 22:20:39,502 pool-1-thread-1 DEBUG Appender console stopped with status true
2023-04-01 22:20:39,502 pool-1-thread-1 DEBUG Log4j2 ConfigurationScheduler shutting down threads in java.util.concurrent.ScheduledThreadPoolExecutor@648e1b6c[Running, pool size = 1, active threads = 0, queued tasks = 1, completed tasks = 0]
2023-04-01 22:20:39,502 pool-1-thread-1 DEBUG Stopped XmlConfiguration[location=/root/github/eventmesh/dist/conf/log4j2.xml] OK
2023-04-01 22:20:39,503 pool-1-thread-1 DEBUG Stopped LoggerContext[name=135fbaa4, org.apache.logging.log4j.core.LoggerContext@54a7079e] with status true

Are you willing to submit PR?

  • Yes I am willing to submit a PR!
@mxsm mxsm added the bug Something isn't working label Apr 1, 2023
mxsm added a commit to mxsm/incubator-eventmesh that referenced this issue Apr 1, 2023
…eResourceServiceKnativeImpl when start runtime with start.sh
mytang0 added a commit that referenced this issue Apr 2, 2023
[ISSUE #3595]Fix throw StorageResourceServiceKnativeImpl StorageResourceServiceKnativeImpl when start runtime with start.sh
@xwm1992 xwm1992 added this to the 1.9.0 milestone Jun 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
2 participants