Exception in worldpay inegration

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Exception in worldpay inegration

nachi19-2
Hi
 I am integrating worldpay select junior for one of the ofbiz application.I am using the select.jar which is the worldpay package,when i pass the orderId,amount and instId to the constructor of the purchasetoken class. i am getting the exception as Failed to initialize the token.. this what i got in the log.
---- exception report ----------------------------------------------------------
Cannot create purchase token
Exception: com.worldpay.select.SelectException
Message: Failed to initialise token
---- cause ---------------------------------------------------------------------
Exception: java.lang.SecurityException
Message: Prohibited package name: java.security
---- stack trace ---------------------------------------------------------------
java.lang.SecurityException: Prohibited package name: java.security
java.lang.ClassLoader.preDefineClass(Unknown Source)
java.lang.ClassLoader.defineClass(Unknown Source)
java.security.SecureClassLoader.defineClass(Unknown Source)
java.net.URLClassLoader.defineClass(Unknown Source)
java.net.URLClassLoader.access$000(Unknown Source)
java.net.URLClassLoader$1.run(Unknown Source)
java.security.AccessController.doPrivileged(Native Method)
java.net.URLClassLoader.findClass(Unknown Source)
java.lang.ClassLoader.loadClass(Unknown Source)
java.lang.ClassLoader.loadClass(Unknown Source)
java.lang.ClassLoader.loadClassInternal(Unknown Source)
com.worldpay.select.SelectToken.<init>(SelectToken.java:62)
com.worldpay.select.PurchaseToken.<init>(PurchaseToken.java:91)
com.worldpay.select.PurchaseToken.<init>(PurchaseToken.java:84)
org.ofbiz.accounting.thirdparty.worldpay.WorldPayEvents.worldPayRequest(WorldPayEvents.java:271)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
java.lang.reflect.Method.invoke(Unknown Source)
org.ofbiz.webapp.event.JavaEventHandler.invoke(JavaEventHandler.java:92)
org.ofbiz.webapp.event.JavaEventHandler.invoke(JavaEventHandler.java:78)
org.ofbiz.webapp.control.RequestHandler.runEvent(RequestHandler.java:543)
org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:341)
org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:474)
org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:474)
org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:474)
org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:474)
org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:474)
org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:201)
javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:259)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:568)
org.ofbiz.catalina.container.CrossSubdomainSessionValve.invoke(CrossSubdomainSessionValve.java:44)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
java.lang.Thread.run(Unknown Source)

 can any one tell me why the exception is raising and where i am going wrong.
Reply | Threaded
Open this post in threaded view
|

Re: Exception in worldpay inegration

BJ Freeman
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

from the looks of the log world pay is looking for a class that does not
exist
it might be the cryptix.jar

nachi19 sent the following on 3/26/2009 4:38 PM:

> Hi
>  I am integrating worldpay select junior for one of the ofbiz application.I
> am using the select.jar which is the worldpay package,when i pass the
> orderId,amount and instId to the constructor of the purchasetoken class. i
> am getting the exception as Failed to initialize the token.. this what i got
> in the log.
> ---- exception report
> ----------------------------------------------------------
> Cannot create purchase token
> Exception: com.worldpay.select.SelectException
> Message: Failed to initialise token
> ---- cause
> ---------------------------------------------------------------------
> Exception: java.lang.SecurityException
> Message: Prohibited package name: java.security
> ---- stack trace
> ---------------------------------------------------------------
> java.lang.SecurityException: Prohibited package name: java.security
> java.lang.ClassLoader.preDefineClass(Unknown Source)
> java.lang.ClassLoader.defineClass(Unknown Source)
> java.security.SecureClassLoader.defineClass(Unknown Source)
> java.net.URLClassLoader.defineClass(Unknown Source)
> java.net.URLClassLoader.access$000(Unknown Source)
> java.net.URLClassLoader$1.run(Unknown Source)
> java.security.AccessController.doPrivileged(Native Method)
> java.net.URLClassLoader.findClass(Unknown Source)
> java.lang.ClassLoader.loadClass(Unknown Source)
> java.lang.ClassLoader.loadClass(Unknown Source)
> java.lang.ClassLoader.loadClassInternal(Unknown Source)
> com.worldpay.select.SelectToken.<init>(SelectToken.java:62)
> com.worldpay.select.PurchaseToken.<init>(PurchaseToken.java:91)
> com.worldpay.select.PurchaseToken.<init>(PurchaseToken.java:84)
> org.ofbiz.accounting.thirdparty.worldpay.WorldPayEvents.worldPayRequest(WorldPayEvents.java:271)
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> java.lang.reflect.Method.invoke(Unknown Source)
> org.ofbiz.webapp.event.JavaEventHandler.invoke(JavaEventHandler.java:92)
> org.ofbiz.webapp.event.JavaEventHandler.invoke(JavaEventHandler.java:78)
> org.ofbiz.webapp.control.RequestHandler.runEvent(RequestHandler.java:543)
> org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:341)
> org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:474)
> org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:474)
> org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:474)
> org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:474)
> org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:474)
> org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:201)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:259)
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:568)
> org.ofbiz.catalina.container.CrossSubdomainSessionValve.invoke(CrossSubdomainSessionValve.java:44)
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
> org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
> java.lang.Thread.run(Unknown Source)
>
>  can any one tell me why the exception is raising and where i am going
> wrong.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFJzBggrP3NbaWWqE4RAuoEAJ9XXsczjOYX2zR7mT7E04u9qaf4KwCgoSk2
d6pc2iEOMQ19fzg3ApaU9ow=
=XlOg
-----END PGP SIGNATURE-----
Reply | Threaded
Open this post in threaded view
|

Re: Exception in worldpay inegration

BJ Freeman
In reply to this post by nachi19-2
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

as I mentioned before, I suggest you contact worldpay
since there is no source track the problem.

[hidden email] sent the following on 3/26/2009 5:36 PM:

> Hi BJ
>     cryptix.jar is present and i got this world pay  package from the one of the versions of the trunk i am not sure whcih version.But the package has ryptix.jar,select.jar and some properties files
> BJ Freeman wrote:
> from the looks of the log world pay is looking for a class that does not
> exist
> it might be the cryptix.jar
>
> nachi19 sent the following on 3/26/2009 4:38 PM:
>>>> Hi
>>>>  I am integrating worldpay select junior for one of the ofbiz
>>>> application.I
>>>> am using the select.jar which is the worldpay package,when i pass the
>>>> orderId,amount and instId to the constructor of the purchasetoken class.
>>>> i
>>>> am getting the exception as Failed to initialize the token.. this what i
>>>> got
>>>> in the log.
>>>> ---- exception report
>>>> ----------------------------------------------------------
>>>> Cannot create purchase token
>>>> Exception: com.worldpay.select.SelectException
>>>> Message: Failed to initialise token
>>>> ---- cause
>>>> ---------------------------------------------------------------------
>>>> Exception: java.lang.SecurityException
>>>> Message: Prohibited package name: java.security
>>>> ---- stack trace
>>>> ---------------------------------------------------------------
>>>> java.lang.SecurityException: Prohibited package name: java.security
>>>> java.lang.ClassLoader.preDefineClass(Unknown Source)
>>>> java.lang.ClassLoader.defineClass(Unknown Source)
>>>> java.security.SecureClassLoader.defineClass(Unknown Source)
>>>> java.net.URLClassLoader.defineClass(Unknown Source)
>>>> java.net.URLClassLoader.access$000(Unknown Source)
>>>> java.net.URLClassLoader$1.run(Unknown Source)
>>>> java.security.AccessController.doPrivileged(Native Method)
>>>> java.net.URLClassLoader.findClass(Unknown Source)
>>>> java.lang.ClassLoader.loadClass(Unknown Source)
>>>> java.lang.ClassLoader.loadClass(Unknown Source)
>>>> java.lang.ClassLoader.loadClassInternal(Unknown Source)
>>>> com.worldpay.select.SelectToken.<init>(SelectToken.java:62)
>>>> com.worldpay.select.PurchaseToken.<init>(PurchaseToken.java:91)
>>>> com.worldpay.select.PurchaseToken.<init>(PurchaseToken.java:84)
>>>> org.ofbiz.accounting.thirdparty.worldpay.WorldPayEvents.worldPayRequest(WorldPayEvents.java:271)
>>>> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>> sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>>>> java.lang.reflect.Method.invoke(Unknown Source)
>>>> org.ofbiz.webapp.event.JavaEventHandler.invoke(JavaEventHandler.java:92)
>>>> org.ofbiz.webapp.event.JavaEventHandler.invoke(JavaEventHandler.java:78)
>>>> org.ofbiz.webapp.control.RequestHandler.runEvent(RequestHandler.java:543)
>>>> org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:341)
>>>> org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:474)
>>>> org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:474)
>>>> org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:474)
>>>> org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:474)
>>>> org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:474)
>>>> org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:201)
>>>> javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
>>>> javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
>>>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
>>>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>>>> org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:259)
>>>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
>>>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>>>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
>>>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
>>>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
>>>> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
>>>> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
>>>> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:568)
>>>> org.ofbiz.catalina.container.CrossSubdomainSessionValve.invoke(CrossSubdomainSessionValve.java:44)
>>>> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
>>>> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
>>>> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
>>>> org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
>>>> java.lang.Thread.run(Unknown Source)
>>>>
>>>>  can any one tell me why the exception is raising and where i am going
>>>> wrong.
>>
>>
> Quoted from:
> http://www.nabble.com/Exception-in-worldpay-inegration-tp22733405p22733693.html

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFJzCj2rP3NbaWWqE4RAgcuAJ9/OenidxCrFwL44luQkexnp14OCgCcCqQz
x6Z5DZzH/VsWxTFf7YVKEnA=
=WgEd
-----END PGP SIGNATURE-----