Forum Stats

  • 3,752,284 Users
  • 2,250,483 Discussions
  • 7,867,783 Comments

Discussions

java.lang.VerifyError: Bad type on operand stack under Generics and Inheritance

2880403
2880403 Member Posts: 2
edited Feb 9, 2015 10:48PM in Generics

11:08:03,251 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-3) MSC00001: Failed to start service jboss.deployment.subunit."tdabs_external.ear"."tdabs_external.war".POST_MODULE: org.jboss.msc.service.StartException in service jboss.deployment.subunit."tdabs_external.ear"."tdabs_external.war".POST_MODULE: Failed to process phase POST_MODULE of subdeployment "tdabs_external.war" of deployment "tdabs_external.ear"

  at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:119) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]

  at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]

  at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]

  at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_67]

  at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_67]

  at java.lang.Thread.run(Thread.java:745) [rt.jar:1.7.0_67]

Caused by: java.lang.RuntimeException: Error getting reflective information for class td.abs.external.servlet.GetTimeslotListBySearch with ClassLoader ModuleClassLoader for Module "deployment.tdabs_external.ear.tdabs_external.war:main" from Service Module Loader

  at org.jboss.as.server.deployment.reflect.DeploymentReflectionIndex.getClassIndex(DeploymentReflectionIndex.java:70) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]

  at org.jboss.as.ee.metadata.MethodAnnotationAggregator.runtimeAnnotationInformation(MethodAnnotationAggregator.java:58)

  at org.jboss.as.ee.component.deployers.InterceptorAnnotationProcessor.handleAnnotations(InterceptorAnnotationProcessor.java:85)

  at org.jboss.as.ee.component.deployers.InterceptorAnnotationProcessor.processComponentConfig(InterceptorAnnotationProcessor.java:70)

  at org.jboss.as.ee.component.deployers.InterceptorAnnotationProcessor.deploy(InterceptorAnnotationProcessor.java:55)

  at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:113) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]

  ... 5 more

Caused by: java.lang.VerifyError: Bad type on operand stack

Exception Details:

  Location:

    td/abs/external/servlet/GetTimeslotListBySearch.service(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V @228: invokevirtual

  Reason:

    Type 'td/abs/external/info/ServiceType' (current frame, stack[1]) is not assignable to 'td/abs/info/ServiceType'

  Current Frame:

    bci: @228

    flags: { }

    locals: { 'td/abs/external/servlet/GetTimeslotListBySearch', 'javax/servlet/http/HttpServletRequest', 'javax/servlet/http/HttpServletResponse', null, '[Ltd/abs/info/Timeslot;', 'td/abs/external/helper/HttpHelper', 'java/lang/String', 'java/lang/String', integer, 'java/lang/String', 'td/abs/util/CDate', 'java/lang/String', 'td/abs/info/IdType', 'java/lang/String', 'td/abs/util/CDate', 'java/lang/String', 'java/lang/String', 'td/abs/external/info/Office', 'td/abs/info/RequestType', 'td/abs/external/info/ServiceType', 'td/abs/external/info/Office', 'td/abs/external/info/ServiceType' }

    stack: { 'td/abs/external/info/Office', 'td/abs/external/info/ServiceType' }

  Bytecode:

    0000000: 014e 013a 042a 2b2c b700 02bb 0003 592b

    0000010: 2cb7 0004 3a05 2b12 05b9 0006 0200 3a06

    0000020: 2b12 07b9 0006 0200 3a07 2b12 08b9 0006

    0000030: 0200 b800 0936 082b 120a b900 0602 003a

    0000040: 09bb 000b 592b 120c b900 0602 0012 0db7

    0000050: 000e 3a0a 2bb9 000f 0100 3a0b 1905 1210

    0000060: b600 11b8 0012 3a0c 190c 1905 1213 1214

    0000070: b600 15b8 0016 3a0d 1905 120c b600 173a

    0000080: 0e19 0512 18b6 0011 3a0f 1905 1219 b600

    0000090: 113a 1019 0512 05b6 0011 b800 1a3a 11b2

    00000a0: 001b 3a12 1905 1207 b600 11b8 001c 3a13

    00000b0: 1906 1907 1508 1909 190a 0419 0b19 0c19

    00000c0: 0d19 0e19 0f19 1019 1119 1219 13b8 001d

    00000d0: 3a04 1906 b800 1a3a 1419 07b8 001c 3a15

    00000e0: 1914 1915 b600 1eb9 001f 0100 bd00 204e

    00000f0: 1914 1915 b600 1e2d b900 2102 0057 a700

    0000100: 1e3a 052a 2b2c 1905 b600 23b6 0024 a700

    0000110: 0e3a 052a 2b2c 1905 b600 26b1 2b12 2719

    0000120: 04b9 0028 0300 2b12 292d b900 2803 002a

    0000130: 2b2c 122a b600 2bb1                   

  Exception Handler Table:

    bci [5, 254] => handler: 257

    bci [5, 254] => handler: 273

  Stackmap Table:

    full_frame(@257,{Object[#96],Object[#97],Object[#98],Object[#99],Object[#100]},{Object[#101]})

    same_locals_1_stack_item_frame(@273,Object[#102])

    same_frame(@284)

  at java.lang.Class.getDeclaredFields0(Native Method) [rt.jar:1.7.0_67]

  at java.lang.Class.privateGetDeclaredFields(Class.java:2436) [rt.jar:1.7.0_67]

  at java.lang.Class.getDeclaredFields(Class.java:1806) [rt.jar:1.7.0_67]

  at org.jboss.as.server.deployment.reflect.ClassReflectionIndex.<init>(ClassReflectionIndex.java:57) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]

  at org.jboss.as.server.deployment.reflect.DeploymentReflectionIndex.getClassIndex(DeploymentReflectionIndex.java:66) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]

  ... 10 more

Classes:

td.abs.info.ServiceType

public class ServiceType<O extends Office> extends AbstractEntity implements Serializable {

td.abs.info.Session

public class Session<O extends Office<S,? extends Session>, S extends ServiceType<O>> extends AbstractEntity implements Serializable {

td.abs.info.Office

public class Office<T extends ServiceType, S extends Session> extends AbstractEntity implements Serializable {

td.abs.external.info.ServiceType

public class ServiceType extends td.abs.info.ServiceType<td.abs.external.info.Office> {

td.abs.external.info.Session

public class Session extends td.abs.info.Session<td.abs.external.info.Office, td.abs.external.info.ServiceType> {

td.abs.external.info.Office

public class Office extends td.abs.info.Office<td.abs.external.info.ServiceType, td.abs.external.info.Session> {

Thanks for help~

Best Answer

  • 2880403
    2880403 Member Posts: 2
    edited Feb 9, 2015 10:48PM Accepted Answer

    Dear All,

    Since I am debugging the application, and find out the problem occur is not the problem of Generics.

    The reason that is the td.abs.external.info.ServiceType 's jar had not added in the lib folder of the web application.

    So now the problem is solved, thanks all.

    Reason:

        Type 'td/abs/external/info/ServiceType' (current frame, stack[1]) is not assignable to 'td/abs/info/ServiceType'

Answers

  • 2880403
    2880403 Member Posts: 2
    edited Feb 9, 2015 10:48PM Accepted Answer

    Dear All,

    Since I am debugging the application, and find out the problem occur is not the problem of Generics.

    The reason that is the td.abs.external.info.ServiceType 's jar had not added in the lib folder of the web application.

    So now the problem is solved, thanks all.

    Reason:

        Type 'td/abs/external/info/ServiceType' (current frame, stack[1]) is not assignable to 'td/abs/info/ServiceType'

This discussion has been closed.