Ash Kondhalkar

Ranch Hand
+ Follow
since Jun 14, 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 Ash Kondhalkar

Hi,

Try this code.



The variable in your case "home.canvas.color" as to be defined as instance variable in a class. Also since java naming convention doesnt allow "." in its name you need to give some different name. Then you can follow above code to get what you are trying.

Thanks
Ashwin
9 years ago
Thanks Ulf. Ok I would frame my question as, How is client running in another JVM able to locate the remote service, which is running inside another JVM?
9 years ago
Thanks Ivan for the reply. I had a look at the links, they are not providing the information which I seeking. I want to know does JAX-WS web service, uses Java RMI or JAVA RPC feature or something else.

Regards
Ashwin
9 years ago
Hi,

Does anybody know working of JAX-WS based web service? Does it use JAVA RMI or something else? Any link which describes its working will be of great HELP!

Thanks
Ashwin

9 years ago
Hi,

I am facing issue with Datasource on weblogic 10.3, which is using Oracle Thin driver Type 4 as JDBC driver. Initially the application works fine after some time, I get

"weblogic.jdbc.extensions.PoolLimitSQLException: weblogic.common.resourcepool.ResourceLimitException: No resources currently available in pool ". I have checked my code throughly and there is no leak issue, for sure. I have confirmed this by putting loggers and checking the same in all different possible scneario's.

I had come across a datasource property called "Inactive connection timeout". After setting this properties value as non zero, the application is working fine. Can you please let me know is it good to use this property with non zero value?

Cheers
Ashwin
9 years ago
Hi,

It is an issue with the combination of jar files which are used to consume the web service. If you can find out the exact jar files which are used while running the client in Tomcat and then try using the same with Weblogic?

If possible please share the client code with me and I will have a look and come back to you.

Thanks
Ashwin
9 years ago
Joel,

I had a look at the link which you have mentioned in the post. I fear it discusses how the web service developed using the CXF should be deployed on Weblogic. In your case where you are trying to consume a webservice, from a Servlet in application deployed in Weblogic using CXF client, this link will not be helpful. While testing the web service as a client from tomcat, you must have added few jar files in the TOMCAT classpath and then tested the client. Kindly add the same jar files in the Weblogic classpath, change the setDomainEnv.cmd to add these jar files in the classpath or add the jars in the lib folder of your application deploy it and it should work fine.

Thanks & Regards
Ashwin
9 years ago
Hi,

I am using Oracle driver for connection in datasource in Weblogic 10.3 in my application. I am getting the below exception after I do the search activity number of times ,which uses the connection in this datasource to run a Stored procedure.

weblogic.jdbc.extensions.PoolLimitSQLException: weblogic.common.resourcepool.ResourceLimitException: No resources currently available in pool

I have checked my code thouroughly and there is no connection leak. The connection is closed properly in all possible scneario's. I have verified the same by running the application and then checking the log file immediately.
The initialcapacity and maxcapacity of the datasource is 1 and 15 respectively. After I get the above exception, if I check the weblogic console, I find in the left bottom corner a window "System status", which has links like "Failed", "Critical", "Overloaded", "Warning" and "Ok". When I clicked on the "Overloaded" link it shown below,

"JDBC Overloaded Connection Pool Name = null:null:OracleCSIDataSource, State = Overloaded "!

Thanks & Regards
Ashwin
9 years ago
Hi,

We have developed a Web service using CXF 2.5 and deployed it on Weblogic 10.3. We have tested the webservice operations using SOAP UI and it is working fine. We generated the stub jar file using CXF. We set up a stand alone client and used the stub and other relevant jar files to call the web service. We also have set up the certificate related code but facing the issues. The code snippet related to certificate set up is,

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


System.setProperty( "javax.xml.rpc.ServiceFactory", "weblogic.webservice.core.rpc.ServiceFactoryImpl" );
System.setProperty("java.protocol.handler.pkgs","com.certicom.net.ssl");
System.setProperty("https.cipherSuites","SHA1withRSA,MD5withRSA");

String clientCertificate = "clientCert.pem"; String pwd = “password”; String serverRootCACert = "rootCA.pem";


SSLAdapterFactory factory = SSLAdapterFactory.getDefaultFactory();

WLSSLAdapter adapter = (WLSSLAdapter) factory.getSSLAdapter(); FileInputStream clientCredentialFile = new FileInputStream (client certificate);

FileInputStream serverRootCA = new FileInputStream (serverRootCACert);

adapter.loadLocalIdentity(clientCredentialFile, pwd.toCharArray()); adapter.setVerbose(true);

adapter.setTrustedCertificatesFile(rootCA);
adapter.setStrictChecking(false);
factory.setDefaultAdapter(adapter);
factory.setUseDefaultAdapter(true);

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

It is giving below exception,

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

org.apache.cxf.interceptor.Fault: Could not send Message.
at org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:64)
at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:226)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:469)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:299)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:251)
at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:73)
at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:124)
at $Proxy44.getFMODetailsByExpenseCode(Unknown Source)
at src.WFPProfileInfoServiceClientForFMO.main(WFPProfileInfoServiceClientForFMO.java:121)
Caused by: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: No trusted certificate found
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 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 com.sun.net.ssl.internal.www.protocol.https.HttpsURLConnectionOldImpl.getOutputStream(Unknown Source)
at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleHeadersTrustCaching(HTTPConduit.java:1904)
at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.onFirstWrite(HTTPConduit.java:1859)
at org.apache.cxf.io.AbstractWrappedOutputStream.write(AbstractWrappedOutputStream.java:42)
at org.apache.cxf.io.AbstractThresholdOutputStream.write(AbstractThresholdOutputStream.java:69)
at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:1922)
at org.apache.cxf.transport.AbstractConduit.close(AbstractConduit.java:66)
at org.apache.cxf.transport.http.HTTPConduit.close(HTTPConduit.java:626)
at org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:62)
... 8 more

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

It is seen that we are unable to send the certificate while making the web service call. Are we missing setting up some property or something before making the web service call? Kindly let me know.

Thanks & Regards
Ashwin
10 years ago
Deepak,

It worked. Thank you for asking me below questions. I found that in standalone java class I was using Oracle's database driver while in the weblogic 8.1 datasource I was using BEA weblogic's database driver class. After I changed by datasource driver class to Oracle driver classs it worked.

Thanks a lot once again.
Regards
Ashwin
10 years ago
Hi

I have one stored procedure, which takes one input parameter and second is output parameter. When I call the stored procedure using DAO design pattern inside weblogic 8.1 workshop proejct, it is failing and giving me below exception,

"Incorrect parameter bindings for stored procedure call.Check your bindings against the stored procedure parameters."

Surprisingly, when I call the same stored procedure using a stand alone java class(inside which I am creating a database connection, callable statement, setting the in parameter and the registering the output parameter and executing the callable statement) it is working fine and giving me the output.

Thanks & Regards
Ashwin
10 years ago
hi,

I am trying to call a stored procedure using a database control inside a JPD in Weblogic 8.1 Workshop's project. I am facing issue and it is giving some error which doesnt exists actually. The stored procedure which I am calling contains dynamic sql. The Stored procedure is for search process. Depending upon the search criteria entered by user, dynamic SQL is generated inside the strore procedure and the cursor is returned. I came to know from my team collegue that Weblogic 8.1 integration server has issue calling a stored procedure containing dynamic SQL.

Hence I have now written POJO and DAO classes to establish a db connection, run Stored procedure and fetch data. But now I am facing issue while getting database connection.

Does anybody earlier faced this issue? Kindly help.

Thanks & Regards
Ashwin
10 years ago
In our application, the actions on buttons are handled in the framework class, here in we are using SetAction!
Now due to this we are facing one issue, to overwrite that, we have added one action listener for the buttons.

Now what is happening is, the action listener action performed method is getting called first and then the actionPerformed method of Action class is getting called. I was surprised to see this as, the setAction was done on the button first and action listener was added later.


Regards
Ashwin
11 years ago
hi,

If I have a button on the frame and I have added an actionListener and I have set the action using setAction as well. Which will be called first actionPerformed in ActionListener class for in Action class? Please let me know.

Thanks & Regards
Ashwin
11 years ago
Hi Maneesh,

Thank you very much for this link. This helped me and my problem is solved. Thanks again!

Regards
Ashwin
12 years ago