This article gives some examples that may be similar to your situation...

http://www.experts-exchange.com/Programming/Programming_Languages/Java/Q_20303498.html

it seems that you are unable to connect to the source for some reason...did you
verify your url to connect to the db?  I think you said that this only happens
when you "write" to the db...have you connected elsewhere to the same db?  If
so, you should be able to connect again here...

Kevin

"Martinez, Michael - CSREES/ISTM" wrote:

> As requested:
>
> java.lang.NullPointerException
>         at sun.jdbc.odbc.JdbcOdbcDriver.initialize(JdbcOdbcDriver.java:435)
>         at sun.jdbc.odbc.JdbcOdbcDriver.connect(JdbcOdbcDriver.java:153)
>         at java.sql.DriverManager.getConnection(DriverManager.java:512)
>         at java.sql.DriverManager.getConnection(DriverManager.java:171)
>         at survey.SurveyRepository.(SurveyRepository.java:57)
>         at survey.SurveyRepository.getInstance(SurveyRepository.java:48)
>         at survey.AddCommand.execute(AddCommand.java:22)
>         at survey.SurveyServlet.service(SurveyServlet.java:33)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java)
>         at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Unknown
> Source)
>         at org.apache.catalina.core.ApplicationFilterChain.doFilter(Unknown
> Source)
>         at org.apache.catalina.core.StandardWrapperValve.invoke(Unknown
> Source)
>       at
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
> eNext(Unknown Source)
>         at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
>         at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
>         at org.apache.catalina.core.StandardContextValve.invoke(Unknown
> Source)
>         at
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
> eNext(Unknown Source)
>         at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
>         at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
>         at org.apache.catalina.core.StandardContext.invoke(Unknown Source)
>         at org.apache.catalina.core.StandardHostValve.invoke(Unknown Source)
>         at
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
> eNext(Unknown Source)
>         at org.apache.catalina.valves.ErrorDispatcherValve.invoke(Unknown
> Source)
>         at
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
> eNext(Unknown Source)
>         at org.apache.catalina.valves.ErrorReportValve.invoke(Unknown
> Source)
>         at
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
> eNext(Unknown Source)
>         at org.apache.catalina.valves.AccessLogValve.invoke(Unknown Source)
>         at
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
> eNext(Unknown Source)
>         at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
>         at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
>         at org.apache.catalina.core.StandardEngineValve.invoke(Unknown
> Source)
>         at
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
> eNext(Unknown Source)
>         at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
>         at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
>         at
> org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:458)
>         at
> org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:551)
>         at java.lang.Thread.run(Thread.java:536)
>
> > I haven't worked with unixodbc at all, but a little with Java...
> > I suspect some variable may be null or not what you're
> > expecting at the time the
> > error occurs...
>
> > try working through your code and find where this may be
> > occurring and why...
>
> It's not my code. I don't even know java
>
> mike
> >
> > can you post your exact error message and stack trace?
> >
> > Kevin
> >
> > "Martinez, Michael - CSREES/ISTM" wrote:
> >
> > > To add to your notes, I found some online documentation yesterday:
> > >
> > > http://www.yolinux.com/TUTORIALS/LinuxTutorialTomcat.html
> > >
> > > and the following recently-released book available at
> > Amazon and Barnes and
> > > Noble:
> > >
> > > "Professional Tomcat Apache" by Chanoch Wiggers et al.,
> > Wrox Press, Sept
> > > 2002
> > >
> > > Now, as far as my installation: I've got tomcat working,
> > and java working. I
> > > looked at downloaded unixodbc (from www.unixodbc.org) but
> > this package
> > > requires X include files, which my system does not have
> > because I run a
> > > non-gui command line system. so then I hunted for jdbc on
> > sun, the sun
> > > documentation is rather cryptic, I downloaded jdbc-stdext
> > package but I'm
> > > not sure if its the right one. I put all the jar files in
> > the classpath.
> > >
> > > The jsp file executes as it should until it gets to where
> > it has to write to
> > > the database (a mdb file) then it chokes and says "Unknown source."
> > >
> > > Of course, there is no mdb file on the system, I haven't
> > gone through the
> > > the jsp code to see if it's expecting one to already exist,
> > or whether it
> > > should be able to "create" one if needed. Of course, I'm a
> > system admin, I'm
> > > not a java developer so I really shouldn't have to learn
> > java just to get
> > > this to work.
> > >
> > > So my question at this point woudl be: what is the cause of
> > the "Unknown
> > > source" error?
> > >
> > > Michael Martinez
> > >
> > > > -----Original Message-----
> > > > From: Kevin Weslowski [mailto:[EMAIL PROTECTED]]
> > > > Sent: Monday, November 25, 2002 7:35 PM
> > > > To: [EMAIL PROTECTED]
> > > > Subject: Re: How to install JDBC ?
> > > >
> > > >
> > > > I don't believe there's much to installing JDBC...
> > > >
> > > > if you're already running tomcat fine, you should just be
> > > > able to put the .jar file provided by the db vendor into the
> > > > classpath recognized by tomcat and it'll find the classes it
> > > > needs to connect to the db.
> > > >
> > > > I recommend getting jdbc to work first with a simple java (no
> > > > servlet/jsp) program.  Once that's done, it's only a matter
> > > > of making sure tomcat can find the same .jar class(es).
> > > >
> > > > here is an example I just found...
> > > >
> > > > http://www.fluffycat.com/java/JavaNotes-JDBC.html
> > > >
> > > > of how to use JDBC...most db vendors should give some
> > > > installation tips when you download their jdbc .jar file...
> > > >
> > > > Kevin
> > > >
> > > > "Martinez, Michael - CSREES/ISTM" wrote:
> > > >
> > > > > Can someone point me to some documentation that describes
> > > > how to install
> > > > > JDBC and how to interface it with Apache/Tomcat/?
> > > > >
> > > > > Michael Martinez
> > > > >
> > > > > _______________________________________________
> > > > > Seawolf-list mailing list
> > > > > [EMAIL PROTECTED]
> > > > > https://listman.redhat.com/mailman/listinfo/seawolf-list
> > > >
> > > >
> > > >
> > > > _______________________________________________
> > > > Seawolf-list mailing list
> > > > [EMAIL PROTECTED]
> > > > https://listman.redhat.com/mailman/listinfo/seawolf-list
> > > >
> > >
> > > _______________________________________________
> > > Seawolf-list mailing list
> > > [EMAIL PROTECTED]
> > > https://listman.redhat.com/mailman/listinfo/seawolf-list
> >
> >
> >
> > _______________________________________________
> > Seawolf-list mailing list
> > [EMAIL PROTECTED]
> > https://listman.redhat.com/mailman/listinfo/seawolf-list
> >
>
> _______________________________________________
> Seawolf-list mailing list
> [EMAIL PROTECTED]
> https://listman.redhat.com/mailman/listinfo/seawolf-list



_______________________________________________
Seawolf-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/seawolf-list

Reply via email to