Sorry, I don’t have those files myself right now so I can’t provide much guidance.  I would guess that it’s a setup problem though if you’re getting a null pointer in the RestaurantService class (though if you ran this via a web browser it’s possible that you ran the JSP without providing all parameters and this error is bogus).  If you have more details maybe we can help you through it, but sounds like you’re biting off a lot if you’re new to Java setup as well J

 


From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Tim Whitehead
Sent: Tuesday, May 31, 2005 12:23 PM
To: [email protected]
Subject: [flexcoders] Re: HTTPService Fault

 

Heh Yup, I actually checked this yesturday and its a problem with the
JSP/Java... I'm kinda new to Java so I'm slowly learning some things
are still confusing to me...

/*******************************************/

Technical Information:

      HTTP Status Code: 500
      Exception Type: class java.lang.NullPointerException
      Servlet Name: JSPServlet



Exception java.lang.NullPointerException
(View stack trace)
at
samples.restaurant.RestaurantService.getRestaurant
List(RestaurantService.java:37)
at
jrun__restaurant__restaurantlist2ejsp1e._jspServic
e(jrun__restaurant__restaurantlist2ejsp1e.java:55)
at jrun.jsp.runtime.HttpJSPServlet.service(HttpJSPServlet.java:43) at
jrun.jsp.JSPServlet.service(JSPServlet.java:119) at
jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:91) at
jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42) at
jrun.servlet.JRunRequestDispatcher.invoke(JRunRequ
estDispatcher.java:257)
at
jrun.servlet.ServletEngineService.dispatch(Servlet
EngineService.java:541)
at jrun.servlet.http.WebService.invokeRunnable(WebService.java:172) at
jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRu
nnable(ThreadPool.java:426)
at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)

/*******************************************/

is what it spit out at me. So I've been looking at the files and I can
see what they are doing, but still unsure of what the problem is. I
believe i have the package in the right place, I'm updated the JDBC
connection line to MySQL with the right credentials. But like I sai
I'm new to Java and alot of things and just trying to learn what I
can.

Thanks for the reply
Tim





--- In [email protected], "Matt Chotin" <[EMAIL PROTECTED]> wrote:
> Sounds like an error on the server-side.  Can you check your server
logs
> for any problems, maybe try hitting the JSPs using your browser and
see
> if something jumps out?
>

>
> Matt
>

>
> ________________________________
>
> From: [email protected] [mailto:flexcod
[EMAIL PROTECTED] On
> Behalf Of Tim Whitehead
> Sent: Sunday, May 29, 2005 7:18 PM
> To: [email protected]
> Subject: [flexcoders] HTTPService Fault
>

>
> I'm just starting to learn Flex, I've set up JRun 4 and appears to
be
> working correctly with Flex 1.5.
>
> I've gone throu some very simple tutorials and am now trying to do
> [http://coenraets.com/tutorials/restaurant/index.jsp]
> <http://coenraets.com/tutorials/restaurant/index.jsp%5d>
>
> But I keep getting an error when I use the HTTPService, very simple
> click the button grab the data... doesn't seem to hard but I receive
> the error message
>
> "HTTPService Fault: Internal Server Error"
>
> I've added "http://{localserver}/* <http://%7blocalserver%7d/*> "
to the
> whitelist under
> <http-service-proxy> (I'm assuming {localserver} evaluates to what
> ever location and port you use to connect to it)
>
> Any help would be appricated
> Thanks
> Tim
>
>
>
>
>
> ________________________________
>
> Yahoo! Groups Links
>
> *      To visit your group on the web, go to:
>       http://groups.yahoo.com/group/flexcoders/
>        
> *      To unsubscribe from this group, send an email to:
>       [EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]>
>        
> *      Your use of Yahoo! Groups is subject to the Yahoo! Terms of
> Service <http://docs.yahoo.com/info/terms/> .





Yahoo! Groups Links

Reply via email to