Connection problem(error 500), please help
Hello Im a newbie to db connections with java
ive written a servlet to acces mymy hsql db(sample):
String dbURL = "jdbc:hsqldb:" + getServletContext().getRealPath("/~mazzok/myDB");
Class.forName("org.hsqldb.jdbcDriver");
conn = DriverManager.getConnection(dbURL, "user", "pass");
} catch (Exception e) {
out.println("<br>ERROR: Could not connect to database<br>");
out.print(e);
Statement stat = null;
try {
stat = conn.createStatement();
the problem is stat = conn.createStatement(); which throws a NullPointer exception(error 500)
why is this the case, isnt the connection already running, when it comes to this line?
I dont understand it quite..
Pls could you help me?
Regards
maz
stat = conn.createStatement();I guess that's because your conn==null. Make sure your dbURL value can build a correct connection.
Similar Messages
-
I am new to Mac and i managed to install and configure all the services. Now my issue is when i sending mail using the local server to internal, mails are not receiving. Mail queue showing Connection refused error. Please help me
Thanks
GIRITry this -> http://support.apple.com/kb/TA38632?viewlocale=en_US
-
Connection problems on 3G - please help us
We've recently received more and more reports of Skype on iOS unable to connect via 3G connection. As we did not change anything on our end we suspect that certain mobile providers in certain countries are trying to block Skype.
Please help us identifying possible candidates by reporting here if you encounter the same issue. BUT: Please check first if it's indeed this problem and not another one by testing if Skype still connects when connected via WiFi.
Please report "Country, Provider name" and I'll update the table below:
CountryProvider
UK
Orange
UK
Vodafone
Egypt
MobinilHi Further to my update today regarding the sign on solution I have some more news. It appears that clearing your network setting does allow you to sign onto Skype from a 3G network, but this must be done at each sign on otherwise you continue to get the network settings error message. Clearing down your network settings which wipes all your WIFI passwords once is tolerable if it fixes the problem, but its not reasonable to be expected to do it everytime. As I can sign on, its fair to say that access is not blocked via the Network provider, so it must be the iPhone Skype App itself, or its compatibilty with the latest operating system that is at fault.
-
Error 500: Please Help me
When I try to access this jsp page the page seem like this.
I can't fix it.
Please help me
Thanks in advance
Error: 500
Location: /dash/jsp/selection_left.jsp
Internal Servlet Error:
org.apache.jasper.JasperException: Unable to compile class for JSPNote: sun.tools.javac.Main has been deprecated.
error: An error has occurred in the compiler; please file a bug report (http://java.sun.com/cgi-bin/bugreport.cgi).
1 error, 1 warning
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:282)
at org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:612)
at org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java:146)
at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:542)
at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:258)
at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:268)
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:812)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)
at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:213)
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:536)As the error message suggests: You have an error in your JSP that is causing the compiler to fail.
If you need more help, it might be a good idea to show us the source code for the page!?
HTH. -
Oracle Database Connectivity Problem.. Please Help
Hi , i am having a problem in connecting my JSP page to Oracle. I dont know how to work from Scratch like which classes to download for driver and where to put them so that it works for me please also help me in writng connection String. i am writing this code but it generates an error.
<%
try
Connection conn=null; // defining variable
Class.forName("oracle.jdbc.driver.OracleDriver");
conn = DriverManager.getConnection("jdbc:oracle:thin:@serverName:1521:myDatabase", "scott", "tiger");
Statement st = conn.createStatement();
String sql = "SELECT * FROM POS";
ResultSet rs = st.executeQuery(sql);
String name = rs.getString("DNAME");
out.println(name);
catch(Exception e)
out.println(e);
%>
and the Error is
java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver
I shall be thankful to you for your help.
Regards,
AdeelThanks for your reply and sugession. We cannot stop
using JSP actually. I meant while learning JDBC and attempting to debug it.
I have been working with ODBC
drivers and haven't got any problem. Now here you are
talking about Class.... We haven't download the
driver yet thats what i was trying to ask that from
where to dowload those drivers/classes and where to
put them or how to config them . Your Help is always
appriciated because it can be really crucial for some
one else. Any way Thanks again hope to see a reply
from you.That isn't what your OP suggested. It suggested specifically that you didn't know what a class not found exception meant.
You can down load the drivers from oracle. Or you can get them from the Oracle client install - just drill down under the install directory.
As for where you put them, it would be the same place that you put the other drivers that you already have experience with. -
Another Login Problem - Error 9812, PLEASE HELP!!!
It works fine in OSX but once I change to windows, the iTunes store keep saying error-9812
Here is the diagnostics thing...
Microsoft Windows Vista Professional (Build 6000)
Apple Computer, Inc. MacBook1,1
iTunes 7.4.2.4
Current user is not an administrator.
Network Adapter Information
Adapter Name: {25E90BAD-42B6-4700-BC2D-6E3204E3308E}
Description: Bluetooth Device (Personal Area Network)
IP Address: 0.0.0.0
Subnet Mask: 0.0.0.0
Default Gateway: 0.0.0.0
DHCP Enabled: Yes
DHCP Server:
Lease Obtained: Thu Jan 01 10:00:00 1970
Lease Expires: Thu Jan 01 10:00:00 1970
DNS Servers:
Adapter Name: {29ABB9F0-3A26-413E-A9A6-B169AE1F4388}
Description: Atheros AR5006EXS Wireless Network Adapter
IP Address: 192.168.15.4
Subnet Mask: 255.255.255.224
Default Gateway: 192.168.15.1
DHCP Enabled: Yes
DHCP Server: 192.168.15.1
Lease Obtained: Tue Oct 02 22:45:58 2007
Lease Expires: Wed Oct 03 22:45:58 2007
DNS Servers: 10.1.1.1
Adapter Name: {8718E1A5-77F3-4FAB-9FBA-FE46801B328B}
Description: Marvell Yukon 88E8053 PCI-E Gigabit Ethernet Controller
IP Address: 0.0.0.0
Subnet Mask: 0.0.0.0
Default Gateway: 0.0.0.0
DHCP Enabled: Yes
DHCP Server:
Lease Obtained: Thu Jan 01 10:00:00 1970
Lease Expires: Thu Jan 01 10:00:00 1970
DNS Servers:
Network Connection Information
Active Connection: LAN Connection
Connected: Yes
Online: Yes
Using Modem: No
Using LAN: Yes
Using Proxy: No
SSL 3.0 Support: Enabled
TLS 1.0 Support: Enabled
Firewall Information
Windows Firewall is off.
Connection attempt to Apple web site was unsuccessful.
The network connection timed out.
Connection attempt to iTunes Store was successful.
Secure connection attempt to iTunes Store was unsuccessful.
An unknown error occurred (-9812).Try updating or disabling any internet security (anti-virus, firewall, etc) on your comp and try again.
Or maybe something here can help:
http://discussions.apple.com/thread.jspa?messageID=5309099� -
After i updated my iphone 4s from 8.1.2 to 8.1.3 problem occurred.i cant restore and update my phone?saying that iphone could not be restored,an unknown error ocuurred.please help me?
Thanks for the update and clarification. In researching the issue it seems that the 2003 error code may have something to do with the USB connection. I would use this section of one of the above articles:
Get help with iOS update and restore errors
If the USB connection between your device and computer is interrupted, you might not be able to update or restore.
To narrow down the issue, you can try different equipment:
Use the USB cable that came with your device, or a different Apple USB cable.
Plug your cable into a different USB port directly on your computer. Don't plug it into your keyboard.
Try a different computer.
Solve other issues with the USB connection, then with your security software.
If you still see the error message, check for hardware issues by following the next section.
Check for hardware issues
Related errors: 1, 3, 11, 12, 13, 14, 16, 20, 21, 23, 26, 27, 28, 29, 34, 35, 36, 37, 40, 1002, 1004, 1011, 1012, 1014, 1667, or 1669.
These errors mean that your device or computer might have a hardware issue that stops the update or restore from completing.
Check that your security software and settings aren't blocking your device from communicating with the Apple update server.
Then try to restore your iOS device two more times while connected with a cable, computer, and network you know are good.
Make sure that your security software and settings are allowing communication between your device and update servers.
If you still see the error message when you update or restore, contact Apple support. -
After the IOS7 update, i can no longer use my imessage and facetime. It says "waiting for activation" and tried to log in on my apple id but it turned out to connection error. Please help me guys! Thank you.
Have you tried to reboot your phone(hold home and lock button simutainiously)?
-
my iphone 4s is not connecting with itunes and giving me a message of unknow error 0xE8000012 Please help me out
You've managed to permanently damage the phone. As gdgmacguy suggests, buy a new one. Preferably from a legitimate source.
You may also want to keep in mind that it is illegal to use the Gevey SIM in pretty much every country on the planet. It may still be legal on the continent of antarctica, but that's only because penguins don't use cell phones as a rule. -
Hi i have problem with my hp mini is giving me a error CNU9391WZR PLEASE HELP
Hi i have problem with my hp mini is giving me a error CNU9391WZR PLEASE HELP
Hp mini 110 1140elYes bios password, i forgot my windows password so im trying to reset to manufacturing settings but keeps asking me for bios password... Please help
-
I have some problem .i update my iphone3gs software .software downloaded now its not working .warning select network connect to itunes ..please help me
please help me ?
-
I try to download my ebooks on my laptop but receive the onscreen message, Error getting license, License server commucication problem: E_ADEPT_NO_TOKEN. Please help?
It means, the URLLink.ACSM file is corrupted. Please contact the book store and ask them to check whether the configuration in the server side is correct for that book.
One of the simple setting in the server which can case this issue is, setting the book for loan in server and providing the purchase option in the book store or vise verse.
Hope this solves your problem. -
I am having problem with my iphone 3g update, its showing 1015 error. someone please help me out. Thanks
nomibutt wrote:
... its showing 1015 error.
Unauthorized modification of iOS
http://support.apple.com/kb/HT3743
ERROR 1015...
This Error Code is indicative of the Device being jailbroken / Hacked...
Sorry... But...
The discussion of Jailbroken Devices is against the Terms of Use of this Forum.
You will need to look elsewhere. -
SQL Server Express 2008 Installation error. PLEASE HELP.
Hey guys anyone know what I should do to install SQL Server Express 2008?
Im running Vista Home Premium SP1 32bit
These are folders i got on framework folder:
* v3.5
* v3.0
* v2.0.50727
* v1.1.4322
* v1.0.3705
Installing SQL Server 2008 Express (run time only)
And this is the error I get during the process
"Attributes do not match. Present Attributes (Directory, Compressed), included attributes (0), excluded attributes (Archive, Compressed, Encrypted)."
I have downloaded and installed all Visual Studio 2008 SP1 Express Ed (C++, C#, VB, WebDev) and all worked well
I get this error during the "Feature Selection" setup process.
I also noticed when I tried to use Windows Update, I saw Microsoft SQL Server 2008 Service Pack 1 (KB968369) suddenly available (I have updated windows and installed all important updates before installing Microsoft Visual Studio and SQL). Then I used Windows Update to install SQL Server 2008 SP1 and I still got this error:
Error
Code 84B40000 Unknown error....
I also get this downloading error on SQL Server while installing all 4 Visual Studio Express Editions (C#, C++, VB, WebDev).
"The following cannot be downloaded:"
I've already tried the troubleshooting guide about BITS but the tool fix seems to only supports Windows XP Operating Systems.
Please please please Help Me (^_^).. thanks to all.
P.S.
I think this might have some connections to why I get errors on a simple 'Hello World' Website.
I was just trying to simply make a 'Hello World' Website .. Just THAT on my website.
A simple Website for me to start. Just showing those text on the website. But when I tried to run (debug) the program. This error shows...
'Firefox can't establish a connection to the server at localhost:5903.'
I have Build the Web Site and there was no error. Since it was just simply 'Hello World' text.
Im sure there's some problem but I'm completely stuck here. I dunno if its connected to the problem above.
Please help me solve this problem. Thank you so much.
I appreciate everyone's help.In my case I had to uncheck "Allow files in this folder to have contents indexed in addition to file properties"
Right click on C:\Program Files\Microsoft SQL Server
Click Advanced on General Tab
Uncheck "Allow files in this folder to have contents indexed in addition to file properties" -
Again same problem error 0xE8000003 pls help again i don't know it keep doing that
Again same problem error 0xE8000003 pls help again i don't know it keep doing that please help with that
Hello sartip fatah,
The following article provides further information regarding this error, and steps to help resolve it.
iOS: Unknown error containing '0xE' when connecting to a Windows PC
http://support.apple.com/kb/TS3221
Cheers,
Allen
Maybe you are looking for
-
How do I restore the white sync button on iPhone 4s?
Last night I was attempting to add a Kindle book to my iPhone via the sync method. Something has gotten corrupted, as my iPhone no longer shows the white sync button option, under the iTunes /wifi option in settings. When I open iTunes, it sees the
-
Using iPod as external file source for iTunes
I have a laptop and a HUGE iTunes library which is stored on an external HDD. I'm taking the laptop on vacation (and not the external drive) which means that I won't have an iTunes library while on the trip. I don't want to transfer GB of audio files
-
Itunes wont open on my phone or desktop, itunes wont open on my phone or desktop
itunes wont open in my iphone 5S or desktop
-
Creating a Global Role using weblogic.Admin command
Hi, Does anyone have an example of creating a global role using the weblogic.Admin commands? I think I have to use the INVOKE command with the DefaultRoleMapper and createRole method, but I'm not quite sure what the rest of the syntax is. Thanks, Gab
-
Is lightroom a stand alone program
I'm working on a slightly outdated laptop...and I desperately need access to Adobe photo editing capabilities. I could not install a free trial of Ps and Lightroom...wondering if Lightroom alone will work?