What wrong of my connection?
pls see below java code.... what it shown NullPointerException....what can i do?
try{
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection con= DriverManager.getConnection("jdbc:odbc:login");
PreparedStatement pstat=con.prepareStatement("insert into login values(?,?,?,?,?,?)");
for (int i=0; i<7; i++) {
pstat.setString(1,UserID);
pstat.setString(2,password[i]);
pstat.setString(3,confirmPassword[i]);
pstat.setString(4,UserName[i]);
pstat.setString(5,UserType[i]);
pstat.setString(6,UserGroup[i]);
pstat.executeUpdate("insert into login values(?,?,?,?,?,?)");
pstat.close();
con.close();
catch (Exception e1){
System.out.println(e1);
Thanks for your reply.....
the below program can run with no error and no exception.... but after i inputted data into the database, it can't shown out the data that i input before in MsAccess(it shown blank row)
Mag
try{
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection con= DriverManager.getConnection("jdbc:odbc:login","","");
PreparedStatement pstat=con.prepareStatement("insert into login values(?,?,?,?,?,?)");
pstat.setString(1,UserID);
pstat.setString(2,password);
pstat.setString(3,confirmPassword);
pstat.setString(4,UserName);
pstat.setString(5,UserType);
pstat.setString(6,UserGroup);
pstat.executeUpdate();
pstat.close();
con.close();
catch (Exception e1){
System.out.println(e1);
}
Similar Messages
-
Whats wrong with my connection ?
Is This Good
Transceiver Statistics
Transceiver Revision: 7.2.3.0 Vendor ID Code: 4 Line Mode: ADSL2+ Mode Data Path: Interleaved Transceiver Information Downstream Path Upstream PathDSL Speed (Kbits/Sec) 10076 971 Margin (dB) 8.0 9.0 Line Attenuation (dB) 34.5 15.5 Transmit Power (dBm) 19.4 12.0Those statistics are ok, but are not ideal. You're not syncing at the correct speed, on either the download or the upload due to distance/noise, but you are close to the proper rates. Transmit power is high and noise margins are low, so the line might be more prone to noise/interference. If you have access to a NID, you could see if the statistics are better out at the NID.
Is there any particular issue you're having with the line/service? We could address them in detail here.
========
The first to bring me 1Gbps Fiber for $30/m wins! -
I have the Iphone 3gs and it said update required and i needed to connect to itunes so i did al that and now everytime i go to restore everything it just says error and then i have to do it again?whats wrong with it?
Are you getting an error message number with your error message? If so, what number are you getting?
-
we have a movie downloaded on a laptop connected to the internet pluged into our router in the basement and an apple tv upstairs trying to play the movie through home sharing but it wont play. can anyone tell me whats wrong? it comes to the last loading page where it shows the desscription of the movie befor it acually plays.
It can come about without any change done by the user, and it's not just from other networks. The placement of the router can also affect performance. Also make sure router is up to date.
Apart from that would be the reboots. -
My eyeTV Hybrid won't get past the 'connect to your mac' stage. anyone know whats wrong?
Forgot to put its not recognising the fact thats its plugged in during set-up. But if put it in before i've even started set-up it starts on its own. so my mac know's its there. so confused
-
my itouch picks up me wifi, but when i try and use safari it tells me its not connected to the internet, it worked the other day but doesnt now whats wrong?
- Reset the iPod:
Reset iPod touch: Press and hold the On/Off Sleep/Wake button and the Home
button at the same time for at least ten seconds, until the Apple logo appears.
- Power off and then back on your router
- Reset network settings: Settings>Genera>Reset>Reset Network Settings
- The troubleshooting here:
iPhone and iPod touch: Troubleshooting Wi-Fi networks and connections -
I have just purchased the ipad and trying to log onto itunes and it tells me I am not connected . i typed in my apple sign on and it states cannot connect to itunes store. Can anyone tell me whats wrong?
I'm sort of confused by your response. Did your iPad start up? If I DO understand - you are frozen on the sign in setting for the Store?
Try this - force quit the settings app.
Force quit the app by holding down on the sleep button until the red slider appears. Let go of the sleep button and then hold down on the home button until the app quits. Restart the iPad. Restart the iPad by holding down on the sleep button until the red slider appears and then slide to shut off. To power up hold the sleep button until the Apple logo appears and let go of the button. -
i connected my apple ID to another computer, downloaded all purchased music and now all of my library is grey. whats wrong?
If you are getting a message that the old email account is being used then that might mean that you have created a new account and not replaced the email address on the old account - try seeing if you can get the password reset for the old account/email : http://iforgot.apple.com
-
I really feel stupid for doing that i just want to know why i can connect to wifi at places like target best buy and malls but not at home, i reset my router and my phone network settings and nothing is working. So please tell me whats wrong with it and how i can fix this problem please
braxtonshae wrote:
I really feel stupid for doing that i just want to know why i can connect to wifi at places like target best buy and malls but not at home, i reset my router and my phone network settings and nothing is working. So please tell me whats wrong with it and how i can fix this problem please
What's wrong with it? You put METAL into a MICROWAVE. Where did you see this 'iOS Wave' feature? Was it on the Apple website? Nope.
Unless you're simply trolling (which is the most likely case), you need to go to an Apple store and hope they don't classify it as Beyond Economical Repair. -
My brand new ipod wont start up. tried connecting to my computer, still nothing. has never been started up. whats wrong with it?
The battery may need charging. Or just take it back for a replacement.
-
When i plug up my Iphone 5c too charge it makes the noise that it is connected, 30 seconds go by and it makes the sound again. My phone is completely dead so it won't turn on at all. Whats wrong with it?
Powering Apple and third party peripherals through USB
Try restarting the Apple Mobile Device Service.
iPhone, iPad, iPod touch: How to restart the Apple Mobile Device Service (AMDS) on Windows
iOS: Device not recognized in iTunes for Windows -
I Got my iphone 5 last christmas, and then a couple of months after the charger started to conect and disconect, i thought at first it was just the cord so i bought a new one but then it happened again, from this day i have bought 6 iphone 5 chargers and now my 7th and its rarely working whats wrong? and also my sleep wake button isnt working properly? PLEASe HELP !
If you are getting Siri when you double tap, then your home button must be sticking. Siri comes up when you hold the home button. Try tapping quickly twice. When that happens, the multi-tasking list comes up and you will see the app icon and then a thumbnail, or reduced size view of the app above it. You put your finger on that thumbnail and swipe upwards with your finger.
For that issue, you might want to do a reset of the phone. Hold the sleep/wake and home buttons together until you see the Apple logo and then release. The phone will reboot. This will not affect your data.
To be honest, your novel is a little difficult to read, and I think you put too much information in there, and a lot of it is unnecessary. Be to the point and just add information necessary to understand the issue. -
When I try to power up my iphone 4 32g, it will stay on the apple screen for a few seconds then turn off. even when I try connecting it to my computer it turns on for a few seconds then turns off. Whats wrong with it? and what do I do about it?
Have you tried charging it with another known working USB sync cable? After letting it sit to "charge" for at least 30 minutes, have you tried resetting the device by pressing and holding both the Select/Center and Menu buttons together long enough for the Apple logo to appear.
B-rock -
We’ve been using iTunes Match pretty much since the beginning, but recently my wife has turned it off and refused to re-subscribe. I’m fast getting to the same place. It just seems so unstable, wishing Apple would invest some of their billions into it. I read with dismay how many people find Google Play to be so much better. As I write this I see a “Cannot connect to iTunes store” on my iPhone. Noting wrong with our connection … it’s alive and well.
Bearing in mind that I have two Macs, an iPhone and an iPad and my wife has a Mac, iPhone and iPad what we really want is the following.
I want all our music to go up to one location (iCloud or even better our own server). I want an app or web app that I see on the right hand side a list of artists or albums (or playlists) and columns for each device. I want to be able to tick the “matrix” to specify which devices the artist/album/playlist should be downloaded to. When the device is switched on, it must download (no fuss no bother and no stupid I-can’t-do-anything-about error message). A nice enhancement would be to specify three options for each entity (Download, Stream, Not Available). There must be options to easily bulk select.
So … is there such a thing out there?
In my immediate family plus spouses and kids girlfriends/boyfriends there are 11 Macs, three iPads and 10 iPhones. My brothers are very similar. I have nieces and nephews that use Apple. My parents also use Apple. Collectively, we have a bunch of Apple equipment.
Did I mention I'd like it to be stable?Unless you have EE 4G service the UK 3G networks are the base of your problem - they are just far to variable in download and streaming speeds.
Add to the fact that use can/will eat into your Data usage !
ITunes Match as a service is pretty experimental at best over 3G and really i think so long as you have a 32GB or larger iOS device sync'ing via iTunes on a PC/Mac remains the best way to transfer music.
Remember even with iTune Match your music is STILL ON your own PC/Mac HDD !
Usng the devices tab in iTunes you can customize each differing identified iOS device and load as you please.
When we have a competitively priced stable and extensive LTE network in the UK then reconsider Match at that point. -
When my Ipod touch is in autolock I can only restart the device holding the sleep/wake button and home button at the same time for 10 seconds. While in auto-lock it is using battery power and will do so until the battery is drained. Whats wrong?
- Try a reset. Nothing is lost:
Reset iPod touch: Hold down the On/Off button and the Home button at the same time for at
least ten seconds, until the Apple logo appears
- Connect the iPod to your computer and try to restore via iTunes. Try placing in Recovery mode if necessary to restore.
- If you can't turn the iPod completely off, let the batter fully drain. After charging for at lerast anhour try again
- If still not successful time for an appointment at the Genius Bar of an Apple store since it appears you have a hardware problem.
Maybe you are looking for
-
Hello...Mail and Address Book used to have a great feature where when you received an email (in Mac MAIL program), if there were multiple emails I'm the "to" or "cc" fields, you could select them all as a batch and drag them into Address Book and it
-
Problems with the Tutorial in the MDK Documentation
Hey, I have made the tutorial-exercise of the MDK-documentation, in which You try to create a SyncBO and let generate the client application. When I do all the steps and import the generated XML-file into my Eclipseproject, it should be possible to t
-
When I go to the activate by telephone option I am given the following information: Serial Number < Removed by Moderator > Activation Code < Removed by Moderator > Activation Type Repair 160:41 It then asks me to enter a Authorization Code but t
-
How to put a variable column value in a "vlookup"
Hello there, I am trying to put a variably chosen column value in a "vlookup" function. Logically this should work, but it does not, and I cannot figger out why.: "=vloookup("a", B5:Z28, {=MATCH(4, B4:Z4, 0)})" (replaced brackets with {} for this pos
-
i hav created a jpg file using java... i need to use that file to display it in a table cell in html... how can i do that...