javax.naming.InvalidNameException

tcp://localhost:1414 [Root exception is java.net.MalformedURLException: unknown protocol: tcp]

Samebug tips0

There are no available Samebug tips for this exception. If you know how to solve this issue, help other users by writing a short tip.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web27

  • via Stack Overflow by Jason
    , 11 months ago
    tcp://localhost:1414 [Root exception is java.net.MalformedURLException: unknown protocol: tcp]
  • via Oracle Community by 843793, 1 year ago
    iiop://localhost:3700 [Root exception is java.net.MalformedURLException: unknown protocol: iiop]
  • via javaprogrammingforums.com by Unknown author, 11 months ago
    java:comp/env/jdbc/SAPDEV [Root exception is java.net.MalformedURLException: unknown protocol: java] at com.sun.jndi.fscontext.FSContextFactory.getFileNam eFromURLString(FSContextFactory.java:119) at
  • Stack trace

    • javax.naming.InvalidNameException: tcp://localhost:1414 [Root exception is java.net.MalformedURLException: unknown protocol: tcp] at com.sun.jndi.fscontext.FSContextFactory.getFileNameFromURLString(FSContextFactory.java:119) at com.sun.jndi.fscontext.RefFSContextFactory.createContext(RefFSContextFactory.java:41) at com.sun.jndi.fscontext.RefFSContextFactory.createContextAux(RefFSContextFactory.java:47) at com.sun.jndi.fscontext.FSContextFactory.getInitialContext(FSContextFactory.java:49) at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:667) at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:288) at javax.naming.InitialContext.init(InitialContext.java:223) at javax.naming.InitialContext.<init>(InitialContext.java:197) at javax.naming.directory.InitialDirContext.<init>(InitialDirContext.java:82) at com.hcsc.jms.websphere.jndi.JMS_JNDI_Websphere_Sample.main(JMS_JNDI_Websphere_Sample.java:32) Caused by: java.net.MalformedURLException: unknown protocol: tcp at java.net.URL.<init>(URL.java:574) at java.net.URL.<init>(URL.java:464) at java.net.URL.<init>(URL.java:413) at com.sun.jndi.fscontext.FSContextFactory.getFileNameFromURLString(FSContextFactory.java:117) ... 9 more

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Unknown user
    Once, 11 months ago
    Once, 5 days ago
    27 times, 1 week ago
    Once, 1 month ago
    2 times, 2 months ago
    94 more bugmates