Error in running worflow client
Hi
I have an java class which works as a workflow client. When i run the class i get the error as following:
ORABPEL-10509
User is not found.
User "jcooper" is not found in realm "jazn.com"
The java code i have is like below:
IWorkflowServiceClient wfSvcClient = WorkflowServiceClientFactory.getWorkflowServiceClient(WorkflowServiceClientFactory.JAVA_CLIENT);
System.out.println("Before getting the task query service");
//Get the task query service
ITaskQueryService querySvc = wfSvcClient.getTaskQueryService();
System.out.println("Got the task query service -- "+querySvc);
//Login as jstein
IWorkflowContext ctx = querySvc.authenticate("jcooper",
"welcome1",
oracle.tip.pc.services.identity.config.ISConfiguration.getDefaultRealmName(), //Use default realm
null);//Not logging in on behalf of another user
//Set up list of columns to query
List queryColumns = new ArrayList();
queryColumns.add("TASKID");
queryColumns.add("TASKNUMBER");
queryColumns.add("TITLE");
queryColumns.add("OUTCOME");
//Create a predicate to query tasks that have a null outcome
String outcome = null;
Predicate predicate = new Predicate(TableConstants.WFTASK_OUTCOME_COLUMN,
Predicate.OP_EQ,
outcome);
//Create an ordering to order tasks by task number
Ordering ordering = new Ordering(TableConstants.WFTASK_TASKNUMBER_COLUMN
,true //Ascending order
,false //Nulls last
//Query a list of tasks assigned to jstein
List tasks = querySvc.queryTasks(ctx,
queryColumns,
null, //Do not query additional info
ITaskQueryService.ASSIGNMENT_FILTER_MY,
null, //No keywords
null, //Only tasks with no outome set
ordering, //Order by ascending task number
0, //Do not page the query result
0);
//Get the task service
ITaskService taskSvc = wfSvcClient.getTaskService();
ArrayList retTasks = new ArrayList();
//Loop over the tasks, outputting task information, and approving tasks
for(int i = 0 ; i < tasks.size() ; i ++)
Task task = (Task)tasks.get(i);
int taskNumber = task.getSystemAttributes().getTaskNumber();
String title = task.getTitle();
String taskId = task.getSystemAttributes().getTaskId();
retTasks.add(taskId);
return retTasks;
I have also added all the jars as per the following in the BPEL dev guide:
http://iasdocs/iasdl/101310_final/integrate.1013/b28981/worklist.htm#CIHGEABG
Could anyone tell me what the problem could be here?
Thanks
Deepika
Are you running the client on the same server? i.e., the code is called from a JSP or a servlet on the same server?
If not, you may use the REMOTE_CLIENT instead of the JAVA_CLIENT, in your call to WorkflowServiceClientFactory.getWorkflowServiceClient(). This forces the user information to be pickedup by the workflow service on the server.
Similar Messages
-
Corba error when running rich clients in 3-tier mode.
Hello
I am dealing with an Error when running Rich Clients (WebI and DeskI) with 3-tier ODBC connection to the server.
The client does come up and I'm able to create the query but when the data in refreshed I do get the error:
A database error occured. The database error text is: (CS) "CORBA Initialization failed". (WIS 10901).
I have a test server which I'm able to do this kind of connection without a problem but when I try to connect to the Prod server in 3-tier data connection mode throught the server I get this error.
My setup is:
BO XI R 3.1 FP. 2.1
Clients are also updated with FP 2.1
The data sources are Oracle and Teradata.
Best regards,
Hjortur.Hi Guys,
I am facing same error when I run the report from CMC. Error is like u201CThe database error text is: (CORBA) "Error on Executeu201D. (WIS 10901)u201DEven I have re-started the connection server but bad luck.
I would like to appreciate if someone help me out for the same.
Thanks in advance..!!
Thanks & Regards,
Keyur Modi | Functional Consultant Enterprise Solutions
TATA Technologies, Pune
m: +91-9769855899
website: www.tatatechnologies.com -
Error while running EJB Client
Hi All,
I have just written a program in EJB for currency conversion. But while running the client , i am getting the following error:
C:\Java Source Code\EJB>java CalculatorClient
java.lang.NoSuchMethodError: loadClass0
at com.sun.corba.ee.internal.util.JDKClassLoader.specialLoadClass(Native
Method)
at com.sun.corba.ee.internal.util.JDKClassLoader.loadClass(JDKClassLoade
r.java:58)
at com.sun.corba.ee.internal.util.JDKBridge.loadClassM(JDKBridge.java:18
0)
at com.sun.corba.ee.internal.util.JDKBridge.loadClass(JDKBridge.java:83)
at com.sun.corba.ee.internal.javax.rmi.CORBA.Util.loadClass(Util.java:37
8)
at javax.rmi.CORBA.Util.loadClass(Unknown Source)
at javax.rmi.PortableRemoteObject.createDelegateIfSpecified(Unknown Sour
ce)
at javax.rmi.PortableRemoteObject.<clinit>(Unknown Source)
at com.sun.enterprise.naming.SerialContext.getProvider(SerialContext.jav
a:57)
etc........
The files that have been created are in the same folder which are as follows:
Calculator.java Calculator.class - Remote Interface
CalculatorHome.java CalculatorHome.class - Home Interface
CalculatorEJB.java CalculatorEJB.class - EJB class
ejbClient.jar - Client Jar
ejb.ear
The version for J2EE is 1.2.1
Version for Jdk is 1.4.2
Operating System - WinXP
Could somebody pls help?
Cooljacks... but you did deploy it to an application server, right?
-
Getting Error while running Web Client
Hi ,
I installed DRM_11.1.2.1.0 Successfully. I am able to create Repositry also successfully.I started all the services But when i am running Web Client i am getting below error. Can any one please help me onthis how to solve this.Thanks in advance.
Server Error in '/drm-web-client' Application.
Object reference not set to an instance of an object.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[NullReferenceException: Object reference not set to an instance of an object.]
Oracle.Drm.Client.Error.Page_Load(Object sender, EventArgs e) +26
System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +43
System.Web.UI.Control.OnLoad(EventArgs e) +91
System.Web.UI.Control.LoadRecursive() +74
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2604
Version Information: Microsoft .NET Framework Version:2.0.50727.3053; ASP.NET Version:2.0.50727.3053Hi
Please do a fetch from the database and then change the information in DRM console for the CSS parameter. This error I received only due to the CSS details in DRM 11.1.2.
Thanks
Rupak
Mantra to Win | WinMantras.com | http://hyperion.winmantras.com -
Error in running EJB Client on a remote machine
I delploy my beans and can run the EJB Client locally. However when I try to run the Client on another machine, there are errors.
Here is the errors
Syntax error
Out of environment space
Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/enterprise/appclient/Main
I have follow the step in the j2ee tutorial and set the env variables according. Here is the bat file I write
set APPCPATH=CBSAppClient.jar
set VMARGS=-Dj2eelogin.name=guest -Dj2eelogin.password=guest123 -Dorg.omg.CORBA.ORBInitialHost=192.168.0.2
runclient -client CBSApp.ear -name CBSClient -textauth
Do anyone facing the same problem with me?
And how can I solve the problems?
This is really URGENT, please helpYou are running on Windows 9x or Me, right? The darn OS has 300 or so bytes allocated for environment by default.
Try setting the Initial environment to 4096 in the Properties|Memory tab for the batch file. That will get rid of "Out of environment space". The syntax error is another matter; Windows (except NT and derivatives) shells do not allow '=' in an environment variables value. You cannot overcome that. Some software (Sybase for instance) interprets # as = just because of that. Unfortunately, the JVM doesn't take such an approach.
Better, grab copies of Unix utilities for Windows (www.gnu.org) including the wonderful shell 'bash' and write .sh scripts, which are inherently more powerful. -
-- Error during running JMS client --
Hello ,i m novice in JMS,just trying to Implement my first JMS programming on WL8.1,I m getting error during Run client program
My client program is below :
package examples;
import javax.naming.*;
import javax.jms.*;
import java.util.*;
public class Client
public static void main(String[] args)throws Exception
Properties props = System.getProperties();
props.put(Context.PROVIDER_URL,"t3://localhost:7001");
props.put(Context.INITIAL_CONTEXT_FACTORY,"weblogic.jndi.WLInitialContextFactory");
Context ctx=new InitialContext(System.getProperties());
TopicConnectionFactory factory=(TopicConnectionFactory)ctx.lookup("javax.jms.TopicConnectionFactory");
TopicConnection connection = factory.createTopicConnection();
TopicSession session=connection.createTopicSession(false,Session.AUTO_ACKNOWLEDGE);
System.out.println("Envi Veraibles" + ctx.getEnvironment().toString());
System.out.println("Object Retrived "+ctx.lookup("testtopic").toString());
Topic topic =(Topic)ctx.lookup("testtopic");
TopicPublisher publisher=session.createPublisher(topic);
TextMessage msg=session.createTextMessage();
msg.setText("This is a test message");
publisher.publish(msg);
I m getting error during running client ::
Exception in thread "main" java.lang.ClassCastException: weblogic.jms.client.JMSConnectionFactory examples.Client.main(Client.java:23)
i think error is due to this line
Topic topic =(Topic)ctx.lookup("testtopic");
Pls Help me
Thnx in Advance ...First of thanks for gave me a Reply.
(1) System.out.println("Object Retrived "+ctx.lookup("testtopic").toString()); this line is nothing just i wanted to check that program giving me a object or not .and output of this line is
Object Retrived weblogic.jms.client.JMSConnectionFactory@1f66cff
(2)Testtopic is not a object but it is JNDI name whichever i specified in webligic-ejb-jar.xml
(3)i added this line System.out.print("Second output"+ctx.getClass().getName()); and i got this output:
Second output javax.naming.InitialContext
but still i m getting same error
here i m describing my code for ejb-jar.xml
<!DOCTYPE ejb-jar PUBLIC '-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN' 'http://java.sun.com/dtd/ejb-jar_2_0.dtd'>
<!-- Generated XML! -->
<ejb-jar>
<enterprise-beans>
<message-driven>
<ejb-name>LogBean</ejb-name>
<ejb-class>examples.LogBean</ejb-class>
<transaction-type>Container</transaction-type>
<message-driven-destination>
<destination-type>javax.jms.Topic</destination-type>
</message-driven-destination>
</message-driven>
</enterprise-beans>
<assembly-descriptor>
<container-transaction>
<method>
<ejb-name>LogBean</ejb-name>
<method-name>*</method-name>
</method>
<trans-attribute>Required</trans-attribute>
</container-transaction>
</assembly-descriptor>
</ejb-jar>
(2)*LogBean.java*
package examples;
import javax.ejb.*;
import javax.jms.*;
import javax.naming.*;
public class LogBean implements MessageDrivenBean,MessageListener
protected MessageDrivenContext ctx;
public void setMessageDrivenContext(MessageDrivenContext ctx)
this.ctx=ctx;
public void ejbCreate()
System.err.println("ejbCreate()");
public void onMessage(Message msg)
if(msg instanceof TextMessage) {
TextMessage tm=(TextMessage)msg;
try
String text=tm.getText();
System.err.println("Received new message:"+text);
catch (JMSException e)
e.printStackTrace();
public void ejbRemove()
System.err.println("ejbRemove()");
(3)*webogic-ejb-jar.xml*
<!DOCTYPE weblogic-ejb-jar PUBLIC '-//BEA Systems, Inc.//DTD WebLogic 8.1.0 EJB//EN' 'http://www.bea.com/servers/wls810/dtd/weblogic-ejb-jar.dtd'>
<!-- Generated XML! -->
<weblogic-ejb-jar>
<weblogic-enterprise-bean>
<ejb-name>LogBean</ejb-name>
<message-driven-descriptor>
<pool>
</pool>
<destination-jndi-name>testtopic</destination-jndi-name>
</message-driven-descriptor>
<transaction-descriptor>
</transaction-descriptor>
</weblogic-enterprise-bean>
</weblogic-ejb-jar>
you have already client program ,i sent it on first time.
Thnx again ... -
Error When running the Client Program
hi all,
i got exception while running the Client program
"Cannot instantiate class: weblogic.jndi.WLInitialContextFactory [Root exception is java.lang.ClassNotFoundException: weblogic.jndi.WLInitialContextFactory]"
plz solve my problem ASAP.
thanks in advance..
from
sreethanks this problem solved...
but i got another exception
javax.naming.NameNotFoundException: Unable to resolve 'ExeBean' Resolved: '' Unresolved:'ExeBean' ; remaining name 'ExeBean'
thanks in advance
from
Sree -
Error on Running Full Client Reports on Infoview
Post Author: AmitP
CA Forum: WebIntelligence Reporting
I'm running WebI 6.x on a system with the following environment
Microsoft Windows Server 2003 SP 1Business Objects 6.5 SP2Microsoft Internet Information Services (IIS) 6.0
Whenever I try to run a fullclient(FC) report through Infoview, I see the following error 'A system error occurred. (Error: INF 00130) (65535)'
I've checked the following -
1)Login user is a local administrator access on the system.2)Login user has been given 6 privileges through the 'Local Security Policy'. (Act as part of the operating system,Access this computer from the network, Logon as a batch job etc.)3)Password for the Login User was changed some time back, but has been updated using the 'Update Service Parameters' option on the Configuration Tool.4)'BusinessObjects.document' was updated by giving all privileges to the login user, and selecting 'This User', and adding the credentials of the Login User on the 'Identity' tab.5)bomain.key has the same name in the 'locdata' folder in <INSTALL FOLDER> -> <nodes> -> <servername> -> <clustername>
Is there any other check that needs to be done?Also, can I have a separate user for starting the BO WebI & Scheduler service?Where do I provide such an authentication?Kindly advice.
Thanks,Amit.You are running on Windows 9x or Me, right? The darn OS has 300 or so bytes allocated for environment by default.
Try setting the Initial environment to 4096 in the Properties|Memory tab for the batch file. That will get rid of "Out of environment space". The syntax error is another matter; Windows (except NT and derivatives) shells do not allow '=' in an environment variables value. You cannot overcome that. Some software (Sybase for instance) interprets # as = just because of that. Unfortunately, the JVM doesn't take such an approach.
Better, grab copies of Unix utilities for Windows (www.gnu.org) including the wonderful shell 'bash' and write .sh scripts, which are inherently more powerful. -
Getting runtime error while running HTTPS client
hi
i have return https client in java,which does not give error while compiling but its giving runtime error as shown below.
java.security.NoSuchAlgorithmException: Algorithm RSA not available
at javax.net.ssl.SunJSSE_b.a(DashoA6275)
at javax.net.ssl.KeyManagerFactory.getInstance(DashoA6275)
at SSLSocketClientWithClientAuth.main(SSLSocketClientWithClientAuth.java
:65)
java.lang.NullPointerException
at SSLSocketClientWithClientAuth.main(SSLSocketClientWithClientAuth.java
:78)
and this is the code
import java.net.*;
import java.io.*;
import javax.net.ssl.*;
//import javax.security.cert.X509Certificate;
import java.security.KeyStore;
import java.security.*;
* This example shows how to set up a key manager to do client
* authentication if required by server.
* This program assumes that the client is not inside a firewall.
* The application can be modified to connect to a server outside
* the firewall by following SSLSocketClientWithTunneling.java.
public class SSLSocketClientWithClientAuth {
public static void main(String[] args) throws Exception {
//String host = null;
//int port = -1;
String host="10.11.25.251";
int port = 443;
SSLSocket socket;
String path = null;
for (int i = 0; i < args.length; i++)
System.out.println(args);
/*if (args.length < 3) {
System.out.println(
"USAGE: java SSLSocketClientWithClientAuth " +
"host port requestedfilepath");
System.exit(-1);
/*try {
host = args[0];
port = Integer.parseInt(args[1]);
//path = args[2];
} catch (IllegalArgumentException e) {
System.out.println("USAGE: java SSLSocketClientWithClientAuth " +
"host port requestedfilepath");
System.exit(-1);
try {
* Set up a key manager for client authentication
* if asked by the server. Use the implementation's
* default TrustStore and secureRandom routines.
SSLSocketFactory factory = null;
try {
SSLContext ctx;
KeyManagerFactory kmf;
KeyStore ks;
char[] keystorepass = "123456".toCharArray();
char[] keypassword ="13051983".toCharArray();
ctx = SSLContext.getInstance("TLS");
//kmf = KeyManagerFactory.getInstance("RSA");
ks = KeyStore.getInstance("JKS");
ks.load(new FileInputStream("testkeys"), keystorepass);
kmf = KeyManagerFactory.getInstance("RSA");
kmf.init(ks, keypassword);
ctx.init(kmf.getKeyManagers(), null, null);
factory = ctx.getSocketFactory();
} catch (Exception e) {
//throw new IOException(e.getMessage());
e.printStackTrace();
socket = (SSLSocket)factory.createSocket(host, port);
socket.startHandshake();
* send http request
* See SSLSocketClient.java for more information about why
* there is a forced handshake here when using PrintWriters.
PrintWriter out = new PrintWriter(new BufferedWriter(new OutputStreamWriter(socket.getOutputStream())));
// out.println("GET " + path + " HTTP/1.1");
out.println();
out.flush();
* Make sure there were no surprises
if (out.checkError())
System.out.println(
"SSLSocketClient: java.io.PrintWriter error");
/* read response */
BufferedReader in = new BufferedReader(
new InputStreamReader(
socket.getInputStream()));
String inputLine;
while ((inputLine = in.readLine()) != null)
System.out.println(inputLine);
in.close();
out.close();
socket.close();
} catch (Exception e) {
e.printStackTrace();
please help me out .
regards,
sunilHi
Please do a fetch from the database and then change the information in DRM console for the CSS parameter. This error I received only due to the CSS details in DRM 11.1.2.
Thanks
Rupak
Mantra to Win | WinMantras.com | http://hyperion.winmantras.com -
Error while running a WS client using jdeveloper 10g
hi
I am new to java. I am getting the following error when i try to run WS client stub that has a main method in it. Can anybody tell me how to resolve this.
E:\oracle\DevSuiteHome_1\jdk\bin\javaw.exe -ojvm -classpath E:\oracle\DevSuiteHome_1\jdev\mywork\Application2\Project2\classes;E:\oracle\DevSuiteHome_1\jdev\lib\jdev-rt.jar;E:\oracle\DevSuiteHome_1\soap\lib\soap.jar;E:\oracle\DevSuiteHome_1\lib\xmlparserv2.jar;E:\oracle\DevSuiteHome_1\jlib\javax-ssl-1_2.jar;E:\oracle\DevSuiteHome_1\jlib\jssl-1_2.jar;E:\oracle\DevSuiteHome_1\j2ee\home\lib\activation.jar;E:\oracle\DevSuiteHome_1\j2ee\home\lib\mail.jar;E:\oracle\DevSuiteHome_1\j2ee\home\lib\http_client.jar;E:\oracle\DevSuiteHome_1\lib\xmlcomp.jar mypackage2.RESSelectionServiceStub
[SOAPException: faultCode=SOAP-ENV:IOException; msg=Connection timed out: connect; targetException=java.net.ConnectException: Connection timed out: connect]
at org.apache.soap.SOAPException.<init>(SOAPException.java:78)
at oracle.soap.transport.http.OracleSOAPHTTPConnection.send(OracleSOAPHTTPConnection.java:774)
at org.apache.soap.messaging.Message.send(Message.java:125)
at mypackage2.RESSelectionServiceStub.selectParticipants(RESSelectionServiceStub.java:84)
at mypackage2.RESSelectionServiceStub.main(RESSelectionServiceStub.java:40)
Process exited with exit code 0.thanks in advanceYou are having network-related errors to the client.
Let me see your Remote interface -
Error while running client program
Hi,
I am writing a sample program. Below is the server code.
package helloWorld;
import javax.jws.*;
@WebService
public class HelloWorld {
@WebMethod
public String hello() {
System.out.println("Print data");
return "Test";
Firstly when I start the server I get
<WSEE>Warning: JMS Queue 'weblogic.wsee.DefaultQueue' is not found, as a result, Web Service async responses via jms transport is not supported. If the target service uses JMS transport, the responses will not be able to come back.<JmsQueueListener.connect:227>
Ignoring this I wrote a client program
package web;
import java.io.IOException;
import java.io.PrintWriter;
* Servlet implementation class for Servlet: WebClient
public class WebClient {
public static void main(String[] argc)
try {
HelloWorldService_Impl service = new HelloWorldService_Impl();
HelloWorld port = service.getHelloWorldSoapPort();
java.lang.String message = "Hi";
// TODO process result here
String result = port.hello();
System.out.println("Result = "+result);
}catch(Exception e)
e.printStackTrace();
When I run the client I get runtime error
D:\test\2105\WebClient\src>D:\bea\jdk150_04\bin\java -cp .;jaxrpc.jar;weblogic.jar;webservices.jar;webservicesclient.jar;xbean.jar;ant.jar;ant-antlr.jar;ant-weblogic.jar web/WebClient
Exception in thread "main" java.lang.AssertionError: java.io.IOException
at weblogic.descriptor.DescriptorManager$DefaultMarshallerFactorySingleton.<clinit>(DescriptorManager.java:42)
at weblogic.descriptor.DescriptorManager.getDefaultMF(DescriptorManager.java:116)
at weblogic.descriptor.DescriptorManager.getMarshallerFactory(DescriptorManager.java:125)
at weblogic.descriptor.DescriptorManager.getDescriptorFactory(DescriptorManager.java:147)
at weblogic.descriptor.DescriptorManager.createDescriptor(DescriptorManager.java:215)
at weblogic.descriptor.DescriptorManager.createDescriptor(DescriptorManager.java:185)
at weblogic.descriptor.DescriptorManager.createDescriptor(DescriptorManager.java:170)
at weblogic.wsee.jaxrpc.ServiceImpl.loadWeblogicDD(ServiceImpl.java:404)
at weblogic.wsee.jaxrpc.ServiceImpl.loadInternalDD(ServiceImpl.java:346)
at weblogic.wsee.jaxrpc.ServiceImpl.<init>(ServiceImpl.java:110)
at web.HelloWorldService_Impl.<init>(HelloWorldService_Impl.java:21)
at web.HelloWorldService_Impl.<init>(HelloWorldService_Impl.java:13)
at web.WebClient.main(WebClient.java:15)
Caused by: java.io.IOException
at weblogic.descriptor.internal.MarshallerFactory.<init>(MarshallerFactory.java:50)
at weblogic.descriptor.DescriptorManager$DefaultMarshallerFactorySingleton.<clinit>(DescriptorManager.java:40)
... 12 more
Caused by: com.bea.xml.XmlException: unable to load type library from classloader sun.misc.Launcher$AppClassLoader@e39a3e
at com.bea.staxb.runtime.internal.BindingContextFactoryImpl.createBindingContext(BindingContextFactoryImpl.java:50)
at weblogic.descriptor.internal.MarshallerFactory.<init>(MarshallerFactory.java:48)
Can anyone let me know what could be the problem?Hi,
My Client Program is as follows:
import javax.ejb.*;
public class Client{
public static void main(String[] args){
Account account = null;
try{
Context = new
Context = new
InitialContext(System.getProperties());
AccountHome home = (AccountHome)
AccountHome)
ctx.lookup("java:comp/env/ejb/AccountBean");
home.create("123-456-7890","John");
}catch(...){
}What are the System Properties? Are you running the client remotely? Are you running the client as a stand alone Java app or using the Weblogic's Client Runner? 'java:comp' as the jndi name is usually used when the client runs inside the container... But it doesn't seem to be the case.
Kexkey -
Error while running EJB from Client
I am able to successfuly deploy the EJB in Oracle 8.1.5, While running the Client code I am getting the following error, can any one help how to solve.
org.omg.CORBA.INTERNAL[completed=MAYBE, reason=java.lang.ClassNotFoundException: com.visigenic.vbroker.ds.DSUser]
at java.lang.Throwable.<init>(Compiled Code)
at java.lang.Exception.<init>(Compiled Code)
at java.lang.RuntimeException.<init>(Compiled Code)
at org.omg.CORBA.SystemException.<init>(Compiled Code)
at org.omg.CORBA.INTERNAL.<init>(Compiled Code)
at com.visigenic.vbroker.orb.ORB.create(Compiled Code)
at com.visigenic.vbroker.orb.ORB.create(Compiled Code)
at com.visigenic.vbroker.orb.ORB.locator(Compiled Code)
at com.visigenic.vbroker.orb.ORB.bind(Compiled Code)
at com.visigenic.vbroker.orb.UnboundStubDelegate.bind(Compiled Code)
at com.visigenic.vbroker.orb.UnboundStubDelegate.request(Compiled Code)
at com.visigenic.vbroker.orb.UnboundStubDelegate.request(Compiled Code)
at org.omg.CORBA.portable.ObjectImpl._request(Compiled Code)
at org.omg.CORBA._st_InitialReferences.get(Compiled Code)
at oracle.aurora.jndi.sess_iiop.SessionCtx.initialContext(Compiled Code)
at oracle.aurora.jndi.sess_iiop.SessionCtx.<init>(Compiled Code)
at oracle.aurora.jndi.sess_iiop.ServiceCtx.createSession(Compiled Code)
at oracle.aurora.jndi.sess_iiop.ServiceCtx.login(Compiled Code)
at oracle.aurora.jndi.sess_iiop.ServiceCtx.defaultSession(Compiled Code)
at oracle.aurora.jndi.sess_iiop.ServiceCtx.lookup(Compiled Code)
at oracle.aurora.jndi.sess_iiop.sess_iiopURLContext.lookup(Compiled Code)
at oracle.aurora.jndi.sess_iiop.sess_iiopURLContext.lookup(Compiled Code)
at javax.naming.InitialContext.lookup(Compiled Code)
at Date.Client.main(Compiled Code)
nullVerify if the connect.properties match your deployment mode viz Local, EJB or Oracle8i.
Uday -
Error while running Client for accessing EJB3.0 wes service..
Hi:
I have created client for accessing EJB3.0 web service using Jax-ws.
I am using JBoss server.
But the problem is after running the client i am getting following error :
Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/xml/messaging/saaj/soap/AttachmentPartImpl
at com.sun.xml.ws.message.AttachmentUnmarshallerImpl.<clinit>(AttachmentUnmarshallerImpl.java:55)
at com.sun.xml.ws.client.sei.ResponseBuilder$DocLit.readResponse(ResponseBuilder.java:500)
at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:242)
at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:210)
at com.sun.xml.ws.client.sei.SEIStub.invoke(SEIStub.java:103)
at $Proxy25.celsiusToFarenheit(Unknown Source)
at MainMethod.main(MainMethod.java:21)Can any body give me solution on this?
Thank You.the problem seems to lie in a combination of JDK 6 and a specific version of SAAJ that it has integrated. Different resources on the net indicate that if you use a newer version of SAAJ, 1.3.1 or higher, it should be fixed.
-
Parsing error when running a SOAP client
New to SOAP. Tring to get get it up an running using some of the Oreilly examples from Java and XML. Anyone with any suggestions to fix the error I am getting. Thanx in advance.
1>This is my simple SAX client:
package xml;
import java.net.URL;
import java.util.Vector;
import org.apache.soap.Constants;
import org.apache.soap.Fault;
import org.apache.soap.rpc.Call;
import org.apache.soap.SOAPException;
import org.apache.soap.rpc.Parameter;
import org.apache.soap.rpc.Response;
public class CDAdder {
public void add(URL url, String title, String artist) throws SOAPException {
System.out.println("Adding CD titled '" + title + "' by '" + artist + "'");
//Build the call object
Call call = new Call();
call.setEncodingStyleURI("urn:cd-catalog");
call.setMethodName("addCD");
call.setEncodingStyleURI(Constants.NS_URI_SOAP_ENC);
//Setup the parameters
Vector params = new Vector();
params.addElement(new Parameter("title",String.class,title,null));
params.addElement(new Parameter("artist",String.class,artist,null));
call.setParams(params);
//Invoke the call
Response response;
response = call.invoke(url,"");
if(!response.generatedFault()) {
System.out.println("Successful CD Addition");
} else {
Fault fault = response.getFault();
System.out.println("Error encountered: " + fault.getFaultString());
public static void main(String[] args) {
try {
URL url = new URL("http://localhost:8081/soap/servlet/rpcrouter");
String title = "Riding the Midnight Train";
String artist = "Doc Watson";
CDAdder adder = new CDAdder();
adder.add(url, title, artist);
} catch(Exception e) {
e.printStackTrace();
2>My service:
package javaxml2;
import java.util.Hashtable;
public class CDCatalog {
private Hashtable catalog;
public CDCatalog() {
catalog = new Hashtable();
catalog.put("Nickel Creek", "Nickel Creek");
catalog.put("Let it Fall", "Sean Watkins");
catalog.put("Aerial Boundaries", "Michael Hedges");
catalog.put("Taproot", "Michael Hedges");
public void addCD(String title, String artist) {
if ((title == null) || (artist==null)) {
throw new IllegalArgumentException("Title or Artist cannot be null.");
catalog.put(title, artist);
public String getArtist(String title) {
if (title == null) {
throw new IllegalArgumentException("Title cannot be null.");
return (String)catalog.get(title);
public Hashtable list() {
return catalog;
3>My deployement descriptor:
<isd:service xmlns:isd="http://xml.apache.org/xml-soap/deployment"
id="urn:cd-catalog"
>
<isd:provider type="java"
scope="Application"
methods="addCD getCD list"
>
<isd:java class="javaxml2.CDCatalog" static="false" />
</isd:provider>
<isd:faultListener>org.apache.soap.server.DOMFaultListener</isd:faultListener>
</isd:service>
4>I have deployed the SOAP Service:
D:\XML-RPC\javaxml2>java org.apache.soap.server.ServiceManagerClient http://loca
lhost:8081/soap/servlet/rpcrouter deploy xml/CDCatalogDD.xml
D:\XML-RPC\javaxml2>java org.apache.soap.server.ServiceManagerClient http://loca
lhost:8081/soap/servlet/rpcrouter list
Deployed Services:
urn:cd-catalog
D:\XML-RPC\javaxml2>
Error when I try using the service:FYI: I am running the client with JBuilder 2005
Adding CD titled 'Riding the Midnight Train' by 'Doc Watson'
Error encountered: parsing error: org.xml.sax.SAXParseException: The value of the attribute "prefix="xmlns",localpart="ns1",rawname="xmlns:ns1"" is invalid. Prefixed namespace bindings may not be empty.call.setEncodingStyleURI("urn:cd-catalog");
in the SOAP client has to be
call.setTargetObjectURI("urn:cd-catalog"); -
Hi,
I have tried an entity bean application. I am able to deploy my entity bean in WebLogic 7.0 server. But when I ran the client program I am getting the following error.
javax.naming.NameNotFoundException : Unable to resolve 'java:comp.env/ejb/AccountBean' Resolved: ' ' unresolved : 'java:comp': remaining name 'java:comp.env/ejb/AccountBean'
My ejb-jar.xml is as follows:
<ejb-jar>
<enterprise-beans>
<entity>
<ejb-name>AccountBean</ejb-name>
<home>AccountHome</home>
<remote>Account</remote>
<ejb-class>AccountBean<ejb-class>
<persistance-type>Bean</persistance-type>
<prim-key-class>AccountPK</prim-key-class>
<reentrant>False</reentrant>
<primkey-field>AccountID</primkey-field>
<env-entry>
<env-entry-name>jdbc.drivers</env-entry-name>
<env-entry-type>java.lang.String</env-entry-type>
<env-entry-value>oracle.jdbc.driver.OracleDriver</env-entry-value>
</env-entry>
<env-entry>
<env-entry-name>JDBC-URL</env-entry-name>
<env-entry-type>java.lang.String</env-entry-type>
<env-entry-value>jdbc:oracle:thin:@erp:1521:Oracle9i</env-entry-value>
</env-entry>
<ejb-ref>
<ejb-ref-name>ejb/AccountBean</ejb-ref-name>
<ejb-ref-type>Entity</ejb-ref-type>
<home>AccountHome</home>
<remote>Account</Account>
<ejb-link>AccountBean</ejb-link>
<ejb-ref>
<resource-ref>
<resource-ref-name>jdbc/bmp-account</resource-ref-name>
<resouce-ref-type>javax.sql.DataSource</resource-ref-type>
<res-auth>Container</res-auth>
<res-sharing-scope>sharable</res-sharing-sope>
<resource-ref>
</entity>
</enterprise-beans>
<assembly-descriptor>
</assembly-descriptor>
<ejb-jar>
My weblogic-ejb-jar.xml is as follows:
<weblogic-ejb-jar>
<weblogic-enterprise-bean>
<ejb-name>AccountBean</ejb-name>
<entity-descriptor>
<pool>
</pool>
<entity-cache>
<cache-between-transaction>false</cache-between-transcation>
</entity-cache>
<persistance>
</persistance>
<entity-clustering>
</entity-clustering>
</entity-descripto>
<transaction-descriptor>
</transaction-descriptor>
<reference-descriptor>
<resource-descriptor>
<res-ref-name>jdbc/bmp-accoun</res-ref-name>
<jndi-name>MariJNDI</jndi-name>
</resource-descriptor>
<ejb-reference-descriptor>
<ejb-ref-name>ejb/AccountBean</ejb-ref-name>
<jndi-name>AccountBean</jndi-name>
</ejb-reference-descriptor>
</reference-descriptor>
</weblogic-enterprise-bean>
</weblogic-ejb-jar>
My Client Program is as follows:
import javax.ejb.*;
public class Client{
public static void main(String[] args){
Account account = null;
try{
Context = new InitialContext(System.getProperties());
AccountHome home = (AccountHome) ctx.lookup("java:comp/env/ejb/AccountBean");
home.create("123-456-7890","John");
}catch(...){
Any help is appreciated.
Thanks in advance.
Regards,
Mari.Hi,
My Client Program is as follows:
import javax.ejb.*;
public class Client{
public static void main(String[] args){
Account account = null;
try{
Context = new
Context = new
InitialContext(System.getProperties());
AccountHome home = (AccountHome)
AccountHome)
ctx.lookup("java:comp/env/ejb/AccountBean");
home.create("123-456-7890","John");
}catch(...){
}What are the System Properties? Are you running the client remotely? Are you running the client as a stand alone Java app or using the Weblogic's Client Runner? 'java:comp' as the jndi name is usually used when the client runs inside the container... But it doesn't seem to be the case.
Kexkey
Maybe you are looking for
-
Purchasing & A/P Credit Card Processing
We have cases where we place purchase orders to vendors with a company credit card. We would like the PO to be for the actual vendor. When the Goods are received, we would perform a PO goods receipt and A/P Invoice. When the A/P invoices is paid, we
-
Hi Friends, I am using CL_BCS class to send mail with attachment (zip contains excel file). Inexcel , one field has string value , and starts with double quotation mark . if excel finds double quoats, then it is displaying all the columns in that fie
-
New Air and Photoshop - Your thoughts..
Despite all the nay sayers out there I'm still drawn to the Air, but my one concern is around running Photoshop. The Air would never be a primary machine for me and for the most part it would be used for traveling, internet use and using Photoshop wh
-
Hi All My name is Caryn Drovie. I am a technical writer and i have used Robohelp HTML in the past but new to 9.0 I am having some issues I cannot resolve that I will try to explain but I think if someone can use a program like "Show my PC" and look
-
Hi, I have requirement to display Text and Line item in a GRID (in popup window) ie In the Screen Free Text :xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxx