Jaidev Arer

Ranch Hand
+ Follow
since Mar 12, 2010
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 Jaidev Arer

Hi Vijin,

getconnection() is a static method.

Change the return type to void and removed the return null statement.

Is there method or function to call to close all the opened database connection explicitly?

Thanks again
Below is one of the function to update in DAO. Can you please go through the code and let me know whether the database connection is closed properly or not. And also let me know if there is any changes required in code.




Thanks for your valuable time.
Hi All,
Thanks for all your valuable time.
Our site is oxygenacres.com
we are doing simple credential check before the user logs in. The problem is at times the system hangs and it will not let the user to log in (credential check process will not be completed). Then we have to bounce the server. Once we bounce the server everything will be fine.
Even when the system hangs we can navigate through the static page of our site.
Please advice. What all things happen when we bounce the server.
13 years ago
We have java,j2ee based front end for an oracle application. When one of the tab is pressed we are getting
Whar are the possible reason and causes for this exception to be thrown.

Thanks
13 years ago
So what do you want me to do. Reinstall the jre...i am new to java so no idea..how tomcat works.
Please advise.
13 years ago
Yes that jar file is there.
Is there a chance of it being corrupted?
If so from where can i download the current version.
13 years ago
I am developing a website, wherein if a user logs in an email has to be sent to the admin is the requirement(initial).
I am using Apache tomcat 6.0.26, jdk 1.6 eclipse
But i am getting

my action class

Can you please help me to find the reason for this exception. I am very close to the phase 1 deadline.
Thanks
13 years ago
As mentioned earlier i have two codes.
One the independent code which works and another code which is the part of the application and this has an issue.
Today i used the System.out.println("classpath = " + System.getProperty("java.class.path")); to see what was in the classpath. i got two different output.
classpath for the working code


classpath for the application code

None of the jar file are present in the classpath.
Can someone please help with the reason for the strange behavior in picking the classpath.
Thanks
13 years ago
Is anything missing in the classpath?
13 years ago
i am using JRE 1.6.0
Do i need to place jsse.jar in lib\ext folder?
13 years ago
Now its picking from the correct resource file after including the mail.jar and activation.jar to the classpath.
But now i am getting another exception.
error

Please help with the exception.
13 years ago
From debug i have noticed the resource file is getting loaded from the wrong place. Basically its not pointing to the new mail.jar(1.4.3).
First is the debug from the working code-
----
DEBUG: successfully loaded resource: /META-INF/javamail.default.providers
Here struts_1_0_2.jar,weblogic_modified.jar are used.
----
But in my code the resource is getting loaded from a different location.
DEBUG: not loading system providers in <java.home>/lib
DEBUG: not loading optional custom providers file: /META-INF/javamail.providers
DEBUG: successfully loaded default providers
I am using message.jar,mysql-connector-java-3.1.12.jar,struts_1_0_2.jar,weblogic_modified.jar in my application.
Is any of the jar file is creating the conflict?Both are running on the same eclipse but in different projects.
Please let me know.
Thanks
13 years ago
Hi All,
I have two different code. The first code works fine. Its a class with main().

1st code

I can send the mail using this code.
When i remove the main and make the same code to be a function and call it from another function then i am getting this error javax.mail.NoSuchProviderException: smtps
Modified code (as a function)

13 years ago
Hi Rob,
I did try that. in the list of providers SMTP,POP3 and IMAP are listed. But not the SMTPS.
That exception is thrown when the we call the getProvider is called.
Please advise what we have to use for gmail.
thanks
13 years ago
It says no provider.



So what am i suppose to use for GMAIL?

Please help
13 years ago