Saturday, September 04, 2010

Get free P3, P6, Project tips & tricks, register to
our newsletter!

To be able to post message in forums, please login or register.

Registration is free (also spam-free)!

errors upgrading to Integration API from P6 to P6v7
Last Post 08 Jan 2010 01:43 PM byawclements. 0 Replies.
AddThis - Bookmarking and Sharing ButtonPrinter Friendly
Sort:
PrevPrev NextNext
AuthorMessagesNot Resolved
awclementsUser is Offline
New Member
New Member
Send Private Message
Posts:1
awclements

--
08 Jan 2010 01:43 PM QuoteQuoteReplyReply  

Hello Forum Folks,

Not sure if this is the right place - as this issue is more on the technical side.  If not, please point me the right direction.

In the mist of an upgrade to P6v7 and trying to get the Integration API to work.  I'm getting any error when the code tries to do a Session.login via RMI.ServiceLocal

 

com.primavera.bo.common.LoginHelper.loginLDAP(LoginHelper.java:238)
com.primavera.bo.common.LoginHelper.login(LoginHelper.java:149)
com.primavera.bo.remotable.SessionLifetime.login(SessionLifetime.java:57)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:597)
com.primavera.infr.q.AbstractQProxyObject.performAction(AbstractQProxyObject.java:469)
com.primavera.infr.q.nullq.NullQProxyObject.enqueue(NullQProxyObject.java:31)
com.primavera.infr.q.AbstractQProxyObject.executeMethod(AbstractQProxyObject.java:305)
com.primavera.bo.remotable.qproxy.SessionLifetime.login(SessionLifetime.java:84)
com.primavera.bo.DBSessionLifetime.login(DBSessionLifetime.java:26)
com.primavera.integration.server.ServerFacadeBase.login(ServerFacadeBase.java:397)
com.primavera.integration.server.ServerFacade.login(ServerFacade.java:11)
com.primavera.integration.client.LocalSession.login(LocalSession.java:92)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:597)
com.primavera.integration.client.Session.a(Session.java:383)
com.primavera.integration.client.Session.login(Session.java:371)
com.bleah.primavera.ResourceUpload.batchSetup(ResourceUpload.java:135)
com.bleah.primavera.ResourceUpload.run(ResourceUpload.java:86)
com.bleah.primavera.ResourceUpload.main(ResourceUpload.java:71)

The code attempting to run is:

DatabaseInstance[] dbInstances = Session.getDatabaseInstances(RMIURL.getRmiUrl(RMIURL.LOCAL_SERVICE));
session = Session.login(RMIURL.getRmiUrl(RMIURL.LOCAL_SERVICE), dbInstances[0].getDatabaseId(), "Username", "Password");

We have the configuration on LDAP, but I'm not sure what is causing the problem.  Any ideas?

 

Thanks in advance,
--Andy

 

 



Quick Reply
toggle
 Username:
Subject:
Body:
Security Code:
CAPTCHA image
Enter the code shown above in the box below

Submit
Active Forums 4.2