title: java.lang.VerifyError ,after datanucleus enahncement of classes
body: <p>Im migrating my appengine-project from ant build to maven,Im using java 8 with JDO 2 and maven-datanucleus plugin for class enhancement and maven appengine-plugin 1.9.64. But on running the project,it gives <code>java.lang.VerifyError: Expecting a stackmap frame at branch target 15
  </code>error. And if I run without datanucleus enhancement, it gives class not enhanced error.So I assume something wrong with datanucleus maybe..
  Any suggestions would be appreciated thank you.</p>
  
  <p>Problem accessing /home. Reason:</p>
  
  <pre><code>Server Error
  </code></pre>
  
  <p>Caused by:</p>
  
  <p>java.lang.VerifyError: Expecting a stackmap frame at branch target 15
  Exception Details:
    Location:
      com/project1/datastore/DbAppointment.jdoSetkey(Lcom/dhiti/care/server/datastore/DbAppointment;Lcom/google/appengine/api/datastore/Key;)V @4: ifnonnull
    Reason:
      Expected stackmap frame at this location.
    Bytecode:
      0x0000000: 2ab4 0339 c700 0b2a 2bb5 032e a700 142a
      0x0000010: b403 392a 1017 2ab4 032e 2bb9 04cd 0500
      0x0000020: b1                                     </p>
  
  <pre><code>at java.lang.Class.forName0(Native Method)
  at java.lang.Class.forName(Class.java:264)
  at com.sun.proxy.$Proxy14.&lt;clinit&gt;(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 java.lang.reflect.Proxy.newProxyInstance(Proxy.java:739)
  at com.google.inject.internal.ConstructionContext.createProxy(ConstructionContext.java:77)
  at com.google.inject.internal.ConstructorInjector.construct(ConstructorInjector.java:69)
  at com.google.inject.internal.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:254)
  at com.google.inject.internal.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:46)
  at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1031)
  at com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40)
  at com.google.inject.Scopes$1$1.get(Scopes.java:65)
  at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:40)
  at com.google.inject.internal.FactoryProxy.get(FactoryProxy.java:54)
  at com.google.inject.internal.SingleParameterInjector.inject(SingleParameterInjector.java:38)
  at com.google.inject.internal.SingleParameterInjector.getAll(SingleParameterInjector.java:62)
  at com.google.inject.internal.ConstructorInjector.construct(ConstructorInjector.java:84)
  at com.google.inject.internal.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:254)
  at com.google.inject.internal.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:46)
  at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1031)
  at com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40)
  at com.google.inject.Scopes$1$1.get(Scopes.java:65)
  at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:40)
  at com.google.inject.internal.FactoryProxy.get(FactoryProxy.java:54)
  at com.google.inject.internal.SingleParameterInjector.inject(SingleParameterInjector.java:38)
  at com.google.inject.internal.SingleParameterInjector.getAll(SingleParameterInjector.java:62)
  at com.google.inject.internal.ConstructorInjector.construct(ConstructorInjector.java:84)
  at com.google.inject.internal.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:254)
  at com.google.inject.internal.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:46)
  at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1031)
  at com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40)
  at com.google.inject.Scopes$1$1.get(Scopes.java:65)
  at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:40)
  at com.google.inject.internal.FactoryProxy.get(FactoryProxy.java:54)
  at com.google.inject.internal.SingleParameterInjector.inject(SingleParameterInjector.java:38)
  at com.google.inject.internal.SingleParameterInjector.getAll(SingleParameterInjector.java:62)
  at com.google.inject.internal.ConstructorInjector.construct(ConstructorInjector.java:84)
  at com.google.inject.internal.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:254)
  at com.google.inject.internal.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:46)
  at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1031)
  at com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40)
  at com.google.inject.Scopes$1$1.get(Scopes.java:65)
  at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:40)
  at com.google.inject.internal.FactoryProxy.get(FactoryProxy.java:54)
  at com.google.inject.internal.SingleParameterInjector.inject(SingleParameterInjector.java:38)
  at com.google.inject.internal.SingleParameterInjector.getAll(SingleParameterInjector.java:62)
  at com.google.inject.internal.ConstructorInjector.construct(ConstructorInjector.java:84)
  at com.google.inject.internal.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:254)
  at com.google.inject.internal.InjectorImpl$4$1.call(InjectorImpl.java:978)
  at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1024)
  at com.google.inject.internal.InjectorImpl$4.get(InjectorImpl.java:974)
  at com.google.inject.internal.InjectorImpl.getInstance(InjectorImpl.java:1013)
  at com.project1.server.servlets.HomeServlet.&lt;init&gt;(HomeServlet.java:43)
  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 java.lang.Class.newInstance(Class.java:442)
  at org.eclipse.jetty.server.handler.ContextHandler$Context.createInstance(ContextHandler.java:2481)
  at org.eclipse.jetty.servlet.ServletContextHandler$Context.createServlet(ServletContextHandler.java:1327)
  </code></pre>
  
  <p>pom.xml</p>
  
  <pre><code>&lt;dependency&gt;
      &lt;groupId&gt;javax.jdo&lt;/groupId&gt;
      &lt;artifactId&gt;jdo2-api&lt;/artifactId&gt;
      &lt;version&gt;2.3-eb&lt;/version&gt;
  &lt;/dependency&gt;
  &lt;dependency&gt;
      &lt;groupId&gt;org.datanucleus&lt;/groupId&gt;
      &lt;artifactId&gt;datanucleus-core&lt;/artifactId&gt;
      &lt;version&gt;1.1.4&lt;/version&gt;
      &lt;scope&gt;runtime&lt;/scope&gt;
  &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;com.google.appengine.orm&lt;/groupId&gt;
          &lt;artifactId&gt;datanucleus-appengine&lt;/artifactId&gt;
          &lt;version&gt;1.0.10&lt;/version&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;org.datanucleus&lt;/groupId&gt;
          &lt;artifactId&gt;datanucleus-enhancer&lt;/artifactId&gt;
          &lt;version&gt;1.1.4&lt;/version&gt;
      &lt;/dependency&gt;
  
    &lt;/dependencies&gt;
  
    &lt;build&gt;
    &lt;plugins&gt;
  
  
    &lt;plugin&gt;
      &lt;groupId&gt;org.datanucleus&lt;/groupId&gt;
                  &lt;artifactId&gt;datanucleus-maven-plugin&lt;/artifactId&gt;
                  &lt;version&gt;1.1.4&lt;/version&gt;
                  &lt;configuration&gt;
                      &lt;api&gt;JDO&lt;/api&gt;
                      &lt;props&gt;${basedir}/datanucleus.properties&lt;/props&gt;
                      &lt;log4jConfiguration&gt;${basedir}/log4j.properties&lt;/log4jConfiguration&gt;
                      &lt;verbose&gt;true&lt;/verbose&gt;
                      &lt;source&gt;1.8&lt;/source&gt;
            &lt;target&gt;1.8&lt;/target&gt;
                      &lt;requireJavaVersion&gt;
                 &lt;version&gt;1.8&lt;/version&gt;
          &lt;/requireJavaVersion&gt;
                  &lt;/configuration&gt;
                  &lt;executions&gt;
                      &lt;execution&gt;
                          &lt;phase&gt;process-classes&lt;/phase&gt;
                          &lt;goals&gt;
                              &lt;goal&gt;enhance&lt;/goal&gt;
                          &lt;/goals&gt;
                      &lt;/execution&gt;
                  &lt;/executions&gt;
  &lt;/plugin&gt; 
  </code></pre>