Ashutosh Shinde

Ranch Hand
+ Follow
since Jun 07, 2001
Merit badge: grant badges
For More
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 Ashutosh Shinde

Hello All,
I tried to interrupt a thread that was in a read mode on WIN NT running the SUN JDK 1.3. As expected, the thread could not be interrupted since it was in a blocked mode.
However, one of our client claims that the same code interrupts the thread which is in a blocked mode with the IBM JDK 1.3 on Linux.
Is there a difference in the implementation of the read() call in the IBM and the SUN JDK such that the read calls are not blocked?
Regards,
Ashutosh
18 years ago
Hi,
i'm trying to connect to a server using https without proxy and i'm getting (after a moment) a java.net.SocketException : Unexpected end of file from server.
The stack trace is as follows -
java.net.SocketException: Unexpected end of file from server
at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:818)
at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:711)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:626)
at com.sun.net.ssl.internal.www.protocol.https.HttpsURLConnectionOldImpl.getInputStream(DashoA6275)
I saw that this error was posted a number of times on the sun site, however, no solution was posted
Could anybody provide some pointers?
Thanks,
Ashutosh
19 years ago
Hi,
i'm trying to connect to a server using https without proxy and i'm getting (after a moment) a java.net.SocketException : Unexpected end of file from server.
The stack trace is as follows -
java.net.SocketException: Unexpected end of file from server
at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:818)
at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:711)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:626)
at com.sun.net.ssl.internal.www.protocol.https.HttpsURLConnectionOldImpl.getInputStream(DashoA6275)
I saw that this error was posted a number of times on the sun site, however, no solution was posted
Could anybody provide some pointers?
Thanks,
Ashutosh
Hello All,
I get the following ClassNotFoundException when I try to access my application -
avax.xml.parsers.FactoryConfigurationError: java.lang.ClassNotFoundException: weblogic.xml.jaxp.RegistryDocumentBuilderFactory
at javax.xml.parsers.DocumentBuilderFactory.newInstance(DocumentBuilderFactory.java:149)
at com.opus.epg.classes.utils.XmlDocumentCache.<clinit>(XmlDocumentCache.java:42)
at com.opus.epg.servlets.pgws.PGServSecure.generateXML(PGServSecure.java:317)
at com.opus.epg.servlets.pgws.PGServSecure.doPost(PGServSecure.java:269)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:265)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:200)
at weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImpl.java:466)
at weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImpl.java:296)
at jsp_servlet._mpi.__moto._jspService(__moto.java:613)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:265)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:304)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:200)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:2495)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2204)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
I have found the specific class in the weblogic.jar. weblogic.jaris set in the weblogic classpath.
Could anybody provide any pointers to resolve the problem.
Thanks,
Ashutosh
19 years ago
Hi,
I have imported the public key into the JDK keystore using the keytool.
When I make a connection to the Server an exception is encountered and a message is displayed "Public key not of type RSA".
After this I deleted the key from the keystore and then imported the key again. This time the call to the server succeeded.
After this I restarted the machine to simulate the error again. On this occassion I got the error again. I then imported the key again and this time it worked.
It seems as if the keystore is getting corrupted.
Has anyone faced a similar issue?
I am using JDK1.3 on linux and the web server is Tomcat 3
Thanks,
Ashutosh
19 years ago
Hi,
I am trying to connect to the server using a Java Client. The communication is using SSL. The public key generated by the Server has already been inserted into the keystore of the JDK. However, the following exception is encountered when the client tries to connect to the server.
Tomcat server is used with JDK1.3
---------------------------------------------------------------------------
javax.net.ssl.SSLKeyException: Public key not of type RSA
javax.net.ssl.SSLKeyException: Public key not of type RSA
at com.sun.net.ssl.internal.ssl.al.<init>([DashoPro-V1.2-120198])
at com.sun.net.ssl.internal.ssl.ClientHandshaker.a([DashoPro-V1.2-120198])
at com.sun.net.ssl.internal.ssl.ClientHandshaker.processMessage([DashoPro-V1.2-120198])
at com.sun.net.ssl.internal.ssl.Handshaker.process_record([DashoPro-V1.2-120198])
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a([DashoPro-V1.2-120198])
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a([DashoPro-V1.2-120198])
at com.sun.net.ssl.internal.ssl.AppOutputStream.write([DashoPro-V1.2-120198])
at java.io.OutputStream.write(OutputStream.java:61)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake([DashoPro-V1.2-120198])
at com.sun.net.ssl.internal.www.protocol.https.HttpsClient.doConnect([DashoPro-V1.2-120198])
at com.sun.net.ssl.internal.www.protocol.https.NetworkClient.openServer([DashoPro-V1.2-120198])
at com.sun.net.ssl.internal.www.protocol.https.HttpClient.l([DashoPro-V1.2-120198])
at com.sun.net.ssl.internal.www.protocol.https.HttpClient.<init>([DashoPro-V1.2-120198])
at com.sun.net.ssl.internal.www.protocol.https.HttpsClient.<init>([DashoPro-V1.2-120198])
at com.sun.net.ssl.internal.www.protocol.https.HttpsClient.a([DashoPro-V1.2-120198])
at com.sun.net.ssl.internal.www.protocol.https.HttpsClient.a([DashoPro-V1.2-120198])
at com.sun.net.ssl.internal.www.protocol.https.HttpsURLConnection.connect([DashoPro-V1.2-120198])
at com.sun.net.ssl.internal.www.protocol.https.HttpsURLConnection.getOutputStream([DashoPro-V1.2-120198])
at com.opus.epg.sfa.java.PostLib.postData(PostLib.java:314)
at com.opus.epg.sfa.java.PostLib.postMOTO(PostLib.java:185)
at _0002fTestMoto_0002ejspTestMoto_jsp_11._jspService(_0002fTestMoto_0002ejspTestMoto_jsp_11.java:160)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.jasper.servlet.JspServlet$JspCountedServlet.service(JspServlet.java:130)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:282)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:429)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:500)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
at org.apache.tomcat.core.Handler.service(Handler.java:287)
at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
at org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection(Ajp12ConnectionHandler.java:166)
at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
at java.lang.Thread.run(Thread.java:484)
---------------------------------------------------------------------------

Could someone provide any pointers on the same
Thanks,
Ashutosh
19 years ago
I am trying to use a pfx file for client certification
The code is as below -
Security.addProvider(new org.bouncycastle.jce.provider.BouncyCastleProvider());
FileInputStream fis = new FileInputStream("D:\\CertificationServer\\merchantopus.pfx");
KeyStore ks2 = KeyStore.getInstance("PKCS12", "BC");
KeyManagerFactory kmf = kmf = KeyManagerFactory.getInstance("X509");
The following lines give the error -
java.security.NoSuchAlgorithmException: Algorithm X509 not available
at com.sun.net.ssl.b.a([DashoPro-V1.2-120198])
at com.sun.net.ssl.KeyManagerFactory.getInstance([DashoPro-V1.2-120198])
at BCTest.test(BCTest.java:28)
at BCTest.main(BCTest.java:12)
Could someone provide pointers to resolve the error?
Thanks,
Ashutosh
19 years ago
I am trying to establish a client side authentication using client certificates issued by IIS 5.0
The certificates are in the PFX format(pkcs12). However, when I try to load the certificate into the keystore using the keytool I get a message which says that the import was not a valid X.509 format.
What could be the problem?
I saw some posts on the net which mentioned that the PFX format is not imported by the Java keystore. In this case, is there any mechanism to convert pfx into a format compatible with JDK?
Thanks,
Ashutosh
19 years ago
Hello All,
What is the default transaction attribute set for methods of the Session/Entity bean when the transaction attribute is not explicitly mentioned in the XML file?
Thanks,
Ashutosh
19 years ago
Hello All,
I am trying to configure JMS on websphere 5.0. I want to use the default Internal JMS Provider. When I launch the server I get an error "Unable to start the JMS Server as WebSphere Embedded Messaging has not been installed".
I have done a standard (FULL)installation. I assumed that as a part of the FULL installation, the server should have been installed. But the message in the log file indicates that it has not been installed.
Is there a seperate installable for Websphere + WebSphere Embedded Messaging? Or have i done something wrong?
Any pointers that can help to solve are appreciated.
Thanks in advance.
Regards,
Ashutosh
19 years ago
Hello All,
I am using a Datasource to connect to a SQL Server. I am able to get the Conenction to the database when I use the Datasource in a Servlet. However, the code fails when a Session Bean tries to access the Datasource. The following the the stack.
Exception stack trace: com.ibm.websphere.naming.CannotInstantiateObjectException: Exception occurred while the JNDI NamingManager was processing a javax.naming.Reference object. Root exception is javax.naming.NamingException: Attempted to use a 4.0 DataSource in EJB 2.0 Module. Invalid configuration.
Could anyone provide any pointers? Thanks in advance.
-- ashutosh
19 years ago
Hello everyone,
Thanks everyone. I could connect to SQL server with the inbuilt driver provided by Websphere. My main aim was to connect to Lotus (-- this is how I started with the exercise before moving to SQL Server). However, since the Driver that I have (Lotus Driver for JDBC) does not implement the ConnectionPoolDataSource interface,, I was not able to connect to the database using the datasource! Is anyone aware of a JDBC driver for Lotus that implements the interface ? Thanks..
-- Ashutosh
20 years ago
Hello everyone,
I am trying to create a Database Connection Pool on Websphere version 5.0 for Lotus Database 5.0.5. The driver is Lotus Domino Driver for JDBC Ver 1.5
When I invoke the getConnection() method of the Datasource I get a message "The class (lotus.jdbc.domino.DominoDriver) does not implement javax.sql.ConnectionPoolDataSource or javax.sql.XADataSource". Can i deduce that it is necessary for a driver to implement the above mentioned interfaces so that the connections can be pooled and be accessed through a datasource? In this case I may have to implement my own Connection Pooling logic. Is my understanding right ?
Thanks in advance.
--Ashutosh
Hello All,
I am trying to connect to a Lotus Db using a application client. The following custom properties have been set for the datasource.
URL : jdbc omino:/JdbcDemo.nsf/192.abc.y.x
user : test
password : test
I get the following error when the getConnection() method is invoked on the DataSource.
--------------------------------------------
java.sql.SQLException: DSRA9002E: ResourceException with error code null: javax.
resource.spi.ResourceAllocationException: Caught ResourceException thrown during
creation of the ManagedConnection.
at com.ibm.ejs.j2c.poolmanager.FreePool.createManagedConnectionWithMCWra
pper(FreePool.java:1138)
at com.ibm.ejs.j2c.poolmanager.FreePool.createOrWaitForConnection(FreePo
ol.java:897)
at com.ibm.ejs.j2c.poolmanager.PoolManager.reserve(PoolManager.java:1065
)
at com.ibm.ejs.j2c.ConnectionManager.allocateMCWrapper(ConnectionManager
.java:560)
at com.ibm.ejs.j2c.ConnectionManager.allocateConnection(ConnectionManage
r.java:374)
at com.ibm.ws.rsadapter.jdbc.WSJdbcDataSource.getConnection(WSJdbcDataSo
urce.java:205)
at com.ibm.ws.rsadapter.jdbc.WSJdbcDataSource.getConnection(WSJdbcDataSo
urce.java:180)
at LotusTest.main(LotusTest.java:23)
at java.lang.reflect.Method.invoke(Native Method)
at com.ibm.websphere.client.applicationclient.launchClient.createContain
erAndLaunchApp(launchClient.java:616)
at com.ibm.websphere.client.applicationclient.launchClient.main(launchCl
ient.java:420)
at java.lang.reflect.Method.invoke(Native Method)
at com.ibm.ws.bootstrap.WSLauncher.main(WSLauncher.java:94)
at com.ibm.ws.rsadapter.AdapterUtil.toSQLException(AdapterUtil.java:1019
)
at com.ibm.ws.rsadapter.jdbc.WSJdbcDataSource.getConnection(WSJdbcDataSo
urce.java:229)
at com.ibm.ws.rsadapter.jdbc.WSJdbcDataSource.getConnection(WSJdbcDataSo
urce.java:180)
at LotusTest.main(LotusTest.java:23)
at java.lang.reflect.Method.invoke(Native Method)
at com.ibm.websphere.client.applicationclient.launchClient.createContain
erAndLaunchApp(launchClient.java:616)
at com.ibm.websphere.client.applicationclient.launchClient.main(launchCl
ient.java:420)
at java.lang.reflect.Method.invoke(Native Method)
at com.ibm.ws.bootstrap.WSLauncher.main(WSLauncher.java:94)
-------------------------------------------------
Any ideas what the error DSRA9002E points to?
Regards,
Ashutosh
20 years ago
Hello everyone,
I am working on Websphere version 5.0. I am trying to connect to a Lotus Database. However, I am unable to locate the place where I can set the database URL along with the user name and the password while creating the datasource. Any pointers in this regard would be most helpful. Thanks in advance.

-- Ashutosh
20 years ago