Help coderanch get a
new server
by contributing to the fundraiser

Lokesh Malik

Greenhorn
+ Follow
since Feb 01, 2005
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Lokesh Malik

Hi to ALL..
I am facing a very strange problem. The problem is accessing Bean from JSP files.
when i store the directory of my web application in Tomcat webapps directory then there is no problem.My programme is working fine.
But when i store my web application other then TOMCAT webapps directory then it shows runtime exception

org.apache.jasper.JasperException: Unable to compile class for JSP

and also display that there is no bean class.

i have already checked the CLASSPATH.
19 years ago
JSP
req.setAttribute("message","No Record Found");
RequestDispatcher rd = req.getRequestDispatcher("../Error.jsp");
rd.forward(req,res);

here when i start Tomcat-server then at first time it shows rd=null;
and display the nullpointerexception but when i refresh the page it chows me the message.
So why at first time rd become null;


Originally posted by Priya Jothi:
Hi,
Can u send the sample code where u got this IllegalStateException?.May be on seeing the code i can say why & where this exception is raised.

Regards,
Priya.

19 years ago
Hi to ALL
Friends i have some problem regarding RequestDispatcher

on the base of code i am forwarding my message to another jsp page from servlet
and i use code

req.setAttribute("message","No Record Found");
RequestDispatcher rd = req.getRequestDispatcher("../Error.jsp");
rd.forward(req,res);

but when i run servlet this give Java.lang.NullPointerException on line rd.forward(req,res);
ie show rd is null;

it happens only first time and when i refresh the page it gives me proper output.

Please tell me why is this giving NullPointerException at first time and how could i prevent it.


19 years ago
Why do I get the error "IllegalStateException" when using the RequestDispatcher?
19 years ago
I have created the certificate and also created the kystore according to server side certificate.but my problem is remain as it is.
If you have procedure how to check that Please Lte me know
19 years ago
I have developed a swing Application.In first it ask for Login ID and Password.
User enter his user ID and Password and click on Login Button.
This User ID and Password verified from Server.
Means on Click Login First i call the Servlet Pass the Login ID and Password to Server.
It verifies from Server and next Procedure Run.

Now the Problem is when my servlet is on http site it workig fine But when i deploy it on https then it generates the following Exception.

****************************************************************************javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to reque
sted target
at com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Unknown Source)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.fatal(Unknown Source)
at com.sun.net.ssl.internal.ssl.Handshaker.fatalSE(Unknown Source)
at com.sun.net.ssl.internal.ssl.Handshaker.fatalSE(Unknown Source)
at com.sun.net.ssl.internal.ssl.ClientHandshaker.serverCertificate(Unknown Source)
at com.sun.net.ssl.internal.ssl.ClientHandshaker.processMessage(Unknown Source)
at com.sun.net.ssl.internal.ssl.Handshaker.processLoop(Unknown Source)
at com.sun.net.ssl.internal.ssl.Handshaker.process_record(Unknown Source)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(Unknown Source)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(Unknown Source)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(Unknown Source)
at sun.net.www.protocol.https.HttpsClient.afterConnect(Unknown Source)
at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(Unknown Source)
at sun.net.www.protocol.https.HttpsURLConnectionImpl.getOutputStream(Unknown Source)
at SMSInputForm$1.actionPerformed(SMSInputForm.java:82)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
Caused by: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
at sun.security.validator.PKIXValidator.doBuild(Unknown Source)
at sun.security.validator.PKIXValidator.engineValidate(Unknown Source)
at sun.security.validator.Validator.validate(Unknown Source)
at com.sun.net.ssl.internal.ssl.X509TrustManagerImpl.checkServerTrusted(Unknown Source)
at com.sun.net.ssl.internal.ssl.JsseX509TrustManager.checkServerTrusted(Unknown Source)
... 36 more
Caused by: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
at sun.security.provider.certpath.SunCertPathBuilder.engineBuild(Unknown Source)
at java.security.cert.CertPathBuilder.build(Unknown Source)
... 41 more


****************************************************************************

Please suggest me wt i have to Do?
19 years ago
I have created Java Programme which is based on Swing-Servlet Communication.
After it the Jar-File which contain the Swing Programme Class files put on Client Side .same swing-Files on Server side .Now the Problem comes when i update any of Swing Files on server side then how could i download it to client. and second if i got download then how could i update my JAR files through this new File. with in Programme.
19 years ago