Service Desk Practitioners Forum
cancel
Showing results for 
Search instead for 
Did you mean: 

Error when using Example 1 from HP

SOLVED
Go to solution
Highlighted
kh_3
Super Collector

Error when using Example 1 from HP

Hi,
I've got the following code from Ex.1

Session = ApiSDSession.openSession("servernameasIP", "user", "password");

I've compiled using

c:\j2sdk1.4.2_13\bin\javac test.java


and run the file as

java -cp web-api.jar; test

and I get the following error.
Error creating connection to: xx.xx.x.xx on port:30999
Exception in thread "main" java.lang.NullPointerException
at test.main(test.java:17)


Can Anyone give me some help?? I can ping to the server using the IP I specify in the code. so the IP is correct.

Thanks for any help..
2 REPLIES
Vasily Kamenev
Honored Contributor
Solution

Re: Error when using Example 1 from HP

Hi
the port 30999 must be open by tcp from your PC to xx.xx.xx.xx
easy test: telnet xx.xx.xx.xx 30999
must open the telnet window

Vasily
kh_3
Super Collector

Re: Error when using Example 1 from HP

Thanks Vasily.

Yes I tried it.. And it is fixed now.. Thanks for your help.
//Add this to "OnDomLoad" event