[JBoss-user] [JCA/JBoss] - Re: Not able to see uncommitted updates made within same ora
Did not get any clue turning trace ON. Also no warnings found. But setting auto commit to false on connection did the trick. Appears that auto commit set to true causes separate transaction per statement execution. Since default is true, still at a loss how it was working in dbcp. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3837098#3837098 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3837098 --- This SF.Net email is sponsored by: Oracle 10g Get certified on the hottest thing ever to hit the market... Oracle 10g. Take an Oracle 10g class now, and we'll give you the exam FREE. http://ads.osdn.com/?ad_id=3149alloc_id=8166op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JCA/JBoss] - Not able to see uncommitted updates made within same oracle
Hello, Code that worked fine under commns-dbcp is not working under jboss. Essentially subsequent read after write in same transaction is not seeing the records written. Oracle's default behavior is to be able to see updates made within same transaction even though not commited. Not sure why we are seing this in Jboss. Data Source config: local-tx-datasource | jndi-namemyDS/jndi-name | connection-urljdbc:oracle:thin:myhost:mydb/connection-url |driver-classoracle.jdbc.driver.OracleDriver/driver-class | user-nameuser/user-name |passwordpass/password | exception-sorter-class-nameorg.jboss.resource.adapter.jdbc.vendor.OracleExceptionSorter/exception-sorter-class-name | track-statementstrue/track-statements | /local-tx-datasource Code snippet: Connection con = null; | ResultSet rset = null; | | InitialContext initctx = new InitialContext(); | DataSource ds = (DataSource)initctx.lookup(java:/myDS); | con = ds.getConnection(); | if (con != null) | { | Statement stmt = con.createStatement(); | | .. | stmt.execute(insertQuery); //inserts records in a temp_keys table | int updateCount = stmt.getUpdateCount(); | //This prints count fine | logger.debug(Update count: + updateCount); | String testQuery = Select count(*) as CNT from TMP_KEYS; | rset = stmt.executeQuery(testQuery); | //This Prints -1 | logger.debug(COUNT TMP TABLE: + stmt.getUpdateCount()); | if(rset.next()){ | //This prints 0 | logger.debug(COUNT of ROWS in TMP Table: + rset.getInt(CNT)); | } | Any pointers appreciated. Tx -Sib View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3836716#3836716 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3836716 --- This SF.Net email is sponsored by: Oracle 10g Get certified on the hottest thing ever to hit the market... Oracle 10g. Take an Oracle 10g class now, and we'll give you the exam FREE. http://ads.osdn.com/?ad_id=3149alloc_id=8166op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Management, JMX/JBoss] - class loader fails trying to load primitive type
I recently downloaded the src code for 3.2.3. This is what is happening with my build: I'm trying to use the PollingNotificationListener which takes int, int as constructor params. The class loader fails on trying to load sinature type int. 17:05:20,058 ERROR [MBeanServerImpl] Unhandled exception instantiating class: org.jboss.jmx.connector.notification.PollingNotificationListener ReflectionException: Constructor parameter class not found: int Cause: java.lang.ClassNotFoundException: No ClassLoaders found for: int at org.jboss.mx.server.MBeanServerImpl.instantiate(MBeanServerImpl.java:845) at org.jboss.mx.server.MBeanServerImpl.instantiate(MBeanServerImpl.java:269) at org.jboss.mx.server.MBeanServerImpl.createMBean(MBeanServerImpl.java:310) 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.jboss.jmx.connector.invoker.InvokerAdaptorService.invoke(InvokerAdaptorService.java:250) 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.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:72) at org.jboss.mx.server.Invocation.dispatch(Invocation.java:45) at org.jboss.mx.server.Invocation.invoke(Invocation.java:70) at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:187) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:480) at org.jboss.invocation.jrmp.server.JRMPInvoker.invoke(JRMPInvoker.java:367) 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 sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:261) at sun.rmi.transport.Transport$1.run(Transport.java:148) at java.security.AccessController.doPrivileged(Native Method) at sun.rmi.transport.Transport.serviceCall(Transport.java:144) 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:536) Caused by: java.lang.ClassNotFoundException: No ClassLoaders found for: int at org.jboss.mx.loading.LoadMgr3.beginLoadTask(LoadMgr3.java:241) at org.jboss.mx.loading.UnifiedClassLoader3.loadClassImpl(UnifiedClassLoader3.java:181) at org.jboss.mx.loading.UnifiedClassLoader3.loadClass(UnifiedClassLoader3.java:135) at java.lang.ClassLoader.loadClass(ClassLoader.java:255) at org.jboss.mx.loading.UnifiedLoaderRepository3.loadClass(UnifiedLoaderRepository3.java:603) at javax.management.loading.DefaultLoaderRepository.loadClass(DefaultLoaderRepository.java:74) at org.jboss.mx.server.MBeanServerImpl.instantiate(MBeanServerImpl.java:840) ... 28 more a href=http://www.jboss.org/index.html?module=bbop=viewtopicp=3827690#3827690;View the original post/a a href=http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3827690Reply to the post/a --- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470alloc_id=3638op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Management, JMX/JBoss] - JMX Notifications for clients behind firewall
Is it possible at all to get JMX notifications to work for clients behind a firewall. I am almost on the verge of giving up on this. I tried all invokers JRMP, Pooled and Http. For every one of these I'm able to reach my mbean on the server but notifications do not come back. I've used the RMIAdaptor on my client for all of these. Is this possible at all? Want to ask for one last time b4 I move on looking for some other solution to get my notifications to work. Thanks. Sib a href=http://www.jboss.org/index.html?module=bbop=viewtopicp=3827133#3827133;View the original post/a a href=http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3827133Reply to the post/a --- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470alloc_id=3638op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Management, JMX/JBoss] - Re: RemoteMBeanServer.addNotificationListener hangs for a wh
incidentally changing the jboss-service.xml to pooled invoker in in jmx-invoker-adapter-server.sar seems to have resolved my hang problem. But notifications are not coming back. Don't see any exception either. There's probably more to than just changing it to pooled invoker. I kept the client code still the same. Do I need to change something else also. Any pointers would be greatkly appreciated. Also if someone can tell me what level of trace or debug to turn on to see why notifications are not coming back up that would be great. Just setting org.jboss to debug didn't help any. Here's what I did. Lines in red denotesmy changes. !-- The JRMP invoker proxy configuration for the InvokerAdaptorService -- |mbean code=org.jboss.invocation.jrmp.server.JRMPProxyFactory | name=jboss.jmx:type=adaptor,name=Invoker,protocol=jrmp,service=proxyFactory | !-- Use the standard JRMPInvoker from conf/jboss-service.xxml -- | attribute name=InvokerNamejboss:service=invoker,type=pooled/attribute | !-- The target MBean is the InvokerAdaptorService configured below -- | attribute name=TargetNamejboss.jmx:type=adaptor,name=Invoker/attribute | !-- Where to bind the RMIAdaptor proxy -- | attribute name=JndiNamejmx/invoker/RMIAdaptor/attribute | !-- The RMI compabitle MBeanServer interface -- | attribute name=ExportedInterfaceorg.jboss.jmx.adaptor.rmi.RMIAdaptor/attribute | attribute name=ClientInterceptors | interceptors | interceptororg.jboss.proxy.ClientMethodInterceptor/interceptor | interceptororg.jboss.proxy.SecurityInterceptor/interceptor | interceptororg.jboss.jmx.connector.invoker.client.InvokerAdaptorClientInterceptor/interceptor | interceptororg.jboss.invocation.InvokerInterceptor/interceptor | /interceptors | /attribute | dependsjboss:service=invoker,type=pooled/depends | /mbean | a href=http://www.jboss.org/index.html?module=bbop=viewtopicp=3826592#3826592;View the original post/a a href=http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3826592Reply to the post/a --- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470alloc_id=3638op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Management, JMX/JBoss] - Re: RemoteMBeanServer.addNotificationListener hangs for a wh
Scott, Thanks for your reply. I have found the problem and it appears to be with our firewall situation. Well I found that connections initiated from server were being denied since our clients are behind firewall themselves. Opening up a client box did resolve this issue. But this is not an option for us unless we know which ports on the client the server is going to connect to. Can you suggest how to achieve notifications from server in a situation where client is behind a firewall. I am posting the thread dumps from the run that hangs. I hope you can throw some light on how to resolve this issue or some workaround. Thread dump follow: CLIENT -- sun.applet.AppletViewer at localhost:10831 (Suspended) System Thread [Finalizer] (Suspended) Object.wait(long) line: not available [native method] ReferenceQueue.remove(long) line: 111 ReferenceQueue.remove() line: 127 Finalizer$FinalizerThread.run() line: 159 System Thread [Reference Handler] (Suspended) Object.wait(long) line: not available [native method] Reference$Lock(Object).wait() line: 426 Reference$ReferenceHandler.run() line: 113 System Thread [Signal Dispatcher] (Suspended) Thread [AWT-Shutdown] (Suspended) Object.wait(long) line: not available [native method] Object.wait() line: 426 AWTAutoShutdown.run() line: 259 Thread.run() line: 536 Thread [AWT-Windows] (Suspended) WToolkit.eventLoop() line: not available [native method] WToolkit.run() line: 253 Thread.run() line: 536 Thread [Java2D Disposer] (Suspended) Object.wait(long) line: not available [native method] ReferenceQueue.remove(long) line: 111 ReferenceQueue.remove() line: 127 Disposer.run() line: 97 Thread.run() line: 536 Thread [AWT-EventQueue-0] (Suspended) Object.wait(long) line: not available [native method] EventQueue(Object).wait() line: 426 EventQueue.getNextEvent() line: 333 EventDispatchThread.pumpOneEventForHierarchy(int, Component) line: 161 EventDispatchThread.pumpEventsForHierarchy(int, Conditional, Component) line: 150 EventDispatchThread.pumpEvents(int, Conditional) line: 144 EventDispatchThread.pumpEvents(Conditional) line: 136 EventDispatchThread.run() line: 99 Thread [thread applet-iTree.iTree.class] (Suspended) Object.wait(long) line: not available [native method] Thread.join(long) line: 1008 Thread.join() line: 1061 AppletViewerPanel(AppletPanel).run() line: 328 Thread.run() line: 536 Thread [DestroyJavaVM] (Suspended) Thread [Thread-2] (Suspended) SocketInputStream.socketRead0(FileDescriptor, byte[], int, int, int) line: not available [native method] SocketInputStream.read(byte[], int, int) line: 129 BufferedInputStream.fill() line: 183 BufferedInputStream.read() line: 201 DataInputStream.readByte() line: 276 StreamRemoteCall.executeCall() line: 189 UnicastRef2(UnicastRef).invoke(Remote, Method, Object[], long) line: 133 JRMPInvoker_Stub.invoke(Invocation) line: not available JRMPInvokerProxy.invoke(Invocation) line: 135 InvokerInterceptor.invoke(Invocation) line: 96 InvokerAdaptorClientInterceptor.invoke(Invocation) line: 58 SecurityInterceptor.invoke(Invocation) line: 45 ClientMethodInterceptor.invoke(Invocation) line: 55 ClientContainer.invoke(Object, Method, Object[]) line: 85 $Proxy0.createMBean(String, ObjectName, Object[], String[]) line: not available RMIConnectorImpl.createMBean(String, ObjectName, Object[], String[]) line: 230 RMIClientNotificationListener(ClientNotificationListener).createListener(RemoteMBeanServer, String, Object[], String[]) line: 73 RMIClientNotificationListener.(ObjectName, NotificationListener, Object, NotificationFilter, RemoteMBeanServer) line: 48 RMIConnectorImpl.addNotificationListener(ObjectName, NotificationListener, NotificationFilter, Object) line: 446 MBeanUtil.registerListener(MBeanServer, ObjectName, NotificationListener) line: 237 ITreeMBeanService.registerListener(NotificationListener) line: 70 ITreeSvcProxy.registerListener(ITreeNotificationListener) line: 95 DataLoadingThread.(DataManager) line: 41 DataManager.() line: 36
[JBoss-user] [Management, JMX/JBoss] - RemoteMBeanServer.addNotificationListener hangs for a while
Hi, I am hoping someone can give me some pointers to a problem I'm having in production environment. Everything is fine in the development network. But JMX notifications are frustratingly slow in production. I have opened up all the ports that JBoss uses and still have the issue. I am using JBoss 3.2.3 Here's the jist of my code: Object ref = ic.lookup(jmx/invoker/RMIAdaptor); RMIAdaptor server =(RMIAdaptor) javax.rmi.PortableRemoteObject.narrow(ref, RMIAdaptor.class); MBeanServer mbeanServer = new RMIConnectorImpl(server); ... ... //This call hangs for a while b4 it goes thru. mbeanServer.addNotificationListener( lBean, lListener, (NotificationFilter) null, new NotSerializableHandback(lBean.toString())); Any ideas why in a firewall situation I am having this issue. Also the notifications from the mbean is equally slow to get to the client. Hoping if someone has faced this issue and resolved it would let me know how. Thanks. a href=http://www.jboss.org/index.html?module=bbop=viewtopicp=3825449#3825449;View the original post/a a href=http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3825449Reply to the post/a --- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470alloc_id=3638op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user