• Welcome to KonaKart Community Forum. Please login or sign up.
 

running problem about konakart_java_api_examples

Started by deligeer, October 31, 2007, 06:27:27 am

Previous topic - Next topic

deligeer

i just write build.xml file to run and compile the examples insertorder.java
and get the following error?

run:
     [java] 31-十月 14:11:51 INFO  (KKEng.java:init:129) Finished Initialising L
og4j
     [java] 31-十月 14:11:51 INFO  (KKEng.java:init:136) Initialising Torque wit
h the file : file:/D:/FashionChina/examples/konakart_java_api_examples/build/jar
/InsertOrder.jar!/konakart.properties
     [java] 31-十月 14:11:51 INFO  (KKTorque.java:init:53) Initialising KonaKart
-Torque for org.apache.torque.adapter.DBMM
     [java] 31-十月 14:11:51 INFO  (KKEng.java:init:144) Finished Initialising T
orque
     [java] 31-十月 14:11:51 INFO  (KKEng.java:init:150) Initialising konakart w
ith the file : konakart.properties
     [java] 31-十月 14:11:51 INFO  (KKEng.java:initKonakart:253) KonaKart V2.2.0
.7 built 10:57AM 22-Oct-2007 BST
     [java] 31-十月 14:11:51 INFO  (KKEng.java:init:152) Finished Initialising k
onakart
     [java] java.lang.NullPointerException
     [java]     at com.konakart.apiexamples.InsertOrder.main(Unknown Source)


what does this error means at com.konakart.apiexamples.InsertOrder.main(Unknown Source)?

Regards

deligeer

Brian

Hi Deligeer,

I'm not sure what you're asking here...

The error would certainly appear to be a null exception in the InsertOrder API example for which you have the source:

    [java] java.lang.NullPointerException
     [java]     at com.konakart.apiexamples.InsertOrder.main(Unknown Source)

You shouldn't get this error with normal running of the example so perhaps you've changed something?
Can you step through the code to discover the problem for yourself?

Brian