Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

java.util.Locale Exception

Status
Not open for further replies.

Pilsieboy

Programmer
Sep 12, 2007
8
NL
Hi,

I wrote a small program to submit docs to Livelink and on my development server I have no problems, everything goes well.
When I run the same program on the production environment I always get an error:
The type initializer for "java.util.Locale" threw an exception.

I installed the LAPI_970_WIN executable, the environment variables is set to the bin directory and I referenced the dll's lapi_netp.dll and vjslib.dll.

I wrote some debuginfo in the program and noticed that the exception occurs in one of the following lines of code:

LLValue pwsInfo = (new LLValue()).setAssocNotSet();

if (doc.AccessEnterpriseWS(pwsInfo) != 0)
ThrowException(session, "Enterprise Workspace access Failed (AccessEnterpriseWS).");

I really don't know where to search anymore... Who can help me? Any suggestions are welcome! Thanks in advance.
 
Then I would check whether or not you can access enterprsie as the same user first doing the lapi call through a supported browser.
If say your livelink prod employs SSO and tunneling then the session constructor needs to be done differently.

Well, if I called the wrong number, why did you answer the phone?
James Thurber, New Yorker cartoon caption, June 5, 1937
 
Ok thnx. How can I achive that (doing the same lapi call)? I am quite new to Livelink (3 weeks) so I am not sure what you mean.
I can login via a browser as the same user but this is done via port 8080 instead of 2099.
 
Typically all livelinks have acgi and a bin port.To access a livelink you use

http:<webservername:port>/<livelinkinstalldirectory>/<livelink cgi,llisapi,unix>


so a windows url may look like



so in lapi all you are doing is to hit the livelink server application port usually 2099 ,so ask your livelink admin what your lapi port and cgi is and whether you are on SSO



Well, if I called the wrong number, why did you answer the phone?
James Thurber, New Yorker cartoon caption, June 5, 1937
 
I can access Livelink via a normal browser, no problem at all. This is the URL (the URL is a little bit longer because I only have access to this 18879-folder):
I also installed the java runtime "J2SE Runtime Environment 5.0 Update 7" but this also didn't help.

What can I do more to find the problem? Thnx.
 
download the lapi check tool from Ot and try to run it command line and see where you get.From your posting when executing this url does it bring you to a login page.If it does then your seeeion should look like

session(a-livelink,2099,DFT,your userid,your password)

ask your livelink admin what port the livelink server is listening to,maybe it si not the default 2099

if you are running Directory svcs then you should tunnel into 8080 look at the lapi documentation for how you would do that.examples are at KB and the communities as well.

Well, if I called the wrong number, why did you answer the phone?
James Thurber, New Yorker cartoon caption, June 5, 1937
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top