Java.rmi.ServerException: Missing port information

when i call the service ,i got the error:
run-test-client:
[java] java.rmi.ServerException: Missing port information
[java] at com.sun.xml.rpc.client.StreamingSender._raiseFault(StreamingS
ender.java:382)
[java] at com.sun.xml.rpc.client.StreamingSender._send(StreamingSender.
java:234)
[java] at sys.SetIF_Stub.getdeviceid(SetIF_Stub.java:68)
[java] at sys.StockPriceFetcher.getdeviceid(Unknown Source)
[java] at sys.TestPriceFetcher.main(Unknown Source)
what cause it??
in my SetImpl.java i use wurfltags.jar
//SetImpl.java
package sys;
import java.io.*;
import java.net.*;
import java.util.*;
import net.sourceforge.wurfl.wurflapi.*;
public class SetImpl implements SetIF {
     private String ret="";
private ProConf pc;
private MyObjectsManager mom;
     public SetImpl(){}
public String getdeviceid(String request)
String result="";           
try{              
mom=new MyObjectsManager();
mom.wurflWebInit();
UAManager uam =mom.getUAManagerInstance();
result=uam.getDeviceIDFromUA("MOT-T720/05.08.41R MIB/2.0 Profile/MIDP-1.0 Configuration/CLDC-1.0");
System.out.println(result);
catch(Exception e){}
return result;     
and, i generate the wsdl file and deploy it successfully. but in the client
when i call the service it will be error.
the client code is:
/////////StockPriceFetcher.java
package sys;
import javax.xml.rpc.*;
import com.sun.xml.rpc.client.*;
public final class StockPriceFetcher {
public static final String getdeviceid(String req,String endpoint) {
String result="";
try {
SetIF_Stub stub =(SetIF_Stub)(new SystemConfiguration_Impl().getSetIFPort());
stub._setProperty(javax.xml.rpc.Stub.ENDPOINT_ADDRESS_PROPERTY,endpoint);
result = stub.getdeviceid(req);
} catch (Exception ex) {
ex.printStackTrace();
return result;
} // getLonNowItem
//////////////////////TestPriceTetcher.java
package sys;
import java.math.BigDecimal;
import java.util.*;
public class TestPriceFetcher {
public static void main(String[] args) {
try {
// String result=StockPriceFetcher.endsetinfo("ball=5&srv=7&pcode=500001","http://192.152.251.224:8080/jaxrpc-sys/jaxrpc");
String result=StockPriceFetcher.getdeviceid("ball=5&srv=7&pcode=500001","http://192.152.251.224:8080/jaxrpc-sys/jaxrpc");
System.out.println(result+"bb");
} catch (Exception ex) {
ex.printStackTrace();
when i run the testpricefetcher.java it will raise the above error infomation.
it spent 2 days for me to find the problem, but i cannot solve it.
i think it does matter with the wurfl package.because i doesnt use the method of the package in the SetImpl.java it will be ok. How to call the package?please give me a hand.

can you give me a hand!thank you

Similar Messages

  • "Missing port information" and NoClassDefFoundError

    I'm developing a Web Service using JWSPD1.2, and I'm having some problem in executing a client which accesses to the service I'm publishing.
    On Client side the error is:
    java.rmi.ServerException: Missing port information
    at com.sun.xml.rpc.StreamingSender._send
    On Server side (file $(JWSPD_HOME)/logs/launcher.server.log) I found out that the thrown exception is a NoClassDefFoundError.
    The class that is not found, however, is included in a library that I'm linking on the command line, so I can't understand why this exception is thrown...
    Has anyone of you been involved in a similar problem?
    Perhaps I have to link the library somewhere else, but I don't know where...
    Thanks in advance for your help!

    Hi ! I am getting the same error at the client side :
    java.rmi.ServerException: Missing port information
    at com.sun.xml.rpc.client.StreamingSender._raiseFault(StreamingSender.java:370)
    at com.sun.xml.rpc.client.StreamingSender._send(StreamingSender.java:231)
    at com.sun.xml.rpc.client.dii.CallInvokerImpl.doInvoke(CallInvokerImpl.java:56)
    at com.sun.xml.rpc.client.dii.BasicCall.invoke(BasicCall.java:281)
    at DIIClient.main(DIIClient.java:111)
    can u just tell me how the problem was solved and what were the jar files u had set in the classpath. Pls help me i am new to webservices. Thanx in advance

  • Missing Port  Information - HELP!

    Hi, i built a dynamic client to work with my webservice. Both were built using the JWSP1.2. Bellow is the error i get. It happens only if i call the getAll WS method (this method receives a String parameter and returns a Source Type Object) . Does anyone have any idea about what's happening? Could someone show me the way? Really appreciate
    [java] WSDLstring = http://localhost:8080/cm/ContextManager?WSDL
    [java] java.rmi.ServerException: Missing port information
    [java] at com.sun.xml.rpc.client.StreamingSender._raiseFault(StreamingSender.java:382)
    [java] at com.sun.xml.rpc.client.StreamingSender._send(StreamingSender.java:234)
    [java] at com.sun.xml.rpc.client.dii.CallInvokerImpl.doInvoke(CallInvokerImpl.java:64)
    [java] at com.sun.xml.rpc.client.dii.BasicCall.invoke(BasicCall.java:346)
    [java] at com.sun.xml.rpc.client.dii.CallInvocationHandler.doCall(CallInvocationHandler.java:102)
    [java] at com.sun.xml.rpc.client.dii.CallInvocationHandler.invoke(CallInvocationHandler.java:74)
    [java] at $Proxy0.getAll(Unknown Source)
    [java] at contextclient.CMClient.getConnection(Unknown Source)
    [java] at contextclient.CMClient.main(Unknown Source)
    Tks in advance,
    Rodrigo.

    The WSDL code is right here. It was generated by the ant builder wich follows the JWSDP 1.2
    <definitions xmlns:tns="http://localhost:8080/cm/ContextManager" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:ns2="http://java.sun.com/jax-rpc-ri/internal" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" targetNamespace="http://localhost:8080/cm/ContextManager" name="ContextManager">
         <types>
              <schema targetNamespace="http://java.sun.com/jax-rpc-ri/internal" xmlns:tns="http://java.sun.com/jax-rpc-ri/internal" xmlns:soap11-enc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns="http://www.w3.org/2001/XMLSchema">
                   <import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
                   <simpleType name="text_xml">
                        <restriction base="string"/>
                   </simpleType>
              </schema>
         </types>
         <message name="ContextManagerIF_getAll">
              <part name="String_1" type="xsd:string"/>
         </message>
         <message name="ContextManagerIF_getAllResponse">
              <part name="result" type="ns2:text_xml"/>
         </message>
         <message name="ContextManagerIF_getFullDOM">
              <part name="Source_1" type="ns2:text_xml"/>
         </message>
         <message name="ContextManagerIF_getFullDOMResponse">
              <part name="result" type="ns2:text_xml"/>
         </message>
         <message name="ContextManagerIF_teste">
              <part name="String_1" type="xsd:string"/>
         </message>
         <message name="ContextManagerIF_testeResponse">
              <part name="result" type="ns2:text_xml"/>
         </message>
         <portType name="ContextManagerIF">
              <operation name="getAll" parameterOrder="String_1">
                   <input message="tns:ContextManagerIF_getAll"/>
                   <output message="tns:ContextManagerIF_getAllResponse"/>
              </operation>
              <operation name="getFullDOM" parameterOrder="Source_1">
                   <input message="tns:ContextManagerIF_getFullDOM"/>
                   <output message="tns:ContextManagerIF_getFullDOMResponse"/>
              </operation>
              <operation name="teste" parameterOrder="String_1">
                   <input message="tns:ContextManagerIF_teste"/>
                   <output message="tns:ContextManagerIF_testeResponse"/>
              </operation>
         </portType>
         <binding name="ContextManagerIFBinding" type="tns:ContextManagerIF">
              <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
              <operation name="getAll">
                   <input>
                        <soap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://localhost:8080/cm/ContextManager"/>
                   </input>
                   <output>
                        <soap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://localhost:8080/cm/ContextManager"/>
                   </output>
                   <soap:operation/>
              </operation>
              <operation name="getFullDOM">
                   <input>
                        <soap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://localhost:8080/cm/ContextManager"/>
                   </input>
                   <output>
                        <soap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://localhost:8080/cm/ContextManager"/>
                   </output>
                   <soap:operation/>
              </operation>
              <operation name="teste">
                   <input>
                        <soap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://localhost:8080/cm/ContextManager"/>
                   </input>
                   <output>
                        <soap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://localhost:8080/cm/ContextManager"/>
                   </output>
                   <soap:operation/>
              </operation>
         </binding>
         <service name="ContextManager">
              <port name="ContextManagerIFPort" binding="tns:ContextManagerIFBinding">
                   <soap:address location="REPLACE_WITH_ACTUAL_URL"/>
              </port>
         </service>
    </definitions>
    Regards,
    Rodrigo.

  • "Missing port information" when calling web service

    I have implemented a web service that works fine as long as I use primitive types as arguments and return types, but when I add a method that takes a user-defined class as an argument, I receive the following error when calling any of the methods in the web service:
    [java] java.rmi.RemoteException: received fault: "Missing port information"
    (code: "Server" namespace: "http://schemas.xmlsoap.org/soap/envelope/"); nested
    exception is:
    [java] received fault: "Missing port information" (code: "Server" names
    pace: "http://schemas.xmlsoap.org/soap/envelope/")
    [java] java.rmi.RemoteException: received fault: "Missing port information"
    (code: "Server" namespace: "http://schemas.xmlsoap.org/soap/envelope/"); nested
    exception is:
    [java] received fault: "Missing port information" (code: "Server" names
    pace: "http://schemas.xmlsoap.org/soap/envelope/")
    [java] received fault: "Missing port information" (code: "Server" namespace
    : "http://schemas.xmlsoap.org/soap/envelope/")
    [java] at com.sun.xml.rpc.client.StreamingSender._raiseFault(StreamingS
    ender.java:321)
    [java] at com.sun.xml.rpc.client.StreamingSender._send(StreamingSender.
    java:211)
    [java] at qsws.MyItf_Stub.HelloWorld(Unknown Source)
    [java] at qsws.WSClient.main(Unknown Source)
    The class I pass as an argument implements Serializable and a user-defined interface and it has two public member variables (int and String).
    Anyone know why I receive this error?
    /Magnus

    I am also seeing this same error. I have rebuilt and redeployed the service several times, but am still stuck getting this error. Strangely enough, the Tomcat server where the service is hosted is not reporting this type of error. Instead, it is recording an error 500 (Server Internal Error) each time I try to execute one of my services. I trimmed out the meat of the service and configured it so that it would echo the input parameters to the output (they are actually in/out params) but even this reduced configuration gives an error 500. I am inclined to suspect my deployment, but I have checked it several times against the examples.
    Anyone else see the error 500 reported as missing port information?

  • Java.rmi.ServerException: JAXRPCSERVLET28: Missing port information

    Hi
    We are getting errors when we run the webservice client..
    With this we have also provided the webservice code.
    Please any one help us to resolve this issue...
    Thanks in advance.
    We are using
    J2EE 1.4
    Error:
    java.rmi.ServerException: JAXRPCSERVLET28: Missing port information
    at com.sun.xml.rpc.client.StreamingSender._raiseFault(StreamingSender.ja
    va:510)
    at com.sun.xml.rpc.client.StreamingSender._send(StreamingSender.java:307
    at com.sun.xml.rpc.client.dii.CallInvokerImpl.doInvoke(CallInvokerImpl.j
    ava:103)
    at com.sun.xml.rpc.client.dii.BasicCall.invoke(BasicCall.java:492)
    at com.sun.xml.rpc.client.dii.CallInvocationHandler.doCall(CallInvocatio
    nHandler.java:121)
    at com.sun.xml.rpc.client.dii.CallInvocationHandler.invoke(CallInvocatio
    nHandler.java:85)
    at $Proxy0.flowrequest(Unknown Source)
    at dynamicproxy.MathClient.main(MathClient.java:52)
    Web service Client Code:
    package dynamicproxy;
    import java.net.URL;
    import javax.xml.rpc.Service;
    import javax.xml.rpc.JAXRPCException;
    import javax.xml.namespace.QName;
    import javax.xml.rpc.ServiceFactory;
    //import com.ibm.ctg.client.JavaGateway;
    //import com.ibm.ctg.client.ECIRequest;
    import dynamicproxy.*;
    public class MathClient
    static String message;
    static String err=null;
         static StringBuffer sb = null;
         public String s1;
         public static int iValidationFailed = 0;
    public static void main(String[] args)
    try {
    String nameSpaceUri = "urn:Foo";
    String serviceName = "CtgService";
    String portName = "MathFacePort";
    // Specify the location of the WSDL file
    URL url = new URL("http://localhost:8080/math-ctgservice/math?WSDL");
    // Create an instance of service factory
    ServiceFactory serviceFactory = ServiceFactory.newInstance();
    // Create a service object to act as a factory for proxies.
    Service mathService = serviceFactory.createService(url,
    new QName(nameSpaceUri, serviceName));
    // Create a proxy
    dynamicproxy.MathFace
    myProxy = (dynamicproxy.MathFace) mathService.getPort(new
                             QName(nameSpaceUri,
    portName), dynamicproxy.MathFace.class);
    // Invoke the add method
    //System.out.println(myProxy.add(23, 12));
              //get the input value and pass it to the function
                   String a = args[0]+"~"+"------------------------------------------------------------";
                   //String a = b.toUpperCase();
                   // Invoke the add method
                   myProxy.flowrequest(a);
                   System.out.println("Message:"+message);
         catch (Exception ex)
    ex.printStackTrace();
    }

    As is so often the case, Google is your friend.
    Googling for the exception message (JAXRPCSERVLET28: Missing port information) yields the following list.
    http://www.google.com/search?hl=en&q=JAXRPCSERVLET28%3A+Missing+port+information&btnG=Google+Search
    Follow the bouncing link, it will lead you to the solution.
    PS.

  • Missing port information

    Hi all,
    i am running a simple web service in JWSDP1.3 with tomcat server.When i am running the client application i am getting the output without any problem.Then i modified my server program with some oracle database connection.When i tried the same client program i am getting error.The error as follows:
    java.rmi.ServerException: JAXRPC.JAXRPCSERVLET.28: Missing port information
    Please help to fix this problem.I will be indebted for the same help.Thanks.

    if your server connect to database and uses JDBC you must register your database in the system ODBC registry. I have the same problem and i resolve it in ths way.

  • Getting "Missing Port Information" exception

    I wrote a simple service with 3 methods. I created and deployed the service on one machine. I wrote a client to access the service and everything was fine. Then I took the same service on another machine - created and deployed the service on this machine. It says the service deployed. But when I access the service via client I get the following exception:
    Exception is received fault: "Missing port information" (code: "Server" namespace: "http://schemas.xmlsoap.org/soap/envelope/"); nested exception is:
    received fault: "Missing port information" (code: "Server" namespace: "http://schemas.xmlsoap.org/soap/envelope/")
    java.rmi.RemoteException: received fault: "Missing port information" (code: "Server" namespace: "http://schemas.xmlsoap.org/soap/envelope/"); nested exception is:
    received fault: "Missing port information" (code: "Server" namespace: "http://schemas.xmlsoap.org/soap/envelope/")
    received fault: "Missing port information" (code: "Server" namespace: "http://schemas.xmlsoap.org/soap/envelope/")
    at com.sun.xml.rpc.client.StreamingSender._raiseFault(StreamingSender.java:321)
    at com.sun.xml.rpc.client.StreamingSender._send(StreamingSender.java:211)
    at work.EmployeeDirectoryPort_Stub.findAllPeers(Unknown Source)
    at Client.main(Client.java:16)
    Can someone please help me with this?
    Thanks.

    Tool: jax-rpc
    Server: weblogic 6.1 (sp3)
    Yes, I wrote the client on my own and here is a part of it.
    public static void main(String[] args) {
    try {
    String baid = args[0];
    EmployeeDirectory_Impl empDir = new EmployeeDirectory_Impl();
    System.out.println("Constructed Impl ");
    EmployeeDirectoryPort_Stub stub = (EmployeeDirectoryPort_Stub)empDir.getEmployeeDirectoryPort();
    System.out.println("Got Port ");
    work.EmployeeProfile[] empArray = (work.EmployeeProfile[])stub.findAllPeers(baid);
    System.out.println("Invoked ");
    if(empArray != null) {
    System.out.println("Peers array is "+ empArray.length);
    I do not get to the "Got port" printout.
    Thanks
    Neerja

  • Error: while generating SQL.java.rmi.ServerException:

    Hi:
    I tried the JGuru's "MusicStore" example. HOwever at Task 6 and 7 I am getting the following error:
    Error: while generating SQL.java.rmi.ServerException:
    RemoteException occured in server thread; nested exception is:
    * java.rmi.RemoteException: Error connecting to database;
    nested exception is:
    * SQL Exception: Failed to start database 'MusicStoreDB', see
    the next exception for details.
    Please make sure the database name/user/password is valid
    and the J2ee server and database are running.
    However when i check my database it is running perfectly:
    E:\>%j2ee_home%\bin\cloudscape -start
    Sun Feb 16 12:48:11 PST 2003: [RmiJdbc] Starting Cloudscape RmiJdbc Server Version
    Sun Feb 16 12:48:14 PST 2003: [RmiJdbc] COM.cloudscape.core.JDBCDriver registered i
    Sun Feb 16 12:48:14 PST 2003: [RmiJdbc] Binding RmiJdbcServer...
    Sun Feb 16 12:48:14 PST 2003: [RmiJdbc] No installation of RMI Security Manager...
    Sun Feb 16 12:48:14 PST 2003: [RmiJdbc] RmiJdbcServer bound in rmi registry
    Server:
    J2EE server listen port: 1050
    Naming service started:1050
    Binding DataSource, name = jdbc/DB2, url = jdbc:cloudscape:rmi:CloudscapeDB;crea
    te=true
    Binding DataSource, name = jdbc/Cloudscape, url = jdbc:cloudscape:rmi:Cloudscape
    DB;create=true
    Binding DataSource, name = jdbc/InventoryDB, url = jdbc:cloudscape:rmi:Cloudscap
    eDB;create=true
    Binding DataSource, name = jdbc/DB1, url = jdbc:cloudscape:rmi:CloudscapeDB;crea
    te=true
    Binding DataSource, name = jdbc/MusicStore, url = jdbc:cloudscape:rmi:MusicStore
    DB;create=false
    Binding DataSource, name = jdbc/XACloudscape, url = jdbc/XACloudscape__xa
    Binding DataSource, name = jdbc/XACloudscape__xa, dataSource = COM.cloudscape.co
    re.RemoteXaDataSource@1d88db7
    Starting JMS service...
    Initialization complete - waiting for client requests
    Binding: < JMS Destination : jms/Topic , javax.jms.Topic >
    Binding: < JMS Destination : jms/Queue , javax.jms.Queue >
    Binding: < JMS Cnx Factory : TopicConnectionFactory , Topic , No properties >
    Binding: < JMS Cnx Factory : QueueConnectionFactory , Queue , No properties >
    Binding: < JMS Cnx Factory : jms/QueueConnectionFactory , Queue , No properties
    >
    Binding: < JMS Cnx Factory : jms/TopicConnectionFactory , Topic , No properties
    >
    Starting web service at port: 8000
    Starting secure web service at port: 7000
    J2EE SDK/1.3.1
    Starting web service at port: 9191
    J2EE SDK/1.3.1
    J2EE server startup complete.
    Can anyone suggest me a way out..plz

    what type of persistent u r using also post ur query if bmp and check with another example with cmp.

  • Java.rmi.ServerException: Server unavailable, please try later

    I'm testing a service proxy in JDeveloper 10.1.3.1.
    I'm using encryption and signing.
    Now that I have the encryption/signing key loading, I get the following error:
    WARNING: Subject Key ID extension not found.Using BST Referencing scheme
    java.rmi.ServerException:
    start fault message:
    Server unavailable, please try later
    :end fault message
         at oracle.j2ee.ws.client.StreamingSender._raiseFault(StreamingSender.java:560)
         at oracle.j2ee.ws.client.StreamingSender._sendImpl(StreamingSender.java:396)
         at oracle.j2ee.ws.client.StreamingSender._send(StreamingSender.java:112)
         at pkg.service.client.runtime.RequestSoap_Stub.execute(RequestSoap_Stub.java:84)
         at pkg.service.client.RequestSoapClient.execute(RequestSoapClient.java:48)
         at pkg.service.client.RequestSoapClient.main(RequestSoapClient.java:34)
    Process exited.
    Debugger disconnected from local process.
    Is this a failure of the RMI server on my side or is it a failure to connect to the service? Is the destination service sending this to me or just the transmission code?
    It looks to me from the trace and the vagueness of the message that this is from the Oracle transmission code in the StreamingSender class, not a message received from the destination webservice. Would love some confirmation, though.
    Thanks for any help.

    This error generally means there is trouble in the host file, or there is trouble with anti-virus software. Check this section of the support document that you came here from.
    Unable to contact the iOS software update server gs.apple.com
    Error 1004, 1013, 1638, 3014, 3194: These errors may be the result of the connection to gs.apple.com being redirected or blocked. Follow these steps to resolve these errors: 
    Install the latest version of iTunes.
    Check security software. Ensure that communication to gs.apple.com is allowed. Follow this article for assistance with security software. iTunes for Windows: Troubleshooting security software issues.
    Check the hosts file. The restore will fail if there is an active entry to redirect gs.apple.com. Follow iTunes: Advanced iTunes Store troubleshooting to edit the hosts file or revert to a default hosts file. See section "Blocked by configuration: (Mac OS X/Windows) > Rebuild network information".
    Try to restore from another known-good computer and network.
    If the errors persist on another computer, the device may need service.

  • What is "Missing Port Information" error?

    Setting FINEST log level on JAXRPC in the AS8 2004Q04 Beta reveals nothing.
    Searches on this forum provides only 3 matches for "Missing port information" (this one makes 4). In http://forum.java.sun.com/thread.jsp?forum=136&thread=508958 the same problem that I have is described, and the problem is left unresolved, despite a plea from a second user. ( I wonder what happened to these people...Did they sell short or become .NET developers. Neither are an answer for me. )
    Searches in the bug parade shows that this error is generic: In 6157880, classpath was not set correctly. In 4859401, service used a J2SE 1.4 API in a 1.3 environment. In 4802443 there is a getter for a public field and so jaxrcp was confused. There are more bugs matching but I'm not listing them all here. My point is that there doesn't seem to be a single root cause for this problem.
    So, logs don't help, forum doesn't have answer, bug parade is too noisy. This problem seems unresolved here on Sun's web pages, but here I try again:
    Here are some questions:
    1) What is "port information"?
    2) From where is it missing? Where does AS8 expect to find it?
    3) Anyone have a strategy on how to debug this?
    I have Axis TCPMON tracing the soap messages and can verify that AS8 originates the error, not the client. The limited information from the server log verifies this too:
    [#|2004-11-01T16:28:20.008-0500|SEVERE|sun-appserver-pe8.1|javax.enterprise.resource.webservices.rpc.server.http|_Thre
    adID=11;|JAXRPCSERVLET22: no endpoint specified|#]Here is the output of a client that dumps the exception:
         [java] Endpoint address = http://Stratocaster:8080/ym/ym-alias
         [java] javax.xml.rpc.soap.SOAPFaultException: JAXRPCSERVLET28: Missing port information
         [java]     at com.sun.xml.rpc.client.StreamingSender._raiseFault(StreamingSender.java:515)
         [java]     at com.sun.xml.rpc.client.StreamingSender._send(StreamingSender.java:294)
         [java]     at svcp.XXXAPIR0501_Stub.create2(XXXAPIR0501_Stub.java:282)
         [java]     at SubClient.main(SubClient.java:31)

    I believe I've gotten to the bottom of this error and will report it here in case there is anyone that is also having this problem and in case there is anyone that can make sense of it.
    The alias and endpoint fields must be equal.
    The deploy tool allows you to enter an alias and an endpoint for your web service. I'll show you the user interface specifics below. The data you enter in these fields show up in the wsdl, the web.xml and the sun-web.xml, and I'll show what elements below.
    Except for the preceding '/' in the alias field (the '/' is inserted by deploytool), the alias and the endpoint string must be identical: if '/imp-alias' is the alias value, the endpoint must be 'imp-alias'.
    If they are not equal and your client uses the alias value in endpoint address, you will get "Missing port information" error.
    If they are not equal and your client uses the endpoint value in endpoint address, you will get '404 Not Found' error.
    For example, lets say I set alias to 'api-alias' and endpoint to 'api-endpoint'. Using my browser, I can get the wsdl with http://localhost:8080/context/api-alias?wsdl (where context is also a value set in deploytool gui). The returned wsdl will show that the soap:adress location attribute is: http://localhost:8080/context/api-endpoint. If your client uses the wsdl to generate stubs, the default endpoint is this location and your client will get the '404 Not Found' error. If you client provides an endpoint address by setting the ENDPOINT_ADDRESS_PROPERTY to http://localhost:8080/context/api-alias, your client will get the "Missing port information" error.
    You get to the alias and endpoint fields in deploytool from the File panel on the left. Open the subfolder that represents your war file. There will be your web service. Select the web service and the main panel will change to contain about 4-6 tabs. One tab labelled Aliases another tab labelled Endpoint.
    The alias field shows up in the web.xml file like this:
    <servlet-name>APIImpl</servlet-name>
    <url-pattern>/api-alias</url-pattern>
    </servlet-mapping>The endpoint field show up in the web.xml file under the same servlet-mapping element as alias:
    <servlet-name>APIImpl</servlet-name>
    <url-pattern>/api-endpoint/__container$publishing$subctx/*</url-pattern>
    </servlet-mapping>The endpoint field shows up in the wsdl in the soap:address element's 'location' attribute:
          <soap:address location="http://localhost:8080/context/api-endpoint" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"/>The endpoint field shows up in the sun-web.xml file
    <endpoint-address-uri>api-endpoint</endpoint-address-uri>John

  • JAXRPCSERVLET.28:Missing port information

    All,
    I have exposed JCD as webservice in 513. When client try to invoke my webservice, they get JAXRPCSERVLET.28:Missing port information error and I have checked the server.log and I have find out below error. Please help.
    [#|2007-07-05T10:54:02.419-0400|SEVERE|IS5.1.3|Avalara.svcAddress.jcdAddress_Runtime_Handler|_ThreadID=39; ThreadName=http21001-Processor4;stacktrace-id=30;|java.lang.ArrayIndexOutOfBoundsException: Array index out of range: 10
    java.lang.ArrayIndexOutOfBoundsException: Array index out of range: 10
         at com.borders.ECOM.otd.xsd.Output.<init>(com.borders.ECOM.otd.xsd.Output:115)
         at java.lang.Class.newInstanceImpl(Native Method)
         at java.lang.Class.newInstance(Class.java:1243)
         at com.stc.util.OtdObjectFactory.createInstance(OtdObjectFactory.java:51)
         at Avalara.svcAddress.jcdAddress_Runtime_Handler.createObject(Avalara.svcAddress.jcdAddress_Runtime_Handler:517)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
         at java.lang.reflect.Method.invoke(Method.java:615)
         at com.sun.enterprise.security.SecurityUtil.invoke(SecurityUtil.java:140)
         at com.sun.ejb.containers.EJBLocalObjectInvocationHandler.invoke(EJBLocalObjectInvocationHandler.java:135)
         at $Proxy107.createObject(Unknown Source)
         at com.stc.codegen.frameworkImpl.runtime.DeployedServicePartners.internalCreateObject(DeployedServicePartners.java:813)
         at com.stc.codegen.frameworkImpl.runtime.DeployedServicePartners.localCreateObject(DeployedServicePartners.java:565)
         at com.stc.wsserver.runtime.impl.JCDWSServerServiceImpl.init(JCDWSServerServiceImpl.java:182)
         at com.stc.wsserver.runtime.impl.AbstractServiceEndpoint.init(AbstractServiceEndpoint.java:278)
         at com.sun.xml.rpc.server.http.Implementor.init(Implementor.java:45)
         at com.sun.xml.rpc.server.http.ImplementorCacheDelegateImpl.getImplementorFor(ImplementorCacheDelegateImpl.java:57)
         at com.sun.xml.rpc.server.http.ImplementorCache.getImplementorFor(ImplementorCache.java:32)
         at com.sun.xml.rpc.server.http.JAXRPCServletDelegate.doPost(JAXRPCServletDelegate.java:290)
         at com.sun.xml.rpc.server.http.JAXRPCServlet.doPost(JAXRPCServlet.java:74)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:768)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:861)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
         at java.lang.reflect.Method.invoke(Method.java:615)
         at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:289)
         at java.security.AccessController.doPrivileged(AccessController.java:275)
         at javax.security.auth.Subject.doAsPrivileged(Subject.java:727)
         at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:318)
         at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:205)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:283)
         at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:102)
         at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:192)
         at java.security.AccessController.doPrivileged(AccessController.java:242)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:263)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:156)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:569)
         at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:261)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:215)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:156)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:569)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:200)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:156)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:180)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:154)
         at com.sun.enterprise.webservice.EjbWebServiceValve.invoke(EjbWebServiceValve.java:134)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:154)
         at com.sun.enterprise.security.web.SingleSignOn.invoke(SingleSignOn.java:254)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:154)
         at com.sun.enterprise.web.VirtualServerValve.invoke(VirtualServerValve.java:209)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:154)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:569)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:161)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:156)
         at com.sun.enterprise.web.VirtualServerMappingValve.invoke(VirtualServerMappingValve.java:173)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:154)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:569)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:979)
         at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:211)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:692)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:647)
         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:589)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:691)
         at java.lang.Thread.run(Thread.java:803)

    Solved it ! Some endpoint alias problem during deployment ! Now works fine !

  • Exception occurred: java.rmi.ServerException

    Hello,
    I am trying to run small rmi program on sun solaris unix server. but after running the rmiregistry when I have execute the server program, it's throwing me following error. The same program is running fine in my local windows machine.
    java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
    java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
    java.lang.ClassNotFoundException: RMITest.myRMIInterface
    at sun.rmi.server.UnicastServerRef.oldDispatch(UnicastServerRef.java:400)
    at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:255)
    at sun.rmi.transport.Transport$1.run(Transport.java:168)
    at java.security.AccessController.doPrivileged(AccessController.java:274)
    at sun.rmi.transport.Transport.serviceCall(Transport.java:164)
    at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:506)
    at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.handleRequest(TCPTransport.java:838)
    at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:912)
    at java.lang.Thread.run(Thread.java:797)
    at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:263)
    at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:239)
    at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:358)
    at sun.rmi.registry.RegistryImpl_Stub.rebind(RegistryImpl_Stub.java:133)
    at java.rmi.Naming.rebind(Naming.java:174)
    at RMITest.myRMIImpl.<init>(myRMIImpl.java:14)
    at RMITest.myRMIServer.main(myRMIServer.java:12)
    I have check that this exception occured when IMPL class's naming.rebind method called.
    import java.rmi.*;
    import java.rmi.server.UnicastRemoteObject;
    public class myRMIImpl extends UnicastRemoteObject implements myRMIInterface
    public myRMIImpl(String name) throws RemoteException
    super();
    try
    Naming.rebind(name, this);
    catch(Exception e)
    System.out.println("Exception occurred: " + e);
    public java.util.Date getDate()
    return new java.util.Date();
    Can you help me how to solve this problem.
    Note : my rmiregistry is running on 4999 port.
    - Hiren Modi

    java.lang.ClassNotFoundException: RMITest.myRMIInterfaceThe Registry can't find that class on its CLASSPATH.
    Solution: do something about that. Either run the registry as a separate task with a suitable CLASSPATH setting, or run it in the server JVM via LocateRegistry.createRegistry().

  • Java.rmi.ServerException:

    I am new to RMI concept
    i stuck with the below problem
    when i execute
    E:\MyProjects\StockRMI>java -Djava.security.policy=policy.all StockMarketServerStockMarketServer is as shown below
    import java.rmi.*;
    import java.rmi.server.UnicastRemoteObject;
    import SimpleStocks.*;
    public class StockMarketServer {
      public static void main(String[] args) throws Exception {
        if(System.getSecurityManager() == null) {
          System.setSecurityManager( new RMISecurityManager() );
        StockMarketImpl myObject = new StockMarketImpl( "NASDAQ" );
        System.out.println( "RMI StockMarketServer ready..." );
    } i got the following error
    java.rmi.ServerException: RemoteException occurred in server thread; nested exce
    ption is:
            java.rmi.UnmarshalException: error unmarshalling arguments; nested excep
    tion is:
            java.lang.ClassNotFoundException: SimpleStocks.StockMarketImpl_Stub
    RMI StockMarketServer ready...Interface class, Interface implementation class and stub all reside in MyProjects\StockRMI\SimpleStocks directory
    where as Server class(StockMarkerServer) is in MyProjects\StockRMI
    even i place the stub in MyProjects\StockRMI directory i got the same error.
    Can any one please save me out of this problem

    hurry!
    Thank u First of all
    I got it.. finally after 2 days
    The error is in CLASSPATH only , i set it
    Thanks once again

  • Java.rmi.ServerException: RuntimeException

    Hi All,
    i had an issue related to sockets.Please see the code below where am getting the following exception,
    java.rmi.ServerException: RuntimeException; nested exception is:
    java.lang.RuntimeException: java.io.EOFException
    what my concern is while debugging am not getting this issue.
    code comes here-----------------------------------------------
    Socket s = null;
    byte[] readBytes1 = null;
    try {
    s = new Socket(txControlServer, 7777);
    SocketObject sob = makeSocketObject(pFromFiles, pToFiles, pCorrStylesheets,
    pHTMLUtilityServer, pOrientation, pDocumentClassif, pClientInfo, pFormats,
    pCorrCode, images);
    ObjectOutputStream oos = new ObjectOutputStream(s.getOutputStream());
    oos.writeObject(sob);
    ObjectInputStream ois = new ObjectInputStream(s.getInputStream());
    readBytes1 = ((SocketObject) ois.readObject()).getFileData();
    System.out.println("The byte length " + readBytes1.length);
    ois.close();
    oos.close();
    s.close();
    System.out.println("\n----------------The length of the bytes read first ----- "
    + readBytes1.length);
    catch (Exception e) {
    ExceptionUtil.wrap(e);
    Am getting the exception at this line in the above code
    ObjectInputStream ois = new ObjectInputStream(s.getInputStream());
    Can any one help me out why this problem occurs and how to resolve.
    Thanks in Advance,
    vamsy.

    The other side has closed the socket before sending you an object.

  • Java.rmi.ServerException Problem

    The exception that has occured is java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
    java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
    java.lang.ClassNotFoundException: Process00Impl_Stub
    I have the interface, Client, Server and the Implementation java files
    in the same machine.
    11/29/2002 08:52p 282 Process00.class
    11/29/2002 08:25p 221 Process00.java
    11/29/2002 07:40p 215 Process00.java.bak
    11/29/2002 08:56p 1,008 Process00Client.java
    11/29/2002 08:55p 1,010 Process00Client.java.bak
    11/29/2002 08:57p 451 Process00Impl.class
    11/29/2002 08:57p 936 Process00Impl.java
    11/29/2002 08:52p 934 Process00Impl.java.bak
    11/29/2002 08:57p 2,153 Process00Impl_Skel.class
    11/29/2002 08:57p 3,938 Process00Impl_Stub.class
    11/29/2002 08:56p 995 Process00Server.class
    11/29/2002 08:57p 645 Process00Server.java
    11/29/2002 08:56p 643 Process00Server.java.bak
    I also have the _Stub.class. I do not know why I get this error. If any
    one have an idea, kindly share with me.
    Thanks.

    Hi,
    I had the same problem. In my machine, path was having jre1.1.7 before my jdk 1.4. So it was picking up from jre1.1.7.
    Java was happy when I moved my jdk1.4 path to the beginning of the path variable.
    Hope this helps you.

Maybe you are looking for

  • Help!! Kernel panics after installation!!

    Hi, I am new to Arch Linux (migrating from Fedora). I am having some problems with the installation on my Sony VAIO CW (C2D, Nvidia GT230M). At first I couldn't get past the installation of X in the Beginner's guide, but after some tweaking with conf

  • Trouble with Illustrator cs6

    I updated all the apps through creative cloud but Illustrator cs6 wouldn't work- it would get up to about 70% then say the update failed. I read somewhere that if I uninstalled & reinstalled it the updates might work; I've uninstalled it and can't fi

  • What is a Jad file?

    Hi guys, Can u tell me what exactly is a JAD file?Can i exectue a JAD file directly or do i always need KToolbar to exectue it? cheers, Sachin

  • Convert BO 4.1 universe & reports to XI R2

    Hi Experts, I would like to convert the Business Object 4.1 universes and Reports to the BO XI R2 environment. Please let me know what is the procedure to follow for this upgrade. Appreciate your help. Thanks, Mahadevan.

  • ESS - Personal Information Update

    Dear all,      for ESS/Pid(infor type0185), only subtype 01(IC) and 02(Passport) is allow to do amendment to the ID Number (ICNUM), the rest of the subtype, the field Identity Number ( ID Number) is not allow for input . Any idea how to solve it? Tha