Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Virgo » Error while upgrading to Java 1.8 : Expecting a stackmap frame
Error while upgrading to Java 1.8 : Expecting a stackmap frame [message #1778590] Mon, 18 December 2017 10:50 Go to next message
Mathilde Ffrench is currently offline Mathilde FfrenchFriend
Messages: 24
Registered: July 2015
Junior Member
Hi there,

thanks Eclipse Virgo 3.7.2, I'm currently in the java 1.8 migration process. Unfortunately I'm now blocked by following issue :

[2017-12-18 11:20:38.681] ERROR iLogServiceListener@38e374ff org.osgi.service.log.LogService                                   Bundle net.echinopsii.ariane.community.core.idm.base_0.4.6.SNAPSHOT, [ERROR] net.echinopsii.ariane.community.core.idm.base.proxy.iPojo.IDMJPAProviderImpl : Expecting a stackmap frame at branch target 12
Exception Details:
  Location:
    net/echinopsii/ariane/community/core/idm/base/proxy/iPojo/IDMJPAProviderImpl.start()V @4: ifne
  Reason:
    Expected stackmap frame at this location.
  Bytecode:
    0x0000000: 2ab4 0239 9a00 082a b702 3cb1 2ab4 0028
    0x0000010: 2a13 023d 03bd 0004 b600 bf2a b702 3c2a
    0x0000020: b400 282a 1302 3d01 b600 c2a7 0012 4d2a
    0x0000030: b400 282a 1302 3d2c b600 c62c bfb1
  Exception Handler Table:
    bci [12, 43] => handler: 46



This issue is coming when I'm using a java 1.8 compiled net.echinopsii.ariane.community.core.idm library (https://github.com/echinopsii/net.echinopsii.ariane.community.core.idm) against Virgo 3.7 + JRE 1.8.0_144. I've no issue when using same library compiled with Java 1.7.

Googling this error, I found the -noverify option could help, but unfortunately it dont help me solve the issue after adding it in the dmk.sh file. So now I'm diging my dependencies one by one to get the root cause of this issue.

Meanwhile I was thinking about the reason why the -noverify option workaround was not working in my context and I would like to know if it's not because I should push this option in the OSGi classloader configuration level instead than pushing this configuration in JRE executing Virgo level ?

Anyway if you have any tips to help me accelerate this issue troubleshoot I'll be very interested.

Kind regards,
Re: Error while upgrading to Java 1.8 : Expecting a stackmap frame [message #1778680 is a reply to message #1778590] Tue, 19 December 2017 20:32 Go to previous messageGo to next message
Florian Waibel is currently offline Florian WaibelFriend
Messages: 166
Registered: June 2010
Senior Member
Hi Mathilde,

did you make any progress troubleshooting this issue?

I had a quick look at the `pom.xml` of your library. I saw a dependency to javassist.
Could it be a code generation issue like https://issues.jboss.org/browse/JASSIST-217?

Regards,
florian

[Updated on: Tue, 19 December 2017 20:33]

Report message to a moderator

Re: Error while upgrading to Java 1.8 : Expecting a stackmap frame [message #1778918 is a reply to message #1778680] Sun, 24 December 2017 06:22 Go to previous messageGo to next message
Mathilde Ffrench is currently offline Mathilde FfrenchFriend
Messages: 24
Registered: July 2015
Junior Member
Hi Florian,

In fact I did ! The root cause of this issue was coming from my iPojo library (I'm using iPojo annotation). I had to upgrade it to version 1.12.1. To make work the maven iPojo phase with version 1.12.1 I also had to upgrade maven bundle plugin to 3.3.0. Bellow is the commit which is solving my issue :

https://github.com/echinopsii/net.echinopsii.ariane.community.core.idm/commit/8c5b82caacee3ef8965f542e91ab498c83c5c1a7

(in that commit you'll notice I also upgraded other libraries : it was not necessary to solve the issue but I did the work during my investigation and so I keep it ;))

Kind regards,
Re: Error while upgrading to Java 1.8 : Expecting a stackmap frame [message #1778984 is a reply to message #1778918] Wed, 27 December 2017 15:22 Go to previous message
Florian Waibel is currently offline Florian WaibelFriend
Messages: 166
Registered: June 2010
Senior Member
Glad to hear your were able to fix the issue.

Thanks for keeping us in the loop.
Previous Topic:Provider org.apache.tomcat.websocket.server.DefaultServerEndpointConfigurator not found
Next Topic:Is Java 9 support sun.misc.ServiceConfigurationError?
Goto Forum:
  


Current Time: Fri Apr 19 15:32:16 GMT 2024

Powered by FUDForum. Page generated in 0.23603 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top