Spring 3.0 jmx on WL 10.3.3: JConsole connects locally, but not remotely

I have a Spring 3.0 app running on WebLogic 10.3.3. It registers a Spring bean with JMX. When I run it locally on my laptop, JConsole can connect "locally" and view and manipulate the JMX bean.
When I deploy the same EAR to WL 10.3.3 on a Solaris/X86 VM, I'm unable to connect with a "remote" connection from JConsole. In the "Remote Process" field, I entered "IP:port", where IP is the IP address of the VM, and port is the listen port of the managed server. I also tried the port of the admin server, but both eventually fail with an EOFException.
Is there something I need to configure to get this working?
Edited by: david.karr on Nov 30, 2010 2:56 PM

David,
Just to verify, are you running JConsole as the following options (I have had issues in the past just running JConsole.exe without these)
C:\>jconsole -J-Djava.class.path=C:/opt/wls1031_l16/jdk160_11/lib/jconsole.jar;C:/opt/wls1031_l16/jdk160_11/l
ib/tools.jar;C:/opt/wls1031_l16/wlserver_10.3/server/lib/wljmxclient.jar -J-Djmx.remote.protocol.provider.pkgs=weblogic.management.remote -J-Dcom.sun.management.jmxremote
And are you using either of the following methods to connect
service:jmx:rmi:///jndi/iiop://127.0.0.1:7001/weblogic.management.mbeanservers.runtime
or
service:jmx:t3://127.0.0.1:7001/jndi/weblogic.management.mbeanservers.runtime
username/password = weblogic console username/password
Alternatively have you tried JRMC.exe JRockit Mission Control?
There are instructions on the following wiki to connect to WebLogic MBeans via either JConsole or JRMC viewers.
http://wiki.eclipse.org/EclipseLink/Examples/JPA/WebLogic_Web_Tutorial#JMX_MBeans_on_WebLogic_via_SUN_JConsole
thank you
/michael
http://www.ecllipselink.org

Similar Messages

  • Can JConsole connect to remote JMX agent using JMXMP and TLS?

    I have a JMX Enabled App that needs to be accessed with JConsole using TLS enabled JMXMP Connector.
    The same server can be accessed with a custom JMX client but JConsole is causing be trouble.
    I get error something like: "Client does not support profiles but the server requires it..."
    thanks
    Srini

    <p>Hi John,</p>
    <p>Unfortunately there isn't a simple solution for this because you cannot pass to JConsole the environment map to be used to configure your JMXMP connector client.</p>
    <p>In order to achieve that you will have to write your own JMXMP connector client provider (e.g. service:jmx:<b>secure-jmxmp</b>://host:port) that initializes the environment map with the appropriate security settings and then rewrites the JMXServiceURL to service:jmx:<b>jmxmp</b>://host:port and delegates to the existing JMXMP connector client provider.</p>
    <p>Of course, you will have to supply the javax.net.ssl.* SSL system properties in the command-line as you already do.</p>
    <p>Have a look at the JMX class JMXConnectorProvider for more detailed info.</p>
    <p>Regards,<br>
    Luis-Miguel Alventosa<br>
    Java SE JMX/JConsole development team<br>
    Sun Microsystems, Inc<br></p>

  • How to get application's state on weblogic server using jmx.

    I want to get application state using JMX, I am able to get application list, name but not able to find its state. Some code snippet mentioned below. Please let me know if I can use some other MBean
    Thanks in advance..
    static {
    try {
    service = new ObjectName("com.bea:Name=DomainRuntimeService,Type=weblogic.management.mbeanservers.domainruntime.DomainRuntimeServiceMBean");
    }catch (MalformedObjectNameException e) {
    throw new AssertionError(e.getMessage());
    * Initialize connection to the Domain Runtime MBean Server
    public static void initConnection(String hostname, String portString, String username, String password) throws IOException, MalformedURLException
    String protocol = "t3";
    int port = Integer.parseInt(portString);
    String jndiroot = "/jndi/";
    String mserver = "weblogic.management.mbeanservers.domainruntime";
    JMXServiceURL serviceURL= new JMXServiceURL(protocol,hostname, port, jndiroot+mserver);
    // JMXServiceURL serviceURL = new JMXServiceURL(protocol, hostname, portString, jndiroot , mserver);
    Hashtable h = new Hashtable();
    h.put(Context.SECURITY_PRINCIPAL, username);
    h.put(Context.SECURITY_CREDENTIALS, password);
    h.put(JMXConnectorFactory.PROTOCOL_PROVIDER_PACKAGES,
    "weblogic.management.remote");
    connector = JMXConnectorFactory.connect(serviceURL, h);
    connection = connector.getMBeanServerConnection();
    * Get an array of ServerRuntimeMBeans
    public static ObjectName[] getServerRuntimes() throws Exception {
    return (ObjectName[]) connection.getAttribute(service,
    "ServerRuntimes");
    * Get an array of WebAppComponentRuntimeMBeans
    public void getApplicationData() throws Exception {
    ObjectName[] serverRT = getServerRuntimes();
    int length = (int) serverRT.length;
    for (int i = 0; i < length; i++) {
    ObjectName[] appRT =
    (ObjectName[]) connection.getAttribute(serverRT,
    "ApplicationRuntimes");
    int appLength = (int) appRT.length;
    for (int x = 0; x < appLength; x++) {
    System.out.println("Application name: " +
    (String)connection.getAttribute(appRT[x], "Name")+"Application Status"+(String)connection.getAttribute(appRT[x], "State"));
    public static void main(String[] args) throws Exception {
    String hostname = "*****.us.oracle.com";
    String portString = "*****";
    String username = "***";
    String password = "****";
    JMXUtil s = new JMXUtil();
    initConnection(hostname, portString, username, password);
    s.getApplicationData();
    connector.close();

    register at elicense.bea.com and ask there.
    but, a license is a license, as long as the ipaddr is not restricted.
    Wayne
    Bora wrote:
    I downloaded an Evaluation copy from BEA but it expires in 30 days. The place I
    work has licenses for HPUX but I need to have a copy on my laptop for development
    & test.
    Thanks for help!
    Sincerely
    Bora

  • Error connecting to oracle DB using SAS 8.1

    Hi,
    I am using SAS 8.1(2005 Q1) and the oracle server is 9.2.0.1. I am trying to run a sample application given in the app server (jdbc-simple) and it's not connecting to the database.
    I am using oracle thin driver.
    I have created the jdbc connection pool named jdbc-pool too. Is there anything else I shud do? I am able to ping to the database using this connection pool but not able to run the application and getting http status 500 error with the following message:
    java.util.MissingResourceException: Can't find resource for bundle java.util.PropertyResourceBundle, key exception
    This is the server.log file:
    [#|2005-08-22T13:04:45.356+0530|SEVERE|sun-appserver-pe8.1_02|javax.enterprise.system.container.web|_ThreadID=11;|WEB0783: Error commiting response
    java.io.IOException: An existing connection was forcibly closed by the remote host
         at sun.nio.ch.SocketDispatcher.write0(Native Method)
         at sun.nio.ch.SocketDispatcher.write(SocketDispatcher.java:33)
         at sun.nio.ch.IOUtil.writeFromNativeBuffer(IOUtil.java:104)
         at sun.nio.ch.IOUtil.write(IOUtil.java:75)
         at sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:302)
         at java.nio.channels.Channels.write(Channels.java:60)
         at java.nio.channels.Channels.access$000(Channels.java:47)
         at java.nio.channels.Channels$1.write(Channels.java:134)
         at org.apache.coyote.http11.InternalOutputBuffer.commit(InternalOutputBuffer.java:602)
         at com.sun.enterprise.web.connector.grizzly.ProcessorTask.action(ProcessorTask.java:749)
         at org.apache.coyote.Response.action(Response.java:188)
         at org.apache.coyote.Response.sendHeaders(Response.java:380)
         at org.apache.coyote.tomcat5.OutputBuffer.doFlush(OutputBuffer.java:357)
         at org.apache.coyote.tomcat5.OutputBuffer.close(OutputBuffer.java:318)
         at org.apache.coyote.tomcat5.CoyoteResponse.finishResponse(CoyoteResponse.java:496)
         at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:188)
         at com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:653)
         at com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:534)
         at com.sun.enterprise.web.connector.grizzly.ProcessorTask.doTask(ProcessorTask.java:403)
         at com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThread.java:55)
    |#]
    [#|2005-08-22T13:05:34.432+0530|WARNING|sun-appserver-pe8.1_02|javax.enterprise.resource.resourceadapter|_ThreadID=12;|RAR6017 : Failed to get connection pool object via JNDI lookup : jdbc-pool|#]
    [#|2005-08-22T13:07:39.704+0530|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.tools.deployment|_ThreadID=13;|DPL5109: EJBC - START of EJBC for [jdbc-simple]|#]
    [#|2005-08-22T13:07:39.724+0530|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.tools.deployment|_ThreadID=13;|Processing beans ...|#]
    [#|2005-08-22T13:07:39.814+0530|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.tools.deployment|_ThreadID=13;|DPL5110: EJBC - END of EJBC for [jdbc-simple]|#]
    [#|2005-08-22T13:07:41.707+0530|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.tools.deployment|_ThreadID=13;|Total Deployment Time: 10042 msec, Total EJB Compiler Module Time: 110 msec, Portion spent EJB Compiling: 1%
    Breakdown of EJBC Module Time: Total Time for EJBC: 110 msec, CMP Generation: 0 msec (0%), Java Compilation: 0 msec (0%), RMI Compilation: 0 msec (0%), JAX-RPC Generation: 50 msec (45%),
    |#]
    [#|2005-08-22T13:07:42.568+0530|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.tools.deployment|_ThreadID=13;|deployed with moduleid = jdbc-simple|#]
    [#|2005-08-22T13:07:43.459+0530|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.tools.admin|_ThreadID=14;|ADM1041:Sent the event to instance:[ApplicationDeployEvent -- reference-added jdbc-simple]|#]
    [#|2005-08-22T13:07:43.669+0530|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.tools.admin|_ThreadID=14;|ADM1042:Status of dynamic reconfiguration event processing:[success]|#]
    [#|2005-08-22T13:07:43.759+0530|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.tools.admin|_ThreadID=14;|ADM1041:Sent the event to instance:[ApplicationDeployEvent -- deploy jdbc-simple]|#]
    [#|2005-08-22T13:07:44.159+0530|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.container.ejb|_ThreadID=14;|Instantiated container for: ejbName: jdbc-simpleEJB; containerId: 73708094084546560|#]
    [#|2005-08-22T13:07:44.430+0530|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.core.classloading|_ThreadID=14;|LDR5010: All ejb(s) of [jdbc-simple] loaded successfully!|#]
    [#|2005-08-22T13:07:44.440+0530|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.container.web|_ThreadID=14;|WEB0100: Loading web module [jdbc-simple:jdbc-simple.war] in virtual server [server] at [/jdbc-simple]|#]
    [#|2005-08-22T13:07:45.982+0530|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.tools.admin|_ThreadID=14;|ADM1042:Status of dynamic reconfiguration event processing:[success]|#]
    [#|2005-08-22T13:10:48.029+0530|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.stream.out|_ThreadID=15;|
    GreeterDBServlet is executing ...|#]
    [#|2005-08-22T13:10:48.029+0530|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.stream.out|_ThreadID=15;|
    Retrieving JNDI initial context...|#]
    [#|2005-08-22T13:10:48.049+0530|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.stream.out|_ThreadID=15;|
    - Retrieved initial context successfully|#]
    [#|2005-08-22T13:10:48.049+0530|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.stream.out|_ThreadID=15;|
    Looking up dbGreeter bean home interface...|#]
    [#|2005-08-22T13:10:48.049+0530|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.stream.out|_ThreadID=15;|
    - Looking up: java:comp/env/ejb/jdbc-simple|#]
    [#|2005-08-22T13:10:48.169+0530|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.stream.out|_ThreadID=15;|
    - Looked up the EJB successfully|#]
    [#|2005-08-22T13:10:48.179+0530|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.stream.out|_ThreadID=15;|
    Creating the dbGreeter bean...|#]
    [#|2005-08-22T13:10:48.189+0530|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.stream.out|_ThreadID=15;|
    - Created EJB successfully  |#]
    [#|2005-08-22T13:10:48.189+0530|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.stream.out|_ThreadID=15;|
    Getting the message from the dbGreeter bean ...|#]
    [#|2005-08-22T13:10:48.229+0530|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.stream.out|_ThreadID=16;|
    ejbCreate() on obj samples.jdbc.simple.ejb.GreeterDBBean@1cce278|#]
    [#|2005-08-22T13:10:48.239+0530|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.stream.out|_ThreadID=16;|
    ejbCreate() on obj samples.jdbc.simple.ejb.GreeterDBBean@2848b1|#]
    [#|2005-08-22T13:10:48.239+0530|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.stream.out|_ThreadID=16;|
    ejbCreate() on obj samples.jdbc.simple.ejb.GreeterDBBean@bc9c25|#]
    [#|2005-08-22T13:10:48.239+0530|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.stream.out|_ThreadID=16;|
    ejbCreate() on obj samples.jdbc.simple.ejb.GreeterDBBean@af5e3c|#]
    [#|2005-08-22T13:10:48.239+0530|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.stream.out|_ThreadID=16;|
    ejbCreate() on obj samples.jdbc.simple.ejb.GreeterDBBean@153e9cf|#]
    [#|2005-08-22T13:10:48.239+0530|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.stream.out|_ThreadID=16;|
    ejbCreate() on obj samples.jdbc.simple.ejb.GreeterDBBean@1b16bd|#]
    [#|2005-08-22T13:10:48.239+0530|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.stream.out|_ThreadID=16;|
    ejbCreate() on obj samples.jdbc.simple.ejb.GreeterDBBean@7210ec|#]
    [#|2005-08-22T13:10:48.239+0530|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.stream.out|_ThreadID=16;|
    ejbCreate() on obj samples.jdbc.simple.ejb.GreeterDBBean@b4fa48|#]
    [#|2005-08-22T13:10:48.239+0530|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.stream.out|_ThreadID=16;|
    ejbCreate() on obj samples.jdbc.simple.ejb.GreeterDBBean@19bcae1|#]
    [#|2005-08-22T13:10:48.239+0530|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.stream.out|_ThreadID=16;|
    ejbCreate() on obj samples.jdbc.simple.ejb.GreeterDBBean@1249338|#]
    [#|2005-08-22T13:10:48.239+0530|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.stream.out|_ThreadID=16;|
    ejbCreate() on obj samples.jdbc.simple.ejb.GreeterDBBean@3d787c|#]
    [#|2005-08-22T13:10:48.239+0530|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.stream.out|_ThreadID=16;|
    ejbCreate() on obj samples.jdbc.simple.ejb.GreeterDBBean@1b12c9b|#]
    [#|2005-08-22T13:10:48.239+0530|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.stream.out|_ThreadID=16;|
    ejbCreate() on obj samples.jdbc.simple.ejb.GreeterDBBean@e797db|#]
    [#|2005-08-22T13:10:48.239+0530|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.stream.out|_ThreadID=16;|
    ejbCreate() on obj samples.jdbc.simple.ejb.GreeterDBBean@a2e5cc|#]
    [#|2005-08-22T13:10:48.239+0530|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.stream.out|_ThreadID=16;|
    ejbCreate() on obj samples.jdbc.simple.ejb.GreeterDBBean@1a7a525|#]
    [#|2005-08-22T13:10:48.249+0530|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.stream.out|_ThreadID=16;|
    ejbCreate() on obj samples.jdbc.simple.ejb.GreeterDBBean@52732d|#]
    [#|2005-08-22T13:10:48.249+0530|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.stream.out|_ThreadID=16;|
    ejbCreate() on obj samples.jdbc.simple.ejb.GreeterDBBean@107939f|#]
    [#|2005-08-22T13:10:48.249+0530|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.stream.out|_ThreadID=16;|
    ejbCreate() on obj samples.jdbc.simple.ejb.GreeterDBBean@6cdb70|#]
    [#|2005-08-22T13:10:48.249+0530|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.stream.out|_ThreadID=16;|
    ejbCreate() on obj samples.jdbc.simple.ejb.GreeterDBBean@baa4a4|#]
    [#|2005-08-22T13:10:48.249+0530|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.stream.out|_ThreadID=16;|
    ejbCreate() on obj samples.jdbc.simple.ejb.GreeterDBBean@18f22f3|#]
    [#|2005-08-22T13:10:48.259+0530|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.stream.out|_ThreadID=15;|
    ejbCreate() on obj samples.jdbc.simple.ejb.GreeterDBBean@15ec870|#]
    [#|2005-08-22T13:10:48.269+0530|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.stream.out|_ThreadID=15;|
    GreeterDB EJB is determining message...|#]
    [#|2005-08-22T13:10:48.269+0530|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.stream.out|_ThreadID=15;|
    - Message determined successfully|#]
    [#|2005-08-22T13:10:48.269+0530|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.stream.out|_ThreadID=15;|
    - Got this message from greeter bean: afternoon|#]
    [#|2005-08-22T13:10:48.269+0530|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.stream.out|_ThreadID=15;|
    Getting the name input to this servlet...|#]
    [#|2005-08-22T13:10:48.269+0530|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.stream.out|_ThreadID=15;|
    - Got name: gmfgmf|#]
    [#|2005-08-22T13:10:48.269+0530|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.stream.out|_ThreadID=15;|
    Recording the greeting in the database...|#]
    [#|2005-08-22T13:10:48.279+0530|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.stream.out|_ThreadID=15;|
    Getting datasource...|#]
    [#|2005-08-22T13:10:48.279+0530|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.stream.out|_ThreadID=15;|
    - Got datasource successfully|#]
    [#|2005-08-22T13:10:48.279+0530|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.stream.out|_ThreadID=15;|
    Getting connection...|#]
    [#|2005-08-22T13:10:48.870+0530|WARNING|sun-appserver-pe8.1_02|javax.enterprise.resource.resourceadapter|_ThreadID=15;|RAR5038:Unexpected exception while creating resource|#]
    [#|2005-08-22T13:10:48.870+0530|WARNING|sun-appserver-pe8.1_02|javax.enterprise.resource.resourceadapter|_ThreadID=15;|RAR5117 : Failed to obtain/create connection. Reason : Connection could not be allocated because: ORA-01017: invalid username/password; logon denied
    |#]
    [#|2005-08-22T13:10:48.870+0530|WARNING|sun-appserver-pe8.1_02|javax.enterprise.resource.resourceadapter|_ThreadID=15;|RAR5114 : Error allocating connection : [Error in allocating a connection. Cause: Connection could not be allocated because: ORA-01017: invalid username/password; logon denied
    ]|#]
    [#|2005-08-22T13:10:48.870+0530|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.stream.out|_ThreadID=15;|
    - Could not interact with the database|#]
    [#|2005-08-22T13:10:48.880+0530|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.stream.out|_ThreadID=15;|
    Exception: java.sql.SQLException: Error in allocating a connection. Cause: Connection could not be allocated because: ORA-01017: invalid username/password; logon denied
    |#]
    [#|2005-08-22T13:10:48.880+0530|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.stream.out|_ThreadID=15;|
    Storing the message in request object for the JSP...|#]
    [#|2005-08-22T13:10:48.880+0530|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.stream.out|_ThreadID=15;|
    - Stored message successfully|#]
    [#|2005-08-22T13:10:48.880+0530|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.stream.out|_ThreadID=15;|
    Dispatching JSP for output...|#]
    [#|2005-08-22T13:11:48.408+0530|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.stream.out|_ThreadID=15;|
    GreeterDBView JSP is executing...|#]
    [#|2005-08-22T13:11:48.408+0530|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.stream.out|_ThreadID=15;|
    GreeterDBView JSP is all done|#]
    [#|2005-08-22T13:11:48.418+0530|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.stream.out|_ThreadID=15;|
    - Dispatched JSP successfully|#]
    [#|2005-08-22T13:11:48.418+0530|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.stream.out|_ThreadID=15;|
    GreeterDBServlet is all done
    |#]
    [#|2005-08-22T13:11:53.283+0530|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.stream.out|_ThreadID=15;|
    GreeterDBServlet is executing ...|#]
    [#|2005-08-22T13:11:53.283+0530|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.stream.out|_ThreadID=15;|
    Retrieving JNDI initial context|#]
    [#|2005-08-22T13:11:53.293+0530|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.stream.out|_ThreadID=15;|
    - Retrieved initial context successfully|#]
    [#|2005-08-22T13:11:53.293+0530|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.stream.out|_ThreadID=15;|
    Getting datasource...|#]
    [#|2005-08-22T13:11:53.293+0530|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.stream.out|_ThreadID=15;|
    - Got datasource successfully|#]
    [#|2005-08-22T13:11:53.293+0530|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.stream.out|_ThreadID=15;|
    Getting connection|#]
    [#|2005-08-22T13:11:53.644+0530|WARNING|sun-appserver-pe8.1_02|javax.enterprise.resource.resourceadapter|_ThreadID=15;|RAR5038:Unexpected exception while creating resource|#]
    [#|2005-08-22T13:11:53.644+0530|WARNING|sun-appserver-pe8.1_02|javax.enterprise.resource.resourceadapter|_ThreadID=15;|RAR5117 : Failed to obtain/create connection. Reason : Connection could not be allocated because: ORA-01017: invalid username/password; logon denied
    |#]
    [#|2005-08-22T13:11:53.664+0530|WARNING|sun-appserver-pe8.1_02|javax.enterprise.resource.resourceadapter|_ThreadID=15;|RAR5114 : Error allocating connection : [Error in allocating a connection. Cause: Connection could not be allocated because: ORA-01017: invalid username/password; logon denied
    ]|#]
    [#|2005-08-22T13:11:53.664+0530|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.stream.out|_ThreadID=15;|
    - Could not interact with the database|#]
    [#|2005-08-22T13:11:53.674+0530|SEVERE|sun-appserver-pe8.1_02|javax.enterprise.system.container.web|_ThreadID=15;|StandardWrapperValve[GreeterDBLogDisplayServlet]: Servlet.service() for servlet GreeterDBLogDisplayServlet threw exception
    java.util.MissingResourceException: Can't find resource for bundle java.util.PropertyResourceBundle, key exception
         at java.util.ResourceBundle.getObject(ResourceBundle.java:326)
         at java.util.ResourceBundle.getString(ResourceBundle.java:286)
         at samples.jdbc.simple.servlet.GreeterDBLogDisplayServlet.doGet(Unknown Source)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:747)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
         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:585)
         at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:249)
         at java.security.AccessController.doPrivileged(Native Method)
         at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
         at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:282)
         at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:165)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:257)
         at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:55)
         at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:161)
         at java.security.AccessController.doPrivileged(Native Method)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:263)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
         at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:225)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:173)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:161)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:132)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:933)
         at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:185)
         at com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:653)
         at com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:534)
         at com.sun.enterprise.web.connector.grizzly.ProcessorTask.doTask(ProcessorTask.java:403)
         at com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThread.java:55)
    |#]
    [#|2005-08-22T13:14:00.758+0530|WARNING|sun-appserver-pe8.1_02|javax.enterprise.tools.launcher|_ThreadID=10;|LAUNCHER005:Spaces in your PATH have been detected. The PATH must be consistently formated (e.g. C:\Program Files\Java\jdk1.5.0\bin; ) or the Appserver may not be able to start and/or stop.  Mixed quoted spaces in your PATH can cause problems, so the launcher will remove all double quotes before invoking the process. The most reliable solution would be to remove all spaces from your path before starting the Appservers components.  |#]
    [#|2005-08-22T13:14:00.948+0530|INFO|sun-appserver-pe8.1_02|javax.enterprise.tools.launcher|_ThreadID=10;|
    D:/j2eesdk-1_4_02/jdk\bin\java
    -client
    -Xmx512m
    -XX:NewRatio=2
    -Dcom.sun.aas.defaultLogFile=D:/j2eesdk-1_4_02/domains/domain1/logs/server.log
    -Dcom.sun.aas.verboseMode=true
    -Djava.endorsed.dirs=D:/j2eesdk-1_4_02/lib/endorsed
    -Djava.security.policy=D:/j2eesdk-1_4_02/domains/domain1/config/server.policy
    -Djava.security.auth.login.config=D:/j2eesdk-1_4_02/domains/domain1/config/login.conf
    -Dsun.rmi.dgc.server.gcInterval=3600000
    -Dsun.rmi.dgc.client.gcInterval=3600000
    -Djavax.net.ssl.keyStore=D:/j2eesdk-1_4_02/domains/domain1/config/keystore.jks
    -Djavax.net.ssl.trustStore=D:/j2eesdk-1_4_02/domains/domain1/config/cacerts.jks
    -Djava.ext.dirs=D:/j2eesdk-1_4_02/jdk/jre/lib/ext;D:/j2eesdk-1_4_02/domains/domain1/lib/ext
    -Djdbc.drivers=com.pointbase.jdbc.jdbcUniversalDriver
    -Djavax.management.builder.initial=com.sun.enterprise.admin.server.core.jmx.AppServerMBeanServerBuilder
    -Dcom.sun.enterprise.config.config_environment_factory_class=com.sun.enterprise.config.serverbeans.AppserverConfigEnvironmentFactory
    -Dcom.sun.enterprise.taglibs=appserv-jstl.jar,jsf-impl.jar
    -Dcom.sun.enterprise.taglisteners=jsf-impl.jar
    -Djavax.xml.parsers.SAXParserFactory=com.sun.org.apache.xerces.internal.jaxp.SAXParserFactoryImpl
    -Dcom.sun.aas.configName=server-config
    -Dorg.xml.sax.parser=org.xml.sax.helpers.XMLReaderAdapter
    -Ddomain.name=
    -Djmx.invoke.getters=true
    -Djavax.xml.parsers.DocumentBuilderFactory=com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl
    -Dcom.sun.aas.promptForIdentity=true
    -Dorg.xml.sax.driver=com.sun.org.apache.xerces.internal.parsers.SAXParser
    -Dcom.sun.aas.instanceRoot=D:/j2eesdk-1_4_02/domains/domain1
    -Djavax.xml.transform.TransformerFactory=com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl
    -Dcom.sun.aas.domainName=
    -Djava.util.logging.manager=com.sun.enterprise.server.logging.ServerLogManager
    -Dproduct.name=Sun-Java-System/Application-Server
    -Dcom.sun.enterprise.overrideablejavaxpackages=javax.faces,javax.servlet.jsp.jstl,javax.xml.bind,javax.help
    -Dcom.sun.aas.configRoot=D:/j2eesdk-1_4_02/config
    -Djava.library.path=D:\j2eesdk-1_4_02\lib;D:\j2eesdk-1_4_02\lib;D:\j2eesdk-1_4_02\jdk\bin;.;C:\WINNT\system32;C:\WINNT;D:\j2eesdk-1_4_02\lib;D:\j2eesdk-1_4_02\bin;D:\j2eesdk-1_4_02\bin;D:\j2eesdk-1_4_02\bin;D:\oracle\ora81\lib;C:\j2sdk1.4.2_08\bin;D:\oracle\ora81\bin;C:\Program Files\Oracle\jre\1.1.7\bin;C:\Program Files\Oracle\jre\bin;c:\winnt;c:\winnt\system32;D:/j2eesdk-1_4_02/jdk/bin;D:/j2eesdk-1_4_02/lib;D:/j2eesdk-1_4_02/lib/locale;D:/JBuilder7/lib/bes;D:/j2eesdk-1_4_02/imq/lib/imqxm.jar;D:\j2eesdk-1_4_02\bin;D:/j2eesdk-1_4_02/bin
    -Dcom.sun.aas.instanceName=server
    -Dcom.sun.aas.processLauncher=SE
    -cp
    D:/j2eesdk-1_4_02/jdk/lib/tools.jar;D:/j2eesdk-1_4_02/lib/appserv-rt.jar;D:/j2eesdk-1_4_02/lib\activation.jar;D:/j2eesdk-1_4_02/lib\admin-cli.jar;D:/j2eesdk-1_4_02/lib\appserv-admin.jar;D:/j2eesdk-1_4_02/lib\appserv-cmp.jar;D:/j2eesdk-1_4_02/lib\appserv-ext.jar;D:/j2eesdk-1_4_02/lib\appserv-jstl.jar;D:/j2eesdk-1_4_02/lib\appserv-upgrade.jar;D:/j2eesdk-1_4_02/lib\commons-launcher.jar;D:/j2eesdk-1_4_02/lib\commons-logging.jar;D:/j2eesdk-1_4_02/lib\dom.jar;D:/j2eesdk-1_4_02/lib\j2ee-svc.jar;D:/j2eesdk-1_4_02/lib\j2ee.jar;D:/j2eesdk-1_4_02/lib\jax-qname.jar;D:/j2eesdk-1_4_02/lib\jaxr-api.jar;D:/j2eesdk-1_4_02/lib\jaxr-impl.jar;D:/j2eesdk-1_4_02/lib\jaxrpc-api.jar;D:/j2eesdk-1_4_02/lib\jaxrpc-impl.jar;D:/j2eesdk-1_4_02/lib\jmxremote.jar;D:/j2eesdk-1_4_02/lib\jmxremote_optional.jar;D:/j2eesdk-1_4_02/lib\jsf-api.jar;D:/j2eesdk-1_4_02/lib\jsf-impl.jar;D:/j2eesdk-1_4_02/lib\mail.jar;D:/j2eesdk-1_4_02/lib\relaxngDatatype.jar;D:/j2eesdk-1_4_02/lib\rmissl.jar;D:/j2eesdk-1_4_02/lib\saaj-api.jar;D:/j2eesdk-1_4_02/lib\saaj-impl.jar;D:/j2eesdk-1_4_02/lib\xalan.jar;D:/j2eesdk-1_4_02/lib\xercesImpl.jar;D:/j2eesdk-1_4_02/lib\xsdlib.jar;D:/j2eesdk-1_4_02/lib/install/applications/jmsra/imqjmsra.jar;D:/j2eesdk-1_4_02/imq/lib/jaxm-api.jar;D:/j2eesdk-1_4_02/imq/lib/fscontext.jar;D:/j2eesdk-1_4_02/lib/ant/lib/ant.jar;D:/j2eesdk-1_4_02/pointbase/lib/pbclient.jar;D:/j2eesdk-1_4_02/pointbase/lib/pbembedded.jar;${oracle.jdbc.lib.class.path}/ojdbc14.jar;${oracle.jdbc.lib.class.path}/ojdbc14_g.jar;${oracle.jdbc.lib.class.path}/ocrs12.zip
    com.sun.enterprise.server.PEMain
    stop
    verbose|#]Cud someone tell me why am I getting this error?
    Regards,
    shipf1

    Other solution:
    on refresh period, default value is 1 minute, force this value at 0 and your connection
    is ok.
    Eric
    Joseph Weinstein <[email protected]> wrote:
    Redo the pool definition, and set 'test connection on reserve'. Don't
    set 'test connections on release', and leave refresh minutes alone.
    add a test table. DUAL is perfect for that. Everything else seems
    fine.
    Joe
    Rafid wrote:
    I am getting this error when I try to make a connection to an Oracle817DB.
    I am using Oracles drviers (classes12.zip)
    <Nov 2, 2001 2:05:18 PM EST> <Error> <JDBC> <Cannot startup connectionpool
    "genPool" Test table must be specifed for genPool with 'test connectionon
    reserve' or 'test connection on release' or 'refresh minutes' set higher
    than 0.>
    <Nov 2, 2001 2:05:18 PM EST> <Info> <JDBC> <Creating TX Data Sourcenamed
    weblogic.jdbc.jts.genPool for pool genPool>
    <Nov 2, 2001 2:05:18 PM EST> <Info> <JDBC> <Checking existence of connection
    pool genPool requested by user system>
    <Nov 2, 2001 2:05:18 PM EST> <Error> <JDBC> <Error during Data Source
    creation: weblogic.common.ResourceException:
    DataSource(weblogic.jdbc.jts.genPool) can't be created with non-existent
    Pool (connection or multi) (genPool)>
    I have created a connction pool called genPool,
    set the URL :jdbc:oracle:thin:@genoracle:1521:GENORANY
    driver class name = oracle.jdbc.driver.OracleDriver
    Properties:
    user=name ** where name is user
    password=xx **where xx is password
    dll=ocijdbc8
    protocol=thin
    I created the Tx Data Sources with
    name = weblogic.jdbc.jts.genPool
    jndi = weblogic.jdbc.jts.genPool
    poolname = genPool
    Can anyone help me through this, it would be a great help
    Rafid Wahab

  • The construct of an end-to-end JMX connection

    Can someone please explain or reference documentation on how a JMX connection is established from a client, all the way down to an mbeanserver, and the response back and all of the interactions in between?

    [This blog posting|http://marxsoftware.blogspot.com/2008/06/remote-jmx-with-and-without-spring-and.html] shows how to do this both using client proxies and not using client proxies and shows these clients with and without the Spring Framework.
    The [Java Tutorial on JMX Remote Management|http://java.sun.com/docs/books/tutorial/jmx/remote/index.html] also covers a complete example over the course of that tutorial and includes sample code.

  • How to read the messages in the JMS Queue using JMX

    Hi,
              I want to read messages in the JMS queue using JMX. I was able to read using QueueBrowser but want to modify priority of the messages using JMX.
              I tried to use JMSDestinationRuntimeMBean but it does not allow us to read messages unless we pass the message Id. Is there any way that I can get all the messages in the queue.
              I am using Weblogic 8.1 SP4
              Can someone please help me in this regard.
              Thanks,
              Kiran.
              Edited by KGudipati at 10/22/2007 1:22 AM

    Hi,
    As far as i know, JMS Object Messages is not supported by XI JMS adapter.
    you need to have the JMS provider to transform the message to bytes messages.
    (Refer to SAP note 856346)

  • Spring 2.5.5 and EJB 3.0 Deployment problem in WLS 10.3

    Hi,
    I am attempting to deploy a EAR file that previously ran on SJSAS 9.1 update 1 to WLS 10.3. As part of the deployment I get the following error related to the EJB3 classes.
    There are 1 nested errors: weblogic.j2ee.dd.xml.AnnotationProcessException: [EJB:015002]Unable to load class au.edu.cqu.cis.web.ajaxservice.AjaxServicesBean in Jar D:\dev\env\oracle\middleware\jdeveloper\system\system11.1.1.0.31.51.56\DefaultDomain\servers\DefaultServer\tmp\_WL_user\ProgEnrol-ear-3\v540rk\ProgEnrol-ejb-3.0.4-SNAPSHOT.jar : java.lang.ArrayStoreException: sun.reflect.annotation.TypeNotPresentExceptionProxy
    I suspect that this is related to the @Autowired spring annotation in use in the session bean. Either, the server is not finding the Spring JAR correctly or it has a problem with the annotation.
    Can anyone point me in the right direction? Do I need to deploy the spring jar as a library?
    Thank you.
    Regards,
    Graeme.

    Hi, Graeme.
    Seems there is an existing CR on something related from v10.0: CR353213
    * WLS 10.0 - EJB 3.0 deployment fails when parsing class for Stateless annotation
    According to http://edocs.bea.com/wls/docs103/issues/known_resolved.html, this is not addressed in 10.3
    Closely review your classpath, and then (assuming you have access to the source) review the body of your ejb. If it is related to this CR, you may be able to workaround the issue by shortening the body and split large methods into more sub-methods.
    I hope this helps,
    -Adrian

  • Use of DISTINCT for CLOB through Java(Spring framework)

    Hello everyBody,
    How to use DISTINCT for a select query containing a column of type CLOB. I use to_char(column name) for that column name. It works fine on oracle command prompt , but not working thr my JAVA API(jdk 1.3) . It throws an exception saying InvalidFormat. I am using spring framework in Java. Is anyBody have solution to this? I am using oracle 9i. Please reply soon. Thankx in advance.

    I do realise the fact that you are using Spring probably indicates that you lack heavy duty SQL skills. But you really should try to learn to tune your queries properly.
    Cheers, APC

  • How to get auto generated column in spring jdbc

    Hi guys ,
    I am using springJDBC and sybase db.
    I think what i am facing is a standard problem but whatever support i am getting from google is not working.
    My problem is :
    "While inserting values in database one colum is autogenerated .....how do i get the value of that column??"
    FYI,
    I have tried using the following code :
    "final String INSERT_SQL = "insert into my_test (name) values(?)";
    final String name = "Rob";
    KeyHolder keyHolder = new GeneratedKeyHolder();
    jdbcTemplate.update(
    new PreparedStatementCreator() {
    public PreparedStatement createPreparedStatement(Connection connection) throws SQLException {
    PreparedStatement ps =
    connection.prepareStatement(INSERT_SQL, new String[] {"id"});
    ps.setString(1, name);
    return ps;
    keyHolder);
    // keyHolder.getKey() now contains the generated key"
    but i am getting this error : "java.lang.AbstractMethodError: com.sybase.jdbc2.jdbc.SybConnection.prepareStatement(Ljava/lang/String;I)Ljava/sql/PreparedStatement"
    I think this code works well with Oracle but not with sybase .........does anyone know the solution of this problem .......and by "this problem" i mean how to retrieve auto generate value in spring jdbc ...........without using SimpleJdbcInsert class

    Looking at the previous post it doesn't look like a Spring issue.
    You are using a JDBC driver which does not support getting generated keys so you have 2 choices:
    - Use a different driver that supports generated keys
    - Get the generated key by issuing some vendor specific SQL e.g. 'select @@identity' for SQL server

  • Problem configuring JTA with Spring in OC4J

    Hi all,
    I'm trying to develop an application that uses Spring with JTA in OC4J standalone.
    I've already read http://www.oracle.com/technology/tech/java/spring/how-to-jta-spring.html and the only difference to my configuration is that I'm not employing annotation-driven transaction definitions.
    All seems to be ok but during the deployment of the application I have the following error:
    07/10/11 17:07:03 WARNING: DeployerRunnable.run Error creating bean with name 'txAdvice': Cannot resolve reference to bean 'txManager' while setting bean property 'transactionManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'txManager' defined in ServletContext resource [WEB-INF/applicationContext.xml]: Invocation of init method failed; nested exception is org.springframework.transaction.TransactionSystemException: Could not initialize OC4JJtaTransactionManager because OC4J API classes are not available; nested exception is oracle.classloader.util.AnnotatedClassNotFoundException:
    Missing class: oracle.j2ee.transaction.OC4JTransactionManager
    Dependent class: org.springframework.transaction.jta.OC4JJtaTransactionManager
    Loader: global.libraries:1.0
    Code-Source: /home/jkliff/apps/oc4j-10.1.3.2/j2ee/home/applib/spring.jar
    Configuration: <code-source> in /home/jkliff/apps/oc4j-10.1.3.2/j2ee/home/config/server.xml
    This load was initiated at global.libraries:1.0 using the loadClass() method.
    The missing class is available from the following locations:
    1. Code-Source: /home/jkliff/apps/oc4j-10.1.3.2/j2ee/home/lib/oc4j-internal.jar (from <code-source> in META-INF/boot.xml in /home/jkliff/apps/oc4j-10.1.3.2/j2ee/home/oc4j.jar)
    This code-source is available in loader oc4j:10.1.3.
    Any ideas?

    Hi timo,
    I'm using OC4J - StandAlone runnig a application for wikis manageiment that uses servelt and have the system authenticate using JASS. I belive that the problem is about using JASS on OC4J.
    The code that the error shows is that:
    HttpServletRequest req = context.getHttpRequest();
    if( req != null && req.getSession() != null )
    HttpSession session = req.getSession();
    try
    String s;
    if( (s = (String)session.getAttribute( varName )) != null )
    return s;
    if( (s = context.getHttpParameter( varName )) != null )
    return s;
    catch( ClassCastException e ) {}
    for me it seem a problem when the application is trying to get a session, the OC4J block with a problem with authentication.
    I thank your help!

  • Camel and jmx

    i have a problem connecting a jmx client to camel. i just wanna connect to the default MBeans exposed by camel
    so it shouldn't be much of a problem but it appears that it is ( for me :) )
    JMXServiceURL url = new JMXServiceURL("service:jmx:rmi:///jndi/rmi://MHO-WS-014:1099/camel");
    JMXConnector jmxc = JMXConnectorFactory.connect(url, null);
    MBeanServerConnection mbsc = jmxc.getMBeanServerConnection();
    i can get a list of the domains .. so i know the connection is made
    when i monitor jcamel with jconsole .. i see the name of a bean as : ManagedService
    ObjectName stdMBeanName = new ObjectName("org.apache.camel.management:type=ManagedService");
    String attrValue = (String)mbsc.getAttribute(stdMBeanName, "started");
    but when i try to read an attribute from it i get :
    javax.management.InstanceNotFoundException: org.apache.camel.management:type=ManagedService
         at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.getMBean(Unknown Source)
         at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.getAttribute(Unknown Source)
         at com.sun.jmx.mbeanserver.JmxMBeanServer.getAttribute(Unknown Source)
         at javax.management.remote.rmi.RMIConnectionImpl.doOperation(Unknown Source)
         at javax.management.remote.rmi.RMIConnectionImpl.access$200(Unknown Source)
         at javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(Unknown Source)
         at javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(Unknown Source)
         at javax.management.remote.rmi.RMIConnectionImpl.getAttribute(Unknown Source)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at sun.rmi.server.UnicastServerRef.dispatch(Unknown Source)
         at sun.rmi.transport.Transport$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at sun.rmi.transport.Transport.serviceCall(Unknown Source)
         at sun.rmi.transport.tcp.TCPTransport.handleMessages(Unknown Source)
         at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(Unknown Source)
         at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(Unknown Source)
         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
         at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
         at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(Unknown Source)
         at sun.rmi.transport.StreamRemoteCall.executeCall(Unknown Source)
         at sun.rmi.server.UnicastRef.invoke(Unknown Source)
         at com.sun.jmx.remote.internal.PRef.invoke(Unknown Source)
         at javax.management.remote.rmi.RMIConnectionImpl_Stub.getAttribute(Unknown Source)
         at javax.management.remote.rmi.RMIConnector$RemoteMBeanServerConnection.getAttribute(Unknown Source)
         at monex.MonexJMXClient.main(MonexJMXClient.java:102)

    You might try adding a call to [MBeanServerConnection.queryNames(null,null)|http://java.sun.com/javase/6/docs/api/javax/management/MBeanServerConnection.html#queryNames(javax.management.ObjectName,%20javax.management.QueryExp)] to your custom client code and iterating over that list to see if the MBean Object Name you expected is registered. You can also use the [MBeanServerConnection.isRegistered|http://java.sun.com/javase/6/docs/api/javax/management/MBeanServerConnection.html#isRegistered(javax.management.ObjectName)] method.

  • JCA adapter with Spring JCA CCI

    Using Tuxedo JCA adapter (12.1.1) on Java 1.6_20 and Spring 3.2.0.....
    Want to get the Tuxedo adapter going outside a container in Spring via the Spring JCA CCI (http://static.springsource.org/spring/docs/3.2.0.M2/reference/html/cci.html). Not much experience with JCA but got the basic idea.
    The resource adapter is the glue for the domain configuration, debug levels and so forth. Started by using the TuxedoClientSideResourceAdapter and registering it to the TuxedoAdapterSupervisor singleton that is used by the TuxedoManagedConnectionFactory. Spring JCA CCI represents the local connection factory inside the LocalConnectionFactoryBean which needs the TuxedoConnectionFactory built by the TuxedoManagedConnectionFactory:
            @Bean
         public TuxedoManagedConnectionFactory tuxedoManagedConnectionFactory() {
              TuxedoClientSideResourceAdapter ra = new TuxedoClientSideResourceAdapter();
              .... (set ra all debugs to true)
              ra.setTraceLevel("100000");
              ra.setLocalAccessPointSpec("//INV000000121176:7001/domainId=matthew");
              ra.setRemoteAccessPointSpec("//vsgtu817.sfa.se:48172/domainId=TR817TU");
              try {
                   TuxedoAdapterSupervisor.getInstance().registerClientSideResourceAdapter(ra);
              } catch (ResourceAdapterInternalException e) {
                   System.out.println("Big problem setting resource adapter");
              TuxedoManagedConnectionFactory mcf = new TuxedoManagedConnectionFactory();
              return mcf;
            @Bean
         public ConnectionFactory tuxedoConnectionFactory() {
              LocalConnectionFactoryBean cf = new LocalConnectionFactoryBean();
              cf.setManagedConnectionFactory(tuxedoManagedConnectionFactory());
              try {
                   cf.afterPropertiesSet();
              } catch (ResourceException e) {
                   System.out.println("Big problem after setting properties");
              return (ConnectionFactory) cf.getObject();
         }What I am baffled by is that the tracing isn't getting hundred percent. For example I get:
    INFO: Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@1fe1feb: defining beans [org.springframework.context.annotation.internalConfigurationAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor,applicationConfig,org.springframework.context.annotation.ConfigurationClassPostProcessor.importAwareProcessor,tuxedoManagedConnectionFactory,tuxedoConnectionFactory,tuxedoTransactionManager,tuxedoTemplate,tuxedoDAO]; root of factory hierarchy
    2012-10-18:14:16:03:10:INFO[TuxedoAdapterSupervisor,registerClientSideResourceAdapter]TJA_0220:Tuxedo JCA Adapter, release 12c(12.1.1), resource archive version 1.4.0.0, build date: June 27 2012.
    2012-10-18:14:16:03:10:ERROR[TJAService,TJAService]TJA_0072:Naming exception error: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file:  java.naming.factory.initial
    2012-10-18:14:16:03:10:INFO[TuxedoAdapterSupervisor,createRemoteAccessPoints#2]TJA_0201:INFO: RemoteAccessPoint TR817TU created.Expected to see more detailed information about what is going on in the TJASerivce when setting up the context. Which isn't happening due to how I am not correctly rigging Spring. So how to get tracing/debug working? Or can it be that printing via the JUL logger isn't working. Got in my logging.properties file FINEST on everything oracle and weblogic.
    Love to see if anybody has built up JCA outside a container!?

    Little bit farther in my configuration but not the entire way. Using the TuxedoClientSideResourceAdapter resource adapter. Setup in Spring as follows:
         @Bean
         ResourceAdapterFactoryBean tuxedoResourceAdapter() {
              TuxedoClientSideResourceAdapter ra = new TuxedoClientSideResourceAdapter();
              ra.setLocalAccessPointSpec("//INV000000121176:7001/domainId=matthew");
              ra.setRemoteAccessPointSpec("//vsgtu817.sfa.se:48172/domainId=TR817TU");
              .... (set debug, timeout, local/remote stuff....)
              ResourceAdapterFactoryBean fc = new ResourceAdapterFactoryBean();
              fc.setResourceAdapter(ra);
              SimpleTaskWorkManager stwm = new SimpleTaskWorkManager(); // basic WM from Spring
              fc.setWorkManager(stwm);
              fc.setBootstrapContext(new SimpleBootstrapContext(stwm));  // basic Context from Spring
              return fc;
         @Bean
         public ManagedConnectionFactory tuxedoManagedConnectionFactory() {
              return new TuxedoManagedConnectionFactory();
         @Bean
         public LocalConnectionFactoryBean tuxedoConnectionFactoryBean() {
              LocalConnectionFactoryBean lcfb = new LocalConnectionFactoryBean();
              lcfb.setManagedConnectionFactory(tuxedoManagedConnectionFactory());
              return lcfb;
         @Bean
         public ConnectionFactory tuxedoConnectionFactory() {
              return (ConnectionFactory) tuxedoConnectionFactoryBean().getObject();
         @Bean
         public CciTemplate tuxedoCciTemplate() {
              CciTemplate ct = new CciTemplate();
              ct.setConnectionFactory(tuxedoConnectionFactory());
              return ct;
         }There is a bunch of Spring stuff mixed in but the main idea is to wrap the Connection Factory in a template bean (CciTemplate) that eats a Tuxedo interaction specification and handles the start/stop of the connection plus execution. Nowhere in the configuration are resources or the local/remote resource sessions identified. The Oracle documentation says that with the client side the container is responsible for defining resources. Great. How? ;-) Tried doing it by hand:
         @Autowired
         CciTemplate template;
         @Test
         public void pieces() throws ResourceException, TPReplyException, TPException {
              TuxedoConnectionFactory tcf = (TuxedoConnectionFactory)template.getConnectionFactory();
              Connection con = ConnectionFactoryUtils.getConnection(template.getConnectionFactory(), template.getConnectionSpec());
              DMImportBean impBean = new DMImportBean();
              impBean.setRemoteName("whatever");
              impBean.setResourceName("whatever");
              impBean.setSessionName(new String[] {"TR817TU"});
              ConfigurationManager.getInstance().activateImport(impBean, tcf.getFactoryName());
              TDomainContext ctx = ((TuxedoJCAConnection)con).getTDomainContext();
              ctx.tpcall("whatever", recordIn.getTypedBuffer(), flags);
         }The code fails on a NullPointer to getProviderRoute in the TuxedoConnectionImpl. Just wondering if I am on the right track?

  • Neither JMX nor JNDI seems working with OEP 12.1.3 (regression ?)

    Hi,
    I'm currently writing an OEP application, on the 12.1.3 version.
    My first problem is related to JMX: when OEP is started, I cannot connect in JMX:
    I lanch "OEP_HOME/oep/bin/wlevsjconsole.cmd"
    I use the following URL "service:jmx:msarmi://localhost:9002/jndi/jmxconnector" with user "wlevs" and my pwd
    Impossible to connect...
    My second problem is related to JNDI resource access:
    I add an "data-source" with its "data-source-params/jndi-names/element" in the OEP domain's config.xml file
    I start my OEP (with or without security disbaled, it doesn't change nothing)
    I try to access programmatically the JNDI resource (using the InitialContext lookup method with no prefix, with "java:comp/env/jdbc/", with "java:jdbc/, with "jdbc/") but I always get a NameNotFoundException.
    I try to list programmatically the JNDI resources using the list("") but I get a NoPermissionException.
    I'm not 100% sure, but it seems to me that these things were working with the 11 version of OEP. Could these be regressions ?
    Thx for any help or advice on this.
    RP

    After a reboot of node 2 everything returned to work fine.

  • JMX on OC4J 10.1.2.0.0

    Hello!
    I've found some articles on JMX-support in OC4J (e.g. http://www.oracle.com/technology/tech/java/oc4j/1003/how_to/how-to-simplembeans/doc/readme.html), but never found any actual documentation on it. Is it something that has only appeared in the developer previews or is there any documentation on how it works somewhere?
    Regards,
    Bjorn Boe

    Hmm. Looks like the API not fully implemented. Any idea how to back out the new implementation and use MX4J?
    Error connecting: This part of the API is not supported
    java.lang.UnsupportedOperationException: This part of the API is not supported
         at oracle.oc4j.admin.jmx.shared.UserMBeanServer.getClassLoaderRepository(UserMBeanServer.java:175)
         at oracle.oc4j.admin.jmx.server.state.LocalizationFilterMBeanServer.getClassLoaderRepository(LocalizationFilterMBeanServer.java:150)
         at javax.management.remote.rmi.RMIConnectionImpl$2.run(RMIConnectionImpl.java:1281)
         at java.security.AccessController.doPrivileged(Native Method)
         at javax.management.remote.rmi.RMIConnectionImpl.getClassLoaderRepository(RMIConnectionImpl.java:1278)
         at javax.management.remote.rmi.RMIConnectionImpl.access$000(RMIConnectionImpl.java:81)
         at javax.management.remote.rmi.RMIConnectionImpl$1.run(RMIConnectionImpl.java:132)
         at java.security.AccessController.doPrivileged(Native Method)
         at javax.management.remote.rmi.RMIConnectionImpl.<init>(RMIConnectionImpl.java:129)
         at javax.management.remote.rmi.RMIJRMPServerImpl.makeClient(RMIJRMPServerImpl.java:137)
         at javax.management.remote.rmi.RMIServerImpl.doNewClient(RMIServerImpl.java:251)
         at javax.management.remote.rmi.RMIServerImpl.access$000(RMIServerImpl.java:59)
         at javax.management.remote.rmi.RMIServerImpl$2.run(RMIServerImpl.java:199)
         at javax.management.remote.rmi.RMIServerImpl$2.run(RMIServerImpl.java:198)
         at java.security.AccessController.doPrivileged(Native Method)
         at javax.management.remote.rmi.RMIServerImpl.newClient(RMIServerImpl.java:196)
         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:585)
         at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:294)
         at sun.rmi.transport.Transport$1.run(Transport.java:153)
         at java.security.AccessController.doPrivileged(Native Method)
         at sun.rmi.transport.Transport.serviceCall(Transport.java:149)
         at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)
         at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701)
         at java.lang.Thread.run(Thread.java:595)
         at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:247)
         at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:223)
         at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:126)
         at javax.management.remote.rmi.RMIServerImpl_Stub.newClient(Unknown Source)
         at javax.management.remote.rmi.RMIConnector.getConnection(RMIConnector.java:2229)
         at javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:271)
         at javax.management.remote.JMXConnectorFactory.connect(JMXConnectorFactory.java:248)
         at javax.management.remote.JMXConnectorFactory.connect(JMXConnectorFactory.java:207)

  • How to use JMX with oc4j

    is there any document about how to use JMX with OC4J? the intention is that I would like to create an application, using JMX to manage OC4J, such dynamiclly adding connection pool, create data source. potentially, restart server, application ...
    is there any document about this?
    Thanks

    In addition to that, the documentation also has a section on accessing OC4J JMX/MBeans:
    http://otndnld.oracle.co.jp/document/products/as10g/101300/B25221_03/web.1013/b14433/mbeans.htm#sthref163
    The blog below also has examples, albeit from a Groovy perspective, but nonetheless, examples of how it can be done easily translated into Java:
    http://buttso.blogspot.com/search?q=jmx
    -steve-

Maybe you are looking for

  • Does not contain a static 'Main' method suitable for an entry point_

    Hello I want to to do a project with Entiity Framework . I add a project to my solution for my domain class and it's name is 'LinkModel.DomainClasses'.  when I prees F5 there is an error like bellow. Could You help me to solve this? thanks alot ..\Do

  • OOM - Java Heap Space on BI

    Hello All, I 'am using BI publisher trial version to enable PDF printing in APEX. The BI engine hungs and and runs 100% on CPU and in the logs i do see a OOM - Java Heap Space ####<Jan 3, 2014 2:13:46 PM UTC> <Error> <HTTP Session> <ac101.us.oracle.c

  • Re : Inter company stock transfer through EDI

    Hi       How to do the intercompany stock transfer through EDI. In this if Purchase order is created from one comapny a sales order should created automaticall in another Company. Fot this what is the SPRO settings. How to do this. Thanks Anto

  • DAC - drops indexes in the task but does not create them back

    DAC is dropping indexes for a task but not recreating them. The execution plan drop/create checkbox is checked and other tasks' index drop/create is working correctly. Index setup is checked for drop/create as well. Is there somewhere within DAC that

  • Problem in LookAndFeel

    Hi All, i have a small problem in LookAndFeel for my Tree. in our project we are using JDK1.1.7B and Swing1.0..It is a client requirement..Is it possible to cretae my tree like windows Explorer..i am not geting tree structure..just i am geting bullet