yashpal waghmare

Greenhorn
+ Follow
since Sep 17, 2008
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 yashpal waghmare

Problem Statement: I am using Spring 4.1.1-RELEASE with Jersey contaiiner 2.17. I have in my applicationContext.xml objects are populted with constructor injection. When I start the tomcat server in debug mode I am able to see those objects are getting populated with whatever values are set in applicationContext.xml.

Probelm: When server gets started, I am hitting my service from the SOAP UI and not abe to see the values which had popupated in objects those objects are getting values as null, and inturn it is throwing null pointer exception.
4 years ago
Hi david,

Can you help me running this program which I got from site

http://ptrthomas.wordpress.com/2008/04/


And this program is not giving me that previous error which I have posted earlier. Now its running but with some error. And in this error if you can see [AnonymousIoService-16], its repeating from 1 to 16 and not ending.
Please David can you go once through that site which I have mentioned above.










11 years ago
Hi,

Thanks for reply. Actually I had jdk1.5 on my machine , so now I have compiled my project with jdk1.6. I got .class files by compiling project with compiler 1.6 , so it is giving this problem which I have put previously.

Please help regarding this.
11 years ago
I am trying to read flv file by using RED5 packages, I am getting follwong error. Please help me , thanks is advance.


21:54:55,487 INFO [STDOUT] 21:54:55.487 [http-127.0.0.1-8080-1] DEBUG o.a.struts.action.RequestProcessor - Looking for Action instance for class Action.ActionRed5Server
21:54:55,487 INFO [STDOUT] 21:54:55.487 [http-127.0.0.1-8080-1] DEBUG o.a.s.tiles.TilesRequestProcessor - processForwardConfig(/WEB-INF/web/jsp/Red5ServerHome.jsp, false)
21:54:55,487 INFO [STDOUT] 21:54:55.487 [http-127.0.0.1-8080-1] DEBUG o.a.s.tiles.TilesRequestProcessor - '/WEB-INF/web/jsp/Red5ServerHome.jsp' - processed as uri
21:54:55,487 INFO [STDOUT] 21:54:55.487 [http-127.0.0.1-8080-1] DEBUG o.a.struts.action.RequestProcessor - processForwardConfig(ForwardConfig[name=success,path=/WEB-INF/web/jsp/Red5ServerHome.jsp,redirect=false,contextRelative=false,module=null])
21:54:58,718 INFO [STDOUT] 21:54:58.718 [http-127.0.0.1-8080-1] DEBUG org.apache.struts.util.ModuleUtils - Get module name for path /red5ServerIntialize.do
21:54:58,718 INFO [STDOUT] 21:54:58.718 [http-127.0.0.1-8080-1] DEBUG org.apache.struts.util.ModuleUtils - Module name found: default
21:54:58,718 INFO [STDOUT] 21:54:58.718 [http-127.0.0.1-8080-1] DEBUG o.a.struts.action.RequestProcessor - Processing a 'POST' for path '/red5ServerIntialize'
21:54:58,718 INFO [STDOUT] 21:54:58.718 [http-127.0.0.1-8080-1] DEBUG org.apache.struts.util.RequestUtils - Looking for ActionForm bean instance in scope 'request' under attribute key 'Red5FormBean'
21:54:58,718 INFO [STDOUT] 21:54:58.718 [http-127.0.0.1-8080-1] DEBUG org.apache.struts.util.RequestUtils - Creating new ActionForm instance of type 'Formbean.Red5FormBean'
21:54:58,719 INFO [STDOUT] 21:54:58.719 [http-127.0.0.1-8080-1] DEBUG o.a.struts.action.RequestProcessor - Storing ActionForm bean instance in scope 'request' under attribute key 'Red5FormBean'
21:54:58,719 INFO [STDOUT] 21:54:58.719 [http-127.0.0.1-8080-1] DEBUG o.a.struts.action.RequestProcessor - Populating bean properties from this request
21:54:58,719 INFO [STDOUT] 21:54:58.719 [http-127.0.0.1-8080-1] DEBUG o.apache.commons.beanutils.BeanUtils - BeanUtils.populate(Formbean.Red5FormBean@26c3a1, {})
21:54:58,719 INFO [STDOUT] 21:54:58.719 [http-127.0.0.1-8080-1] DEBUG o.a.struts.action.RequestProcessor - Looking for Action instance for class Action.ActionRed5Server
21:54:58,719 INFO [STDOUT] 21:54:58.719 [http-127.0.0.1-8080-1] DEBUG Action.ActionRed5Server - connecting, host: localhost, app: oflaDemo, port: 1935
21:54:58,719 INFO [STDOUT] 21:54:58.719 [http-127.0.0.1-8080-1] DEBUG org.red5.server.net.rtmp.RTMPClient - connect server: localhost port 1935 application oflaDemo connectCallback Action.ActionRed5Server$1@f596b2
21:54:58,719 INFO [STDOUT] 21:54:58.719 [http-127.0.0.1-8080-1] DEBUG org.red5.server.net.rtmp.RTMPClient - connect server: localhost port 1935 connectionParams {objectEncoding=0, app=oflaDemo, flashVer=WIN 9,0,115,0, fpad=false, tcUrl=rtmp://localhost:1935/oflaDemo, audioCodecs=1639, videoFunction=1, pageUrl=null, path=oflaDemo, capabilities=15, swfUrl=null, videoCodecs=252} connectCallback Action.ActionRed5Server$1@f596b2
21:54:58,720 INFO [STDOUT] 21:54:58.720 [http-127.0.0.1-8080-1] ERROR o.a.struts.actions.DispatchAction - Dispatch[/red5ServerIntialize] to method 'red5ServerIntializer' returned an exception
java.lang.reflect.InvocationTargetException
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:597)
at org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchAction.java:276)
at org.apache.struts.actions.DispatchAction.execute(DispatchAction.java:196)
at org.apache.struts.actions.MappingDispatchAction.execute(MappingDispatchAction.java:171)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:415)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:580)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.IncompatibleClassChangeError: org/apache/mina/common/support/DefaultExceptionMonitor
at org.apache.mina.common.support.BaseIoSessionManager.<init>(BaseIoSessionManager.java:37)
at org.apache.mina.common.support.BaseIoConnector.<init>(BaseIoConnector.java:39)
at org.apache.mina.transport.socket.nio.support.SocketConnectorDelegate.<init>(SocketConnectorDelegate.java:62)
at org.apache.mina.transport.socket.nio.SocketConnector.<init>(SocketConnector.java:38)
at org.red5.server.net.rtmp.RTMPClient.connect(RTMPClient.java:188)
at org.red5.server.net.rtmp.RTMPClient.connect(RTMPClient.java:160)
at Action.ActionRed5Server.red5ServerIntializer(ActionRed5Server.java:239)
... 31 common frames omitted
21:54:58,721 INFO [STDOUT] 21:54:58.721 [http-127.0.0.1-8080-1] DEBUG o.a.struts.action.ExceptionHandler - ExceptionHandler caught this exception:
javax.servlet.ServletException: java.lang.IncompatibleClassChangeError: org/apache/mina/common/support/DefaultExceptionMonitor
at org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchAction.java:300)
at org.apache.struts.actions.DispatchAction.execute(DispatchAction.java:196)
at org.apache.struts.actions.MappingDispatchAction.execute(MappingDispatchAction.java:171)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:415)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:580)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.IncompatibleClassChangeError: org/apache/mina/common/support/DefaultExceptionMonitor
at org.apache.mina.common.support.BaseIoSessionManager.<init>(BaseIoSessionManager.java:37)
at org.apache.mina.common.support.BaseIoConnector.<init>(BaseIoConnector.java:39)
at org.apache.mina.transport.socket.nio.support.SocketConnectorDelegate.<init>(SocketConnectorDelegate.java:62)
at org.apache.mina.transport.socket.nio.SocketConnector.<init>(SocketConnector.java:38)
at org.red5.server.net.rtmp.RTMPClient.connect(RTMPClient.java:188)
at org.red5.server.net.rtmp.RTMPClient.connect(RTMPClient.java:160)
at Action.ActionRed5Server.red5ServerIntializer(ActionRed5Server.java:239)
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:597)
at org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchAction.java:276)
... 26 common frames omitted
21:54:58,721 INFO [STDOUT] 21:54:58.721 [http-127.0.0.1-8080-1] DEBUG o.a.s.tiles.TilesRequestProcessor - processForwardConfig(/, false)
21:54:58,722 INFO [STDOUT] 21:54:58.722 [http-127.0.0.1-8080-1] DEBUG o.a.s.tiles.TilesRequestProcessor - '/' - processed as uri
21:54:58,722 INFO [STDOUT] 21:54:58.722 [http-127.0.0.1-8080-1] DEBUG o.a.struts.action.RequestProcessor - processForwardConfig(ForwardConfig[name=null,path=/,redirect=false,contextRelative=false,module=null])
11 years ago
How to import
import org.red5.server.api.service.IPendingServiceCall;

in MyEclipse, can any body help me configuring RED5 Server , how can i import above package in my application.


Thanks in advance.
11 years ago
How to import
import org.red5.server.api.service.IPendingServiceCall;

in MyEclipse, can any body help me configuring RED5 Server , how can i import above package in my application.


Thanks in advance.
11 years ago
Hi Ankit,

It was capitalization problem.


Thanks.
11 years ago
Hi,

I am getting this error struts application


ERROR [RequestProcessor] No action instance for path /RailwayReservation could be created
java.lang.ClassNotFoundException: action.ActionTrainReservation


please help me to solve this problem,

Thanks in advance
11 years ago
Hi All,

I am just a beginner for javascript.
I do not know how to get yes and No buttons instead of OK and Cancel using javascript:confirm. Also if you could guide me with this.
Hi Balu,
Thanks for guiding me, I have given error what I am getting.

Thanks in Advance.

Hi , now i have changed that line which is giving an error to,

TreeMap loginMap = new TreeMap();
Connection con = null;
ResultSet rs= null;
Statement st =null;
String query = null;

try{
Class.forName("oracle.jdbc.driver.OracleDriver");



String url = "jdbc:oracle:thin:@123.236.165.26:1521:orcl";// its giving error at this line

con = DriverManager.getConnection(url);

st = con.createStatement();

query="select user_name, user_password from TrainRes_user_tbl";





And The error is:

13:14:53,209 ERROR [STDERR] java.sql.SQLException: Io exception: The Network Adapter could not establish the connection
13:14:53,210 ERROR [STDERR] at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:112)
13:14:53,210 ERROR [STDERR] at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:146)
13:14:53,210 ERROR [STDERR] at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:255)
13:14:53,210 ERROR [STDERR] at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:387)
13:14:53,210 ERROR [STDERR] at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:439)
13:14:53,211 ERROR [STDERR] at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:165)
13:14:53,211 ERROR [STDERR] at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:35)
13:14:53,211 ERROR [STDERR] at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:801)
13:14:53,211 ERROR [STDERR] at java.sql.DriverManager.getConnection(Unknown Source)
13:14:53,211 ERROR [STDERR] at java.sql.DriverManager.getConnection(Unknown Source)
13:14:53,211 ERROR [STDERR] at Model.TrainReservationModel.getloginMap(TrainReservationModel.java:63)
13:14:53,211 ERROR [STDERR] at Action.ActionTrainReservation.getLogin(ActionTrainReservation.java:54)
13:14:53,211 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
13:14:53,211 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
13:14:53,211 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
13:14:53,212 ERROR [STDERR] at java.lang.reflect.Method.invoke(Unknown Source)
13:14:53,212 ERROR [STDERR] at org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchAction.java:276)
13:14:53,212 ERROR [STDERR] at org.apache.struts.actions.DispatchAction.execute(DispatchAction.java:196)
13:14:53,212 ERROR [STDERR] at org.apache.struts.actions.MappingDispatchAction.execute(MappingDispatchAction.java:171)
13:14:53,212 ERROR [STDERR] at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)
13:14:53,212 ERROR [STDERR] at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)
13:14:53,212 ERROR [STDERR] at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
13:14:53,212 ERROR [STDERR] at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:415)
13:14:53,212 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
13:14:53,212 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
13:14:53,212 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
13:14:53,212 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
13:14:53,212 ERROR [STDERR] at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
13:14:53,212 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
13:14:53,212 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
13:14:53,212 ERROR [STDERR] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
13:14:53,212 ERROR [STDERR] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
13:14:53,212 ERROR [STDERR] at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
13:14:53,212 ERROR [STDERR] at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
13:14:53,212 ERROR [STDERR] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
13:14:53,213 ERROR [STDERR] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
13:14:53,213 ERROR [STDERR] at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
13:14:53,213 ERROR [STDERR] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
13:14:53,213 ERROR [STDERR] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241)
13:14:53,213 ERROR [STDERR] at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
13:14:53,213 ERROR [STDERR] at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:580)
13:14:53,213 ERROR [STDERR] at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
13:14:53,213 ERROR [STDERR] at java.lang.Thread.run(Unknown Source)
I am not able nto make jdbc connectivity with oracle 10g on windows vista operating system, I have done following code for that, I have put comment at line where its giving an error.

TreeMap loginMap = new TreeMap();
Connection con = null;
ResultSet rs= null;
Statement st =null;
String query = null;

try{
Class.forName("oracle.jdbc.driver.OracleDriver");

String url = "jdbc:oracle:thin:@123.236.165.26:1521:orcl";// its giving error at this line
con = DriverManager.getConnection(url);

st = con.createStatement();

query="select user_name, user_password from TrainRes_user_tbl";


11 years ago
I am not able nto make jdbc connectivity with oracle 10g on windows vista operating system, I have done following code for that, I have put comment at line where its giving an error.

TreeMap loginMap = new TreeMap();
Connection con = null;
ResultSet rs= null;
Statement st =null;
String query = null;

try{
Class.forName("oracle.jdbc.driver.OracleDriver");

String url = "jdbc:oracle:thin:@123.236.165.26:1521:orcl";// its giving error at this line
con = DriverManager.getConnection(url);

st = con.createStatement();

query="select user_name, user_password from TrainRes_user_tbl";






Hi Tushar,

I think you have to do like this,

String url ="http://www.google.com";

response.sendRedirect(url);

//try out these 2 lines.
11 years ago