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

Issue instrumenting project with drools #247

Closed
saurabh256 opened this Issue Jul 26, 2017 · 2 comments

Comments

Projects
None yet
2 participants
@saurabh256

saurabh256 commented Jul 26, 2017

When i click on instrumentation tab for the project attached with Glowroot agent. I get the following exception on the back end. Even the front end UI also shows the same stack trace. This is happening only for those projects where we are using Drools engine and others are working fine. Due to corporate security restriction I am only putting generic stack trace and not all. Please let me know if this is useful to diagnose problem.

The project is spring-boot (version 1.5.1 )based and Drools version is 6.4 and even with 7.1 I get same error.

java.lang.RuntimeException: Unable to get bytes for: \XXXX\XXXX\XXXXXX\target\classes
at org.drools.compiler.kie.builder.impl.FileKieModule.getBytes(FileKieModule.java:66)
at org.drools.compiler.kie.builder.impl.AbstractKieModule.hasResource(AbstractKieModule.java:346)
at org.drools.compiler.kie.builder.impl.AbstractKieModule$KieModuleResourceProvider.getResource(AbstractKieModule.java:552)
at org.drools.core.common.ProjectClassLoader.getResources(ProjectClassLoader.java:285)
at java.lang.ClassLoader.getResources(ClassLoader.java:1138)
at org.glowroot.agent.live.ClasspathCache.getURLs(ClasspathCache.java:321)
at org.glowroot.agent.live.ClasspathCache.updateCache(ClasspathCache.java:265)
at org.glowroot.agent.live.ClasspathCache.updateCache(ClasspathCache.java:164)
at org.glowroot.agent.live.ClasspathCache.getMatchingClassNames(ClasspathCache.java:99)
at org.glowroot.agent.live.LiveWeavingServiceImpl.getMatchingClassNames(LiveWeavingServiceImpl.java:99)
at org.glowroot.agent.shaded.glowroot.ui.InstrumentationConfigJsonService.getMatchingClassNames(InstrumentationConfigJsonService.java:147)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.glowroot.agent.shaded.glowroot.ui.CommonHandler.callMethod(CommonHandler.java:550)
at org.glowroot.agent.shaded.glowroot.ui.CommonHandler.handleJsonServiceMappings(CommonHandler.java:294)
at org.glowroot.agent.shaded.glowroot.ui.CommonHandler.handleRequest(CommonHandler.java:211)
at org.glowroot.agent.shaded.glowroot.ui.CommonHandler.handle(CommonHandler.java:160)
at org.glowroot.agent.shaded.glowroot.ui.HttpServerHandler.channelRead(HttpServerHandler.java:128)
at org.glowroot.agent.shaded.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362)
at org.glowroot.agent.shaded.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348)
at org.glowroot.agent.shaded.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340)
at org.glowroot.agent.shaded.netty.channel.ChannelInboundHandlerAdapter.channelRead(ChannelInboundHandlerAdapter.java:86)
at org.glowroot.agent.shaded.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362)
at org.glowroot.agent.shaded.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348)
at org.glowroot.agent.shaded.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340)
at org.glowroot.agent.shaded.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:102)
at org.glowroot.agent.shaded.netty.handler.codec.MessageToMessageCodec.channelRead(MessageToMessageCodec.java:111)
at org.glowroot.agent.shaded.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362)
at org.glowroot.agent.shaded.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348)
at org.glowroot.agent.shaded.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340)
at org.glowroot.agent.shaded.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:102)
at org.glowroot.agent.shaded.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362)
at org.glowroot.agent.shaded.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348)
at org.glowroot.agent.shaded.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340)
at org.glowroot.agent.shaded.netty.channel.CombinedChannelDuplexHandler$DelegatingChannelHandlerContext.fireChannelRead(CombinedChannelDuplexHandler.java:438)
at org.glowroot.agent.shaded.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:310)
at org.glowroot.agent.shaded.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:284)
at org.glowroot.agent.shaded.netty.channel.CombinedChannelDuplexHandler.channelRead(CombinedChannelDuplexHandler.java:253)
at org.glowroot.agent.shaded.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362)
at org.glowroot.agent.shaded.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348)
at org.glowroot.agent.shaded.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340)
at org.glowroot.agent.shaded.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1334)
at org.glowroot.agent.shaded.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362)
at org.glowroot.agent.shaded.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348)
at org.glowroot.agent.shaded.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:926)
at org.glowroot.agent.shaded.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:134)
at org.glowroot.agent.shaded.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:644)
at org.glowroot.agent.shaded.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:579)
at org.glowroot.agent.shaded.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:496)
at org.glowroot.agent.shaded.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:458)
at org.glowroot.agent.shaded.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:858)
at java.lang.Thread.run(Thread.java:745)

Regards
Saurabh

@trask trask closed this in e399292 Jul 27, 2017

@trask

This comment has been minimized.

Show comment
Hide comment
@trask

trask Jul 27, 2017

Member

Hi @saurabh256, thanks for reporting this! I think it should be fixed now in the latest snapshot release glowroot-agent-0.9.23-SNAPSHOT-dist.zip.

Member

trask commented Jul 27, 2017

Hi @saurabh256, thanks for reporting this! I think it should be fixed now in the latest snapshot release glowroot-agent-0.9.23-SNAPSHOT-dist.zip.

@trask trask added the bug label Jul 31, 2017

@trask trask added this to the v0.9.23 milestone Jul 31, 2017

@saurabh256

This comment has been minimized.

Show comment
Hide comment
@saurabh256

saurabh256 Aug 8, 2017

Thanks for the prompt fix ..the very next day of reporting this. I really love using glowroot.

saurabh256 commented Aug 8, 2017

Thanks for the prompt fix ..the very next day of reporting this. I really love using glowroot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment