Error: You must successfully call Init - Remote APIs(Archived)

Howdy All
Im getting an error when trying to create a remote session. Perhaps there is something I changed, but it seems like this just started happening.
I make the call as always:
IRemoteSession session = RemoteSessionFactory.getExplicitLoginContext(
new URL("http://portalserver/ptapi/services/QueryInterfaceAPI"),
"administrator","");And then get the error:
System.Web.Services.Protocols.SoapException:
java.rmi.RemoteException: Error in PortalObjectsFactory.CreateSession:
Init has not been called.
You must successfully call Init before calling CreateSession
at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse
(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)
at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
at com.plumtree.remote.prc.soap.SessionAPIService.login(String sUsername, String sPassword)
at com.plumtree.remote.prc.soap.SessionProcedures.Login(String sUsername, String sPassword)Any idea why this is occurring? Any help is appreciated.
Thanks,
Harrison 

Make sure the api service started up properly and is actually running properly too.
If this is, by chance did you upgrade your portal? You should search for the "Init has not been called" error as there is another thread about this which I posted 7 things to do in case this happens to you. better for you to read that than for me to type it out again. 

Thanks Lillian,
Looks like it was the API service, the "Axis" screen was showing but viewing the logs showed an error. Once that was corrected, it worked.
FYI: Here is the link to the previous thread:
[url http://forums.bea.com/bea/message.jspa?messageID=300002061&tstart=0]http://forums.bea.com/bea/message.jspa?messageID=300002061&tstart=0
- Harrison

Related

Errors when connecting using Excel Add-In

I installed Excel Add-in from Client_Ancillary/Oracle_Business_Intelligence_Office_Plug-In
1. I am getting errors when trying to access the Analytics from Excel. What could be the issue?
a. When I try to access from Excel our Analytics URL, I get the following error.
System.Net.WebException
at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)
at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
at SAExcelAddIn.SAWServices.SAWSessionService.logonex(String name, String password, SAWSessionParameters sessionparams)
at SAExcelAddIn.LogonForm.buttonConnect_Click(Object sender, EventArgs e)
b. In some other environment I am getting different error.
System.InvalidOperationException: Client found response content type of 'text/html; charset=iso-8859-1', but expected 'text/xml'.
The request failed with the error message:
--
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<HTML><HEAD>
<TITLE>500 Internal Server Error</TITLE>
</HEAD><BODY>
<H1>Internal Server Error</H1>
The server encountered an internal error or
misconfiguration and was unable to complete
your request.<P>
Please contact the server administrator,
you#your.address and inform them of the time the error occurred,
and anything you might have done that may have
caused the error.<P>
More information about this error may be available
in the server error log.<P>
<P>Additionally, a 500 Internal Server Error
error was encountered while trying to use an ErrorDocument to handle the request.
</BODY></HTML>
--.
at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)
at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
at SAExcelAddIn.SAWServices.SAWSessionService.logonex(String name, String password, SAWSessionParameters sessionparams)
at SAExcelAddIn.LogonForm.buttonConnect_Click(Object sender, EventArgs e)
2. How do I change URL of the SAWServerURL ? Do I have to reinstall every time ?
I am right now using regedit and looks like new URL is getting picked from Registry.
3. Do we have to install or configure on the server side for this ?
Message was edited by:
rvenkata 
It sounds like your OC4J may have an issue.
Does this problem keep recurring if you stop and start OC4J and the Presentation Server? 
OC4J has restarted many times.
What issues of OC4J should I look for ? 
There is some configuration component that is off. The BI Office service runs in the same OC4J as I recall. The only times I have really worked with it the BI Office Service was running against an Oracle Application Server.

Problem setting values

I can create an XML instance, but I'm getting an error when I try to set any values
in the instance:
Exception in thread "main" com.bea.xbean.values.XmlValueOutOfRangeException: Str
ing does not match pattern facet
For instance, I'm creating a LogonRequest, which has the following method:
void setLogon(java.lang.String logon);
But when I call:
lr.xensureLogon();
lr.setLogon("kkress");
I get the error. Comment out the setLogon and I can print out the XML doc ...
sans data.
What am I doing wrong ... or what does the pattern facet error mean?
Thanks,
Ken
Well, the problem was mine and error is from the xml parser,
I think.
It was that the datatype for a logon was restricted to [0-9]{6}.
I'm a little disappointed I had to read the schema to find that
out, but I can't see how it could be otherwise.
After all, "000000" is a string, too.
Ken.
"Ken Kress" <kkress#bankofny.com> wrote:
>
I can create an XML instance, but I'm getting an error when I try to
set any values
in the instance:
Exception in thread "main" com.bea.xbean.values.XmlValueOutOfRangeException:
Str
ing does not match pattern facet
For instance, I'm creating a LogonRequest, which has the following method:
void setLogon(java.lang.String logon);
But when I call:
lr.xensureLogon();
lr.setLogon("kkress");
I get the error. Comment out the setLogon and I can print out the XML
doc ...
sans data.
What am I doing wrong ... or what does the pattern facet error mean?
Thanks,
Ken

WLIP Instantiate Workflow Problem

I am attempting to use the
instantiateWorkflow (orgID, templateID)
command in my client application.
I am using "ORG1" as the orgID, and a valid templateID as well.
I am getting the following error:
WorkflowException
System error: com.bea.wlpi.WorkflowException:
The server was unable to complete your request
The system could not find the specified role "".
I get this even if I hardcode the orgID to be "ORG1".
Please advise!
Thanks,
Dave
David
Attached is simple benchmark, the code should walk you through the
correct way to do this
Thanks
Tony
"David Mrozek" <dmrozek3#home.net> wrote in message
news:3bd813bc$1#newsgroups.bea.com...
>
I am attempting to use the
instantiateWorkflow (orgID, templateID)
command in my client application.
I am using "ORG1" as the orgID, and a valid templateID as well.
I am getting the following error:
WorkflowException
System error: com.bea.wlpi.WorkflowException:
The server was unable to complete your request
The system could not find the specified role "".
I get this even if I hardcode the orgID to be "ORG1".
Please advise!
Thanks,
Dave[e2ebm.properties]
[BenchmarkE2E.java]

my program crashed when I call the function OCIDirPathPrepare

I'm using VC in windows environment.
It's said:
First-chance exception in testora.exe (MSVCRT.DLL): 0xC0000005: Access Violation.
call stack:
MSVCRT! 77c17696()
ORACLIENT9! 60606ed4()
OCI! 1000d933()
main() line 211 + 17 bytes
mainCRTStartup() line 206 + 25 bytes
KERNEL32! 7c816fd7()
code:
OCIDirPathPrepare(dphandle, svchandle, errorhandle);
variable:
     dphandle     0x00da82d8
     svchandle     0x00da0e90
     errorhandle 0x00da0f3c
Could any body tell me how to find where is the problem? 
Well, I think it will be difficult for anyone to make any really meaningful comment as there is no code, etc. present. I can see that you are using some version of the 9i-series based on the ORACLIENT9 present in the stack but not much more than that. Maybe someone else will see more than I do though.
If you have the OCI samples installed there should be a file called "cdemodp.c" in the samples directory. Perhaps that will be enough to help out.
Regards,
Mark 
Thank you Mark!
I haven't paste beause it too long. You know oci, there are so many handles.
And more importent, I want to know how to get problem done like this.
I have tried many times and then find out where is the error:
I haven't set OCI_ATTR_SCHEMA_NAME for the direct path handle.
After I add code like this
OCIAttrSet((dvoid *)dphandle, (ub4)OCI_HTYPE_DIRPATH_CTX,
(dvoid *)strschema,
(ub4)strlen((const char *)strschema),
(ub4)OCI_ATTR_SCHEMA_NAME, errorhandle);
every thing goes well.
I thought this is kind of bug in OCI. It can just return a error code to tell me what's wrong but not crash!

how to pass username/password when calling BAM webservice in java

when I call BAM webservice in java code, it prints,
Exception in thread "main" com.sun.xml.ws.client.ClientTransportException: The server sent HTTP status code 401: Unauthorized
I do not know how to pass the username/password to call the BAM webservice.
Does anyone give me some help? Thanks. 
Hi, you can try BindingProvider
DataObjectOperationsByName bamop = dataObjectOperationsByName_Service.getDataObjectOperationsByName();
BindingProvider bp=(BindingProvider)bamop;
Map<String,Object> bpctx= bp.getRequestContext();
bpctx.put(bp.USERNAME_PROPERTY, "weblogic");
bpctx.put(bp.PASSWORD_PROPERTY,"welcome1");
String payload;
payload="<DataObject Name=\"Orders\" Path=\"/training\"><Contents><Row><Column Name=\"OrderID\" Value=\"SMALL1-VALID5\"/><Column Name=\"price\" Value=\"16.88\"/></Row></Contents></DataObject>";
bamop.update("OrderID",payload); 
Thanks. I had the same problem. and the solution worked.

Categories

Resources