Help... Super Urgent. Servlet Problem

Anyone can help me this? My servlet wants to connect to another servlet. My supervisor tells me to use socket. This is my code.
Socket socket = new Socket(location, 8210);
          OutputStream os = socket.getOutputStream();
          boolean autoflush = true;
          PrintWriter out = new PrintWriter(socket.getOutputStream(), autoflush);
          ObjectInputStream objIn = null;
          Object obj = null;
BufferedReader in = new BufferedReader(new InputStreamReader(socket.getInputStream()));
          out.println("GET "+dir+"?class="+className+"&method="+method+"&machine="+request.getServerName()+"&port="+random+" HTTP/1.1");
          out.println("Host: localhost:8080");
          out.println("Connection: Close");
          out.println();
boolean loop = true;
          StringBuffer sb = new StringBuffer(8096);
          while (objIn==null)
               objIn = new ObjectInputStream(new BufferedInputStream(socket.getInputStream()));
               try
                    obj = objIn.readObject();
                    //Thread.currentThread().sleep(50);
               catch (Exception e)
                    e.printStackTrace();
My supervisor say that as my servlet opens socket connection to the other servlet, the other servlet just have to do outputstream then my servlet can received. I try but can't. Anyone can help me?? Very Urgent. tomorrow is the dateline.

Hi MelonSeed,
I believe that the other servlet needs to open a ServerSocket in order for the two servlets to communicate via a Socket.
Although I haven't tried it, you can open a URLConnection to the other servlet and then open an InputStream for reading the response from the other servlet.
Depending on the URL you use to connect to the other servlet, you will (as I'm sure you know) invoke its "doGet()" or "doPost()" methods.
Also, you may find some relevant examples in Jason Hunter's book, Java Servlet Programming, which are available online.
Good Luck,
Avi.

Similar Messages

  • SUPER URGENT: servlets in weblogic

    I am trying to run the servlets in bea weblogic server 6.1..
    but when i try to run my servlets, it gives "405- Resource not allowed." ..error..I have double checked all the files and my XML code in web.xml file ..but no luck....
    can anyone please help?
    here is my web.xml file
    <?xml version="1.0" ?>
    <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 1.2//EN" "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
    <web-app>
    <servlet>
    <servlet-name>edge</servlet-name>
    <servlet-class>edge</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>edge</servlet-name>
    <url-pattern>/</url-pattern>
    </servlet-mapping>
    <welcome-file-list>
    <welcome-file>index.html</welcome-file>
    </welcome-file-list>
    </web-app>
    when i run myservlet i enter this to run my servlet
    http://localhost:7001/edge
    but it is giving me the following error..can anyone please help
    The page cannot be displayed
    The page you are looking for cannot be displayed because the address is incorrect.
    Please try the following:
    If you typed the page address in the Address bar, check that it is entered correctly.
    Open the localhost:7001 home page and then look for links to the information you want.
    Click Search to look for information on the Internet.
    HTTP 405 - Resource not allowed
    Internet Explorer
    anyone..please respond as soon as possible i ve to do an assignment..thanks

    I ve tried this...but no use...
    there is someother problem
    ...most interesting is that i ve two computers...on one computer the above method is working but on my second computer there are exactly the configurations of weblogic..but it not running
    please tell me if you know something else
    thanks

  • Help Needed Urgently - Payment Problem!

    Hi all,
    I have tried to purchase a couple of apps and I keep getting an error message (below) and yet, both times I received a confirmation sms on my phone telling me that my credit card had been charged the amount! I have re-entered my payment information and my account info and everything and it still doesnt work, even though the payment works just fine apparently as the money is getting deducted with no problem.
    How do I solve this and how do I (a) make the apps that I purchased work without repurchasing again OR (b) get my money back.

    hishamsaidi wrote:
    Hi please I can't purchase by me visa card it is telling Me error 12000 from app world thanks
    Hi and Welcome to the Community!
    Here is a KB that discusses that error:
    KB28978 "Error ID 12000" is encountered when attempting to complete a purchase on a BlackBerry device
    Hopefully it contains something useful! There also are multiple existing threads on this site that discuss that exact error...your review of those might prove useful, and a search of this site, using the error message, error code, or symptom, should reveal all applicable existing threads to you.
    Good luck and let us know!
    Occam's Razor nearly always applies when troubleshooting technology issues!
    If anyone has been helpful to you, please show your appreciation by clicking the button inside of their post. Please click here and read, along with the threads to which it links, for helpful information to guide you as you proceed. I always recommend that you treat your BlackBerry like any other computing device, including using a regular backup schedule...click here for an article with instructions.
    Join our BBM Channels
    BSCF General Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • Help! Simple Servlet Problem

    hi,
    I am new to servlets. I am trying to connect to database and retrive firstname and lastname and display it. When i run it i get a blank page. Can someone tell me what am i doing wrong.
    Here is the code.
    import java.io.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.sql.*;
    import javax.servlet.ServletException;
    public class DisplayAll extends HttpServlet{
    public void doGet(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException{
    res.setContentType("text/html");
    PrintWriter pw = res.getWriter();
    try{
    Class.forName("sun.jdbc.odbc.Jdbc.OdbcDriver");
    Connection myCon = DriverManager.getConnection
    ("jdbc:odbc:SCANODBC","SYSDBA", "masterkey");
    Statement myStmt = myCon.createStatement();
    myStmt.execute("SELECT * FROM PINFO WHERE POLICYNUMBER=B05007584");
    ResultSet mySet = myStmt.getResultSet();
    while(mySet.next()){
    String fname = mySet.getString("FIRSTNAME");
    String lname = mySet.getString("LASTNAME");
    pw.println("<html>");
    pw.println("<body>");
    pw.println("Firstname: " + fname);
    pw.println("Lastname: " + lname);
    pw.println("</body>");
    pw.println("</html>");
    myStmt.close();
    myCon.close();
    catch(SQLException e){
    catch(ClassNotFoundException e){
    }

    You are putting <HTML><BODY> inside the while loop. Try the following and also close the statement and connection in "finally" block as opposed to in "try" block itself.
    pw.println("<html>");
    pw.println("<body>");
    while(mySet.next()){
    String fname = mySet.getString("FIRSTNAME");
    String lname = mySet.getString("LASTNAME");
    pw.println("Firstname: " + fname);
    pw.println("Lastname: " + lname);
    } //end while()
    pw.println("</body>");
    pw.println("</html>");
    }//end try
    catch(SQLException e){
    finally
    myStmt.close();
    myCon.close();

  • Please help! urgent printer problem.

    I was using my printer in the mourning, and i got a paper jam. so i removed the paper, however after that nothing else wuld print. i just shut it off because i had to go to school. when i came home i tried various options, but it still had a jam. i removed and replaced the ink cartridges, i made cure the carriage could slide back and forth, i shut the printer on and off. However, the yellow light, and power button continue to blink on and off. when i attempt to print, it slowly takes a paper up, but it doesnt even print on it. and then it just spits it out. My printer is an HP officejet pro 8000 wireless. plz help

    Hope that you have better luck than I have had,  I just got told that I can pay more than I originally paid for my printer to have something fixed that is HP issue.  But since I did not get to them within the year, even though I tried and tried to get them to help I am out of luck.
    But what it sounds like is that you have a piece of paper stuck in one of the sensor areas that is causing the printer not to function properly.  Take out your paper, and open the back and insure that there is not a small piece of paper not stuck in there somewhere that is causing your issue

  • Urgent: Sessions problem pls help me

    Hi all,
    Its already late to post this problem.pls help me urgently.
    I have a servlet & two jsp's. first i request servlet, it processes something and forwards request to my first jsp. In that jsp on a button click, i'm displaying a new popup by calling showModalDialog. this dialog gets data from the same servlet but it forwards to my second jsp.(second jsp can be seen in dialog)
    Now if i submit form from my second(dialog) jsp, the servlet reports that session has expired. I tried a lot but invain. any one who helps me is appreciated well by all of our forum.
    waiting 4 u r reply,

    It could be that you have cookies turned off and you're not using URL Rewriting.
    In J2EE, the first time your browser makes a request to the server, the server responds and appends a SESSION_ID parameter to the request as well as storing a cookie with the SESSION_ID.
    The second time your browser makes a request, the server checks for the cookie. If it doesn't exist it checks for the parameter. If neither exist the server assumes its the first time your browser has made a request and behaves as describe in the previous paragraph.
    In your case when you submit the form if you have disabled cookies and the action attribute doesn't have the SESSION_ID paramter appended to the url, the browser will assume it's a first request. The user will not be logged in, hence your session has expired error.
    To fix this you need to encode the URL in your JSP. You can use the struts html:rewrite tag or the HttpServletReponse.encodeURL method, or if you're using JSP 2.0 the JSTL c:url tag.

  • Urgent, Please help me in this problem.I am getting problem while installation

    I am using Windows 8 in my system. I am trying to install Sql Server in system . Everything is fine, but finally  when i click on install button i am getting the following error .
    please help me quickly. I well be thankful to you.

    Triple post meanwhile:
    http://social.msdn.microsoft.com/Forums/en-US/7fafa499-ca1e-42f7-a117-73df924d9847/urgent-please-help-me-in-this-problemi-am-getting-problem-while-installation?forum=sqlsetupandupgrade
    http://social.msdn.microsoft.com/Forums/en-US/a1c7978c-2f84-495f-a8b6-9e9fe46654d7/getting-problem-while-installing-sql-server-2012?forum=sqlsetupandupgrade
    Olaf Helper
    [ Blog] [ Xing] [ MVP]

  • Urgent Please help with a Conferencing problem in CUCM 6.1

    /* Style Definitions */
    table.MsoNormalTable
    {mso-style-name:"Table Normal";
    mso-tstyle-rowband-size:0;
    mso-tstyle-colband-size:0;
    mso-style-noshow:yes;
    mso-style-priority:99;
    mso-style-qformat:yes;
    mso-style-parent:"";
    mso-padding-alt:0cm 5.4pt 0cm 5.4pt;
    mso-para-margin:0cm;
    mso-para-margin-bottom:.0001pt;
    mso-pagination:widow-orphan;
    font-size:11.0pt;
    font-family:"Calibri","sans-serif";
    mso-ascii-font-family:Calibri;
    mso-ascii-theme-font:minor-latin;
    mso-fareast-font-family:"Times New Roman";
    mso-fareast-theme-font:minor-fareast;
    mso-hansi-font-family:Calibri;
    mso-hansi-theme-font:minor-latin;
    mso-bidi-font-family:"Times New Roman";
    mso-bidi-theme-font:minor-bidi;}
    We have a configuration of CUCM 6.1. We have 24 voice ports (FXO) configured in H 323 registered with the call manger.  A CUE 3.2 configured for IVR and mail box. Gateway is a Cisco 3845 and the IOS version is 12.4(15) T10
    The problem is whenever a conference is configured with an outside number the FXO port is not releasing after the call disconnects.  It is not FXO disconnect problem. This happens only when a conference is taking place. There is no problem with any other outside or inside calls.
    I am attaching the configuration of Gateway. Please help me with the problem, I am very much thankful for you that.

    The Family pack covers upto 5 computers, other Install Disc cover one computer only.

  • Problem with minisap 4.6 installation..Please help..URGENT!!

    Hi,
    Can somebody help me with this problem? when i start to install the minisap into my windows XP, i encounter this problem. may i know what shoud i put into the field?
    <img src="http://i35.photobucket.com/albums/d194/keyepvc/minisap1.jpg">
    This is the next step after the above screen. May i know what to enter into the field?
    <img src="http://i35.photobucket.com/albums/d194/keyepvc/minisap2.jpg">
    Or is there anything wrong with my PC? btw, i just reformat my window.
    Thank you.. Your help is much appreciated.

    Hi,
    Check the link below links
    http://www.christianfeichtner.com/documents/install_mbs.html
    Mini SAP Installation
    http://www.sap-img.com/basis/common-mini-sap-installation-question-and-answers.htm
    Hope this will help u..
    Regards,
    Omkar.

  • Urgent!!!! please help!!! problems with visual j++ and jbuilder

    Hi,
    I have been worried about this problem since a long time. I couldn't get any help figuring out the problem. I am using microsoft visual j++ 6.0
    I have tried putting the rt.jar file in the class path but its getting me out of the compilation errors and not this runtime error.
    I faced this problem with many codes.
    When i used the jbuilder as one of the users suggested, i am getting this compilation errors,
    "FloatingAgent.java": Error #: 704 : cannot access directory vrml at line 4, column 4
    "FloatingAgent.java": Error #: 704 : cannot access directory vrml\node at line 5, column 4
    "FloatingAgent.java": Error #: 704 : cannot access directory vrml\field at line 6, column 4
    "FloatingAgent.java": Error #: 300 : class Script not found in class FloatingAgent at line 9, column 39
    Please somebody help.
    Jagadish.
    // an agent is floating randomly.
    import java.util.*;
    import vrml.*;
    import vrml.node.*;
    import vrml.field.*;
    import java.io.*;
    public class FloatingAgent extends Script{
    SFVec3f setAgentPosition;
    SFRotation setAgentRosition;
         static int count=0;
         float agentPosition[] = new float[3];
         float agentRosition[] = new float[4];
         float rotangle = 0.0f;
         float aRad= (float) (Math.PI/180);
    //Random randomNumGenerator = new Random();
    public void initialize(){
    // get the reference of the event-out 'setAgentPosition'.
    setAgentPosition =
    (SFVec3f)getEventOut("setAgentPosition");
              setAgentRosition =
    (SFRotation)getEventOut("setAgentRosition");
    // initialize the agent position.
    agentPosition[0] = 0.0f;
    agentPosition[1] = 0.0f;
    agentPosition[2] = 0.0f;
         agentRosition[0] = 0.0f;
    agentRosition[1] = 0.0f;
    agentRosition[2] = 1.0f;
         agentRosition[3] = 0.0f;
    public void processEvent(Event e){
    if(e.getName().equals("interval") == true){
    moveAgent();
    // generate random float value ranging between -0.1 to 0.1.
    /*float generateRandomFloat(){
    return(randomNumGenerator.nextFloat() * 0.2f - 0.1f);
    // move the agent randomly.
    void moveAgent()
    agentPosition = reader();
    // agentPosition[0] += generateRandomFloat() ;
    // agentPosition[1] += generateRandomFloat();
    //agentPosition[2] += generateRandomFloat();
         rotangle += 2.0f;
         agentRosition[3] = rotangle * aRad;
    // move the agent to the new position.
    setAgentPosition.setValue(agentPosition);
         setAgentRosition.setValue(agentRosition);
    }//move agent
    static float[] reader()
         float p1[] = new float[3];
         try{
         FileReader fr = new FileReader("data.txt");
         BufferedReader br = new BufferedReader(fr);
         String s;
    int count1=0;
    count++;     
         try{  
         while((s=br.readLine())!=null)
    count1++;
              StringTokenizer st = new StringTokenizer(s);
              if(count1==count)
              int i=0;
              while(st.hasMoreTokens())
              p1[i++]=Float.parseFloat(st.nextToken());
              }//if
              }//end of stringTokenizer while.
         fr.close();                
         catch(IOException f)
              System.out.println("file cannot be opened");
         }//try
         catch(FileNotFoundException e)
         System.out.println("file doesn't exist");
         } //try
         return p1;
    }//reader

    Didn't we hear this from you yesterday? Sounds too familiar. If so, we told you you're using a MICROSOFT product (Visual J++), which is OLD, and not up to the SUN's java specification. We suggested that you dump Visual J++ and go with something like JBuilder, Forte, Visual Cafe, etc.
    This is a SUN site in support of SUN's java - not Microsoft's outdated and non-existent (anymore) version.

  • Help needed urgently on a problem..plzzz

    hi..this is a linear congruential generator. I have to implement it and i need the execution time for the program.
    for your understanding i'm providing an example below.
    Xn=(( a* xn-1 )+b) mod m
    If X0=7 ; a = 7 ; b =7 ; m=10
    Then
    X0 = 7
    X1 =((7 * 7) + 7))mod 10 = 6
    X2 = ((6*7)+7))mod 10 = 9
    X3 = ((9*7)+7) mod 10 = 0
    X4 = ((0*7)+7) mod 10 = 7
    Now since the cycle is being repeated i.e 7 appears again�so the period is 4 coz there are 4 diff nos. i.e 7,6,9,0�..
    help required urgently....your help will be appreciated...thankyou..

    Hi,
    I wrote the code so that it catches any cycle (not only the "big" one).
    Otherwise it will enter infinite loop...
    The time complexity is O(N*logN): it can do at most N iterations (here N is your 'm'), and in each iteration there can be O(log N) comparisons (since I maintain TreeSet).
    Interesting issue: is it possible to supply such (x0, a, b, m) tuple such that all possible values from 0 to m-1 will be output? I think no :)
    Here is the program:
    package recurr;
    import java.util.TreeSet;
    import java.util.Comparator;
    public class Recurrences {
         private static long x0, a, b, m;
         private static TreeSet theSet;
         public static void main(String[] args)
              long l0, l1, l2, l3;
              try {
                   x0 = Long.parseLong(args[0]);
                   a = Long.parseLong(args[1]);
                   b = Long.parseLong(args[2]);
                   m = Long.parseLong(args[3]);
              } catch(NumberFormatException nfe) {
                   nfe.printStackTrace();
              System.out.println("X[0]: " + x0 + "\n");
              long curr = x0;
              boolean cut = false;
              int i;
              // initialize the set
              theSet = new TreeSet(new LongComparator());
              // we can get at most m distinct values (from 0 to m-1) through recurrences
              for(i=1; i <= m; ++i) {
                   // iterate until we find duplicate
                   theSet.add(new Long(curr));
                   curr = recurrence(curr);
                   if(theSet.contains(new Long(curr))) {
                        cut = true;
                        break;
                   System.out.println("X[" + i + "]: " + curr + "\n");
              if(cut) {
                   System.out.println("Cycle found: the next will come " + curr + "\n");
              } else {
                   System.out.println("No cycle found!");
              System.out.println("----------------------------------");
              System.out.println("Totally " + (i-1) + " iterations");
         private static long recurrence(long previous)
              return (a*previous + b)%m;
         static class LongComparator implements Comparator
              public int compare(Object o1, Object o2)
                   if(((Long)o1).longValue() < ((Long)o2).longValue()) {
                        return -1;
                   } else if(((Long)o1).longValue() > ((Long)o2).longValue()) {
                        return 1;
                   } else return 0;
    }

  • Unable to get Rmi program working. Help plz - urgent.

    Any help to get this problem resolved would be of help.
    I get the error as below:
    D:\test\nt>java Client
    Server
    Client exception: Error marshaling transport header; nested exception is:
    javax.net.ssl.SSLException: untrusted server cert chain
    java.rmi.MarshalException: Error marshaling transport header; nested exception is:
    javax.net.ssl.SSLException: untrusted server cert chain
    javax.net.ssl.SSLException: untrusted server cert chain
    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a([DashoPro-V1.2-120198])
    at com.sun.net.ssl.internal.ssl.ClientHandshaker.a([DashoPro-V1.2-120198])
    at com.sun.net.ssl.internal.ssl.ClientHandshaker.processMessage([DashoPro-V1.2-120198])
    at com.sun.net.ssl.internal.ssl.Handshaker.process_record([DashoPro-V1.2-120198])
    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a([DashoPro-V1.2-120198])
    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a([DashoPro-V1.2-120198])
    at com.sun.net.ssl.internal.ssl.AppOutputStream.write([DashoPro-V1.2-120198])
    at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:76)
    at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:134)
    at java.io.DataOutputStream.flush(DataOutputStream.java:108)
    at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:207)
    at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:178)
    at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:87)
    at Server_Stub.passArgs(Unknown Source)
    at Client.main(Client.java, Compiled Code)
    the server was invokde as:
    D:\test\nt>java -Djava.rmi.server.codebase="file:/d:/test" -Djava.policy=d:/test/policy Server a b c
    Server bound in registry
    where policy had allpermission
    The server program is given as below:
    import java.net.InetAddress;
    import java.rmi.Naming;
    import java.rmi.registry.LocateRegistry;
    import java.rmi.registry.Registry;
    import java.rmi.RemoteException;
    import java.rmi.RMISecurityManager;
    import java.rmi.server.UnicastRemoteObject;
    public class Server extends UnicastRemoteObject implements Message
         private static String[] args;
         public Server() throws RemoteException
              // super();     
              super(0, new RMISSLClientSocketFactory(),
                   new RMISSLServerSocketFactory());
         public String[] passArgs() {
              System.out.println(args[0]);
              System.out.println(args[1]);
              System.out.println(args[2]);
              System.out.println(args.length);
              System.out.println();
              return args;
         public static void main(String a[])
              // Create and install a security manager
              if (System.getSecurityManager() == null)
                   System.setSecurityManager(new RMISecurityManager());
              args=a;
              try
                   Server obj = new Server();
                   // Bind this object instance to the name "Server"
                   Registry r = LocateRegistry.createRegistry(4646);
                   r.rebind("Server", obj);
                   System.out.println("Server bound in registry");
              } catch (Exception e) {
                   System.out.println("Server err: " + e.getMessage());
                   e.printStackTrace();
    The RMISSLServerSocketFactory class is as below:
    import java.io.*;
    import java.net.*;
    import java.rmi.server.*;
    import javax.net.ssl.*;
    import java.security.KeyStore;
    import javax.net.*;
    import javax.net.ssl.*;
    import javax.security.cert.X509Certificate;
    import com.sun.net.ssl.*;
    public class RMISSLServerSocketFactory implements RMIServerSocketFactory, Serializable
         public ServerSocket createServerSocket(int port)
              throws IOException     
              SSLServerSocketFactory ssf = null;
              try {
                   // set up key manager to do server authentication
                   SSLContext ctx;
                   KeyManagerFactory kmf;
                   KeyStore ks;
                   char[] passphrase = "passphrase".toCharArray();
                   ctx = SSLContext.getInstance("TLS");
                   kmf = KeyManagerFactory.getInstance("SunX509");
                   ks = KeyStore.getInstance("JKS");
                   ks.load(new FileInputStream("testkeys"), passphrase);
                   kmf.init(ks, passphrase);
                   ctx.init(kmf.getKeyManagers(), null, null);
                   ssf = ctx.getServerSocketFactory();
              } catch (Exception e)
                   e.printStackTrace();
                   return ssf.createServerSocket(port);
    The RMIClientSocketFactory is as below:
    import java.io.*;
    import java.net.*;
    import java.rmi.server.*;
    import javax.net.ssl.*;
    public class RMISSLClientSocketFactory     implements RMIClientSocketFactory, Serializable
         public Socket createSocket(String host, int port)
              throws IOException
              SSLSocketFactory factory =(SSLSocketFactory)SSLSocketFactory.getDefault();
              SSLSocket socket = (SSLSocket)factory.createSocket(host, port);
                   return socket;
    And finally the client program is :
    import java.net.InetAddress;
    import java.rmi.registry.LocateRegistry;
    import java.rmi.registry.Registry;
    import java.rmi.RemoteException;
    public class Client
         public static void main(String args[])
              try
                   // "obj" is the identifier that we'll use to refer
                   // to the remote object that implements the "Hello"
                   // interface
                   Message obj = null;
                   Registry r = LocateRegistry.getRegistry(InetAddress.getLocalHost().getHostName(),4646);
                   obj = (Message)r.lookup("Server");
                   String[] s = r.list();
                   for(int i = 0; i < s.length; i++)
                        System.out.println(s);
                   String[] arg = null;
                   System.out.println(obj.passArgs());
                   arg = obj.passArgs();
                   System.out.println(arg[0]+"\n"+arg[1]+"\n"+arg[2]+"\n");
              } catch (Exception e) {
                   System.out.println("Client exception: " + e.getMessage());
                   e.printStackTrace();
    The Message interface has the code:
    import java.rmi.Remote;
    import java.rmi.RemoteException;
    public interface Message extends Remote
         String[] passArgs() throws RemoteException;
    Plz. help. Urgent.
    Regards,
    LioneL

    hi Lionel,
    have u got the problem solved ?
    actually i need ur help regarding RMI - SSL
    do u have RMI - SSL prototype or sample codings,
    i want to know how to implement SSL in RMI
    looking for ur reply
    -shafeeq

  • Using flat file to upload in ABAP. Please help. Urgent

    Hi all,
    I am using a CSV excel file to upload some data to my ABAP program. Thje file contains material numbers as one of the fields. But if I enter the material number 11910892E80, excel converts it to  1.19E+87. Since I am using this file in the program to extract some fields from MARA, i am getting an error 'Material number does not exist'.
    I know that we can avoid this problem by changing the format type of the cell to 'text' in excel. I want to know if there is any other way to rectify this problem. I have to use an excel file for upload. Notepad will not do.
    Please help me solve this problem. It is urgent.
    Thanks and regards,
    Swaminath

    Hi
    If it is comma delimited file (CSV format) you can directly read the whole file and into a table with one field.
    Loop at that table.
    Use split a comma into fields of your internal table.
    endloop.
    Sample code
    move pcfile to v_file.
      CALL FUNCTION 'GUI_UPLOAD'
        EXPORTING
          FILENAME                = v_file
          FILETYPE                = 'ASC'
          HAS_FIELD_SEPARATOR     = 'X'
        TABLES
          DATA_TAB                = in_rec
        EXCEPTIONS
          FILE_OPEN_ERROR         = 1
          FILE_READ_ERROR         = 2
          NO_BATCH                = 3
          GUI_REFUSE_FILETRANSFER = 4
          INVALID_TYPE            = 5
          NO_AUTHORITY            = 6
          UNKNOWN_ERROR           = 7
          BAD_DATA_FORMAT         = 8
          HEADER_NOT_ALLOWED      = 9
          SEPARATOR_NOT_ALLOWED   = 10
          HEADER_TOO_LONG         = 11
          UNKNOWN_DP_ERROR        = 12
          ACCESS_DENIED           = 13
          DP_OUT_OF_MEMORY        = 14
          DISK_FULL               = 15
          DP_TIMEOUT              = 16
          OTHERS                  = 17.
      if sy-subrc ne 0.
        write:/5 'Error with PC file'.
      endif.
      loop at in_rec.
        if in_rec(4) ca number.
          split in_rec at p_del into
            itab-tcode  itab-tcodet
            itab-saknr
            itab-waers1 itab-waers2
            itab-amt1   itab-amt2
            itab-gl itab-kostl
            itab-prctr itab-obukrs
            itab-otcode itab-otcodet.
          if itab-amt1 = '0.00' or itab-amt1 = space.      "skip this line
            continue.
          endif.
          move-corresponding itab to fitab.
          append fitab.
          clear: itab, fitab.
         append itab.
        endif.
      endloop.

  • Javafx deployment in html page(please help me urgent)

    i used the following method to deploy javafx in an html page.
    javafx file is:
    package hello;
    import javafx.scene.*;
    import javafx.stage.Stage;
    import javafx.scene.text.Text;
    import javafx.scene.text.Font;
    import javafx.scene.paint.Color;
    import javafx.scene.effect.DropShadow;
    Stage {
        title: "My Applet"
        width: 250
        height: 80
        scene: Scene {
            content: Text {
                x: 10  y: 30
                font: Font {
                     size: 24 }
                fill: Color.BLUE
                effect: DropShadow{ offsetX: 3 offsetY: 3}
                content: "VAARTA"
    I save the file as HelloApplet in a 'hello' named folder in my D:
    after that i downloaded from internet html code as
    <html>
        <head>
            <title>Wiki</title>
        </head>
        <body>
            <h1>Wiki</h1>
            <script src="dtfx.js"></script>
            <script>
                javafx(
                    archive: "HelloApplet.jar",
                    draggable: true,
                    width: 150,
                    height: 100,
                    code: "hello.HelloApplet",
                    name: "Wiki"
            </script>
        </body>
    </html>now i typed in DOS prompt as javafxc.exe HelloApplet.fx & i got the class files .
    _The main problem which is coming is how to create HelloApplet.jar file which is used in the html page without which the html page is not displaying the javafx script. Please help me urgently i am in the middle of my project & stuck up due to JAVAFX                   i am using WIndowsXP & javafx-sdk1.0 when i am typing jar command inside hello package it is displaying invalid command.in DOS prompt. If there is any other method to deploy javafx in html page then specify it also.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    Crossposted: [http://forums.sun.com/thread.jspa?threadID=5323288].
    Please don't crosspost without notifying others. It is rude in terms of netiquette. Stick to one topic.

  • Migration to an asm instance. plz help me urgent

    RMAN> BACKUP AS COPY DATABASE FORMAT '+DGROUP1';
    Starting backup at 20-AUG-07
    Starting implicit crosscheck backup at 20-AUG-07
    using target database controlfile instead of recovery catalog
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: sid=328 devtype=DISK
    ORA-19501: read error on file "+DGROUP1/sravan/backupset/2007_08_03/nnsnf0_ora_asm_migration_0.260.1", blockno 1 (blocksize=512)
    ORA-17507: I/O request size is not a multiple of logical block size
    Crosschecked 7 objects
    Finished implicit crosscheck backup at 20-AUG-07
    Starting implicit crosscheck copy at 20-AUG-07
    using channel ORA_DISK_1
    ORA-19587: error occurred reading 8192 bytes at block number 1
    ORA-17507: I/O request size 8192 is not a multiple of logical block size
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of backup command at 08/20/2007 16:53:21
    ORA-19587: error occurred reading 8192 bytes at block number 1
    ORA-17507: I/O request size 8192 is not a multiple of logical block size

    > plz help me urgent
    Adjective
        * S: (adj) pressing, urgent (compelling immediate action) "too pressing to permit of longer delay";So you are saying that your problem is a lot more important than any other person's problem on this forum?
    And you're demanding a quick response from professionals that give you and others assistance here in their free time without getting a single cent compensation?
    Don't you think that this "it is urgent!" statement severely lacks manners?

  • URGENT BIG PROBLEM:during import track st. in queue simply does not disap

    I have problem when importing transport request on production(the transport domain controler is on development system) . The track status in queue simply does not disappear.
    I tried(based on what I have seen on an other thread) to delete the transport in import monitor and tp on OS level on productive and development system
    Then I deleted entries in TRBAT&TRJOB tables. The TPSTAT is empty.
    The problem persists.
    What would you suggest . The go live depends on this problem

    Hi,
    /usr/sap/trans/buffer might still contain entries, be careful do not modify anything here.
    Check the link
    http://help.sap.com/saphelp_47x200/helpdata/en/3d/ad5b5a4ebc11d182bf0000e829fbfe/frameset.htm
    Check the 'Cleaning up the transport directory' and 'Synchronizing the Buffers' links within the above link.
    Please do not use subjects like : URGENT BIG PROBLEM.. it is against the rules of this forum.
    Regards,
    Siddhesh

Maybe you are looking for

  • File associations in Vista?

    I've recently installed CS4, with Acrobat, and it seems to have messed up my file associations in Vista. Although I can open PDF files on my Desktop, I can't open them directly in emails without saving them first. Ideally I want to go back to the sys

  • All filters are disabled

    Hi I'm a basic Director user, I've been using Director MX at school to develop a major project, so I know my way well around the basics. At home, I've updated to Director 11.5, and updated my Director file along with it so I could use it in 11.5, sin

  • Problems with Var. Bucket Consumpt. field in PPMs

    Hi experts, I'm trying to manually create a PPM (Production Process Model) into APO (to use it with SNP), however, the value entered in the Bucket Consumption (Variable) field disappears when I active the PPM. Someone could tell me what I am doing wr

  • Help!Can someone tell me the detail about Event Dispatch thread!

    I want to know the whole process about swing event,for example,the detail about event dispatch thread,the relation about event dispatch thread with event queue,and how the JVM painting the screen etc. Thanks!

  • Can i delete certain songs from 1pod nano

    can i delete certain songs from my ipod nano?