question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Application deployment fails when setting trace_methods

See original GitHub issue

Describe the bug Application deployment fails when setting trace_methods to “all”

trace_methods=com.vilant.*#*

Payara 5.183 Oracle java version “1.8.0_172”

Debug logs Attach your debug logs. See the documentation about how to enable debug logging.

Click to expand
[2019-02-04T11:39:47.785+0200] [Payara 5.183] [SEVERE] [] [javax.enterprise.system.tools.deployment.common] [tid: _ThreadID=27 _ThreadName=RunLevelControllerThread-1549273153767] [timeMillis: 1549273187785] [levelValue: 1000] [[
  Exception while invoking class org.glassfish.ejb.startup.EjbDeployer load method
java.lang.RuntimeException: EJB Container initialization error
        at org.glassfish.ejb.startup.EjbApplication.loadContainers(EjbApplication.java:237)
        at org.glassfish.ejb.startup.EjbDeployer.load(EjbDeployer.java:293)
        at org.glassfish.ejb.startup.EjbDeployer.load(EjbDeployer.java:103)
        at org.glassfish.internal.data.ModuleInfo.load(ModuleInfo.java:209)
        at org.glassfish.internal.data.ApplicationInfo.load(ApplicationInfo.java:318)
        at com.sun.enterprise.v3.server.ApplicationLifecycle.prepare(ApplicationLifecycle.java:496)
        at com.sun.enterprise.v3.server.ApplicationLoaderService.processApplication(ApplicationLoaderService.java:418)
        at com.sun.enterprise.v3.server.ApplicationLoaderService.postConstruct(ApplicationLoaderService.java:248)
        at org.jvnet.hk2.internal.ClazzCreator.postConstructMe(ClazzCreator.java:327)
        at org.jvnet.hk2.internal.ClazzCreator.create(ClazzCreator.java:375)
        at org.jvnet.hk2.internal.SystemDescriptor.create(SystemDescriptor.java:487)
        at org.glassfish.hk2.runlevel.internal.AsyncRunLevelContext.findOrCreate(AsyncRunLevelContext.java:305)
        at org.glassfish.hk2.runlevel.RunLevelContext.findOrCreate(RunLevelContext.java:89)
        at org.jvnet.hk2.internal.Utilities.createService(Utilities.java:2126)
        at org.jvnet.hk2.internal.ServiceHandleImpl.getService(ServiceHandleImpl.java:116)
        at org.jvnet.hk2.internal.ServiceHandleImpl.getService(ServiceHandleImpl.java:90)
        at org.glassfish.hk2.runlevel.internal.CurrentTaskFuture$QueueRunner.oneJob(CurrentTaskFuture.java:1237)
        at org.glassfish.hk2.runlevel.internal.CurrentTaskFuture$QueueRunner.run(CurrentTaskFuture.java:1168)
        at org.glassfish.hk2.runlevel.internal.CurrentTaskFuture$UpOneLevel.run(CurrentTaskFuture.java:786)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
        at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.VerifyError: Stack map does not match the one at exception handler 95
Exception Details:
  Location:
    com/vilant/integration/db/Point._persistence_post_clone()Ljava/lang/Object; @95: astore_3
  Reason:
    Type 'com/vilant/integration/db/Point' (current frame, locals[1]) is not assignable to 'co/elastic/apm/agent/impl/transaction/AbstractSpan' (stack map, locals[1])
  Current Frame:
    bci: @84
    flags: { }
    locals: { 'com/vilant/integration/db/Point', 'com/vilant/integration/db/Point', 'com/vilant/integration/db/Point' }
    stack: { 'java/lang/Throwable' }
  Stackmap Frame:
    bci: @95
    flags: { }
    locals: { 'com/vilant/integration/db/Point', 'co/elastic/apm/agent/impl/transaction/AbstractSpan' }
    stack: { 'java/lang/Throwable' }
  Bytecode:
    0x0000000: 014c b200 6ec6 002d b200 6eb6 0074 4d2c
    0x0000010: c700 15b2 006e b600 7812 9eb6 0080 b600
    0x0000020: 834c a700 102c b600 8712 9eb6 008c b600
    0x0000030: 8d4c a700 06b6 0090 2a4d 2cb7 0030 2c01
    0x0000040: b500 342c 01b5 0038 2c01 b500 3c2c 01b5
    0x0000050: 0040 2c4c 572b a700 034d 014e a700 064e
    0x0000060: 014d 2bc6 000e 2b2d b600 94b6 0097 b600
    0x0000070: 9aa7 0006 b600 902d c600 052d bf2c b0
  Exception Handler Table:
    bci [2, 53] => handler: 53
    bci [58, 89] => handler: 95
    bci [98, 116] => handler: 116
  Stackmap Table:
    append_frame(@2,Object[#104])
    append_frame(@37,Object[#104])
    chop_frame(@50,1)
    same_locals_1_stack_item_frame(@53,Object[#102])
    same_frame(@56)
    append_frame(@58,Object[#2])
    full_frame(@89,{Object[#2],Object[#104]},{Object[#160]})
    same_locals_1_stack_item_frame(@95,Object[#102])
    append_frame(@98,Object[#160],Object[#102])
    same_frame(@113)
    same_locals_1_stack_item_frame(@116,Object[#102])
    same_frame(@119)
    same_frame(@125)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:264)
        at com.sun.proxy.$Proxy333.<clinit>(Unknown Source)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
        at com.sun.ejb.containers.BaseContainer.instantiateEJBLocalBusinessObjectImpl(BaseContainer.java:3875)
        at com.sun.ejb.containers.StatelessSessionContainer.initializeHome(StatelessSessionContainer.java:236)
        at com.sun.ejb.containers.StatelessContainerFactory.createContainer(StatelessContainerFactory.java:63)
        at org.glassfish.ejb.startup.EjbApplication.loadContainers(EjbApplication.java:225)
        ... 21 more
]]

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
TeroPihlajacommented, Feb 5, 2019

Seems to work!

0reactions
eyalkorencommented, Feb 5, 2019

That’s great to hear! You can continue using this snapshot for evaluation and the next release will include the fix.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshoot tips for app deployments - Configuration Manager
Application download failures include the following problems: The client is stuck downloading an application. The client fails to download ...
Read more >
Java Custom Instrumentation - Datadog Docs
Datadog trace methods. Using the dd.trace.methods system property, you can get visibility into unsupported frameworks without changing application code.
Read more >
Application deployment problems - IBM
You might encounter problems when deploying, installing, or promoting applications. This topic suggests ways to resolve the problems.
Read more >
Tracing a Java Application with Elastic APM - Medium
In this blog, we'll look at how to configure tracing for a Java Application using Java Agent and spin required infrastructure for APM...
Read more >
Web Application Deploy error in Pipeline process
##[error]Failed to deploy web package to App Service ... Then we changed settings back to B1 in YML file and ran the Pipeline...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found