RemoteRuntimeException

Help, please.
I'm running WebLogic 5.1.0, sp3 on NT.
I haven't tried all the examples, but the beanmanaged client and the ListAll
class seem to work fine.
The problem is with my own client program that is VERY similar to the
ListAll, i.e. it does a listBindings("") and then walks through an
enumeration of Bindings, printing a few details.
ListAll works fine, but mine fails on the first nextElement() call with this
exception:
weblogic.rmi.extensions.RemoteRuntimeException
and this msg:
Undeclared checked exception
Not much help, nothing interesting in the log...so what does it mean?
Thanks,
Rod Burgett
webMethods, Inc.

Thank you, I think this is a step in the right direction...the nested
exception is weblogic.rjvm.PeerGoneException; no message.
Does this mean that somewhere between my calls to
NamingEnumeration.hasMoreElements() and NamingEnumeration.nextElement() that
some peer disappears?
It would appear that a ClassCastException is buried in here somewhere as
well:
MyConnection.collectBindingElements - Oops, RemoteRuntimeException contained
this: type(weblogic.rjvm.PeerGoneException), msg()
java.lang.ClassCastException
at
weblogic.utils.classloaders.GenericClassLoader.reallyLoadClass(GenericClassL
oader.java, Compiled Code)
at
weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.
java:172)
at
weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.
java:146)
at weblogic.rjvm.MsgAbbrev.read(MsgAbbrev.java, Compiled Code)
at
weblogic.socket.JVMAbbrevSocket.readMsgAbbrevs(JVMAbbrevSocket.java:505)
at
weblogic.rjvm.MsgAbbrevInputStream.prime(MsgAbbrevInputStream.java:134)
at weblogic.rjvm.RJVMImpl.dispatch(RJVMImpl.java:610)
at
weblogic.rjvm.ConnectionManagerClient.handleRJVM(ConnectionManagerClient.jav
a:34)
at
weblogic.rjvm.ConnectionManager.dispatch(ConnectionManager.java:630)
at
weblogic.socket.JVMAbbrevSocket.dispatch(JVMAbbrevSocket.java:393)
at weblogic.socket.JVMSocketT3.dispatch(JVMSocketT3.java, Compiled
Code)
at
weblogic.socket.JavaSocketMuxer.processSockets(JavaSocketMuxer.java,Compiled
Code)
at
weblogic.socket.SocketReaderRequest.execute(SocketReaderRequest.java:23)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java, Compiled
Code)
--------------- nested within: ------------------
weblogic.rjvm.PeerGoneException:
- with nested exception:
[java.lang.ClassCastException]
at
weblogic.rmi.extensions.AbstractRequest.sendReceive(AbstractRequest.java:76)
at
weblogic.utils.enumerations.BatchingEnumerationBase_WLStub.nextBatch(Batchin
gEnumerationBase_WLStub.java:141)
at
weblogic.utils.enumerations.BatchingEnumerationStub.nextBatch(BatchingEnumer
ationStub.java:87)
at
weblogic.jndi.toolkit.NamingEnumerationStub.nextBatch(NamingEnumerationStub.
java:71)
at
weblogic.utils.enumerations.BatchingEnumerationStub.nextElement(BatchingEnum
erationStub.java:81)
at
com.wm.pkg.ejbim.MyConnection.collectBindingElements(MyConnection.java,
Compiled Code)
at
com.wm.pkg.ejbim.MyConnection.collectBindingElements(MyConnection.java,
Compiled Code)
at
com.wm.pkg.ejbim.MyConnection.listHomeBeans(MyConnection.java:226)
at
com.wm.pkg.ejbim.EJBServerBrowser.listHomeBeans(EJBServerBrowser.java,
Compiled Code)
at com.wm.pkg.ejbim.EJBServerBrowser.main(EJBServerBrowser.java:358)
MyConnection.collectBindingElements - Oops, PeerGoneException contained
this: type java.lang.ClassCastException), msg(null)
java.lang.ClassCastException
at
weblogic.utils.classloaders.GenericClassLoader.reallyLoadClass(GenericClassL
oader.java, Compiled Code)
at
weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.
java:172)
at
weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.
java:146)
at weblogic.rjvm.MsgAbbrev.read(MsgAbbrev.java, Compiled Code)
at
weblogic.socket.JVMAbbrevSocket.readMsgAbbrevs(JVMAbbrevSocket.java:505)
at
weblogic.rjvm.MsgAbbrevInputStream.prime(MsgAbbrevInputStream.java:134)
at weblogic.rjvm.RJVMImpl.dispatch(RJVMImpl.java:610)
at
weblogic.rjvm.ConnectionManagerClient.handleRJVM(ConnectionManagerClient.jav
a:34)
at
weblogic.rjvm.ConnectionManager.dispatch(ConnectionManager.java:630)
at
weblogic.socket.JVMAbbrevSocket.dispatch(JVMAbbrevSocket.java:393)
at weblogic.socket.JVMSocketT3.dispatch(JVMSocketT3.java, Compiled
Code)
at
weblogic.socket.JavaSocketMuxer.processSockets(JavaSocketMuxer.java,Compiled
Code)
at
weblogic.socket.SocketReaderRequest.execute(SocketReaderRequest.java:23)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java, Compiled
Code)
So the peer left because it had trouble casting? The code is real simple:
NamingEnumeration nameEnum = ctx.listBindings( "" );
while ( nameEnum.hasMoreElements() )
Binding aBind = (Binding) nameEnum.nextElement();
...give or take some try...catch code
Rod
Bryan O'Sullivan <[email protected]> wrote in message
news:[email protected]...
r> weblogic.rmi.extensions.RemoteRuntimeException
r> and this msg:
r> Undeclared checked exception
The RemoteRuntimeException contains a nested exception. Check that to
see what's really wrong.
<b
Let us pray:
What a Great System.
Please Do Not Crash.
^G^IP@P6

Similar Messages

  • Weblogic.rmi.extensions.RemoteRuntimeException: Unexpected Exception

    Hi,
    I am using a remote client program to look up data source via JNDI and access a database connection. Here's part of the code:
    Hashtable h = new Hashtable();
    h.put(Context.INITIAL_CONTEXT_FACTORY, "weblogic.jndi.WLInitialContextFactory");
    h.put(Context.PROVIDER_URL, "t3://hostname:12345");
    Context ctx = new InitialContext(h);
    DataSource ds = (DataSource)ctx.lookup("myDS");
    Connection conn = ds.getConnection(); //thrwing exception at this line
    weblogic.rmi.extensions.RemoteRuntimeException: Unexpected Exception
    Pl help ASAP

    Hi,
    Can u please post the complete stackTrace...because there may be many reasons behind "*weblogic.rmi.extensions.RemoteRuntimeException: Unexpected Exception*"..That will really help to understand the root cause.
    If you dont find much StackTrace at Client end then at the sametimestamp ..may be on the Server Log you will find more details.
    Thanks
    Jay SenSharma
    http://jaysensharma.wordpress.com (WebLogic Wonders Are Here)
    Edited by: Jay SenSharma on Feb 25, 2010 8:55 PM

  • Weblogic problem,weblogic.rmi.extensions.RemoteRuntimeException: Unexpected

    hello,everyone.
    I have a problem.please help me.
    My application is running on weblogic 9.2. My oracle is oracle10g. system:linux redhat4.
    my weblogic's log have a problem.
    java.sql.SQLException: weblogic.rmi.extensions.RemoteRuntimeException: Unexpected Exception
    at weblogic.jdbc.rmi.SerialStatement.close(SerialStatement.java:109)
    at com.goldpalm.common.jdbc.DBController.releaseConn(DBController.java:273)
    at com.goldpalm.sale.team.TeamXml.exeTeamLog(TeamXml.java:762)
    at jsp_servlet._ctssale.__teamline_show._jspService(__teamline_show.java:264)
    at weblogic.servlet.jsp.JspBase.service(JspBase.java:34)
    at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:225)
    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:127)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:230)
    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
    at filters.AuthFilter.doFilter(AuthFilter.java:95)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3200)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
    at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:1983)
    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:1844)
    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1344)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:181)

    Hi
    Looking at the error stack trace, you are getting this error when trying to close the statement object from your own java code (not weblogic code...) - DBController.releaseConn(...)
    at com.goldpalm.common.jdbc.DBController.releaseConn(DBController.java:273)
    java.sql.SQLException: weblogic.rmi.extensions.RemoteRuntimeException: Unexpected Exception
    at weblogic.jdbc.rmi.SerialStatement.close(SerialStatement.java:109)
    at com.goldpalm.common.jdbc.DBController.releaseConn(DBController.java:273)
    at com.goldpalm.sale.team.TeamXml.exeTeamLog(TeamXml.java:762)
    Well check the code you have at this location. Usually the way we release/close the db resources are like first close ResultSet, then Statement, then Connection. But if you close connection first, then try to close the Statement object, it throws errors like what you see.
    I am giving 2 methods code snippet. One method is caleld like closeAll(..). This method gets called in finally block of all other db methods that does the actual db code to connect and get data etc etc.
    // Sample main method that does all db stuff...This is just code snippet only and NOT the full code. Focus on try catch finally block
    public static void getCustomerProfile(long custId) throws Exception {
         Connection aConnection = getConnection();
         CallableStatement aCallableStatement = null;
         ResultSet aResultSet = null;
         try {
              aCallableStatement = aConnection.prepareCall("{ call someFunction(?, ?) }");
              aCallableStatement.execute();
              aResultSet = (ResultSet) aCallableStatement.getObject("variable_name_from_sp");
              while(aResultSet.next()) {
                   // get all data for each record etc...
         } catch (Exception e) {
              e.printStackTrace();
              throw e;
         } finally {
              closeAll(aConnection, aCallableStatement, aResultSet);
    // While closing RS, Statment, Connection, enclose them in their own try/catch block and ofcourse check for nulls first
    public static void closeAll(Connection aConn, Statement aStmt, ResultSet aRS) {
         if (aRS != null) {
              try {
                   aRS.close();
              } catch (Exception e) {
                   System.out.println("Not Able To Close The ResultSet");
                   //e.printStackTrace();
         if (aStmt != null) {
              try {
                   aStmt.close();
              } catch (Exception e) {
                   System.out.println("Not Able To Close The Statement");
                   //e.printStackTrace();
         if (aConn != null) {
              try {
                   aConn.close();
              } catch (Exception e) {
                   System.out.println("Not Able To Close The Connection");
                   //e.printStackTrace();
    }Thanks
    Ravi Jegga

  • RemoteRuntimeException on SerialStatement.close()

    I'm using Weblogic server 10.3, and am receiving the following error in our code:
    java.sql.SQLException: weblogic.rmi.extensions.RemoteRuntimeException: Unexpected Exception
    at weblogic.jdbc.rmi.SerialStatement.close(SerialStatement.java:124)
    at weblogic.jdbc.rmi.SerialStatement.close(SerialStatement.java:110)
    Any thoughts on why this might be occurring? I can't find javadocs for any of these classes, so I'm not sure what if anything I need to check.
    Jay

    It is indeed OK by spec to close a statement that has already been closed,
    even if closed implicitly by having closed the connection, and if you find that
    is what is causing the exception, you can certainly file an SR to get that fixed.
    I was just saying that I've seen such exceptions caused by such behavior. If
    you can easily code to close things once (the connection being the only
    crucial one), then you could also just move on with that change.
    The complexity (which does not excuse a bug) is that we are dealing with
    RMI objects, and once/if the connection is closed, sub-objects (the
    internal RMI referents) may no longer exist...
    Joe
    Edited by: Joe Weinstein on Mar 22, 2012 12:37 PM

  • How to look up a TxDataSource bound in weblogic JNDI

    HI,
    How can i look up a TxDataSource bound in weblogic JNDI. When i access it using
    javax.sql.XADataSourse ds = (XADataSourse)context.lookUp(jndiName)
    ..it gives me classcast exception.
    and if i lookup it using javax.sql.DataSource like below
    javax.sql.DataSourse ds = (DataSourse)context.lookUp(jndiName)
    then while executing my sql on the connection object it throws some other excepiton
    like below
    java.sql.SQLException: weblogic.rmi.extensions.RemoteRuntimeException: Unexpected Exception - with nested exception:
    [weblogic.rjvm.PeerGoneException: ; nested exception is:
    java.io.EOFException]
    at weblogic.jdbc.rmi.SerialStatement.executeQuery(SerialStatement.java:92)
    at TestTransactionMgr.main(TestTransactionMgr.java:46)
    How can i solve this problem.. Actually my application needs to handle distributed transactions so i need to implement XADataSource.
    can somebody help me iin this.
    Thanks & Regards
    Akhil Nagpla

    Hi Akhil did u get the solution for distributed database /
    I am also working on same but i dint get the solution yet. Please if u have any solution for the same do mail me to [email protected] and [email protected]
    here goes my problem !
    we have 2 oracle databases.
    I am using Stateless EJB and container managed transaction !
    And inside a ejb method i am getting 2 different connection from 2 different datasources ok !
    Since am using container managed transaction it starts transaction automatically when the method begins,
    and the transaction ends when the method exit out ok !
    Now i insert into 2 databases and when the method exits it gives an error listed below !
    i am using NON emulated datasource with class name "com.evermindsql.DriverManagerDataSource"
    and looking up this datasource in the EJB with name specified in location attribute of datasource !
    "com.evermind.server.rmi.OrionRemoteExcepttion: Transaction was rolled back: javax.transaction.SystemException: could not commit: error code 29540- for additional error code check the oracle log file"
    For distributed database we configured DBLINK also !
    If u can give more info regarding DBlink it will be better ! Even after we set DBlink we are getting error !
    Please tell us how to configure the database !
    Oracle 9iAS
    Oracle 9i DB
    regards
    Sreenath.V

  • How can i look up a TxDataSource bound in Weblogic JNDI

              HI,
              How can i look up a TxDataSource bound in weblogic JNDI. When i access it using
              javax.sql.XADataSourse ds = (XADataSourse)context.lookUp(jndiName)
              .it gives me classcast exception.
              and if i lookup it using javax.sql.DataSource like below
              javax.sql.DataSourse ds = (DataSourse)context.lookUp(jndiName)
              then while executing my sql on the connection object it throws some other excepiton
              like below
              java.sql.SQLException: weblogic.rmi.extensions.RemoteRuntimeException: Unexpected
              Exception - with nested exception:
              [weblogic.rjvm.PeerGoneException: ; nested exception is:
                      java.io.EOFException]
              at weblogic.jdbc.rmi.SerialStatement.executeQuery(SerialStatement.java:92)
              at TestTransactionMgr.main(TestTransactionMgr.java:46)
              How can i solve this problem.. Actually my application needs to handle distributed
              transactions so i need to implement XADataSource.
              can somebody help me iin this.
              Thanks & Regards
              Akhil Nagpla
              

              HI,
              How can i look up a TxDataSource bound in weblogic JNDI. When i access it using
              javax.sql.XADataSourse ds = (XADataSourse)context.lookUp(jndiName)
              .it gives me classcast exception.
              and if i lookup it using javax.sql.DataSource like below
              javax.sql.DataSourse ds = (DataSourse)context.lookUp(jndiName)
              then while executing my sql on the connection object it throws some other excepiton
              like below
              java.sql.SQLException: weblogic.rmi.extensions.RemoteRuntimeException: Unexpected
              Exception - with nested exception:
              [weblogic.rjvm.PeerGoneException: ; nested exception is:
                      java.io.EOFException]
              at weblogic.jdbc.rmi.SerialStatement.executeQuery(SerialStatement.java:92)
              at TestTransactionMgr.main(TestTransactionMgr.java:46)
              How can i solve this problem.. Actually my application needs to handle distributed
              transactions so i need to implement XADataSource.
              can somebody help me iin this.
              Thanks & Regards
              Akhil Nagpla
              

  • RemoteInvokable Error while executing the sqls through weblogic connection object

    Hi, We are getting the following error while trying to execute the sps or sql using
    the weblogic connection pool.
    1. The client is a simple java program (not Bean).
    2. It is processing lots of records (more than 6000). When we are having less no.
    of records we are not getting this error. i.e. 200/600 records.
    java.sql.SQLException: weblogic.rmi.extensions.RemoteRuntimeException - with nested
    exception:
    [java.rmi.NoSuchObjectException: RemoteInvokable - id: '334'
    Start server side stack trace:
    java.rmi.NoSuchObjectException: RemoteInvokable - id: '334'
            at weblogic.rjvm.RJVMImpl.dispatchRequest(RJVMImpl.java:627)
    I am also attaching here the source file.
    Please advise.
    Mishra
    [UpdateTransWork.java]

    Hi Surya,
    Which weblogic version/ service pack are you using?
    Meanwhile, the source of this error could be places
    where you close allocated JDBC objects twice. AFAIR
    it was fixed in the latest service packs.
    Regards,
    Slava Imeshev
    "Surya Narayan Mishra" <[email protected]> wrote in message
    news:3cce522e$[email protected]..
    >
    Hi, We are getting the following error while trying to execute the sps orsql using
    the weblogic connection pool.
    1. The client is a simple java program (not Bean).
    2. It is processing lots of records (more than 6000). When we are havingless no.
    of records we are not getting this error. i.e. 200/600 records.
    java.sql.SQLException: weblogic.rmi.extensions.RemoteRuntimeException -with nested
    exception:
    [java.rmi.NoSuchObjectException: RemoteInvokable - id: '334'
    Start server side stack trace:
    java.rmi.NoSuchObjectException: RemoteInvokable - id: '334'
    at weblogic.rjvm.RJVMImpl.dispatchRequest(RJVMImpl.java:627)
    I am also attaching here the source file.
    Please advise.
    Mishra

  • Unable to deploy a WAR file in Linux

    Hi Every one
    I am trying to deploy the war file from a remote machine.If server is running
    in windows environment it deploying properlly.
    If i tried to deploy the war file Server is running in Linux machine i am
    getting foilloeing error while deploying.
    Can any one sujjest me how to do this one.
    I am using Weblogic 7.0 with service pack 2
    The fillowing Error I am getting in the builder
    weblogic.rjvm.PeerGoneException: ; nested exception is:
         java.io.EOFException
    java.io.EOFException
         at weblogic.rjvm.t3.T3JVMConnection.endOfStream(T3JVMConnection.java:643)
         at weblogic.socket.JavaSocketMuxer.processSockets(JavaSocketMuxer.java:359)
         at weblogic.socket.SocketReaderRequest.execute(SocketReaderRequest.java:23)
         at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:152)
         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:133)
    --------------- nested within: ------------------
    weblogic.rmi.extensions.RemoteRuntimeException: Unexpected Exception - with nested
    exception:
    [weblogic.rjvm.PeerGoneException: ; nested exception is:
         java.io.EOFException]
         at weblogic.management.internal.RemoteMBeanServerImpl_WLStub.invoke(Unknown Source)
         at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:470)
         at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:198)
         at $Proxy2.remove(Unknown Source)
         at weblogic.marathon.server.DeployPanel.runRemove(DeployPanel.java:322)
         at weblogic.marathon.server.DeployPanel.runDeploy(DeployPanel.java:342)
         at weblogic.marathon.server.DeployPanel.run(DeployPanel.java:248)
         at java.lang.Thread.run(Thread.java:484)
    weblogic.rjvm.PeerGoneException: ; nested exception is:
         java.io.EOFException
    java.io.EOFException
         at weblogic.rjvm.t3.T3JVMConnection.endOfStream(T3JVMConnection.java:643)
         at weblogic.socket.JavaSocketMuxer.processSockets(JavaSocketMuxer.java:359)
         at weblogic.socket.SocketReaderRequest.execute(SocketReaderRequest.java:23)
         at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:152)
         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:133)
    --------------- nested within: ------------------
    weblogic.rmi.extensions.RemoteRuntimeException: Unexpected Exception - with nested
    exception:
    [weblogic.rjvm.PeerGoneException: ; nested exception is:
         java.io.EOFException]
         at weblogic.management.internal.RemoteMBeanServerImpl_WLStub.invoke(Unknown Source)
         at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:470)
         at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:198)
         at $Proxy2.remove(Unknown Source)
         at weblogic.marathon.server.DeployPanel.runRemove(DeployPanel.java:322)
         at weblogic.marathon.server.DeployPanel.runDeploy(DeployPanel.java:342)
         at weblogic.marathon.server.DeployPanel.run(DeployPanel.java:248)
         at java.lang.Thread.run(Thread.java:484)

    Mona,
    You have to keep in mind that virtual URL (like servlet context) does not always directly match paths on disk. As you can see http://hostname:7778/j2ee/ maps to C:\Infra10_1_2\j2ee\home\default-web-app. home is the name of the oc4j server. Create another oc4j server and see where its top directory is created.
    About your questions:
    1. Use the Application Server Control "Deploy Web App", like you tried before, but...
    2. It does not work because you have archived the whole directory for oc4j.
    Instead create a directory outside of the oracle home, with structure suggested by the Servlet Primer chapter:
    "Here is the structure of the WAR file for the examples in this chapter:
    EmpInfo.html
    WEB-INF/
    classes/
    HelloWorldServlet.class
    GetEmpInfo.class"
    Then cd to that directory and do
    jar cvf mywebapp.war .
    Deploy like you did before:
    Web Application: pick war file
    App Name: mywebapp
    Map to URL: /mona
    If succesful, check where files end up so you know both url paths and disk paths and how they fit together.

  • PROBLEMS WITH JNDI AND NAMEPARSER/URGENT

    Hi all,
    i am experiencing lot of problems in accessing an LDAP under
    NetscapeDirectory Server using WLS.
    i can connect to the LDAP (using a delegate provider, the one from Sun),
    however, when
    i try to get the NameParser from the context, i always got the exception
    Exception in thread "main" java.io.IOException: Class
    com.sun.jndi.ldap.LdapName
    Parser with code=123 does not implement Serializable, Externalizable or
    WLSerial
    izable
    at
    weblogic.common.internal.WLObjectOutputStreamBase.writeObjectBody(WLO
    bjectOutputStreamBase.java:895)
    at
    weblogic.common.internal.WLObjectOutputStreamBase.writeObject(WLObjec
    tOutputStreamBase.java:1011)
    at
    weblogic.common.internal.WLObjectOutputStreamBase.writeObjectWL(WLObj
    ectOutputStreamBase.java:166)
    at
    weblogic.rmi.extensions.AbstractOutputStream2.writeObject(AbstractOut
    putStream2.java:82)
    at
    weblogic.jndi.remote.DirContextWrapper_WLSkel.invoke(DirContextWrappe
    r_WLSkel.java:299)
    at
    weblogic.rmi.extensions.BasicServerObjectAdapter.invoke(BasicServerOb
    jectAdapter.java, Compiled Code)
    at
    weblogic.rmi.extensions.BasicRequestHandler.handleRequest(BasicReques
    tHandler.java:69)
    at
    weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest
    .java:15)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java,
    Compiled Code)
    --------------- nested within: ------------------
    weblogic.rmi.MarshalException: error marshalling return
    - with nested exception:
    [java.io.IOException: Class com.sun.jndi.ldap.LdapNameParser with
    code=123 does
    not implement Serializable, Externalizable or WLSerializable]
    at
    weblogic.jndi.remote.DirContextWrapper_WLSkel.invoke(DirContextWrappe
    r_WLSkel.java:301)
    at
    weblogic.rmi.extensions.BasicServerObjectAdapter.invoke(BasicServerOb
    jectAdapter.java, Compiled Code)
    at
    weblogic.rmi.extensions.BasicRequestHandler.handleRequest(BasicReques
    tHandler.java:69)
    at
    weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest
    .java:15)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java,
    Compiled Code)
    --------------- nested within: ------------------
    weblogic.rmi.ServerException: A remote exception occurred while
    executing the me
    thod on the remote object
    - with nested exception:
    [weblogic.rmi.MarshalException: error marshalling return
    - with nested exception:
    [java.io.IOException: Class com.sun.jndi.ldap.LdapNameParser with
    code=123 does
    not implement Serializable, Externalizable or WLSerializable]]
    at
    weblogic.rmi.extensions.AbstractRequest.sendReceive(AbstractRequest.j
    ava:76)
    at
    weblogic.jndi.remote.DirContextWrapper_WLStub.getNameParser(DirContex
    tWrapper_WLStub.java:929)
    at
    javax.naming.InitialContext.getNameParser(InitialContext.java:499)
    at
    com.nokia.nsg.admintool.model.DelegateTest.main(DelegateTest.java:43)
    --------------- nested within: ------------------
    weblogic.rmi.extensions.RemoteRuntimeException: Undeclared checked
    exception - w
    ith nested exception:
    [weblogic.rmi.ServerException: A remote exception occurred while
    executing the m
    ethod on the remote object
    - with nested exception:
    [weblogic.rmi.MarshalException: error marshalling return
    - with nested exception:
    [java.io.IOException: Class com.sun.jndi.ldap.LdapNameParser with
    code=123 does
    not implement Serializable, Externalizable or WLSerializable]]]
    at
    weblogic.jndi.remote.DirContextWrapper_WLStub.getNameParser(DirContex
    tWrapper_WLStub.java:954)
    at
    javax.naming.InitialContext.getNameParser(InitialContext.java:499)
    Has anyone ever find this exception???
    can anyone help me???
    thanx in advance and regards
    marco

    Friend, In LAN the network speed is high so you don't feel the problem. But on real network the speeds becomes slow and when one thread on the reading process is suspended and the other on write is executed the results are ostensible to be unreliable.
    One alternative is use synchronization or some synchronization flag, but I suggest you to have one thread for both the task. Though you have a thread for each client connected.
    Single thread model will help you to avoid synchronization headches and also the access won't be simultaneous.
    You have to change the design a little.
    Hope that works,
    Ashish

  • Problem when getting resultset when using connection pooling in weblogic

    Hello,
    I am new to database connection pooling. I am using weblogic server, Java 1.6, MySql database. I have done connection pooling in weblogic server. The problem arise when I try to run select query I cannot fetch data in ResultSet. For insert it works fine...
    import java.io.Serializable;
    import java.sql.Connection;
    import java.sql.ResultSet;
    import java.sql.Statement;
    import java.util.ArrayList;
    import java.util.List;
    import java.util.Properties;
    import javax.naming.Context;
    import javax.naming.InitialContext;
    import javax.sql.DataSource;
    public class DatabaseToText implements Serializable {
    public DatabaseToText() {
    super();
    // TODO Auto-generated constructor stub
    public static void main(String[] args) {
    Connection conn;
    Statement stmt;
    ResultSet rs;
    String str1, str2;
    List l1 = new ArrayList();
    try {
    System.out.println("in try block");
    Properties prop = new Properties();
    prop.put(Context.INITIAL_CONTEXT_FACTORY, "weblogic.jndi.WLInitialContextFactory");
    prop.put(Context.PROVIDER_URL, "t3://localhost:7001");
    System.out.println("properties are set ");
    Context ctx = new InitialContext(prop);
    System.out.println("b4 lookup(mysqljndi)");
    Object obj = ctx.lookup("mysqljndi"); // java:comp/env/CPDS
    System.out.println("afta lookup(mysqljndi)");
    DataSource ds = (DataSource) obj;
    conn = ds.getConnection();
    stmt = conn.createStatement();
    String query = "select * from logindb.userregister";
    System.out.println("query is = " + query);
    rs = stmt.executeQuery(query);
    System.out.println("size of rs is :: " + rs.getFetchSize());
    if (rs != null) {
    while (rs.next()) {
    str1 = rs.getString(0);
    str2 = rs.getString(1);
    System.out.println("username is :: " + str1 + "password is : " + str2);
    } else {
    System.out.println("no values get fetched");
    ctx.close();
    } catch (Exception e) {
    e.printStackTrace();
    OUTPUT IN CONSOLE
    in try block
    properties are set
    b4 lookup(mysqljndi)
    afta lookup(mysqljndi)
    query is = select * from logindb.userregister
    size of rs is :: 0
    java.sql.SQLException: weblogic.rmi.extensions.RemoteRuntimeException: Unexpected Exception - with nested exception:
    [java.rmi.MarshalException: error marshalling return; nested exception is:
         java.io.NotSerializableException: com.mysql.jdbc.ResultSet]
         at weblogic.jdbc.rmi.SerialResultSet.next(SerialResultSet.java:89)
         at DatabaseToText.main(DatabaseToText.java:69)
    Record is getting inserted but when i use select query i cannot get the output...
    Regards,

    This problem is solved in JDBC section of this forum

  • Message driven bean and JDBC Pool

              I am working with weblogic 7.0
              I have created a message driven bean the receives messages and store them in the
              database.
              for performance issue I have put the (SQL)Connection and a preparedStatement in
              the ejbCreate() method ...and I close them in the ejbRemove() method...but I notice
              that the ejbRemove dose not called ... even when I restart the weblogic7.0
              I notice also that when I deploy the the Message driven bean ...it consume a number
              of connections equals the number of instances created by weblogic.
              if I redeploy the message driven bean ...the weblogic consume anthor connections
              without free up the previous connections.
              thank you for any help
              

              Hi,
              EjbRemove will never be called for a message driven bean as it follows the lifecycle
              of a StatlessSession.
              http://e-docs.bea.com/wls/docs61/ejb/EJB_environment.html#1039510
              The container will call EJBRemove only when it gets a RemoteRuntimeException and
              has to recycle the bean.
              -Vimala Ranganathan
              "eyad" <[email protected]> wrote:
              >
              >I am working with weblogic 7.0
              >
              >I have created a message driven bean the receives messages and store
              >them in the
              >database.
              >for performance issue I have put the (SQL)Connection and a preparedStatement
              >in
              >the ejbCreate() method ...and I close them in the ejbRemove() method...but
              >I notice
              >that the ejbRemove dose not called ... even when I restart the weblogic7.0
              >
              >I notice also that when I deploy the the Message driven bean ...it consume
              >a number
              >of connections equals the number of instances created by weblogic.
              >if I redeploy the message driven bean ...the weblogic consume anthor
              >connections
              >without free up the previous connections.
              >thank you for any help
              >
              

  • I am getting this error , any body please help

    When i am using WLST to connect the admin server i am getting the following error.
    I appreciate, if anybody can help me to resolve this.
    connect('system', 'system','t3://localhost:9001')
    Connecting to weblogic server instance running at t3://localhost:9001 as username system ...
    Traceback (innermost last):
    File "<input>", line 1, in ?
    File "<iostream>", line 74, in connect
    WLSTException: 'Error occured while performing connect : Unknown Error. Use dumpStack() to view the error stack trace'
    wls:/(offline)> dumpStack( )
    weblogic.rjvm.PeerGoneException: ; nested exception is:
    java.io.EOFException
    at weblogic.rjvm.BasicOutboundRequest.sendReceive(BasicOutboundRequest.java:108)
    at weblogic.rmi.internal.BasicRemoteRef.invoke(BasicRemoteRef.java:137)
    at weblogic.management.mbeanservers.compatibility.internal.RemoteMBeanServerImpl_922_WLStub.getAttribute(Unknown Source)
    at weblogic.management.internal.MBeanProxy.getAttribute(MBeanProxy.java:610)
    at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:226)
    at $Proxy0.isAdminServer(Unknown Source)
    at weblogic.management.scripting.WLScriptContext.connect(WLScriptContext.java:135)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at org.python.core.PyReflectedFunction.__call__(PyReflectedFunction.java)
    at org.python.core.PyMethod.__call__(PyMethod.java)
    at org.python.core.PyObject.__call__(PyObject.java)
    at org.python.core.PyObject.invoke(PyObject.java)
    at org.python.pycode._pyx0.connect$2(<iostream>:68)
    at org.python.pycode._pyx0.call_function(<iostream>)
    at org.python.core.PyTableCode.call(PyTableCode.java)
    at org.python.core.PyTableCode.call(PyTableCode.java)
    at org.python.core.PyTableCode.call(PyTableCode.java)
    at org.python.core.PyFunction.__call__(PyFunction.java)
    at org.python.pycode._pyx3.f$0(<input>:1)
    at org.python.pycode._pyx3.call_function(<input>)
    at org.python.core.PyTableCode.call(PyTableCode.java)
    at org.python.core.PyCode.call(PyCode.java)
    at org.python.core.Py.runCode(Py.java)
    at org.python.core.Py.exec(Py.java)
    at org.python.util.PythonInterpreter.exec(PythonInterpreter.java)
    at org.python.util.InteractiveInterpreter.runcode(InteractiveInterpreter.java)
    at org.python.util.InteractiveInterpreter.runsource(InteractiveInterpreter.java)
    at org.python.util.InteractiveInterpreter.runsource(InteractiveInterpreter.java)
    at weblogic.WLST.main(WLST.java:110)
    Caused by: java.io.EOFException
    at weblogic.rjvm.t3.T3JVMConnection.endOfStream(T3JVMConnection.java:874)
    at weblogic.socket.SocketMuxer.deliverExceptionAndCleanup(SocketMuxer.java:583)
    at weblogic.socket.SocketMuxer.deliverEndOfStream(SocketMuxer.java:533)
    at weblogic.socket.SocketMuxer.readReadySocketOnce(SocketMuxer.java:691)
    at weblogic.socket.SocketMuxer.readReadySocket(SocketMuxer.java:638)
    at weblogic.socket.JavaSocketMuxer.processSockets(JavaSocketMuxer.java:282)
    at weblogic.socket.SocketReaderRequest.execute(SocketReaderRequest.java:32)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)
    --------------- nested within: ------------------
    weblogic.rmi.extensions.RemoteRuntimeException: Unexpected Exception - with nested exception:
    [weblogic.rjvm.PeerGoneException: ; nested exception is:
            java.io.EOFException]
    at weblogic.management.mbeanservers.compatibility.internal.RemoteMBeanServerImpl_922_WLStub.getAttribute(Unknown Source)
    at weblogic.management.internal.MBeanProxy.getAttribute(MBeanProxy.java:610)
    at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:226)
    at $Proxy0.isAdminServer(Unknown Source)
    at weblogic.management.scripting.WLScriptContext.connect(WLScriptContext.java:135)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at org.python.core.PyReflectedFunction.__call__(PyReflectedFunction.java)
    at org.python.core.PyMethod.__call__(PyMethod.java)
    at org.python.core.PyObject.__call__(PyObject.java)
    at org.python.core.PyObject.invoke(PyObject.java)
    at org.python.pycode._pyx0.connect$2(<iostream>:68)
    at org.python.pycode._pyx0.call_function(<iostream>)
    at org.python.core.PyTableCode.call(PyTableCode.java)
    at org.python.core.PyTableCode.call(PyTableCode.java)
    at org.python.core.PyTableCode.call(PyTableCode.java)
    at org.python.core.PyFunction.__call__(PyFunction.java)
    at org.python.pycode._pyx3.f$0(<input>:1)
    at org.python.pycode._pyx3.call_function(<input>)
    at org.python.core.PyTableCode.call(PyTableCode.java)
    at org.python.core.PyCode.call(PyCode.java)
    at org.python.core.Py.runCode(Py.java)
    at org.python.core.Py.exec(Py.java)
    at org.python.util.PythonInterpreter.exec(PythonInterpreter.java)
    at org.python.util.InteractiveInterpreter.runcode(InteractiveInterpreter.java)
    at org.python.util.InteractiveInterpreter.runsource(InteractiveInterpreter.java)
    at org.python.util.InteractiveInterpreter.runsource(InteractiveInterpreter.java)
    at weblogic.WLST.main(WLST.java:110)
    weblogic.rmi.extensions.RemoteRuntimeException: Unexpected Exception - with nested exception:
    [weblogic.rjvm.PeerGoneException: ; nested exception is:
            java.io.EOFException]
    wls:/(offline)>

    I am getting this error even though tunneling is enabled, anybody knows why this happens
    Connecting to weblogic server instance running at http://localhost:9001 as username system ...
    <Mar 30, 2009 4:15:52 PM EDT> <Error> <RJVM> <BEA-000515> <execute failed
    java.net.ProtocolException: Tunneling result not OK, result: 'DEAD', id: '2'
    java.net.ProtocolException: Tunneling result not OK, result: 'DEAD', id: '2'
    at weblogic.rjvm.http.HTTPClientJVMConnection.receiveAndDispatch(HTTPClientJVMConnection.java:463)
    at weblogic.rjvm.http.HTTPClientJVMConnection.execute(HTTPClientJVMConnection.java:327)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)
    >
    Traceback (innermost last):
    File "<input>", line 1, in ?
    File "<iostream>", line 74, in connect
    WLSTException: 'Error occured while performing connect : Unknown Error. Use dumpStack() to view the error stack trace'
    wls:/(offline)> dumpStack()
    weblogic.rjvm.PeerGoneException: ; nested exception is:
    java.net.ProtocolException: Tunneling result not OK, result: 'DEAD', id: '2'
    at weblogic.rjvm.BasicOutboundRequest.sendReceive(BasicOutboundRequest.java:108)
    at weblogic.rmi.internal.BasicRemoteRef.invoke(BasicRemoteRef.java:137)
    at weblogic.management.mbeanservers.compatibility.internal.RemoteMBeanServerImpl_922_WLStub.getAttribute(Unknown Source)
    at weblogic.management.internal.MBeanProxy.getAttribute(MBeanProxy.java:610)
    at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:226)
    at $Proxy0.isAdminServer(Unknown Source)
    at weblogic.management.scripting.WLScriptContext.connect(WLScriptContext.java:135)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at org.python.core.PyReflectedFunction.__call__(PyReflectedFunction.java)
    at org.python.core.PyMethod.__call__(PyMethod.java)
    at org.python.core.PyObject.__call__(PyObject.java)
    at org.python.core.PyObject.invoke(PyObject.java)
    at org.python.pycode._pyx0.connect$2(<iostream>:68)
    at org.python.pycode._pyx0.call_function(<iostream>)
    at org.python.core.PyTableCode.call(PyTableCode.java)
    at org.python.core.PyTableCode.call(PyTableCode.java)
    at org.python.core.PyFunction.__call__(PyFunction.java)
    at org.python.pycode._pyx2.f$0(<input>:1)
    at org.python.pycode._pyx2.call_function(<input>)
    at org.python.core.PyTableCode.call(PyTableCode.java)
    at org.python.core.PyCode.call(PyCode.java)
    at org.python.core.Py.runCode(Py.java)
    at org.python.core.Py.exec(Py.java)
    at org.python.util.PythonInterpreter.exec(PythonInterpreter.java)
    at org.python.util.InteractiveInterpreter.runcode(InteractiveInterpreter.java)
    at org.python.util.InteractiveInterpreter.runsource(InteractiveInterpreter.java)
    at org.python.util.InteractiveInterpreter.runsource(InteractiveInterpreter.java)
    at weblogic.WLST.main(WLST.java:110)
    Caused by: java.net.ProtocolException: Tunneling result not OK, result: 'DEAD', id: '2'
    at weblogic.rjvm.http.HTTPClientJVMConnection.receiveAndDispatch(HTTPClientJVMConnection.java:463)
    at weblogic.rjvm.http.HTTPClientJVMConnection.execute(HTTPClientJVMConnection.java:327)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)
    --------------- nested within: ------------------
    weblogic.rmi.extensions.RemoteRuntimeException: Unexpected Exception - with nested exception:
    [weblogic.rjvm.PeerGoneException: ; nested exception is:
            java.net.ProtocolException: Tunneling result not OK, result: 'DEAD', id: '2']
    at weblogic.management.mbeanservers.compatibility.internal.RemoteMBeanServerImpl_922_WLStub.getAttribute(Unknown Source)
    at weblogic.management.internal.MBeanProxy.getAttribute(MBeanProxy.java:610)
    at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:226)
    at $Proxy0.isAdminServer(Unknown Source)
    at weblogic.management.scripting.WLScriptContext.connect(WLScriptContext.java:135)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at org.python.core.PyReflectedFunction.__call__(PyReflectedFunction.java)
    at org.python.core.PyMethod.__call__(PyMethod.java)
    at org.python.core.PyObject.__call__(PyObject.java)
    at org.python.core.PyObject.invoke(PyObject.java)
    at org.python.pycode._pyx0.connect$2(<iostream>:68)
    at org.python.pycode._pyx0.call_function(<iostream>)
    at org.python.core.PyTableCode.call(PyTableCode.java)
    at org.python.core.PyTableCode.call(PyTableCode.java)
    at org.python.core.PyFunction.__call__(PyFunction.java)
    at org.python.pycode._pyx2.f$0(<input>:1)
    at org.python.pycode._pyx2.call_function(<input>)
    at org.python.core.PyTableCode.call(PyTableCode.java)
    at org.python.core.PyCode.call(PyCode.java)
    at org.python.core.Py.runCode(Py.java)
    at org.python.core.Py.exec(Py.java)
    at org.python.util.PythonInterpreter.exec(PythonInterpreter.java)
    at org.python.util.InteractiveInterpreter.runcode(InteractiveInterpreter.java)
    at org.python.util.InteractiveInterpreter.runsource(InteractiveInterpreter.java)
    at org.python.util.InteractiveInterpreter.runsource(InteractiveInterpreter.java)
    at weblogic.WLST.main(WLST.java:110)
    weblogic.rmi.extensions.RemoteRuntimeException: Unexpected Exception - with nested exception:
    [weblogic.rjvm.PeerGoneException: ; nested exception is:
            java.net.ProtocolException: Tunneling result not OK, result: 'DEAD', id: '2']

  • Trouble Registering Custom MBean in WLS 6.1 (Example from JMX Guide)

    Hi there,
    I have trouble getting an example to work provided in the BEA Manual
    "Programming WebLogic JMX Services". The example of registering a
    custom MBeans produces in my case:
    java -cp .;C:\bea\wlserver6.1\lib\weblogic.jar jmx.dummy.MyClient
    Getting BEA MBean Server
    Using domain: weblogic
    Create object name
    Create MBean Dummy within MBean Server
    Could not create MBean Dummy
    java.rmi.UnmarshalException: error unmarshalling arguments; nested
    exception is:
    java.lang.ClassNotFoundException: jmx.dummy.MyClient
    java.lang.ClassNotFoundException: jmx.dummy.MyClient
    <<no stack trace available>>
    --------------- nested within: ------------------
    weblogic.rmi.extensions.RemoteRuntimeException - with nested
    exception:
    [java.rmi.UnmarshalException: error unmarshalling arguments; nested
    exception is:
            java.lang.ClassNotFoundException: jmx.dummy.MyClient]
    at weblogic.rmi.internal.ProxyStub.invoke(ProxyStub.java:60)
    at $Proxy2.registerMBean(Unknown Source)
    at jmx.dummy.MyClient.registerMBean(MyClient.java:57)
    at jmx.dummy.MyClient.main(MyClient.java:19)
    I have a custom MBean: MyCustomMBean:
    package jmx.dummy;
    public interface MyCustomMBean
    public int      getAttribute();
    and it's implementation class MyClient listed below. Does anybody know
    what I'm doing wrong ?
    Greetings,
    Alex
    package jmx.dummy;
    import weblogic.management.MBeanHome;
    import weblogic.management.Helper;
    import weblogic.management.RemoteMBeanServer;
    import javax.management.*;
    public class MyClient implements MyCustomMBean, java.io.Serializable
    MBeanServer server = null;
    ObjectName mbo = null;
    String mbeanName = null;
    public static void main(String[] args)
    MyClient client = new MyClient();
    client.createMBeanServer();
    client.registerMBean();
    client.getMBeanInfo();
    private void createMBeanServer()
    MBeanHome mbh =
    Helper.getMBeanHome("system","beabeabea","t3://localhost:7001","petstoreServer");
    echo("Getting BEA MBean Server");
    server = mbh.getMBeanServer();
    if (server == null)
    echo("Server is null");
    System.exit(2);
    private void registerMBean()
    String domain = server.getDefaultDomain();
    echo("Using domain: " + domain);
    mbeanName = new String("Dummy");
    try
    echo("Create object name");
    mbo = new ObjectName(domain + ":type="+mbeanName);
    catch (MalformedObjectNameException e1)
    echo("MalformedObjectNameException");
    e1.printStackTrace();
    System.exit(1);
    echo("Create MBean " + mbeanName + " within MBean Server");
    try
    //server.createMBean(mbeanName,mbo);
    server.registerMBean((Object) new MyClient(), mbo);
    catch (Exception e)
    echo("Could not create MBean " + mbeanName);
    e.printStackTrace();
    System.exit(1);
    private void getMBeanInfo()
    echo("getting management information for "+mbeanName);
    MBeanInfo info = null;
    try
    info = server.getMBeanInfo(mbo);
    catch (Exception e)
    echo("could not get MBeanInfo object for "+mbeanName);
    e.printStackTrace();
    return;
    echo("CLASSNAME: \t"+info.getClassName());
    echo("DESCRIPTION: \t"+info.getDescription());
    echo("ATTRIBUTES: todo ....");
    echo("\n\n");
    try
    echo("Get MBean Values:");
    String state = (String)
    server.getAttribute(mbo,"MyAttribute");
    catch (Exception e)
    echo("Could not read attributes");
    e.printStackTrace();
    return;
    echo("End of DEMO");
    private void echo(String error)
    System.out.println(error);
    public int getAttribute()
    return 3434;

    Hi, i'm using wl 6.0 on HPunix.
    And.. we don't have any serverclasses folder. :(
    Audun
    [email protected] (Alex) wrote:
    OK, I got it working. Will answer it here in case somebody else has a
    problem. Editing the CLASSPATH of WLS did not work for me but putting
    my classes in ./config/serverclasses/ did the trick. But then I
    encountered another problem, new exception that my code was not JMX
    compliant. Seperating the MBean implementation for the MyClient class
    to a new class worked:
    new class MyCustom:
    package jmx.dummy;
    public class MyCustom implements
    jmx.dummy.MyCustomMBean,java.io.Serializable
    public int getMyAttribute()
    return 3434;
    untouched MyCustomMBean class:
    package jmx.dummy;
    public interface MyCustomMBean
    public int      getMyAttribute();
    edited MyClient class:
    package jmx.dummy;
    import weblogic.management.MBeanHome;
    import weblogic.management.Helper;
    import weblogic.management.RemoteMBeanServer;
    import javax.management.*;
    public class MyClient
    MBeanServer server = null;
    ObjectName mbo = null;
    String mbeanName = null;
    public static void main(String[] args)
    MyClient client = new MyClient();
    client.createMBeanServer();
    client.registerMBean();
    client.getMBeanInfo();
         client.unregister();
    private void createMBeanServer()
    MBeanHome mbh =
    Helper.getMBeanHome("system","beabeabea","t3://localhost:7001","examplesServer");
    echo("Getting BEA MBean Server");
    server = mbh.getMBeanServer();
    if (server == null)
    echo("Server is null");
    System.exit(2);
    private void registerMBean()
    String domain = server.getDefaultDomain();
    echo("Using domain: " + domain);
    mbeanName = new String("MyCustomMBean");
    try
    echo("Create object name");
    mbo = new ObjectName(domain + ":type="+mbeanName);
    catch (MalformedObjectNameException e1)
    echo("MalformedObjectNameException");
    e1.printStackTrace();
    System.exit(1);
    echo("Create MBean " + mbeanName + " within MBean Server");
    try
    //server.createMBean(mbeanName,mbo);
    server.registerMBean((Object) new MyCustom(), mbo);
    catch (Exception e)
    echo("Could not create MBean " + mbeanName);
    e.printStackTrace();
    System.exit(1);
    private void getMBeanInfo()
    echo("getting management information for "+mbeanName);
    MBeanInfo info = null;
    try
    info = server.getMBeanInfo(mbo);
    catch (Exception e)
    echo("could not get MBeanInfo object for "+mbeanName);
    e.printStackTrace();
    return;
    echo("CLASSNAME: \t"+info.getClassName());
    echo("DESCRIPTION: \t"+info.getDescription());
    echo("ATTRIBUTES: todo ....");
    echo("\n\n");
    try
    echo("Get MBean Values:");
    String state =
    (server.getAttribute(mbo,"MyAttribute")).toString();
    System.out.println("state is "+state);
    catch (Exception e)
    echo("Could not read attributes");
    e.printStackTrace();
    return;
    echo("End of DEMO");
    private void echo(String error)
    System.out.println(error);
    public int getAttribute()
    return 3434;
    private void unregister()
    try
    server.unregisterMBean(mbo);
    catch (Exception e)
    echo("could not unregister mbean");
    [email protected] (Alex) wrote in message news:<[email protected]>...
    Hi there,
    I have trouble getting an example to work provided in the BEA Manual
    "Programming WebLogic JMX Services". The example of registering a
    custom MBeans produces in my case:
    java -cp .;C:\bea\wlserver6.1\lib\weblogic.jar jmx.dummy.MyClient
    Getting BEA MBean Server
    Using domain: weblogic
    Create object name
    Create MBean Dummy within MBean Server
    Could not create MBean Dummy
    java.rmi.UnmarshalException: error unmarshalling arguments; nested
    exception is:
    java.lang.ClassNotFoundException: jmx.dummy.MyClient
    java.lang.ClassNotFoundException: jmx.dummy.MyClient
    <<no stack trace available>>
    --------------- nested within: ------------------
    weblogic.rmi.extensions.RemoteRuntimeException - with nested
    exception:
    [java.rmi.UnmarshalException: error unmarshalling arguments; nested
    exception is:
    java.lang.ClassNotFoundException: jmx.dummy.MyClient]
    at weblogic.rmi.internal.ProxyStub.invoke(ProxyStub.java:60)
    at $Proxy2.registerMBean(Unknown Source)
    at jmx.dummy.MyClient.registerMBean(MyClient.java:57)
    at jmx.dummy.MyClient.main(MyClient.java:19)
    I have a custom MBean: MyCustomMBean:
    package jmx.dummy;
    public interface MyCustomMBean
    public int      getAttribute();
    and it's implementation class MyClient listed below. Does anybody know
    what I'm doing wrong ?
    Greetings,
    Alex
    package jmx.dummy;
    import weblogic.management.MBeanHome;
    import weblogic.management.Helper;
    import weblogic.management.RemoteMBeanServer;
    import javax.management.*;
    public class MyClient implements MyCustomMBean, java.io.Serializable
    MBeanServer server = null;
    ObjectName mbo = null;
    String mbeanName = null;
    public static void main(String[] args)
    MyClient client = new MyClient();
    client.createMBeanServer();
    client.registerMBean();
    client.getMBeanInfo();
    private void createMBeanServer()
    MBeanHome mbh =
    Helper.getMBeanHome("system","beabeabea","t3://localhost:7001","petstoreServer");
    echo("Getting BEA MBean Server");
    server = mbh.getMBeanServer();
    if (server == null)
    echo("Server is null");
    System.exit(2);
    private void registerMBean()
    String domain = server.getDefaultDomain();
    echo("Using domain: " + domain);
    mbeanName = new String("Dummy");
    try
    echo("Create object name");
    mbo = new ObjectName(domain + ":type="+mbeanName);
    catch (MalformedObjectNameException e1)
    echo("MalformedObjectNameException");
    e1.printStackTrace();
    System.exit(1);
    echo("Create MBean " + mbeanName + " within MBean Server");
    try
    //server.createMBean(mbeanName,mbo);
    server.registerMBean((Object) new MyClient(), mbo);
    catch (Exception e)
    echo("Could not create MBean " + mbeanName);
    e.printStackTrace();
    System.exit(1);
    private void getMBeanInfo()
    echo("getting management information for "+mbeanName);
    MBeanInfo info = null;
    try
    info = server.getMBeanInfo(mbo);
    catch (Exception e)
    echo("could not get MBeanInfo object for "+mbeanName);
    e.printStackTrace();
    return;
    echo("CLASSNAME: \t"+info.getClassName());
    echo("DESCRIPTION: \t"+info.getDescription());
    echo("ATTRIBUTES: todo ....");
    echo("\n\n");
    try
    echo("Get MBean Values:");
    String state = (String)
    server.getAttribute(mbo,"MyAttribute");
    catch (Exception e)
    echo("Could not read attributes");
    e.printStackTrace();
    return;
    echo("End of DEMO");
    private void echo(String error)
    System.out.println(error);
    public int getAttribute()
    return 3434;

  • SiteMinder Authentication Realm has NOT been correctly configured and...

    Hi All,
    When I set the realm (associated with the authentication provider) as UNPROTECTED, I see the following in my AUWebAgent.log (authentication web agent log):
    [31 Aug 2006 16:19:07,050] [main] [INFO] Configuration: Support for TP cookies is : ENABLED.
    [31 Aug 2006 16:19:07,050] [main] [INFO] Configuration: DefaultAgentName: bppttest.micron.com.
    [31 Aug 2006 16:19:07,051] [main] [INFO] Configuration: FilterDomainName: DISABLED
    [31 Aug 2006 16:19:07,051] [main] [DEBUG] Creating caches ..
    [31 Aug 2006 16:19:07,051] [main] [DEBUG] Configuration: No Cache Timeout specified. Default is 600 seconds
    [31 Aug 2006 16:19:07,051] [main] [DEBUG] Configuration: No Resource Cache Size specified. Default is: 0
    [31 Aug 2006 16:19:07,051] [main] [DEBUG] Configuration: No Authentication Cache Size specified. Default is: 0
    [31 Aug 2006 16:19:07,051] [main] [DEBUG] Configuration: No Authorization Cache size specified. Default is: 0
    [31 Aug 2006 16:19:07,051] [main] [DEBUG] Configuration: Auditing is DISABLED
    [31 Aug 2006 16:19:07,051] [main] [DEBUG] Configuration: Caching for anonymous users is DISABLED
    [31 Aug 2006 16:19:07,053] [main] [DEBUG] The SiteMinder Resource Manager is checking if resource "/smauthenticationrealm" is Protected.
    [31 Aug 2006 16:19:07,129] [main] [INFO] Resource "/smauthenticationrealm" is NOT Protected.
    [31 Aug 2006 16:19:07,129] [main] [ERROR] The SiteMinder Authentication Realm has NOT been correctly configured and is unavailable.
    Additional info:
    Using SiteMinder 5.5 on WebLogic 8.1 sp5
    When & if I set all my realms as protected then I am unable to startup my servers and get the folowing error:
    We are trying to setup (as in intergrate SiteMinder with Savvion) SiteMinder v2 with weblogic 8.1 sp 5. We have appropriately included the references to variours siteminder related jars as per Netegrity's ASA document. We aren't using any webserver, instead wewould be using launching page (which be a protected resource). The following is the installation, configuration, and testing information related to various siteminder components:
    SiteMinder Identity Asserter (IA) - installed, configured & tested successfully.
    SiteMinder Authentication Provider - installed, configured & test result -> Unsuccessful.
    SiteMinder Authorziation provider - installed, configured & test result -> Unsuccessful.
    Has anyone seen anything similar to the following? My guess on the above is that it looks like it is trying initialise siteminder stuff every time we start each of the servers(admin, ejb and portal). Since the initialisation happens for the 1st time) when the admin server is started, an error is thrown complaining about not being to initialise when we start either portal or ejb after that. If this is true then is there a way around this problem?
    The Admin Server starts fine. But when we try to start either of the ejb or portal server, we get the following error:
    <Aug 16, 2006 4:03:01 PM MDT> <Critical> <WebLogicServer> <BEA-000364> <Server failed during initialization. Exception:weblogic.security.service.SecurityServiceRuntimeException: [Security:090371]Problem instantiating Authentication Provider weblogic.rmi.extensions.RemoteRuntimeException: Unexpected Exception - with nested exception:
    [java.rmi.MarshalException: failed to marshal invoke(Ljavax.management.ObjectName;Ljava.lang.String;[Ljava.lang.Object;[Ljava.lang.String ;); nested exception is:
            java.io.NotSerializableException: com.netegrity.siteminder.weblogic.sspi.auth.a9]
    weblogic.security.service.SecurityServiceRuntimeException: [Security:090371]Problem instantiating Authentication Provider weblogic.rmi.extensions.RemoteRuntimeException: Unexpected Exception - with nested exception:
    [java.rmi.MarshalException: failed to marshal invoke(Ljavax.management.ObjectName;Ljava.lang.String;[Ljava.lang.Object;[Ljava.lang.String ;); nested exception is:
            java.io.NotSerializableException: com.netegrity.siteminder.weblogic.sspi.auth.a9]
    at weblogic.security.service.PrincipalAuthenticator.initialize(PrincipalAuthenticator.java:225)
    at weblogic.security.service.PrincipalAuthenticator.<init>(PrincipalAuthenticator.java:283)
    at weblogic.security.service.SecurityServiceManagerDelegateImpl.doATN(SecurityServiceManagerDelegateImpl.java :581)
    at weblogic.security.service.SecurityServiceManagerDelegateImpl.initializeRealm(SecurityServiceManagerDelegateImpl.java:420)
    at weblogic.security.service.SecurityServiceManagerDelegateImpl.loadRealm (SecurityServiceManagerDelegateImpl.java:700)
    at weblogic.security.service.SecurityServiceManagerDelegateImpl.initializeRealms(SecurityServiceManagerDelegateImpl.java:733)
    at weblogic.security.service.SecurityServiceManagerDelegateImpl.initialize (SecurityServiceManagerDelegateImpl.java:876)
    at weblogic.security.service.SecurityServiceManager.initialize(SecurityServiceManager.java:734)
    at weblogic.t3.srvr.T3Srvr.initializeHere(T3Srvr.java:821)
    at weblogic.t3.srvr.T3Srvr.initialize(T3Srvr.java:669)
    at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:343)
    at weblogic.Server.main(Server.java:32)
    >
    <Aug 16, 2006 4:03:01 PM MDT> <Emergency> <WebLogicServer> <BEA-000342> <Unable to initialize the server: weblogic.security.service.SecurityServiceRuntimeException: [Security:090371]Problem instantiating Authentication Provider weblogic.rmi.extensions.RemoteRuntimeException: Unexpected Exception - with nested exception:
    [java.rmi.MarshalException : failed to marshal invoke(Ljavax.management.ObjectName;Ljava.lang.String;[Ljava.lang.Object;[Ljava.lang.String;); nested exception is:
            java.io.NotSerializableException: com.netegrity.siteminder.weblogic.sspi.auth.a9 ]>
    The WebLogic Server did not start up properly.
    weblogic.security.service.SecurityServiceRuntimeException: [Security:090371]Problem instantiating Authentication Provider weblogic.rmi.extensions.RemoteRuntimeException: Unexpected Exception - with nested exception:
    [java.rmi.MarshalException: failed to marshal invoke(Ljavax.management.ObjectName;Ljava.lang.String;[Ljava.lang.Object;[Ljava.lang.String ;); nested exception is:
            java.io.NotSerializableException: com.netegrity.siteminder.weblogic.sspi.auth.a9]
    at weblogic.security.service.PrincipalAuthenticator.initialize(PrincipalAuthenticator.java:225)
    at weblogic.security.service.PrincipalAuthenticator.<init>(PrincipalAuthenticator.java:283)
    at weblogic.security.service.SecurityServiceManagerDelegateImpl.doATN(SecurityServiceManagerDelegateImpl.java :581)
    at weblogic.security.service.SecurityServiceManagerDelegateImpl.initializeRealm(SecurityServiceManagerDelegateImpl.java:420)
    at weblogic.security.service.SecurityServiceManagerDelegateImpl.loadRealm (SecurityServiceManagerDelegateImpl.java:700)
    at weblogic.security.service.SecurityServiceManagerDelegateImpl.initializeRealms(SecurityServiceManagerDelegateImpl.java:733)
    at weblogic.security.service.SecurityServiceManagerDelegateImpl.initialize (SecurityServiceManagerDelegateImpl.java:876)
    at weblogic.security.service.SecurityServiceManager.initialize(SecurityServiceManager.java:734)
    at weblogic.t3.srvr.T3Srvr.initializeHere(T3Srvr.java:821)
    at weblogic.t3.srvr.T3Srvr.initialize(T3Srvr.java:669)
    at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:343)
    at weblogic.Server.main(Server.java:32)
    Reason: weblogic.security.service.SecurityServiceRuntimeException : [Security:090371]Problem instantiating Authentication Provider weblogic.rmi.extensions.RemoteRuntimeException: Unexpected Exception - with nested exception:
    [java.rmi.MarshalException: failed to marshal invoke(Ljavax.management.ObjectName ;Ljava.lang.String;[Ljava.lang.Object;[Ljava.lang.String;); nested exception is:
            java.io.NotSerializableException: com.netegrity.siteminder.weblogic.sspi.auth.a9]
    Any help would be appreciated.
    Regards,
    Prashant

    but it just says it cannot repair due to another program being installed.
    I'd like to have a closer look at that error message please.
    Generate the error message again. While the error message box is open, hold down the Alt key and hit the PrtSc key. Paste the screenshot into an image file (using a program like Paint), and save the file.
    Start a reply here and click the wee camera icon at the top of the reply window. Click "Choose file", browse to the image file, select the file and click "Open". Now click "Insert file" to insert the screenshot into the reply.

  • JMS-204: An error occurred in the AQ JNI layer

    Approach 1) works fine but not 2).
    Approach 1
    =================
    // Use the DriverManager to get the DB Connection
    DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
    java.sql.Connection dbConnection = DriverManager.getConnection("the url" , "the uid", "the pwd");
    javax.jms.QueueConnection queueConnection = AQjmsQueueConnectionFactory.createQueueConnection( dbConnection );
    Approach 2 (doesn't work)
    =================
    // Use the JNDI Lookup to get the DB Connection
    Context ctx = get the context;
    DataSource dataSource = (DataSource)ctx.lookup("datasoruce jndi");
    dbConnection = dataSource.getConnection();
    queueConnection = AQjmsQueueConnectionFactory.createQueueConnection( dbConnection );
    Please note that I'm able to get the Queue Connection. But when I try to send the message, I get the exception.
    Exception: JMS-204: An error occurred in the AQ JNI layer
    Linked Exception: weblogic.rmi.extensions.RemoteRuntimeException: Unexpected Exception - with nested exception:
    [java.rmi.MarshalException: failed to marshal setORAData(ILoracle.sql.ORAData;); nested exception is:
         java.io.NotSerializableException: oracle.jms.AQjmsTextMessage_C]
    App Server: WebLogic 8.1
    Any thougts...
    Thanks in advance.

    It is complaining about the AQjmsTextMessage not being serialized. I have seen errors with not using the actual oracle connection directly. Usually the datasource has some wrapper database connection. However, i would expect a different error. I will have to experiment with this.

Maybe you are looking for

  • How do I use my time capsule as a wifi extender and still use as a backup in Time Machine

    I purchased a new airport extreme and want to use my existing time capsule as a wifi extender in another part of the house.  How do I set this up so that I can still use the time capsule as my backup (time machine) hard drive?

  • Sales orders locked

    Hi to all, I am facing an strange issue as we use Scenario-A for sales order creation which are created in CRM then replicated to ECC for subsequent processing & now we get some strange issue of sales orders not able to open in ECC as we get the erro

  • HP Laserjet 5M not working under 10.8.5

    This is the official guidance for Laserjet printer capability in Mountain Lion 10.8... http://h20000.www2.hp.com/bizsupport/TechSupport/Document.jsp?objectID=c03411613 HP LaserJet 5, 5L, 5N, 5P, 5se, and 5si Printer series NOTE: While most of the Las

  • Inbound Delivery (WM) with Serial Numbers and HU's

    Hey, I want to use Serial Numbers with Handling Unit Management in WM. I want to use MIGO to GR a Purchase Order and then Auto Pack the Inbound Delivery. I also want to be able to Auto Pack the HU's with the Serial Numbers that i enter into the WM ta

  • Why can't I log into Facebook on my iPad?

    Whenever I log into Facebook none of the post appear on the screen.