Unanswered question

Why we have error getGraniteConfig() with protocol GraniteDS ?

For a mobile application (client in Flex and application server in JAVA) we try to execute a scenario and we get the following error:

2016/09/13 14:05:37 ERROR - neoload.plugins: decodeResponse() : Unknown Exception caught java.lang.NoSuchMethodError: org.granite.context.GraniteContext.getGraniteConfig()Ljava/lang/Object;
at org.granite.hibernate4.HibernateExternalizer.readExternal(HibernateExternalizer.java:182)
at org.granite.messaging.amf.io.AMF3Deserializer.readAMF3Object(AMF3Deserializer.java:378)
at org.granite.messaging.amf.io.AMF3Deserializer.readObject(AMF3Deserializer.java:115)
at org.granite.messaging.amf.io.AMF3Deserializer.readAMF3Object(AMF3Deserializer.java:424)
at org.granite.messaging.amf.io.AMF3Deserializer.readObject(AMF3Deserializer.java:115)
at org.granite.messaging.amf.io.AMF3Deserializer.readObject(AMF3Deserializer.java:80)
at org.granite.messaging.amf.io.AMF0Deserializer.readAMF3Data(AMF0Deserializer.java:320)
at org.granite.messaging.amf.io.AMF0Deserializer.readData(AMF0Deserializer.java:371)
at org.granite.messaging.amf.io.AMF0Deserializer.readBodies(AMF0Deserializer.java:161)
at org.granite.messaging.amf.io.AMF0Deserializer.<init>(AMF0Deserializer.java:104)
at com.neotys.nl.conversion.plugin.a.q.a(q.java:342)
at com.neotys.nl.conversion.plugin.a.k.a(k.java:436)
at com.neotys.nl.conversion.plugin.a.k.a(k.java:60)
at com.neotys.nl.conversion.plugin.a.t.a(t.java:81)
at com.neotys.nl.conversion.plugin.a.t.decodeResponse(t.java:300)
at com.neotys.nl.conversion.plugin.b.d.a(d.java:117)
at com.neotys.nl.conversion.plugin.a.u.a(u.java:127)
at com.neotys.nl.conversion.plugin.b.a.c.e(c.java:368)
at com.neotys.nl.conversion.plugin.a.b.l.c(l.java:131)
at com.neotys.nl.lg.engine.n.internalExecute(n.java:331)
at com.neotys.nl.lg.engine.l.a(l.java:146)
at com.neotys.nl.lg.engine.H.a(H.java:1124)
at com.neotys.nl.lg.engine.H.internalExecute(H.java:338)
at com.neotys.nl.lg.engine.l.a(l.java:146)
at com.neotys.nl.lg.engine.v.c(v.java:125)
at com.neotys.nl.lg.engine.w.internalExecute(w.java:82)
at com.neotys.nl.lg.engine.l.a(l.java:146)
at com.neotys.nl.lg.engine.F.i(F.java:254)
at com.neotys.nl.lg.engine.F.internalExecute(F.java:102)
at com.neotys.nl.lg.engine.l.a(l.java:146)
at com.neotys.nl.lg.engine.c.a(c.java:167)
at com.neotys.nl.lg.engine.c.run(c.java:101)

I uploaded war of the mobile application in the libraries Adobe Flex/AMF.
The version of Granite used in the war is :

  • granite-server-hibernate4-3.1.0.GA.jar
  • granite-server-3.1.2.jar
  • AMF Protocol GraniteDS is used.

    Do you have any idea about this error and which way we can solve it ?
    We send you, in attachment, the log file and the granite-config.xml

    Thank you

Yannick L.
Yannick L.

Yannick L.

Level
0
1 / 100
point

Answers

Nouredine A.
Nouredine A.

Nouredine A.

Level
4
5000 / 5000
points
Team

NeoLoad embeds and support GraniteDS2 that's why it does not work. Other customers were able to use their GraniteDS3 config but not sure if it will also work for you.

In your granite-config.xml file, try to replace:

org.granite.hibernate4.HibernateClassGetter by org.granite.hibernate.HibernateClassGetter

And

org.granite.hibernate4.HibernateExternalizer by org.granite.hibernate.HibernateExternalizer

You may need additionnal JAR files like gds-3.0-type-util but check first with that new granite-config.xml settings and depending on the error you may have to add that JAR.