javax.naming.NamingException: Premature end of file.

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Oracle Community by 843838, 3 months ago
Invalid byte 2 of 3-byte UTF-8 sequence.
via Coderanch by shashi byri, 11 months ago
Cannot rename original file to C:\Program Files\Apache Software Foundation\Tomcat 6.0\conf\tomcat-users.xml.old
via Coderanch by Senthil Velavan, 11 months ago
Cannot rename original file to C:\Program Files\Ap ache Software Foundation\Tomcat 5.5\conf\tomcat-users.xml.old
via Coderanch by archana gangaiah, 1 year ago
Premature end of file.
via Coderanch by archana gangaiah, 11 months ago
via Coderanch by Mike Firkser, 11 months ago
C:\jakarta-tomcat-5.0.24\localhost:3306.new (The system cannot find the file specified)
javax.naming.NamingException: Premature end of file.
at org.apache.naming.NamingContext.lookup(NamingContext.java:804)
at org.apache.naming.NamingContext.lookup(NamingContext.java:152)
at org.apache.catalina.realm.UserDatabaseRealm.start(UserDatabaseRealm.java:222)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1004)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
at org.apache.catalina.core.StandardService.start(StandardService.java:450)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:683)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:271)

Users with the same issue

Once, 1 month ago
9 times, 4 days ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Once, 6 months ago
4 times, 1 year ago
1 more bugmates

Know the solutions? Share your knowledge to help other developers to debug faster.