This content has been marked as final.
Show 4 replies
-
1. Re: data source problem in 4.0.3SP1
dclemmer May 30, 2007 9:52 AM (in response to dclemmer)just wanted to mention that I also tried by setting <use-java-context> to false, and that made no difference. Also, per a suggestion in another thread, I tried binding to java:/FeedConn (in the -ds.xml), and searching for "java:comp/env/jdbc/FeedConn", but that failed to even bind the resource.
-
2. Re: data source problem in 4.0.3SP1
jaikiran May 30, 2007 10:46 AM (in response to dclemmer)Could you post the exception stacktrace that you are seeing
-
3. Re: data source problem in 4.0.3SP1
dclemmer May 30, 2007 12:44 PM (in response to dclemmer)I stripped out the stuff that relates strictly to our code; these are the cause of our application exception.
Caused by: javax.naming.CommunicationException: Receive timed out [Root exception is java.net.SocketTimeoutException: Receive timed out] at org.jnp.interfaces.NamingContext.discoverServer(NamingContext.java:1302) at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1431) at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:579) at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:572) at javax.naming.InitialContext.lookup(InitialContext.java:351) at com.saic.workflow.feed.JndiJdbcConnectionFactory.createConnection(JndiJdbcConnectionFactory.java:69) ... 20 more Caused by: java.net.SocketTimeoutException: Receive timed out at java.net.PlainDatagramSocketImpl.receive0(Native Method) at java.net.PlainDatagramSocketImpl.receive(PlainDatagramSocketImpl.java:136) at java.net.DatagramSocket.receive(DatagramSocket.java:712) at org.jnp.interfaces.NamingContext.discoverServer(NamingContext.java:1272) ... 25 more
Thanks. -
4. Re: data source problem in 4.0.3SP1
jaikiran May 31, 2007 9:25 PM (in response to dclemmer)Receive timed out [Root exception is java.net.Socket
TimeoutException: Receive timed out]
In your code, while doing the lookup, are you passing any properties to the InitialContext constructor. I would be interested especially the Context.PROVIDER_URL property. By default, this property has a value jnp://localhost:1099 unless you explicitly specify some other value.