Go Back   CodingForums.com > :: Server side development > Java and JSP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 07-07-2008, 03:30 PM   PM User | #1
freefallenigma
New Coder

 
Join Date: Jul 2008
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
freefallenigma is an unknown quantity at this point
connecting to DB?

Hello,

I can't seem to connect to a database on my mac, but I can on the Linux machine I'm working on. I get an "Unknown Source" issue. Here's the error my mac gets when I try to load the app:
HTTP Status 500 -

type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

java.lang.NullPointerException
at.PasswordValidator.validatePassword(Unknown Source)
at.LogController.login(Unknown Source)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:585)
org.springframework.web.servlet.mvc.multiaction.MultiActionController.invokeNamedMethod(MultiActionC ontroller.java:351)
org.springframework.web.servlet.mvc.multiaction.MultiActionController.handleRequestInternal(MultiAct ionController.java:305)
org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:128)
org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAda pter.java:44)
org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:684)
org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:625)
org.springframework.web.servlet.FrameworkServlet.serviceWrapper(FrameworkServlet.java:386)
org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:355)
javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)

I'm using EasyEclipse for the app, and Apache Tomcat.
Is this an issue connecting to the DB? Any ideas on why this is happening? Thanks.
freefallenigma is offline   Reply With Quote
Old 07-07-2008, 06:28 PM   PM User | #2
brad211987
Regular Coder

 
brad211987's Avatar
 
Join Date: Sep 2005
Location: Ohio
Posts: 631
Thanks: 10
Thanked 50 Times in 50 Posts
brad211987 is an unknown quantity at this point
Without more information, my guess is that the password for the DB user is not getting submitted. This is based on the NullPointerException in the validatePassword method.
brad211987 is offline   Reply With Quote
Old 07-07-2008, 06:37 PM   PM User | #3
freefallenigma
New Coder

 
Join Date: Jul 2008
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
freefallenigma is an unknown quantity at this point
We're using SVN and I am updated to the newest revision. I don't recall exactly when it stopped working but a week ago I could connect fine, though now that we've added more to the application, DB connection is essential. Hm.

What kind of info would be more helpful?

We're using Spring-MVC
My Mac: MacBook Pro 10.5.4

Thanks!
freefallenigma is offline   Reply With Quote
Old 07-07-2008, 07:21 PM   PM User | #4
brad211987
Regular Coder

 
brad211987's Avatar
 
Join Date: Sep 2005
Location: Ohio
Posts: 631
Thanks: 10
Thanked 50 Times in 50 Posts
brad211987 is an unknown quantity at this point
To troubleshoot, I'd check over the code that is actually doing the database connection that fails. Run the code through a debugger and see if there is a value for a password in the application at the time of failure. I would definitely focus on the changes/additions made to the application to ensure no conflicts there as that is the most likely cause.
brad211987 is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 08:36 PM.


Advertisement
Log in to turn off these ads.