Help needed -- Exception thrown when migrated from v3.3 to v4.3


Avery Starr
 

Hi

 

We migrated from v3.3 to v4.3 but encountered problems when using proxy.vaultQueryByCriteria in the following code. This code was running fine under v3.3.

 

 

The error message is shown as below:

 

 

 

The Class GrantsState has constructor with @ConstructorForDeserialization as shown below and each property has a getter. Plus this code is running fine under v3.3.

 

 

 

Any help is highly appreciated!

Many thanks!

 

 

Avery Starr | Managing Director

32 Broadway, Suite 1701, New York, NY 10004

Toll-Free: 1888-665-3066

Work: (914) 979-1888 | Cell: (914) 584-0979 | Fax: (914) 941-1315

avery.starr@... | www.seatig.com


Important Notice to Recipients: The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. If you are not the intended recipient(s) of this communication please contact the sender and delete all copies immediately. You are not authorized to copy, distribute, or otherwise use this message or its attachments. Seatig Inc. is a global IT services company. We help our clients to develop and maintain software applications. Seatig Inc. makes no warranty that this e-mail is error or virus free.

 

 


Mike Hearn
 

It looks like your javac command line has lost its -parameters flag along the migration. Without this flag the names of method parameters won't be available for reflection, which can be seen in the error message. We should detect this case and provide a better error explaining how to fix it. Does adding that flag (back) work?


Avery Starr
 

Hi Mike,

 

Thank you very much for your insights! Yes, -parameter flag made it through!

 

Cheers!

Avery

 

From: corda-dev@groups.io <corda-dev@groups.io> On Behalf Of Mike Hearn via Groups.Io
Sent: Tuesday, January 7, 2020 12:02 PM
To: corda-dev@groups.io
Subject: Re: [corda-dev] Help needed -- Exception thrown when migrated from v3.3 to v4.3

 

It looks like your javac command line has lost its -parameters flag along the migration. Without this flag the names of method parameters won't be available for reflection, which can be seen in the error message. We should detect this case and provide a better error explaining how to fix it. Does adding that flag (back) work?