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.lang.Class.getDeclaredFields0: Expecting a stackmap frame at branch target #7

Closed
alexeyOnGitHub opened this issue Jul 28, 2015 · 4 comments

Comments

@alexeyOnGitHub
Copy link

got this when using the library in a Jenkins plugin:

 java.lang.VerifyError: Expecting a stackmap frame at branch target 7
Exception Details:
  Location:
   com/codepine/api/testrail/model/Project.equals(Ljava/lang/Object;)Z @2: if_acmpne
  Reason:
  Expected stackmap frame at this location.
  Bytecode:
    0000000: 2b2a a600 0504 ac2b c100 029a 0005 03ac
at java.lang.Class.getDeclaredFields0(Native Method)
at java.lang.Class.privateGetDeclaredFields(Class.java:2499)
at java.lang.Class.getDeclaredFields(Class.java:1811)
at com.fasterxml.jackson.databind.introspect.AnnotatedClass._findFields(AnnotatedClass.java:683)
at com.fasterxml.jackson.databind.introspect.AnnotatedClass.resolveFields(AnnotatedClass.java:470)
at com.fasterxml.jackson.databind.introspect.AnnotatedClass.fields(AnnotatedClass.java:282)
at com.fasterxml.jackson.databind.introspect.POJOPropertiesCollector._addFields(POJOPropertiesCollector.java:380)
at com.fasterxml.jackson.databind.introspect.POJOPropertiesCollector.collect(POJOPropertiesCollector.java:233)
at com.fasterxml.jackson.databind.introspect.BasicClassIntrospector.collectProperties(BasicClassIntrospector.java:142)
at com.fasterxml.jackson.databind.introspect.BasicClassIntrospector.forDeserialization(BasicClassIntrospector.java:81)
at com.fasterxml.jackson.databind.introspect.BasicClassIntrospector.forDeserialization(BasicClassIntrospector.java:11)
at com.fasterxml.jackson.databind.DeserializationConfig.introspect(DeserializationConfig.java:547)
at com.fasterxml.jackson.databind.deser.DeserializerCache._createDeserializer(DeserializerCache.java:325)
at com.fasterxml.jackson.databind.deser.DeserializerCache._createAndCache2(DeserializerCache.java:263)
at com.fasterxml.jackson.databind.deser.DeserializerCache._createAndCacheValueDeserializer(DeserializerCache.java:243)
at com.fasterxml.jackson.databind.deser.DeserializerCache.findValueDeserializer(DeserializerCache.java:144)
at com.fasterxml.jackson.databind.DeserializationContext.findContextualValueDeserializer(DeserializationContext.java:366)
at com.fasterxml.jackson.databind.deser.std.CollectionDeserializer.createContextual(CollectionDeserializer.java:150)
at com.fasterxml.jackson.databind.deser.std.CollectionDeserializer.createContextual(CollectionDeserializer.java:23)
at com.fasterxml.jackson.databind.DeserializationContext.handleSecondaryContextualization(DeserializationContext.java:572)
at com.fasterxml.jackson.databind.DeserializationContext.findRootValueDeserializer(DeserializationContext.java:386)
at com.fasterxml.jackson.databind.ObjectMapper._findRootDeserializer(ObjectMapper.java:3095)
at com.fasterxml.jackson.databind.ObjectMapper._readMapAndClose(ObjectMapper.java:2989)
at com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:2151)
at com.codepine.api.testrail.Request.execute(Request.java:164)
at org.jenkinsci.plugin.trp.TestRailClient.getProjectId(TestRailClient.java:104)
at   org.jenkinsci.plugin.trp.BuildRunListener.processBuildCompletedNotification(BuildRunListener.java:60)
at org.jenkinsci.plugin.trp.BuildRunListener.onCompleted(BuildRunListener.java:39)
at hudson.model.listeners.RunListener.fireCompleted(RunListener.java:201)
at hudson.model.Run.execute(Run.java:1786)
at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:529)
at hudson.model.ResourceController.execute(ResourceController.java:98)
at hudson.model.Executor.run(Executor.java:381)
@alexeyOnGitHub alexeyOnGitHub changed the title would be nice to document minimum Java version required for this plugin would be nice to document minimum Java version required Jul 28, 2015
@alexeyOnGitHub
Copy link
Author

looks like it's a problem with my JDK. one of the servers was using OpenJDK 1.7 instead of Oracle JDK 1.7... I'll close this.

@alexeyOnGitHub
Copy link
Author

interesting... still have the same problem. do you remember what JDK version did you use? the exact version, including Oracle/OpenJDK/etc.

It seems like the Jenkins plugin I'm working on can be compiled with this library, but then JVM fails to parse. so there is source/signature compatibility, but no binary compatibility.

@alexeyOnGitHub alexeyOnGitHub changed the title would be nice to document minimum Java version required what was the exact JDK version used to build v 1.0.0 of this library? Jul 29, 2015
@alexeyOnGitHub alexeyOnGitHub changed the title what was the exact JDK version used to build v 1.0.0 of this library? java.lang.Class.getDeclaredFields0: Expecting a stackmap frame at branch target Jul 29, 2015
@jpederzolli
Copy link

@alexeyOnGitHub this is actually a Jenkins bug (https://issues.jenkins-ci.org/browse/JENKINS-28781)

@kunal546
Copy link
Contributor

Seems like it'a a Jenkins bug. Closing it. Please re-open if this is still an issue.

davidbrazilparker pushed a commit to chapeco/testrail-api-java-client that referenced this issue Aug 15, 2018
# This is the 1st commit message:

# This is a combination of 8 commits.
# This is the 1st commit message:

Added new fields to Milestone available since TestRail 5.3; Fixed configuration of Lombok; Added Template model

# This is the commit message codepine#2:

Added Nexus distributionManagement to pom

# This is the commit message codepine#3:

Changed groupID

# This is the commit message codepine#4:

Fixed configuration of Lombok; Added Template model

# This is the commit message codepine#5:

Added deserialization of test Templates json file, updated Template class to deserialize is_default correctly

# This is the commit message codepine#6:

Added new fields to Milestone available since TestRail 5.3

# This is the commit message codepine#7:

Updated pom with release information for forked version of project

# This is the commit message codepine#8:

Update issue templates
# This is the commit message codepine#2:

Removed log4j dependency
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

3 participants