Win a copy of Terraform in Action this week in the Cloud forum!

Dattatray Sutar

Ranch Hand
+ Follow
since Jul 12, 2006
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Dattatray Sutar

Originally posted by bksella sella:
You can also check the connection timeout settings in your weblogic console for the connection pool which you are using. May be the connection timeout is too short for some of the queries that take considerably longer time to complete execution.



The problem is resolved now. The problem was that there is another application running on my PC which is using the same port as of weblogic debugger i think 8453. I stopped that application, now the debugger is running fine. Thanks All.
13 years ago
Hi Ranchers.

Help needed from you again...In my application I have getSession.invalidate() method only. But when tried to cross-check it, I clicked on a link on my application which takes some time executing the queries...in the manwhile i tried closing the browser. When opening a new brobser and trying to use the appliction ...I noticed that the previous queries are still in execution on the server side...and hence untill that operation is over i could not proceed further for other actions.
In summary I need to know how can we stop queries in execution when a user clicks logout.

Thanks in advance.
13 years ago
The info is not sufficient.
--ok.
Can you explain what db
-- Oracle 9i

what you were trying to do
-- Trying to execute a query in the web application in this database through Oracle driver.

and when you are getting this exception.
-- Some of the queries run ok. for some it gives this error of connection reset.

Looks like the server is not reachable. Did you tested the DB outside of WL from the same server?
-- database is running fine. Tested the same.

Let me know if you still needs more info...
Thanks
14 years ago
Hi Ranchers!
I have been trying for a month to resolve this issue, but i think i must take the help of you ranchers!
I am using weblogic 8.1 to connect to Oracle and getting connenction reset error. I have posted the log below. Please do the needful.
Thanks in advance,



weblogic.debugging.comm.SocketCommException
at weblogic.debugging.comm.SocketComm.attach(SocketComm.java:74)
at weblogic.debugging.comm.ConnectInfo.createTransport(ConnectInfo.java:
82)
at weblogic.debugging.engine.Notify.openDebugController(Notify.java:1079
)
at weblogic.debugging.engine.Notify.doStartDebugging(Notify.java:528)
at weblogic.debugging.engine.DbgMain.FinishHookup(DbgMain.java:237)
at weblogic.debugging.engine.DbgMain._hookupTheWorld(DbgMain.java:212)
at weblogic.debugging.engine.DbgMain.hookupTheWorld(DbgMain.java:162)
at weblogic.debugging.engine.DbgMain.processMessage(DbgMain.java:385)
at weblogic.debugging.engine.DbgMain.running(DbgMain.java:263)
at weblogic.debugging.engine.DbgMain.main(DbgMain.java:782)
Caused by: java.net.ConnectException: Connection timed out: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)
at java.net.Socket.connect(Socket.java:452)
at java.net.Socket.connect(Socket.java:402)
at java.net.Socket.<init>(Socket.java:309)
at java.net.Socket.<init>(Socket.java:124)
at weblogic.debugging.comm.SocketComm.attach(SocketComm.java:68)
... 9 more
INFO - ScriptEngine.Log called
java.lang.NullPointerException
at weblogic.debugging.engine.ThreadCollection.loadThreads(ThreadCollecti
on.java:201)
at weblogic.debugging.engine.ThreadCollection.initThreads(ThreadCollecti
on.java:134)
at weblogic.debugging.engine.Notify.handleExecThreadBreakpoint(Notify.ja
va:794)
at weblogic.debugging.engine.Notify.breakpointEvent(Notify.java:837)
at weblogic.debugging.engine.EvtQueue.breakpointEvent(EvtQueue.java:559)

at weblogic.debugging.engine.EvtQueue.handleEvent(EvtQueue.java:456)
at weblogic.debugging.engine.EvtQueue.processEvents(EvtQueue.java:178)
at weblogic.debugging.engine.EvtQueue.processJDIEvents(EvtQueue.java:267
)
at weblogic.debugging.engine.EvtQueue.run(EvtQueue.java:324)
at java.lang.Thread.run(Thread.java:534)
14 years ago
One of the possibility is struts2-spring-plugin-2.0.9.jar is present more than once in the classpath...
14 years ago
Hi Ranchers,
Help needed again from you guys!!!

I am trying to user tiles 2 with Struts 2 and getting following error:


22:01:15,246 INFO [BasicTilesContainer] Initializing Tiles2 container. . .
22:01:15,266 ERROR [[/cht-war]] Exception sending context initialized event to listener instance of class org.apache.struts2.tiles.StrutsTilesListener
java.lang.NoClassDefFoundError: org/apache/commons/digester/Rule
at org.apache.tiles.definition.UrlDefinitionsFactory.init(UrlDefinitionsFactory.java:118)
at org.apache.tiles.impl.BasicTilesContainer.initializeDefinitionsFactory(BasicTilesContainer.java:185)
at org.apache.tiles.impl.BasicTilesContainer.init(BasicTilesContainer.java:121)
at org.apache.tiles.factory.TilesContainerFactory.initializeContainer(TilesContainerFactory.java:232)
at org.apache.tiles.factory.TilesContainerFactory.createTilesContainer(TilesContainerFactory.java:198)
at org.apache.tiles.factory.TilesContainerFactory.createContainer(TilesContainerFactory.java:163)
at org.apache.tiles.web.startup.TilesListener.createContainer(TilesListener.java:90)
at org.apache.struts2.tiles.StrutsTilesListener.createContainer(StrutsTilesListener.java:66)
at org.apache.tiles.web.startup.TilesListener.contextInitialized(TilesListener.java:57)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3854)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4359)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:761)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:741)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:553)
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.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:297)
at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.apache.catalina.core.StandardContext.init(StandardContext.java:5310)
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.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:297)
at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.web.tomcat.service.TomcatDeployer.performDeployInternal(TomcatDeployer.java:301)
at org.jboss.web.tomcat.service.TomcatDeployer.performDeploy(TomcatDeployer.java:104)
at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:375)
at org.jboss.web.WebModule.startModule(WebModule.java:83)
at org.jboss.web.WebModule.startService(WebModule.java:61)

at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
at sun.reflect.GeneratedMethodAccessor155.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
at $Proxy0.start(Unknown Source)
at org.jboss.system.ServiceController.start(ServiceController.java:417)
at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
at $Proxy45.start(Unknown Source)
at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:466)
at sun.reflect.GeneratedMethodAccessor108.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:97)
at org.jboss.system.InterceptorServiceMBeanSupport.invokeNext(InterceptorServiceMBeanSupport.java:238)
at org.jboss.ws.integration.jboss42.DeployerInterceptor.start(DeployerInterceptor.java:93)
at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.start(SubDeployerInterceptorSupport.java:188)
at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:95)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
at $Proxy46.start(Unknown Source)
at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1015)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
at sun.reflect.GeneratedMethodAccessor18.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke
14 years ago
Hi Ranchers.
Anybody of you knowing some links, sample tutorial about Struts 2.0, tiles 2 sample applications.
I will be very thankfull to you.
14 years ago
I got my problem solved by including a plug in for Jboss 4.2 in eclipse.
Thanks though.
14 years ago
Hi Ranchers.
I want to configure Jboss 4.2.1.GA with eclipse 3.2. but while defining this server in eclipse it is asking me for javax.servlet.jar should be there in server/default Lib. Can anyone help me how to solve this issue.
Or Jboss 4.2.1.GA with eclipse 3.2 is not supported.

Thanks in advance.
14 years ago

Originally posted by Chang Iych:
Increase your JTA timeout value in the admin console. You should find it under the domain tab --> JTA page.

Chang



Thanks Chang. I got the solution. Since my application is having some queries which overall taking 6-7 minutes (unfortunately )I have increased the transaction timeout period in my DD to 420 seconds(7 minutes) and also the stuck thread max time of my server to 420 seconds. Everything is working fine now.
14 years ago

Originally posted by sumit anand:
Hi All
I want to display the table record in jsp page with multiple color i.e. color of table row should be different for different record
Thanks
Sumit



You can simply add html code for color before the jsp code in the iteration.
14 years ago
Hi Ranchars.Help needed again from you guys!!
I am using weblogic 8.1 server and Oracle 9i. One of my query in database taking more time about 8-9 minutes. My Web application calling that query is giving connection timeout after 300 seconds. Please help me where to increase this connection timeout value.Thanks in advance.
14 years ago

Originally posted by Muralitharan Pannerselvam:
Can anyone help me in this?
I have two jsp pages. First one has a drop down box with values (1-4).The second page has two input fields (Name and Id) and a submit button.The second page is populated based on what the user selects in the first page. If he selects two then the second page should have two sets of Name and Id input fields but only one submit button.I want to have only one form bean for this jsp page. How can i handle this form in the action class and retrive each value of Name and Id.



You can use your form bean to extend DynaFormbean. i.e. Struts formbean which is built dynamically by using xml descriptors, so that depending on your need you can show some fields and hide the remaining. Thus your formbean having whatever maximum no. of properties and showing some of them dynamicaly while hiding the remainings.
14 years ago
Hi Ranchers!
I am trying to call a Class mothod from a JSP page.The method takes some parameters.I dont want to use Java data type parameter e.g. addfunction(int a,int b) where a and b are Java specific data type.Instead of this i want to pass XML data type and that class mothod will also accept the XML data type so that this will not remain Java specific mothod call.
So ini summary i want to know how to pass XML data type to a Java Mothod?
Thanks for your time.
15 years ago
JSP
Hi.Thanks for your time.Any websites which can clearify this in details if you are having the time please.
15 years ago