java.lang.VerifyError: Bad type on operand stack

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

java.lang.VerifyError: Bad type on operand stack

Yang Yang
QuickFIX/J Documentation: http://www.quickfixj.org/documentation/
QuickFIX/J Support: http://www.quickfixj.org/support/



I'm using quickfixj-codegenerator to create a custom fix message jar. But when I using the compiled jar it comes with the error:

java.lang.VerifyError: Bad type on operand stack
Exception Details:
  Location:
    quickfix/btcc/NewOrderSingle.get(Lquickfix/field/Commission;)Lquickfix/field/Commission; @2: invokevirtual
  Reason:
    Type 'quickfix/field/Commission' (current frame, stack[1]) is not assignable to 'quickfix/DecimalField'
  Current Frame:
    bci: @2
    flags: { }
    locals: { 'quickfix/btcc/NewOrderSingle', 'quickfix/field/Commission' }
    stack: { 'quickfix/btcc/NewOrderSingle', 'quickfix/field/Commission' }
  Bytecode:
    0x0000000: 2a2b b600 5457 2bb0

Here is my pom.xml

           <plugin>
                <groupId>org.quickfixj</groupId>
                <artifactId>quickfixj-codegenerator</artifactId>
                <version>${quickfixj.version}</version>
                <executions>
                    <execution>
                        <id>fix44-btcc</id>
                        <goals>
                            <goal>generate</goal>
                        </goals>
                        <configuration>
                            <dictFile>${project.basedir}/src/main/resources/BTCC-FIX44.xml</dictFile>
                            <outputDirectory>${project.build.directory}/generated-sources</outputDirectory>
                            <decimal>true</decimal>
                            <packaging>quickfix.btcc</packaging>
                            <fieldPackage>quickfix.field</fieldPackage>
                        </configuration>
                    </execution>
                </executions>
            </plugin>

I also tried JDK 1.5, 1.6 to compile the generated message classes. The problem still exists. I tried compile the original fix44 message and the result is I triggers the same error either. That means the error will happens if I compile the fix messages by myself. So what is the proper way to compile a custom message jar from a custom fix message xml?




------------------------------------------------------------------------------

_______________________________________________
Quickfixj-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quickfixj-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: java.lang.VerifyError: Bad type on operand stack

Christoph John
QuickFIX/J Documentation: http://www.quickfixj.org/documentation/
QuickFIX/J Support: http://www.quickfixj.org/support/


Hi,

which version of QFJ are you using? There were such problems with versions prior to 1.6.2.

Best regards,
Chris.


On 07/09/16 13:59, Yang Yang wrote:

> QuickFIX/J Documentation: http://www.quickfixj.org/documentation/
> QuickFIX/J Support: http://www.quickfixj.org/support/
>
>
>
>
> I'm using quickfixj-codegenerator to create a custom fix message jar. But when I using the
> compiled jar it comes with the error:
>
> |java.lang.VerifyError: Bad type on operand stack Exception Details: Location:
> quickfix/btcc/NewOrderSingle.get(Lquickfix/field/Commission;)Lquickfix/field/Commission; @2:
> invokevirtual Reason: Type 'quickfix/field/Commission' (current frame, stack[1]) is not assignable
> to 'quickfix/DecimalField' Current Frame: bci: @2 flags: { } locals: {
> 'quickfix/btcc/NewOrderSingle', 'quickfix/field/Commission' } stack: {
> 'quickfix/btcc/NewOrderSingle', 'quickfix/field/Commission' } Bytecode: 0x0000000: 2a2b b600 5457
> 2bb0|
>
> Here is my pom.xml
>
>            <plugin>
> <groupId>org.quickfixj</groupId>
> <artifactId>quickfixj-codegenerator</artifactId>
> <version>${quickfixj.version}</version>
>                 <executions>
>                     <execution>
>                         <id>fix44-btcc</id>
>                         <goals>
> <goal>generate</goal>
>                         </goals>
>                         <configuration>
> <dictFile>${project.basedir}/src/main/resources/BTCC-FIX44.xml</dictFile>
> <outputDirectory>${project.build.directory}/generated-sources</outputDirectory>
> <decimal>true</decimal>
> <packaging>quickfix.btcc</packaging>
> <fieldPackage>quickfix.field</fieldPackage>
>                         </configuration>
>                     </execution>
>                 </executions>
>             </plugin>
>
> I also tried JDK 1.5, 1.6 to compile the generated message classes. The problem still exists. I
> tried compile the original fix44 message and the result is I triggers the same error either. That
> means the error will happens if I compile the fix messages by myself. So what is the proper way to
> compile a custom message jar from a custom fix message xml?
>
>
>
>
>
> ------------------------------------------------------------------------------
>
>
> _______________________________________________
> Quickfixj-users mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/quickfixj-users

--
Christoph John
Development & Support
Direct: +49 241 557080-28
Mailto:[hidden email]
       


http://www.macd.com <http://www.macd.com/>
----------------------------------------------------------------------------------------------------
       
----------------------------------------------------------------------------------------------------
MACD GmbH
Oppenhoffallee 103
D-52066 Aachen
Tel: +49 241 557080-0 | Fax: +49 241 557080-10
         Amtsgericht Aachen: HRB 8151
Ust.-Id: DE 813021663

Geschäftsführer: George Macdonald
----------------------------------------------------------------------------------------------------
       
----------------------------------------------------------------------------------------------------

take care of the environment - print only if necessary

------------------------------------------------------------------------------
_______________________________________________
Quickfixj-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quickfixj-users
Loading...