Problem running a client
Hi,
we are having difficulties accessing EJBs that are deployed to oracle 9ias
We get
[Root exception is org.omg.CORBA.UNKNOWN: minor code: 16 completed: Maybe]javax.naming.NamingException: Unknown reasons
java.lang.Object oracle.aurora.jndi.sess_iiop.SessionCtx.activateObject(oracle.aurora.AuroraServices.PublishedObject)
java.lang.Object oracle.aurora.jndi.sess_iiop.ServiceCtx.lookup(javax.naming.Name)
java.lang.Object oracle.aurora.jndi.sess_iiop.sess_iiopURLContext.lookup(javax.naming.Name)
java.lang.Object oracle.aurora.jndi.sess_iiop.sess_iiopURLContext.lookup(java.lang.String)
java.lang.Object javax.naming.InitialContext.lookup(java.lang.String)
void package1.MyEJBJSClient.main(java.lang.String[])
Does anybody know how to solve this problem???
Thanks
null
Hi,
we are having difficulties accessing EJBs that are deployed to oracle 9ias
We get
[Root exception is org.omg.CORBA.UNKNOWN: minor code: 16 completed: Maybe]javax.naming.NamingException: Unknown reasons
java.lang.Object oracle.aurora.jndi.sess_iiop.SessionCtx.activateObject(oracle.aurora.AuroraServices.PublishedObject)
java.lang.Object oracle.aurora.jndi.sess_iiop.ServiceCtx.lookup(javax.naming.Name)
java.lang.Object oracle.aurora.jndi.sess_iiop.sess_iiopURLContext.lookup(javax.naming.Name)
java.lang.Object oracle.aurora.jndi.sess_iiop.sess_iiopURLContext.lookup(java.lang.String)
java.lang.Object javax.naming.InitialContext.lookup(java.lang.String)
void package1.MyEJBJSClient.main(java.lang.String[])
Does anybody know how to solve this problem???
Thanks
null
Similar Messages
-
Problem running Java client of EJB deployed on WebSphere
Hi,
I am using websphere studio 5.1.2 with fix pack 3. I have a sample Stateless Session Bean (EJB) deployed and running on websphere.
I wrote a small Java client program as below.
import java.util.Hashtable;
import HelloJavaHome;
import HelloJava;
import javax.naming.InitialContext;
import javax.naming.Context;
import javax.ejb.EJBHome;
import javax.ejb.EJBObject;
public class RemoteConn {
public static void main(String[] ar) throws Exception{
String greeting = "";
try{
Hashtable env = new Hashtable();
//env.put(Context.INITIAL_CONTEXT_FACTORY, "com.ibm.websphere.naming.WsnInitialContextFactory");
//env.put(Context.INITIAL_CONTEXT_FACTORY, "com.ibm.ejs.ns.jndi.CNInitialContextFactory");
env.put(Context.INITIAL_CONTEXT_FACTORY, "com.ibm.ws.naming.util.WsnInitCtxFactory");
//env.put(Context.PROVIDER_URL, "corbaloc:iiop:myhost.mycompany.com:2809/NameServiceCellPersistentRoot");
env.put(Context.PROVIDER_URL, "iiop://localhost:2809");
System.out.println("Before creating context ");
InitialContext initContext = new InitialContext(env);
System.out.println("Before looking up HelloJavaHome.");
//Object obj = initContext.lookup("java:comp/env/ejb/HelloJavaHome");
Object obj = initContext.lookup("ejb/HelloJavaHome");
System.out.println("After lookup javahome.");
HelloJavaHome home = (HelloJavaHome) javax.rmi.PortableRemoteObject.narrow(obj, HelloJavaHome.class);
HelloJava remote = home.create();
greeting = remote.getGreeting("John");
catch(Exception e){
e.printStackTrace();
System.out.println("Greeting::"+ greeting);
I did not have any problem if I write and run this client from Websphere studio environment..
However its giving lot of compilation and runtime errors when I tried to run from command line.
I could eliminated compilation errors by setting the below jar files in the classpath.
testclient.jar; (client jar of my EJB)
j2ee.jar;
naming.jar;ras.jar;
wsexception.jar;
bootstrap.jar;
namingclient.jar;
websphere.jar;server.jar;
ejbcontainer.jar;
ecutils.jar;
Now it is throwing runtime error after the statement, "Before looking up HelloJavaHome.", has printed. Here is the stack trace of exception ..
Exception in thread "main" java.lang.NoClassDefFoundError: com.ibm.CORBA.iiop.GlobalORBFactory
at com.ibm.ejs.oa.EJSORBImpl.class$(EJSORBImpl.java:44)
at com.ibm.ejs.oa.EJSORBImpl.initializeORB(EJSORBImpl.java:195)
at com.ibm.ejs.oa.EJSClientORBImpl.(EJSClientORBImpl.java:93)
at com.ibm.ejs.oa.EJSClientORBImpl.(EJSClientORBImpl.java:65)
at com.ibm.ejs.oa.EJSORB.init(EJSORB.java:385)
at com.ibm.ws.naming.util.Helpers.getOrb(Helpers.java:284)
at com.ibm.ws.naming.util.WsnInitCtxFactory.getInitialContextInternal(WsnInitCtxFactory.java:369)
at com.ibm.ws.naming.util.WsnInitCtx.getContext(WsnInitCtx.java:112)
at com.ibm.ws.naming.util.WsnInitCtx.getContextIfNull(WsnInitCtx.java:422)
at com.ibm.ws.naming.util.WsnInitCtx.lookup(WsnInitCtx.java:143)
at javax.naming.InitialContext.lookup(InitialContext.java:347)
at RemoteEJBConn.main(RemoteEJBConn.java:38)
I appreciate if sombody could help me ASAP fixing this problem.
Thanks in advance.Try using the IBM JVM (theres one shipped with WebSphere in websphere_home\AppServer\java
Also include idl.jar and ffdc.jar on the classpath -
Problems running DII client for consuming webservices
Hello webservices experts,
am running into problems - when I try running my DII client for a webservice that I've successfully deployed on j2sdkee1.4.
The exception goes like this
java.rmi.RemoteException: JAXRPC.JAXRPCSERVLET.28: Missing port information
at com.sun.xml.rpc.client.dii.BasicCall.invoke(BasicCall.java:462)
I've searched this forum and others as well. Although a lot of people seem to be having this problem nobody seems to have got it solved. Any way out? The client is a mere copy paste of the DII client example in j2eetutorial 1.4Solved it ! Some endpoint alias problem during deployment ! Now works fine !
-
Problem running remote client.
Hi,
I'm trying to use remoting and have come across a problem and i was hoping someone could help me out.
When i try to run my Server App. I get the following Error:
Connection refused to host: localHost; nested exception is:
java.net.ConnectException: Connection refused: connect
My runService class is : -
package DAO;
import java.rmi.*;
public class runService {
* @param args the command line arguments
public static void main(String[] args) {
try
{Naming.rebind("//localHost:8100/dataAccess", new DataAccessObjectImpl());
System.out.println( "Data Access Server is ready" );
catch(Exception e){
System.out.println(e.getMessage());}
}I have trimmed the classes down to three methods as the post can only have 5000 :)
the DataAccessObject interface is : -
package DAO;
* To change this template, choose Tools | Templates
* and open the template in the editor.
import java.sql.*;
import com.sun.rowset.CachedRowSetImpl;
import java.rmi.Remote;
import java.rmi.RemoteException;
public interface dataAccessObject extends Remote{
public String generateConnectionString()throws RemoteException ;
public String getUserPassword(String username)throws RemoteException ;
public void ExecuteDML(String username, String sql)throws RemoteException ;
}the DataAccessObjectImpl class reads as : -
package DAO;
import java.sql.*;
import java.util.Properties;
import java.io.*;
import com.sun.rowset.CachedRowSetImpl;
import java.rmi.Remote;
import java.rmi.RemoteException;
import java.rmi.*;
import java.rmi.server.*;
public class DataAccessObjectImpl extends UnicastRemoteObject implements dataAccessObject{
Connection conn ;
String driver = "oracle.jdbc.driver.OracleDriver";
CachedRowSetImpl ds ;
String theString;
int theNumber;
Date theDate;
ResultSet rs;
String theConnectionURL;
String thePassword;
public DataAccessObjectImpl() throws RemoteException{
public String generateConnectionString() throws RemoteException {
Properties configFile = new Properties();
try {
configFile.load(this.getClass().getClassLoader().getResourceAsStream("app_config.properties"));
} catch (IOException error) {
throw new RemoteException(error.getMessage());
String connection = configFile.getProperty("JTSTORESConnection");
return connection;
public String getUserPassword(String username)throws RemoteException {
Properties configFile = new Properties();
try {
configFile.load(this.getClass().getClassLoader().getResourceAsStream("app_config.properties"));
} catch (IOException error) {
throw new RemoteException(error.getMessage());
String pwd = configFile.getProperty(username.toUpperCase() + "_PWD");
return pwd;
public void ExecuteDML(String username, String sql) throws RemoteException {
try {
Class.forName(driver); // load Oracle driver
theConnectionURL = generateConnectionString();
thePassword = getUserPassword(username);
conn = DriverManager.getConnection(theConnectionURL, username, thePassword);
Statement s = conn.createStatement();
s.executeUpdate(sql);
conn.commit();
s.close();
conn.close();
} catch (SQLException error) {
throw new RemoteException(error.getMessage());
} catch (ClassNotFoundException error) {
throw new RemoteException(error.getMessage());
If anyone can enlighten me unto what is happening i would be very grateful
thanks
JamesHi,
I'm trying to use remoting and have come across a problem and i was hoping someone could help me out.
When i try to run my Server App. I get the following Error:
Connection refused to host: localHost; nested exception is:
java.net.ConnectException: Connection refused: connect
My runService class is : -
package DAO;
import java.rmi.*;
public class runService {
* @param args the command line arguments
public static void main(String[] args) {
try
{Naming.rebind("//localHost:8100/dataAccess", new DataAccessObjectImpl());
System.out.println( "Data Access Server is ready" );
catch(Exception e){
System.out.println(e.getMessage());}
}I have trimmed the classes down to three methods as the post can only have 5000 :)
the DataAccessObject interface is : -
package DAO;
* To change this template, choose Tools | Templates
* and open the template in the editor.
import java.sql.*;
import com.sun.rowset.CachedRowSetImpl;
import java.rmi.Remote;
import java.rmi.RemoteException;
public interface dataAccessObject extends Remote{
public String generateConnectionString()throws RemoteException ;
public String getUserPassword(String username)throws RemoteException ;
public void ExecuteDML(String username, String sql)throws RemoteException ;
}the DataAccessObjectImpl class reads as : -
package DAO;
import java.sql.*;
import java.util.Properties;
import java.io.*;
import com.sun.rowset.CachedRowSetImpl;
import java.rmi.Remote;
import java.rmi.RemoteException;
import java.rmi.*;
import java.rmi.server.*;
public class DataAccessObjectImpl extends UnicastRemoteObject implements dataAccessObject{
Connection conn ;
String driver = "oracle.jdbc.driver.OracleDriver";
CachedRowSetImpl ds ;
String theString;
int theNumber;
Date theDate;
ResultSet rs;
String theConnectionURL;
String thePassword;
public DataAccessObjectImpl() throws RemoteException{
public String generateConnectionString() throws RemoteException {
Properties configFile = new Properties();
try {
configFile.load(this.getClass().getClassLoader().getResourceAsStream("app_config.properties"));
} catch (IOException error) {
throw new RemoteException(error.getMessage());
String connection = configFile.getProperty("JTSTORESConnection");
return connection;
public String getUserPassword(String username)throws RemoteException {
Properties configFile = new Properties();
try {
configFile.load(this.getClass().getClassLoader().getResourceAsStream("app_config.properties"));
} catch (IOException error) {
throw new RemoteException(error.getMessage());
String pwd = configFile.getProperty(username.toUpperCase() + "_PWD");
return pwd;
public void ExecuteDML(String username, String sql) throws RemoteException {
try {
Class.forName(driver); // load Oracle driver
theConnectionURL = generateConnectionString();
thePassword = getUserPassword(username);
conn = DriverManager.getConnection(theConnectionURL, username, thePassword);
Statement s = conn.createStatement();
s.executeUpdate(sql);
conn.commit();
s.close();
conn.close();
} catch (SQLException error) {
throw new RemoteException(error.getMessage());
} catch (ClassNotFoundException error) {
throw new RemoteException(error.getMessage());
If anyone can enlighten me unto what is happening i would be very grateful
thanks
James -
Problems running JSP Client for ApplicationModule
Hi All,
I'm still having trouble getting a simple JSP client up and running for an AppModule. The AppModule tests okay using the java client, but when I try to run the main.jsp for my Module, it starts up with the following error. I've tried building several projects and have had no success with JSP.
Does this really work? Has anyone here successfully gotten a JSP Client running?
Thanks,
Rich
AppAccelerator(tm) 1.1.8 for Java (JDK 1.1), x86 version.
Copyright (c) 1997-1998 Borland International. All Rights Reserved.
Copyright (c) 1997-1999 Oracle Corporation. All Rights Reserved.
log3: oracle.jsp.runner.JspRunner: init
log3: Loading from CLASSPATH backend_AppModule.properties
log3: Diagnostics: Routing diagnostics to standard output (use -Djbo.debugoutput
=silent to remove)
[0] Diagnostic Properties: (from /oracle/jbo/common/Diagnostic.properties)log3:
[1] Timing:false Functions:false Linecount:true Threshold:6log3:
[2] CSMessageBundle (language base) being initializedlog3:
log3: oracle.jbo.ApplicationModuleCreateException: JBO-25222: Unable to create a
pplication module.
log3: at oracle.jbo.server.ApplicationModuleHomeImpl.create(Compiled Code)
log3: at oracle.jbo.common.appmgr.AppModuleInfo.getReservedAppModuleInstance(C
ompiled Code)
log3: at oracle.jbo.common.appmgr.AppRegistry.getAppModuleInstance(Compiled Co
de)
log3: at oracle.jbo.html.jsp.JSPApplicationRegistry.registerApplicationFromPro
pertyFile(Compiled Code)
log3: at oracle.jbo.html.jsp.JSPApplicationRegistry.registerApplicationFromPro
pertyFile(Compiled Code)
log3: at webapp1.main._jspService(main.jsp:7)
log3: at oracle.jsp.runtime.HttpJsp.service(Compiled Code)
log3: at oracle.jsp.runner.JspRunner.dispatch(Compiled Code)
log3: at oracle.jsp.runner.JspRunner.service(Compiled Code)
log3: at javax.servlet.http.HttpServlet.service(Compiled Code)
log3: at oracle.lite.web.JupServlet.service(Compiled Code)
log3: at oracle.lite.web.MimeServletHandler.handle(Compiled Code)
log3: at oracle.lite.web.JupApplication.service(Compiled Code)
log3: at oracle.lite.web.JupAppHandler.handle(Compiled Code)
log3: at oracle.lite.web.HTTPServer.include(Compiled Code)
log3: at oracle.lite.web.HTTPServer.forward(Compiled Code)
log3: at oracle.lite.web.HTTPServer.handleRequest(Compiled Code)
log3: at oracle.lite.web.JupServer.handle(Compiled Code)
log3: at oracle.lite.web.JupHTTPListener$JupHTTP.run(Compiled Code)
log3: oracle.lite.web.workspace.WorkSpaceDevel: initIs the Appmodule running locally or as EJB in Oracle8i.
Unable to create appmodule genrally is result of not all the required libraries in classpath.
If you have deployed as EJB then in the project properties make sure that JBOEJBCLIENT and EJBSTUBS(Generated during deployment) are on top of the list.
If this is not the scenario, give more details on your env.
raghu
null -
Problem while running EJB client
my TaxClient program caught an exception when i issued this command:
java -classpath %J2EE_HOME%\lib\system\cloudutil.jar;%J2EE_HOME%\lib\cloudscape\RmiJdbc.jar;%J2EE_HOME%\lib\system\cloudscape.jar;%J2EE_HOME%\lib\j2ee.jar;TaxClient.jar;. TaxClient
the exception look like this:
java.lang.ClassCastException
at com.sun.corba.se.internal.javax.rmi.PortableRemoteObject.narrow(Porta
bleRemoteObject.java:296)
at javax.rmi.PortableRemoteObject.narrow(PortableRemoteObject.java:137)
at TaxClient.main(TaxClient.java:13)
and this is my client code:
import bmp.*;
import java.util.*;
import javax.naming.Context;
import javax.naming.InitialContext;
import javax.rmi.PortableRemoteObject;
public class TaxClient {
public static void main(String[] args) {
try {
Context initial = new InitialContext();
Object objRef = initial.lookup("MyTaxBean");
TaxHome home = (TaxHome) PortableRemoteObject.narrow(objRef, TaxHome.class);
Tax tax = null;
tax = home.create("IL", 5.00f);
tax = home.create("CA", 6.25f);
tax = home.create("FL", 8.50f);
tax = home.create("CO", 6.75f);
tax = home.findByPrimaryKey("CA");
System.out.println("CA tax rate: " + tax.getTaxRate());
System.out.println("Changing tax rate for CA state");
tax.setTaxRate(8.25f);
System.out.println("New CA tax rate: " + tax.getTaxRate());
Collection taxArray = home.findInRange(5.0f, 7.0f);
Iterator it = taxArray.iterator();
while (it.hasNext()) {
Object objRef2 = it.next();
tax = (Tax)PortableRemoteObject.narrow(objRef2, Tax.class);
System.out.println("Tax Rate in " + tax.getPrimaryKey() + ": "
+ tax.getTaxRate());
tax.remove();
} catch (Exception ex) {
System.err.println("Caught an exception.");
ex.printStackTrace();
anyone who know what is problem pls help. i'm using win2k, j2sdk 1.3.1_02 and j2ee1.3.1. thanksyeah its run. some problem with the deployer descriptor. but problem occured again when i try to run the client for the second time it throws exception:
java.rmi.ServerException: RemoteException occurred in server thread; nested exce
ption is:
java.rmi.RemoteException: nested exception is: javax.ejb.EJBException: O
bject state could not be saved; nested exception is:
javax.ejb.EJBException: Object state could not be saved
java.rmi.RemoteException: nested exception is: javax.ejb.EJBException: Object st
ate could not be saved; nested exception is:
javax.ejb.EJBException: Object state could not be saved
javax.ejb.EJBException: Object state could not be saved
<<no stack trace available>>
why it runs for the first time but not for the second? -
HELP - problem in running SSLSocket client/server application
Hi,
I want to create a SSLSocket based client/server application for this i have used EchoServer.Java and EchoClient.Java files. Both files are successfully compiled and when i ran EchoServer it throws an exception "Server certificate not found".
I want to make a complete auto-controlled client/server application which will automatically gets certificate and all configuration itself from program because i will use both client and server application in as a servlet part.
I did as per following instructions:
-Create a keystore to hold the private and public keys for the server. e.g.
keytool -genkey -keystore mykeystore -alias "myalias" -keypass "mysecret"
-Export the X509 certificate from this store
keytool -export -alias "myalias" -keystore mykeystore -file mycertfile.cer
-Import this into a trustStore for the client
keytool -import -alias "myalias" -keystore mytruststore -file mycertfile.cer
-Run the server using the keystore
java -Djavax.net.ssl.keyStore=mykeystore -Djavax.net.ssl.keyStorePassword="mysecret" EchoServer
-Run the client using the truststore
java -Djavax.net.ssl.trustStore=mytruststore -Djavax.net.ssl.trustStorePassword="mysecret" EchoClient localhost
EchoServer.Java
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintStream;
import java.net.Socket;
import javax.net.ssl.SSLServerSocket;
import javax.net.ssl.SSLServerSocketFactory;
public class EchoServer {
public static int MYECHOPORT = 8189;
public static void main(String argv[]) {
try {
SSLServerSocketFactory factory =
(SSLServerSocketFactory) SSLServerSocketFactory.getDefault();
SSLServerSocket sslSocket =
(SSLServerSocket) factory.createServerSocket(MYECHOPORT);
while (true) {
Socket incoming = sslSocket.accept();
new SocketHandler(incoming).start();
} catch (IOException e) {
e.printStackTrace();
System.exit(30);
class SocketHandler extends Thread {
Socket incoming;
SocketHandler(Socket incoming) {
this.incoming = incoming;
public void run() {
try {
BufferedReader reader =
new BufferedReader(new InputStreamReader(incoming.getInputStream()));
PrintStream out =
new PrintStream(incoming.getOutputStream());
boolean done = false;
while (!done) {
String str = reader.readLine();
if (str == null)
done = true;
else {
System.out.println("Read from client: " + str);
out.println("Echo: " + str);
if (str.trim().equals("BYE"))
done = true;
incoming.close();
} catch (IOException e) {
e.printStackTrace();
EchoClient.Java
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintStream;
import java.net.InetAddress;
import java.net.Socket;
import java.net.UnknownHostException;
import javax.net.ssl.SSLSocket;
import javax.net.ssl.SSLSocketFactory;
public class EchoClient {
public EchoClient(){}
public static final int MYECHOPORT = 8189;
public static void main(String[] args) {
/*if (args.length != 1) {
System.err.println("Usage: Client address");
System.exit(1);
String sAddress="localhost";
InetAddress address = null;
try {
//address = InetAddress.getByName(args[0]);
address = InetAddress.getByName(sAddress);
} catch (UnknownHostException e) {
e.printStackTrace();
System.exit(2);
Socket sock = null;
try {
sock = new Socket(address, MYECHOPORT);
} catch (IOException e) {
e.printStackTrace();
System.exit(3);
SSLSocketFactory factory =
(SSLSocketFactory) SSLSocketFactory.getDefault();
SSLSocket sslSocket = null;
try {
sslSocket =
(SSLSocket) factory.createSocket(sock, args[0], MYECHOPORT, true);
} catch (IOException e) {
e.printStackTrace();
System.exit(3);
BufferedReader reader = null;
PrintStream out = null;
try {
reader = new BufferedReader(new InputStreamReader(sslSocket.getInputStream()));
out = new PrintStream(sslSocket.getOutputStream());
} catch (IOException e) {
e.printStackTrace();
System.exit(6);
String line = null;
try {
// Just send a goodbye message, for testing
out.println("BYE");
line = reader.readLine();
} catch (IOException e) {
e.printStackTrace();
System.exit(6);
System.out.println(line);
System.exit(0);
} // Client
Can anybody will please help me to solve my problem i am using JDK1.4.2_07
Thanks in advance.Hi,
I want to create a SSLSocket based client/server application for this i have used EchoServer.Java and EchoClient.Java files. Both files are successfully compiled and when i ran EchoServer it throws an exception "Server certificate not found".
I want to make a complete auto-controlled client/server application which will automatically gets certificate and all configuration itself from program because i will use both client and server application in as a servlet part.
I did as per following instructions:
-Create a keystore to hold the private and public keys for the server. e.g.
keytool -genkey -keystore mykeystore -alias "myalias" -keypass "mysecret"
-Export the X509 certificate from this store
keytool -export -alias "myalias" -keystore mykeystore -file mycertfile.cer
-Import this into a trustStore for the client
keytool -import -alias "myalias" -keystore mytruststore -file mycertfile.cer
-Run the server using the keystore
java -Djavax.net.ssl.keyStore=mykeystore -Djavax.net.ssl.keyStorePassword="mysecret" EchoServer
-Run the client using the truststore
java -Djavax.net.ssl.trustStore=mytruststore -Djavax.net.ssl.trustStorePassword="mysecret" EchoClient localhost
EchoServer.Java
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintStream;
import java.net.Socket;
import javax.net.ssl.SSLServerSocket;
import javax.net.ssl.SSLServerSocketFactory;
public class EchoServer {
public static int MYECHOPORT = 8189;
public static void main(String argv[]) {
try {
SSLServerSocketFactory factory =
(SSLServerSocketFactory) SSLServerSocketFactory.getDefault();
SSLServerSocket sslSocket =
(SSLServerSocket) factory.createServerSocket(MYECHOPORT);
while (true) {
Socket incoming = sslSocket.accept();
new SocketHandler(incoming).start();
} catch (IOException e) {
e.printStackTrace();
System.exit(30);
class SocketHandler extends Thread {
Socket incoming;
SocketHandler(Socket incoming) {
this.incoming = incoming;
public void run() {
try {
BufferedReader reader =
new BufferedReader(new InputStreamReader(incoming.getInputStream()));
PrintStream out =
new PrintStream(incoming.getOutputStream());
boolean done = false;
while (!done) {
String str = reader.readLine();
if (str == null)
done = true;
else {
System.out.println("Read from client: " + str);
out.println("Echo: " + str);
if (str.trim().equals("BYE"))
done = true;
incoming.close();
} catch (IOException e) {
e.printStackTrace();
EchoClient.Java
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintStream;
import java.net.InetAddress;
import java.net.Socket;
import java.net.UnknownHostException;
import javax.net.ssl.SSLSocket;
import javax.net.ssl.SSLSocketFactory;
public class EchoClient {
public EchoClient(){}
public static final int MYECHOPORT = 8189;
public static void main(String[] args) {
/*if (args.length != 1) {
System.err.println("Usage: Client address");
System.exit(1);
String sAddress="localhost";
InetAddress address = null;
try {
//address = InetAddress.getByName(args[0]);
address = InetAddress.getByName(sAddress);
} catch (UnknownHostException e) {
e.printStackTrace();
System.exit(2);
Socket sock = null;
try {
sock = new Socket(address, MYECHOPORT);
} catch (IOException e) {
e.printStackTrace();
System.exit(3);
SSLSocketFactory factory =
(SSLSocketFactory) SSLSocketFactory.getDefault();
SSLSocket sslSocket = null;
try {
sslSocket =
(SSLSocket) factory.createSocket(sock, args[0], MYECHOPORT, true);
} catch (IOException e) {
e.printStackTrace();
System.exit(3);
BufferedReader reader = null;
PrintStream out = null;
try {
reader = new BufferedReader(new InputStreamReader(sslSocket.getInputStream()));
out = new PrintStream(sslSocket.getOutputStream());
} catch (IOException e) {
e.printStackTrace();
System.exit(6);
String line = null;
try {
// Just send a goodbye message, for testing
out.println("BYE");
line = reader.readLine();
} catch (IOException e) {
e.printStackTrace();
System.exit(6);
System.out.println(line);
System.exit(0);
} // Client
Can anybody will please help me to solve my problem i am using JDK1.4.2_07
Thanks in advance. -
Problem with running sessionBean Client
Hi,
I deployed SessionBean(stateless) bean on Weblogib8.1 succesfully..
But when i run my client i am getting the fallowing exception...
any body plz help me out....
My Client:
import javax.naming.*;
import javax.naming.spi.*;
import java.util.*;
import javax.rmi.PortableRemoteObject;
import java.rmi.*;
public class MyClient
public static void main(String[] args)
try
Hashtable h = new Hashtable();
h.put(Context.INITIAL_CONTEXT_FACTORY,"weblogic.jndi.WLInitialContextFactory");
h.put(Context.PROVIDER_URL,"t3://localhost:7001");
Context ctx = new InitialContext(h);
Object objref = ctx.lookup("java:comp/env/ejb/myjndi2");
MyHome home = (MyHome)PortableRemoteObject.narrow(objref,MyHome.class);
MyRemote rm = home.create();
rm.getName();
}catch(Exception e)
System.out.println(e);
exception:
C:\test>java MyClient
Exception in thread "main" java.lang.NoClassDefFoundError: java/lang/AssertionEr
ror
at weblogic.security.subject.DelegatingSubjectStack.<clinit>(DelegatingS
ubjectStack.java:18)
at weblogic.security.service.SubjectManagerImpl.<init>(SubjectManagerImp
l.java:40)
at weblogic.security.service.SubjectManagerImpl.ensureInitialized(Subjec
tManagerImpl.java:286)
at weblogic.jndi.WLInitialContextFactoryDelegate.<clinit>(WLInitialConte
xtFactoryDelegate.java:144)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at weblogic.jndi.WLInitialContextFactory.getInitialContext(WLInitialCont
extFactory.java:131)
at javax.naming.spi.NamingManager.getInitialContext(Unknown Source)
at javax.naming.InitialContext.getDefaultInitCtx(Unknown Source)
at javax.naming.InitialContext.init(Unknown Source)
at javax.naming.InitialContext.<init>(Unknown Source)
at MyClient.m(MyClient.java:21)
at MyClient.main(MyClient.java:46)Since you are receiving a NoClassDefFoundError, you would need to check your classpath for the client application. Make sure that you have the Weblogic JAR and the EJBClient JAR (containing the home and remote interfaces) set in the classpath.
I am not sure if your JNDI name "java:comp/env/ejb/myjndi2" would work in this case, since your application is not a part of the application container. You would need to use the global JNDI name for the EJB (which is set in weblogic-ejb-jar.xml) -
Problem in executing client application as windows service
Hi
I have a client program that sends client ip address to server.
My Requirement is to run this client program as windows service.
For this, i have created a jar and after that i have created a .exe file.
now using sc command in DOS i was created a service named as ClientService
But when i am trying to start this service like other services, it is giving error saying that "The Service did not respond to the start in a timely fashion"
Please help me in this issue1.Can i lock my mobile phone from J2Me Application.In J2ME you can not.
2.How can i register J2ME application as service,means
it started when mobile start and continously Run on my
mobile. can these problem have a solution ,if yes then
how..I haven't seen any device that lets you run a J2ME app at start up as a service like windowsNT. May be you can do the above two things if you dig more in to Symbian OS programming.
Good luck
Manas -
How can I run EJB Client in other computer ?
Hello,
I'm trying to run converter examples.
if ejb client pgm resides on a same machine with j2ee server , it works fine.
But when I put client pgm on a different maching
below message show.
No application client descriptors defined for: ConverterClinet
I put ConverterApp.ear, ConverterAppClient.jar and ConverterClient.class on the machine and
set APPCPATH=ConverterAppClient.jar
set VMARGS=-Dorg.omg.CORBA.ORBInitialHost=xxx.xxx.xx.xx
What should I do to run ejb client on different machine?Hi SangHPark,
I had the same problem but have solved it and it works.
I ran the client remotely from a win98 box.
Keep two things in mind
1> Deploy the applications to an ip address and not to the local host using the deploy too. Use the deploy tool Gui to add a new server and then deploy the application to this ip address.
2> I am running j2ee version 1.3 and jsdk 1.3
Use the following code but instead of using "java:comp/env/ejb/SimpleConverter" use the jndi name of the object: "MyConverter" as specified in the tutorial.
Properties prop = new Properties();
prop.setProperty(Context.INITIAL_CONTEXT_FACTORY,"com.sun.enterprise.naming.SerialInitContextFactory");
prop.setProperty(Context.PROVIDER_URL,"IIOP://xxx.xx.x.xxx:1050");
System.out.println("Attempting to create context...");
Context initial = new InitialContext(prop);
// Instead of this use the below line of code
//Object objref = initial.lookup("java:comp/env/ejb/SimpleConverter");
Object objref = initial.lookup("MyConverter");
// MyConverter is the Jndi name of the ConverterBean as per the tutorial
You need to do the following things.
1> After making changes to the code recompile using Ant and redeploy it.
2> Copy the j2ee.jar, ConverterAppClient.jar and ConverterClient.class file to the machine that u want to run the client from.
3> create a directory called "config" on the remote machine where you copied the files in step two.
4> Copy to this directory the files ejb.properties and security.properties from your j2ee_home\config\ directory.
For example you copied the files in step 2 on the remote machine in the c:\test directory. Create c:\test\config directory and copy the files from step 4 into this directory.
5> Run the following command from the directory where u copied the client files
java -Dorg.omg.CORBA.ORBInitialHost="host name" -classpath .\j2ee.jar;.;.\ConverterAppClient.jar ConverterClient
Monal -
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
DeepikaAre 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. -
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 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 -
Problem with VPN Client and network access
We are running VPN client 4.0.1 on our laptops, and there are a number of users who are getting documents they are using on the internal network (off VPN) corrupted. The initial cause seemed to be the stateful firewall, but I have that turned off, and we are still getting it.
It only seems to be on the machines with VPN client installed, and it is only happening when the user is working on a file direct from the network drive. They are not connecting via the VPN client when the problem occurs.
any suggestions?
William.Did you get any joy with this ? We seem to be having the same issue.
Thanks -
Hi,
I have a question on using EJB / or RMI servers with CORBA clients using
RMI-IIOP transport, which in theory should work, but in practice has few
glitches.
Basically, I have implemented a very simple server, StockTreader, which
looks up for a symbol and returns a 'Stock' object. In the first example, I
simplified the 'Stock' object to be a mere java.lang.String, so that lookup
would simply return the 'synbol'.
Then I have implemented the above, as an RMI-IIOP server (case 1) and a
CORBA server (case 2) with respective clients, and the pair of
client-servers work fine as long as they are CORBA-to-CORBA and RMI-to-RMI.
But the problem arises when I tried using the RMI server (via IIOP) with the
CORBA client, when the client tries to narrow the object ref obtained from
the naming service into the CORBA idl defined type (StockTrader) it ends up
with a class cast exception.
This is what I did to achieve the above results:
[1] Define an RMI interface StockTrader.java (extending java.rmi.Remote)
with the method,
public String lookup( String symbol) throws RMIException;
[2] Implement the StorckTrader interface (on a PortableRemoteObject derived
class, to make it IIOP compliant), and then the server to register the stock
trader with COS Naming service as follows:
String homeName =....
StockTraderImpl trader =new StockTraderImpl();
System.out.println("binding obj <" homeName ">...");
java.util.Hashtable ht =new java.util.Hashtable();
ht.put("java.naming.factory.initial", args[2]);
ht.put("java.naming.provider.url", args[3]);
Context ctx =new InitialContext(ht);
ctx.rebind(homeName, trader);
[3] Generate the RMI-IIOP skeletons for the Implementation class,
rmic -iiop stock.StockTraderImpl
[4] generate the IDL for the RMI interface,
rmic -idl stock.StockTraderImpl
[5] Generate IDL stubs for the CORBA client,
idlj -v -fclient -emitAll StockTraderImpl.idl
[6] Write the client to use the IDL-defined stock trader,
String serverName =args[0];
String symList =args[1];
StockClient client =new StockClient();
System.out.println("init orb...");
ORB orb =ORB.init(args, null);
System.out.println("resolve init name service...");
org.omg.CORBA.Object objRef
=orb.resolve_initial_references("NameService");
NamingContext naming =NamingContextHelper.narrow(objRef);
... define a naming component etc...
org.omg.CORBA.Object obj =naming.resolve(...);
System.out.println("narrow objRef: " obj.getClass() ": " +obj);
StockTrader trader =StockTraderHelper.narrow(obj);
[7] Compile all the classes using Java 1.2.2
[8] start tnameserv (naming service), then the server to register the RMI
server obj
[9] Run the CORBA client, passing it the COSNaming service ref name (with
which the server obj is registered)
The CORBA client successfully finds the server obj ref in the naming
service, the operation StockTraderHelper.narrow() fails in the segment
below, with a class cast exception:
org.omg.CORBA.Object obj =naming.resolve(...);
StockTrader trader =StockTraderHelper.narrow(obj);
The <obj> returned by naming service turns out to be of the type;
class com.sun.rmi.iiop.CDRInputStream$1
This is of the same type when stock trader object is registered in a CORBA
server (as opposed to an RMI server), but works correctly with no casting
excpetions..
Any ideas / hints very welcome.
thanks in advance,
-hariOn the contrary... all that is being said is that we needed to provide clearer examples/documentation in the 5.1.0 release. There will be no difference between the product as found in the service pack and the product found in the 5.1.1. That is, the only substantive will be that 5.1.1 will also
include the examples.
"<=one way=>" wrote:
With reference to your and other messages, it appears that one should not
expect that WLS RMI-IIOP will work in a complex real-life system, at least
not now. In other words, support for real-life CORBA clients is not an
option in the current release of WLS.
TIA
"Eduardo Ceballos" <[email protected]> wrote in message
news:[email protected]...
We currently publish an IDL example, even though the IDL programmingmodel in Java is completely non-functional, in anticipation of the support
needs for uses who need to use IDL to talk to the Weblogic server,
generically. This example illustrates the simplest connectivity; it does not
address how
to integrate CORBA and EJB, a broad topic, fraught with peril, imo. I'llnote in passing that, to my knowledge, none of the other vendors attempt
this topic either, a point which is telling if all the less happy to hear.
For the record then, what is missing from our distribution wrt RMI-IIOPare a RMI-IIOP example, an EJB-IIOP example, an EJB-C++. In this you are
correct; better examples are forth coming.
Still, I would not call our RMI-IIOP implementation fragile. I would saythat customers have an understandably hard time accepting that the IDL
programming model is busted; busted in the sense that there are no C++
libraries to support the EJB model, and busted in the sense that there is
simply no
support in Java for an IDL interface to an EJB. Weblogic has nothing to doit being busted, although we are trying to help our customers deal with it
in productive ways.
For the moment, what there is is a RMI (over IIOP) programming model, aninherently Java to Java programming model, and true to that, we accept and
dispatch IIOP request into RMI server objects. The way I look at it is this:
it's just a protocol, like HTTP, or JRMP; it's not IDL and it has
practically nothing to do with CORBA.
ST wrote:
Eduardo,
Can you give us more details about the comment below:
I fear that as soon as the call to narrow succeeds, the remainingapplication will fail to work correctly because it is too difficult ot
use an idl client in java to work.It seems to me that Weblogic's RMI-IIOP is a very fragile
implementation. We
don't need a "HelloWorld" example, we need a concrete serious example(fully
tested and seriously documented) that works so that we can get a betteridea
on how to integrate CORBA and EJB.
Thanks,
Said
"Eduardo Ceballos" <[email protected]> wrote in message
news:[email protected]...
Please post request to the news group...
As I said, you must separate the idl related classes (class files and
java
files) from the rmi classes... in the rmic step, you must set a newtarget
(as you did), emit the java files into that directory (it's not clearyou
did this), then remove all the rmi class files from the class path... ifyou
need to compile more classes at that point, copy the java files to theidl
directly is you must, but you can not share the types in any way.
I fear that as soon as the call to narrow succeeds, the remainingapplication will fail to work correctly because it is too difficult otuse
an idl client in java to work.
Harindra Rajapakshe wrote:
Hi Eduardo,
Thanks for the help. That is the way I compiled my CORBA client, by
separating the IDL-generated stubs from the RMI ones, but still I
get a
CORBA.BAD_PARAM upon narrowing the client proxy to the interfacetype.
Here's what I did;
+ Define the RMI interfaces, in this case a StockTrader interface.
+ Implement RMI interface by extendingjavax.rmi.PortableRemoteObject
making
it IIOP compliant
+ Implemnnt an RMI server, and compile using JDK1.2.2
+ use the RMI implementation to generate CORBA idl, using RMI-IIOPplugin
utility rmic;
rmic -idl -noValueMethods -always -d idl stock.StockTraderImpl
+ generate Java mappings to the IDL generated above, using RMI-IIOPplugin
util,
idlj -v -fclient -emitAll -tf src stocks\StockTrader.idl
This creates source for the package stock and also
org.omg.CORBA.*
package, presumably IIOP type marshalling
+ compile all classes generated above using JDK1.2.2
+ Implement client (CORBA) using the classes generated above, NOTthe
RMI
proxies.
+ start RMI server, with stockTrader server obj
+ start tnameserv
+ start CORBA client
Then the client errors when trying to narrow the obj ref from the
naming
service, into the CORBA IDL defined interface using,
org.omg.CORBA.Object obj =naming.resolve(nn);
StockTrader trader =StockTraderHelper.narrow(obj); // THIS
ERRORS..!!!
throwing a CORBA.BAD_PARAM exception.
any ideas..?
Thanks in advance,
-hari
----- Original Message -----
From: Eduardo Ceballos <[email protected]>
Newsgroups: weblogic.developer.interest.rmi-iiop
To: Hari Rajapakshe <[email protected]>
Sent: Wednesday, July 26, 2000 4:38 AM
Subject: Re: problem using CORBA clients with RMI/EJBservers..!!!???
Please see the post on june 26, re Errors compiling... somewherein
there,
I suspect, you are referring to the rmi class file when you are
obliged
to
completely segregate these from the idl class files.
Hari Rajapakshe wrote:
Hi,
I have a question on using EJB / or RMI servers with CORBA
clients
using
RMI-IIOP transport, which in theory should work, but in practice
has
few
glitches.
Basically, I have implemented a very simple server,
StockTreader,
which
looks up for a symbol and returns a 'Stock' object. In the firstexample, I
simplified the 'Stock' object to be a mere java.lang.String, so
that
lookup
would simply return the 'synbol'.
Then I have implemented the above, as an RMI-IIOP server (case
1)
and a
CORBA server (case 2) with respective clients, and the pair of
client-servers work fine as long as they are CORBA-to-CORBA andRMI-to-RMI.
But the problem arises when I tried using the RMI server (via
IIOP)
with
the
CORBA client, when the client tries to narrow the object ref
obtained
from
the naming service into the CORBA idl defined type (StockTrader)
it
ends
up
with a class cast exception.
This is what I did to achieve the above results:
[1] Define an RMI interface StockTrader.java (extending
java.rmi.Remote)
with the method,
public String lookup( String symbol) throws RMIException;
[2] Implement the StorckTrader interface (on a
PortableRemoteObject
derived
class, to make it IIOP compliant), and then the server to
register
the
stock
trader with COS Naming service as follows:
String homeName =....
StockTraderImpl trader =new StockTraderImpl();
System.out.println("binding obj <" homeName ">...");
java.util.Hashtable ht =new java.util.Hashtable();
ht.put("java.naming.factory.initial", args[2]);
ht.put("java.naming.provider.url", args[3]);
Context ctx =new InitialContext(ht);
ctx.rebind(homeName, trader);
[3] Generate the RMI-IIOP skeletons for the Implementation
class,
rmic -iiop stock.StockTraderImpl
[4] generate the IDL for the RMI interface,
rmic -idl stock.StockTraderImpl
[5] Generate IDL stubs for the CORBA client,
idlj -v -fclient -emitAll StockTraderImpl.idl
[6] Write the client to use the IDL-defined stock trader,
String serverName =args[0];
String symList =args[1];
StockClient client =new StockClient();
System.out.println("init orb...");
ORB orb =ORB.init(args, null);
System.out.println("resolve init name service...");
org.omg.CORBA.Object objRef
=orb.resolve_initial_references("NameService");
NamingContext naming=NamingContextHelper.narrow(objRef);
... define a naming component etc...
org.omg.CORBA.Object obj =naming.resolve(...);
System.out.println("narrow objRef: " obj.getClass() ":"
+obj);
StockTrader trader =StockTraderHelper.narrow(obj);
[7] Compile all the classes using Java 1.2.2
[8] start tnameserv (naming service), then the server to
register
the
RMI
server obj
[9] Run the CORBA client, passing it the COSNaming service ref
name
(with
which the server obj is registered)
The CORBA client successfully finds the server obj ref in the
naming
service, the operation StockTraderHelper.narrow() fails in thesegment
below, with a class cast exception:
org.omg.CORBA.Object obj =naming.resolve(...);
StockTrader trader =StockTraderHelper.narrow(obj);
The <obj> returned by naming service turns out to be of the
type;
class com.sun.rmi.iiop.CDRInputStream$1
This is of the same type when stock trader object is registeredin a
CORBA
server (as opposed to an RMI server), but works correctly with
no
casting
excpetions..
Any ideas / hints very welcome.
thanks in advance,
-hari
Maybe you are looking for
-
Hi All, My problem is the next: I would like to call two functions, in one function module, but I cannot schedule the second job after the first. I wrote the code, use the parameter PREDJOB_CHECKSTAT of JOB_CLOSE, but when the mother function called
-
Simple question. I purchased an iPhone 5, and added AppleCare to the cart. After processing the order, I found that AppleCare had been dropped from the cart. The phone obviously hasnt shipped yet. I have tried calling, but am unable to reach anyone.
-
Purchasing mini data projector for MacBook Pro. What works together?
I want to purchase a mini data projector for my MacBook Pro. Does anyone have a recommendation of what I should look for in a projector or what would work with my MacBook? Is a MacBook a VGA display? I want a data projector that is very sharp. Any su
-
ITunes 7 and WOW - press a key and get static and skipping galore
I am trying to run iTunes 7 while playing WOW. Whenever I press any key in WOW, itunes goes nuts - static, skipping etc. iTunes 6 worked flawlessly. Buggy buggy buggy.
-
Hi, I have created an applet. Its running well in standalone application. But it is not getting referred in some other localhost. The JAXWS is not getting referred by the JRE. I'm getting the exception as invocation exception, and cannot find the MET