Quantcast
Viewing all articles
Browse latest Browse all 12134

Re: getDeclaredConstructors0(Native Method) exception on LR java scripts

Hi

 

 

1)You try deserialize class without "public no-arg constructor".

For understanding which class is problematic, you can find detailed log in script directory.(search all files in script directory with text "getConstructor0")

Solving the problem:

  a) add "public no-arg constructor" into problematic class

  b) don't use this class in serialization

 

More info you can find in oracle documentation:

http://docs.oracle.com/javase/7/docs/platform/serialization/spec/serial-arch.html#4539

A Serializable class must do the following:

...

Have access to the no-arg constructor of its first nonserializable superclass

 

 

 

2)As I know this functionality is not implemented.

 

But you can

  create your own class Foo.java

  compile it into Foo.class

  add Foo.class into classpath

  in Action.java add "import Foo;"

  and use it in code

 

Regards,

Dmitriy


Viewing all articles
Browse latest Browse all 12134

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>