Results 1 to 9 of 9
- 06-07-2011, 05:48 PM #1
Member
- Join Date
- Feb 2011
- Posts
- 84
- Rep Power
- 0
File not found exception on ObjectInputStream
Hello,
I am getting a file not found exception on the following line
ObjectInputStream in = new ObjectInputStream(conn.getInputStream());
The exception says file not found
http://server:80//root/rootServlet.c...ver=xxx&DB=xxx
I get this exception when I try to login to my application.I am confused is this a networks problem,
IIS, or weblogic issue?
Its just the starting point for my application.
The file rootServlet it says not found is present under same location.
Please any directions what could be the reasons for this issue.
Thanks,
- 06-07-2011, 06:10 PM #2
Moderator
- Join Date
- Apr 2009
- Posts
- 10,484
- Rep Power
- 16
What is conn?
Why do you think that that input stream is sending a java object?
- 06-07-2011, 07:01 PM #3
Member
- Join Date
- Feb 2011
- Posts
- 84
- Rep Power
- 0
Thanks for the reply.
conn is url.Openconnection.
actually conn.getInputstream gives me the exception.Why am I not able to fetch the inputstream?
Input stream is sending a java object because,I have the application running on development environment and its working fine
when I try to move my files to another environment i get this exception
- 06-08-2011, 03:13 AM #4
Member
- Join Date
- May 2011
- Location
- Maryland
- Posts
- 38
- Rep Power
- 0
could we see some more of the code? it's hard to locate the problem from that small segment, you may have done something wrong when creaing conn before that..
also try checking out URLConnection (Java 2 Platform SE v1.4.2)) to see if you can fix it yourself from there
- 06-08-2011, 09:31 AM #5
Moderator
- Join Date
- Apr 2009
- Posts
- 10,484
- Rep Power
- 16
So.
This is a web server you are contacting?
So why is that address so strange? Shouldn't it be something like http://server:80/myApp/myServlet?etc etc. Or is your app called root?
Is your webapp set up correctly?
Have you got a web.xml saying how that servlet maps?
I'm guessing not unless you are mapping rootServlet.class to your rootServlet class...
- 06-08-2011, 03:06 PM #6
Member
- Join Date
- Feb 2011
- Posts
- 84
- Rep Power
- 0
Thanks for your reply.
Yes I am contacting Weblogic via IIS .I just gave example of root ,My app is not called root.
http://server:80//test/testServlet.c...ver=xxx&DB=xxx
My web app is setup correctly ,its working fine on development environment but not when I move it to another environment.
My web.xml maps the servlet as follows
<web-app>
<servlet>
<servlet-name>Applet</servlet-name>
<servlet-class>testServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>Applet</servlet-name>
<url-pattern>/testServlet.class</url-pattern>
</servlet-mapping>
</web-app>
Dont know whether this is an IIS issue or weblogic or database connection.How can I come to know that IIS
is forwarding request to weblogic and there is some problem with datbase connection.
IIs ->Weblogic->Database
- 06-08-2011, 03:31 PM #7
Moderator
- Join Date
- Apr 2009
- Posts
- 10,484
- Rep Power
- 16
So where are you getting the exception?
What is the full exception plus stack trace?
Once you know where it's being thrown from then you might be able to show us the code...
And that is an odd name to give your mapping.
- 06-08-2011, 03:48 PM #8
Member
- Join Date
- Feb 2011
- Posts
- 84
- Rep Power
- 0
I get the exception as soon as I enter the url mentioned above.I will not be able to give the full exception because because of security
reasons.It is
FileNotFoundException: http://server:80//test/testServlet.c...x&Database=xxx IOException in Method()
.
.
.
.at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.KeyboardFocusManager.redispatchEvent(Unkn own Source)
at java.awt.DefaultKeyboardFocusManager.typeAheadAsse rtions(Unknown Source)
at java.awt.DefaultKeyboardFocusManager.dispatchEvent (Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForHierar chy(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarch y(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
It is thrown at the point I am trying to get the input stream when I do URLConnecton.getInputstream.
Is it because some problem in IIS and weblogic communication?As it is not able to read the request from the browser.
- 06-08-2011, 04:00 PM #9
Moderator
- Join Date
- Apr 2009
- Posts
- 10,484
- Rep Power
- 16
Similar Threads
-
Class not found Exception
By surendra in forum Java ServletReplies: 8Last Post: 06-09-2011, 12:52 PM -
No Property Editor Found Exception -JSF 1.2
By venkatcanwin in forum JavaServer Pages (JSP) and JSTLReplies: 1Last Post: 11-18-2010, 06:02 AM -
No suitable driver found exception error
By Crazy Caveman in forum NetworkingReplies: 1Last Post: 09-01-2010, 12:03 AM -
Execution stuck at ObjectInputStream .readObject() with NO Exception thrown.JAVA BUG?
By r00tb33r in forum NetworkingReplies: 2Last Post: 06-01-2010, 02:58 AM -
class not found exception while using IKVM to create exe for c#
By manjunath k reddy in forum New To JavaReplies: 0Last Post: 02-21-2009, 06:05 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks