Help needed in HTTP Tunneling - urgent

Hi all,
I urgently need a working code sample of a client which sends requests to a server that redirects the request to an RMI server via RMI servlet.
Does any of you familiar of such a code sample?
Thanks

I'm sorry, but HTTP Tunneling is not working for me. I must have done something wrong.
Let me describe my configuration:
I have a server behind NAT router which connected to apache2 and tomcat 4.1 web servers. The apache2 and tomcat are not connected between them.
I deployed war file on tomcat which contains the servlet for the HTTP Tunneling which its code is:
public class RmiHttpTunnelerServlet extends HttpServlet
    public void init(ServletConfig config) throws ServletException
        super.init(config);
        System.out.println("Simplified RMI Servlet Handler loaded successfully.");
    public void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException
        try
            String queryString = req.getQueryString();
            String command, param;
            int delim = queryString.indexOf("=");
            if (delim == -1)
                command = queryString;
                param = "";
            else
                command = queryString.substring(0, delim);
                param = queryString.substring(delim + 1);
            if (command.equalsIgnoreCase("forward"))
                try
                    ServletForwardCommand.execute(req, res, param);
                catch (ServletClientException e)
                    returnClientError(res, "client error : " + e.getMessage( ));
                    e.printStackTrace();
                catch (ServletServerException e)
                    returnServerError(res, "internal server error : " + e.getMessage());
                    e.printStackTrace();
            else
                returnClientError(res, "invalid command: " + command);
        catch (Exception e)
            returnServerError(res, "internal error: " + e.getMessage());
            e.printStackTrace();
    public void doGet(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException
        returnClientError(res, "GET Operation not supported: Can only forward POST requests.");
    public void doPut(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException
        returnClientError(res, "PUT Operation not supported: Can only forward POST requests.");
    public String getServletInfo()
        return "Simplified RMI Call Forwarding Servlet Servlet.<br>\n ";
    private static void returnClientError(HttpServletResponse res, String message) throws IOException
        res.sendError(HttpServletResponse.SC_BAD_REQUEST,
                      "<HTML><HEAD><TITLE>Java RMI Client Error < / TITLE > < / HEAD > < BODY > " +
                      "<H1>Java RMI Client Error</H1>" + message + "</BODY></HTML>");
        System.err.println(HttpServletResponse.SC_BAD_REQUEST + "Java RMI Client Error" + message);
    private static void returnServerError(HttpServletResponse res,
                                          String message) throws IOException
        res.sendError(HttpServletResponse.SC_INTERNAL_SERVER_ERROR,
                      "<HTML><HEAD>< TITLE > Java RMI Server Error < / TITLE > < / HEAD > < BODY > " +
                      "<H1>Java RMI Server Error < / H1 > " + message + " < / BODY > < / HTML > ");
        System.err.println(HttpServletResponse.SC_INTERNAL_SERVER_ERROR + "Java RMI Server Error : " + message);
    }There is also a utility class:
public class ServletForwardCommand {
    public static void execute(HttpServletRequest request, HttpServletResponse response, String stringifiedPort)
        throws ServletClientException, ServletServerException, IOException {
        int port = convertStringToPort(stringifiedPort);
        Socket connectionToLocalServer = null;
        try {
            connectionToLocalServer = connectToLocalServer(port);
            forwardRequest(request, connectionToLocalServer);
            forwardResponse(response, connectionToLocalServer);
        } finally {
            if (null != connectionToLocalServer) {
                connectionToLocalServer.close();
    private static int convertStringToPort(String stringfiedPort) throws ServletClientException {
        int returnValue;
        try {
            returnValue = Integer.parseInt(stringfiedPort);
        } catch (NumberFormatException e) {
            throw new ServletClientException("invalid port number: " + stringfiedPort);
        if (returnValue <= 0 || returnValue > 0xFFFF) {
            throw new ServletClientException("invalid port: " + returnValue);
        if (returnValue < 1024) {
            throw new ServletClientException("permission denied for port: " + returnValue);
        return returnValue;
    private static Socket connectToLocalServer(int port) throws ServletServerException {
        Socket returnValue;
        try {
            returnValue = new Socket(InetAddress.getLocalHost(), port);
        } catch (IOException e) {
            throw new ServletServerException("could not connect to " + "local port");
        return returnValue;
    private static void forwardRequest(HttpServletRequest request, Socket connectionToLocalServer)
        throws IOException, ServletClientException, ServletServerException {
        byte buffer[];
        DataInputStream clientIn = new DataInputStream(request.getInputStream());
        buffer = new byte[request.getContentLength()];
        try {
            clientIn.readFully(buffer);
        } catch (EOFException e) {
            throw new ServletClientException("unexpected EOF " + "reading request body");
        } catch (IOException e) {
            throw new ServletClientException("error reading request" + " body");
        DataOutputStream socketOut = null;
        // send to local server in HTTP
        try {
            socketOut = new DataOutputStream(connectionToLocalServer.getOutputStream());
            socketOut.writeBytes("POST / HTTP/1.0\r\n");
            socketOut.writeBytes("Content-length: " + request.getContentLength() + "\r\n\r\n");
            socketOut.write(buffer);
            socketOut.flush();
        } catch (IOException e) {
            throw new ServletServerException("error writing to server");
    private static void forwardResponse(HttpServletResponse response, Socket connectionToLocalServer)
        throws IOException, ServletClientException, ServletServerException {
        byte[] buffer;
        DataInputStream socketIn;
        try {
            socketIn = new DataInputStream(connectionToLocalServer.getInputStream());
        } catch (IOException e) {
            throw new ServletServerException("error reading from " + "server");
        String key = "Content-length:".toLowerCase();
        boolean contentLengthFound = false;
        String line;
        int responseContentLength = -1;
        do {
            try {
                line = socketIn.readLine();
            } catch (IOException e) {
                throw new ServletServerException("error reading from server");
            if (line == null) {
                throw new ServletServerException("unexpected EOF reading server response");
            if (line.toLowerCase().startsWith(key)) {
                responseContentLength = Integer.parseInt(line.substring(key.length()).trim());
                contentLengthFound = true;
        while ((line.length() != 0) &&
            (line.charAt(0) != '\r') && (line.charAt(0) != '\n'));
        if (!contentLengthFound || responseContentLength < 0)
            throw new ServletServerException("missing or invalid content length in server response");
        buffer = new byte[responseContentLength];
        try {
            socketIn.readFully(buffer);
        } catch (EOFException e) {
            throw new ServletServerException("unexpected EOF reading server response");
        } catch (IOException e) {
            throw new ServletServerException("error reading from server");
        response.setStatus(HttpServletResponse.SC_OK);
        response.setContentType("application/octet-stream");
        response.setContentLength(buffer.length);
        try {
            OutputStream out = response.getOutputStream();
            out.write(buffer);
            out.flush();
        } catch (IOException e) {
            throw new ServletServerException("error writing response");
}I checked also with packets monitoring tool, I couldn't see any http transportation.
Any help will be appreciated.

Similar Messages

  • Help needed in importing application -  Urgent

    Hi,
    I am new fairly new to apex and would be grateful for any help....
    I have an application that i would like to import and install... but i am obtaining an error...
    Situation is as follows:
    Application in machine A with oracle 10g standard and apex 3.0. Workspace is portal, schema is status_portal...
    export is working fine.
    Need to import it to machine B with oracle 10g and apex 3.0 Workspace is
    online_portal, schema is portal
    Import also works fine...
    But when i try to install the imported application, i get following error:
    ORA-20001: GET_BLOCK Error. ORA-20001: Execution of the statement was unsuccessful. ORA-02291: integrity constraint (FLOWS_030000.WWV_FLOWS_FK) violated - parent key not found <pre>begin wwv_flow_api.create_flow( p_id =&gt;134, p_display_id=&gt;134, p_owner =&gt; 'STATUS_PORTAL', p_name =&gt; 'Status Portal', p_alias =&gt; 'F114', p_page_view_logging =&gt; 'YES', p_default_page_template=&gt; 3865804637029456 + wwv_flow_api.g_id_offset, p_printer_fri
    Please guide me as to what to do....
    History:
    I have tried exporting from machine A to apex online workspace and installing there.... and vice versa...It is working fine...
    the problem arises only when i try import & install on machine B....
    Please help me.... i need to do this urgently
    Thanks,
    Sumana

    Hi Scott,
    I will not be able to show the actual application, as it has our customer's information. But i have created a sample application and done the export and import. The details are as follows:
    Machine A Details:
    Workspace name = portal
    worskspace ID = 3727029916111535
    schema = status_portal
    Exported Application Name = Status Portal
    Exported Application ID = 117
    When importing application from machine A to online workspace:
    Online Workspace Details: (when importing application 117)
    Workspace Name = sumana
    Workspace iD = 3033192431425185475
    schema = sumanadb
    Imported Application Name = Status Portal
    Imported Application IS = 42146
    You can access the workspace using: http://apex.oracle.com/pls/otn/f?p=4550:1:
    the password is sumi123
    When importing application from machine A:
    Machine B Details:
    1 ) Workspace1 Name = auditws
    workspace ID = 7048503433678645
    schema = audit_schema
    When installing imported application no 117 I get:
    ORA-20001: GET_BLOCK Error. ORA-20001: Execution of the statement was unsuccessful.
    ORA-02291: integrity constraint (FLOWS_030000.WWV_FLOWS_FK) violated - parent key not
    found <pre>begin wwv_flow_api.create_flow( p_id =>129, p_display_id=>129, p_owner =>
    'STATUS_PORTAL', p_name => 'Status Portal', p_alias => 'F114117', p_page_view_logging =>
    'YES', p_default_page_template=> 10898936714426385 + wwv_flow_api.g_id_offset, p_printer
    Error installing application.
    Return to application.
    2) Workspace2 name = online_portal
    workspace ID = 9302626026712423
    schema = portal
    When installing imported application no 117 I get:
    ORA-20001: GET_BLOCK Error. ORA-20001: Execution of the statement was unsuccessful.
    ORA-02291: integrity constraint (FLOWS_030000.WWV_FLOWS_FK) violated - parent key not found
    <pre>begin wwv_flow_api.create_flow( p_id =>159, p_display_id=>159, p_owner => 'STATUS_PORTAL',
    p_name => 'Status Portal', p_alias => 'F114117', p_page_view_logging => 'YES',
    p_default_page_template=> 10898936714426385 + wwv_flow_api.g_id_offset, p_printer
    Error installing application.
    Return to application.
    3) When importing application no 130 from machine B to machine B
    (from workspace auditws and schema audit_schema to workspace online_portal and schema portal)
    I get the error as said before
    "Access Denied by application security check" Also, i observed that,
    the application gets installed in auditws and audit_schema itself...
    Screenshots are here:
    4) when importing application no 130 from auditws back to auditws, it works fine.

  • Help needed in HTTP to JDBC synchronous

    Hi,
    I am doing a interface which involves the HTTP and Database (JDBC), i need to send some two fields as request and based on the certain condition of these two fields i need to get some 4 fields as response.
    Can any one please help me out in this regard so that i can atleast frame an idea and start doing the interface?
    Thanks,
    PSV.

    Hi PSV,
    BPM Not Required.., just go through the blog and see how you can use JDBC Receiver adapter for Synchronous select...
    Information provided in the blog is sufficient to solve your problem.
    Regards,

  • Little help needed regarding http and https

    Hi,
    I maintain a website for my organization. Recently, for a login page, I started using HTTPS. It works fine with HTTPS.
    The problem I face is : When a user goes to login page, he sees the login page via HTTPS. Now, if user doesn't submit the login form but chooses to browse some other link on the same page, that page will still be shown using HTTPS because links are relative. This increases unnecessary HTTPS traffic on the server.
    I need a solution that can help me to change protocol back to HTTP if the user doesn't submit login form. I have written small piece of java script that can check at the time of leaving the page. If submit button wasn't pressed, it should change the protocol back to HTTP. I have played around window.location object trying to change it's href property. But, no luck yet. Please help me.
    window.onunload = function()
    // if submit button wasn't pressed, change the protocol back to HTTP          
              if (!submitPressed)
                        window.location.protocol="http:";
                        alert(windows.location.href);
                     window.location.port = "80";
            }Please let me know if you know about some simple solution.
    Edited by: Di_Ke on Nov 13, 2007 2:12 PM
    Edited by: Di_Ke on Nov 13, 2007 2:14 PM

    Just to clarify, before anyone can answer: Do you have access to the web server settings, and are you looking for a server side solution for this problem? If the answer to any of those two question is no, and you are just looking for a javascript help, this forums is not the best source for answers.

  • Help needed in selection screen - Urgent

    Hi Experts,
    I have a selection screen. I have three radi buttons in that selection screen. Based on the selection of the radio buttons I need to activate corresponding selection screen parameters.
    e.g : if radiobutton1 is selected, njo activation needed,
           if radiobutton2 is selected, activate selection screen parameter p_one,
           if radiobutton3 is selected, activate selection screen parameter p_two.
    All three radiobuttons are attached to the same radio button group.
    I have assigned the parameters p_one, p_two, p_three to MODIF ID as follows.
    p_one - NULL
    p_two - t01
    p_three - t02.
    on the selection of a radio button I want the corresponding parameter to get activated.
    please help me.
    Regards,
    Arul jothi A.

    hi
    jothi
    AT SELECTION-SCREEN OUTPUT.                                      
      CASE SY-TCODE.                                                 
        WHEN 'ZEDI6'.                                                
          LOOP AT SCREEN.                                             
            CASE SCREEN-GROUP4.                                      
              WHEN '001'.                  "Sales order select       
                SCREEN-ACTIVE = '1'.       "1=Active, 0=Don't display
                MODIFY SCREEN.                                       
              WHEN '002'.                  "Delivery select          
                SCREEN-ACTIVE = '0'.       "1=Active, 0=Don't display
                MODIFY SCREEN.                                        
              WHEN '003'.                  "Invoice select           
                SCREEN-ACTIVE = '0'.       "1=Active, 0=Don't display
                MODIFY SCREEN.                                       
              WHEN '004'.                  "PO Select                
                SCREEN-ACTIVE = '0'.       "1=Active, 0=Don't display
                MODIFY SCREEN.                                       
    regards
    praveen

  • Help needed in swing!urgently!

    Hi im new to java envirnoment.Im working on a project,i need to design a tutorial page.
    How do i write a program for asking user to input values for a matrix form? how to i design the page for this?
    How do i invoke a Japplet?Is it the same procedure as a awt applet?For awt applet,a html file is written inorder to invoke the program. so how about Japplets or more generally for swing components?
    Is there any reference for new users in the designing of user interface components.I need to bulid a simple one,with buttons,scroll.
    Anyone knows how to plot line graphs??

    Have a loo at the Java Tutorial:
    http://java.sun.com/docs/books/tutorial/
    and the Book "Java Look and Feel Design Guidelines":
    http://java.sun.com/products/jlf/ed2/book/index.html
    -Puce

  • Help needed!!! Urgent!!! Josepheus problem ...

    I need help to solve this problem. I am able to show the winner of this game and I can show the players who are eliminated each round. However, I cannot write the program that just solve a single round instead of the whole game. I need to write a program that, until the game is over, the program should print the state of the game after each round. Once the game is over, the program should indicate which player was the winner.
    Background information:
    The Josepheus problem is a game in which N people are sitting in a circle. A person is designated to be the starter and is given a hot potato. The potato is then passed around the circle; after a designated number of passes (let's call this the pValue), the person holding the potato is eliminated. Thus, the circle now consists of one fewer people. The game then continues with the person who is sitting immediately after the eliminated player picking up the potato. The last remaining player wins.
    For example, consider a game with 6 players and pValue = 3.
    Round 1:
    Player 0 starts with the potato (note: being good Computer Scientist, we'll start counting at 0). The potato is then passed to Player 1, then to Player 2, and then to Player 3. Player 3 is left with the potato, and is thus is eliminated. The circle now consists of Players 0, 1, 2, 4, and 5. The potato is given to Player 4.
    Round 2:
    Player 4 starts with the potato. The potato is then passed to Player 5, then to Player 0, and then to Player 1. Player 1 is left with the potato, and is thus eliminated. The circle now consists of Players 0, 2, 4, and 5. The potato is given to Player 4.
    and so on ...
    Would somebody please help me!!!

    Try this:
    // JosepheusPlayer.java
    public class JosepheusPlayer
        public int num; //player number
        public JosepheusPlayer next;
         * Creates a player with a number.
         * @param num The number of the player.
        public JosepheusPlayer(int num)
            this.num = num;
    // JosepheusGame.java
    import java.util.*;
    public class JosepheusGame
        private int totalPlayer;
        private int pValue;
        private int startingPlayer;
         * Testing purpose.
        public static void main(String[] args)
        throws Exception
            (new JosepheusGame(6, 3, 2)).play();
         * Creates a game.
         * @param totalPlayer Total number of players.
         * @param pValue Number of passes.
         * @param startingPlayer Number of the starting player.
         * @throws Exception If totalPlayer <= 0 or pValue <= 0
         *                    or totalPlayer <= startingPlayer < 0
        public JosepheusGame(int totalPlayer, int pValue, int startingPlayer)
        throws Exception
            if (totalPlayer <= 0)
                throw new Exception("Value of totalPlayer should be more than 0");
            if (pValue <= 0)
                throw new Exception("Value of pValue should be more than 0");
            if ((startingPlayer < 0) || (startingPlayer > (totalPlayer - 1)))
                throw new Exception("Value of startingPlayer should be 0 or more but not more than (totalPlayer - 1)");
            this.totalPlayer = totalPlayer;
            this.pValue = pValue;
            this.startingPlayer = startingPlayer;
         * Plays the game of Josepheus problem.
        public void play()
            System.out.println();
            System.out.println("Start of the game.");
            System.out.println("Number of players = " + totalPlayer + ", P-value = " + pValue + ", Starting = " + startingPlayer);
            System.out.println();
            JosepheusPlayer current = new JosepheusPlayer(0);
            JosepheusPlayer first = current;
            JosepheusPlayer start = null;
            int cnt = 0;
            if (startingPlayer == 0)
                start = first;
            for (int i = 1; i < totalPlayer; i++)
                current.next = new JosepheusPlayer(i);
                current = current.next;
                if (startingPlayer == i)
                    start = current;
            current.next = first;
            current = start;
            int roundNumber = 1;
            while (current.next != current)
                current = playOneRound(current, roundNumber++);
            System.out.println("The winner is = " + current.num);
            System.out.println("End of the game.");
            System.out.println();
         * Plays one round of Josepheus problem.
         * @param start Starting player of the round.
         * @param roundNumber Round number of the game.
         * @return Next starting player after one round.
        public JosepheusPlayer playOneRound(JosepheusPlayer start, int roundNumber)
            System.out.println("Round #" + roundNumber);
            JosepheusPlayer current = start;
            JosepheusPlayer last = null;
            for (int i = 0; i < pValue; i++)
                System.out.println("    Player " + current.num + " has the potatoe");
                last = current;
                current = current.next;
            last.next = current.next;
            System.out.println("    Dead player is " + current.num);
            System.out.println();
            return current.next;
    }You can test it with:
    java JosepheusGameChange the values in the main method of JosepheusGame to do other tests.

  • Help needed about HTTP Request Headers

    HI All,
    Regarding HTTP RFC 1945 I have to use headers request-line and message is there any functionality in Servlets or JSP to access both them. I used &#8220;request.getHeaderNames()&#8221;, which return the headers &#8220;ACCEPT,ACCEPT-ENCODING ,ACCEPT-LANGUAGE ,CACHE-CONTROL ,CONNECTION ,CONTENT-LENGTH ,CONTENT-TYPE ,COOKIE ,HOST ,REFERER ,USER-AGENT&#8221; but not request-line and message.
    Kindly provide the help to access them.
    Regards,
    Kashif Bashir
    AdamSoft Intl
    Lahore, Pakistan

    I had a look at RFC 1945. It gives an example of what it calls a Request-Line:GET http://www.w3.org/pub/WWW/TheProject.html HTTP/1.0But as far as I can see it doesn't describe this anywhere as being a header. So it doesn't surprise me that getHeaderNames() doesn't return it.
    I'm also surprised you're even trying to access this low-level information with a high-level tool like a servlet. You could probably reconstruct it with various servlet methods, though. You know the method (e.g. "GET") and you can find out the URL from various methods of the HttpServletRequest.

  • Help needed for HSC project, urgent.

    Hi,
    I am having further troubles. In my storybook on the first page all the buttons are appearing, I do not want this. How do I code to fix that, the only button I want on the first page is "page1_btn"
    will paste my coding into here, and could you please tell me what to do to fix this ?
    page2_btn.visible= false;
    p3_first_btn.visible= false;
    page1_btn.addEventListener(MouseEvent.CLICK,turnpage2);
    function turnpage2 (evt:MouseEvent):void {
      screen_movie.gotoAndPlay ("page2");
      page1_btn.visible = false;
    page2_btn.visible= true; 
    page2_btn.addEventListener(MouseEvent.CLICK,turnpage3);
    function turnpage3 (evt:MouseEvent):void {
    screen_movie.gotoAndPlay ("page3");
    page2_btn.visible= false;
    p3_first_btn.visible= true;
    p3_first_btn.addEventListener(MouseEvent.CLICK,turnpage3a);
    function turnpage3a (evt:MouseEvent):void {
    screen_movie.gotoAndPlay ("page3a");
    p3_first_btn.visible= false;
    And, also the reason why I am setting the buttons to visible= true; at the start and visible= false; at the end is because I can only have one button for each page.
    Please help someone,
    Regards,
    Adam

    In your code you are:
    1. setting page2_btn and p3_first_btn to visible false, then you set an event listener and function for page1_btn.
    2. setting page2_btn to be visible true and setting an event listener and function for that button.
    3. setting p2_first_btn to be visible true and setting an event listener and function for that button.
    If all of this code is in the same frame, then you are turning all of the buttons' visible properties to true.
    If you only want one of those buttons to be visible at any one time then set the visible property for page2_btn to true at the end of the function turnpage2 and do the same for p2_first_btn.
    Something like this:
    page2_btn.visible= false;
    p3_first_btn.visible= false;
    page1_btn.addEventListener(MouseEvent.CLICK,turnpage2);
    function turnpage2 (evt:MouseEvent):void {
      screen_movie.gotoAndPlay ("page2");
      page1_btn.visible = false;
      page2_btn.visible= true; 
    page2_btn.addEventListener(MouseEvent.CLICK,turnpage3);
    function turnpage3 (evt:MouseEvent):void {
    screen_movie.gotoAndPlay ("page3");
    page2_btn.visible= false;
    p3_first_btn.visible= true;
    p3_first_btn.addEventListener(MouseEvent.CLICK,turnpage3a);
    function turnpage3a (evt:MouseEvent):void {
    screen_movie.gotoAndPlay ("page3a");
    p3_first_btn.visible= false;
    You may have to make more changes, I'm guessing at what is going on in your movie.

  • Help needed in SQL Loader-Urgent..!

    Hi All,
    I am having a staging table with 4 columns, I have to insert
    values in 3 of the columns from a CSV file using SQl Loader( The
    CSV file has only 3 columns in it) and a default value has to be
    inserted in to the 4th column.How can I attain this?? Can I have
    this default
    value logic written in the Control file used for the data insert? If
    yes, Please tell me how..
    Thanks,
    Vidya

    did you refer the doc before posting this question?
    http://download.oracle.com/docs/cd/B10501_01/server.920/a96652/toc.htm

  • Help needed exporting PDF! urgent!

    Hello, I`ve been working on a catalog for the past 2 months, and now its done. But when I export it to PDF only one side(right) has pages numbered and head and foot info. What am I donig here? When the documet is still in indesign everything is normal and there. I has to be someking of master problem, but all the masters applied to pages look fine. Please help, as the thing is supposed to go into print today.

    Do you have pages with different master pages throughout the document, for example does your pages panel look like this
    |A
    A|A
    A|B
    B|B
    B|B
    B|C
    C|C
    C|D
    Where A master page is paired with B, starting a new section, B is paired with C (starting section) etc.
    If you do, make sure that no object crosses the Spine even by .00001 mm, as this causes the Left Master items to disappear when A meets B and C meets D.
    that make sense?

  • Help needed on BEx Query Urgently

    Hello Gurus,
                  I have query, in which, when a user logs in, the user will see list of customers assigned to that particular user only, if they exist in cube. When I execute the report RSRT or ADHOC, it is displaying all the customers correctly, but not the values. But, when I go to 'Key Figure Definition' in RSRT for each customer, it is showing correct values, but displaying different value in the query.
    EX.
    Actual Values for the customers:
    customer1   100
    customer2     50
    customer3   125
    customer4   135
    customer5   150
    customer6   1000
    Result         1550
    But it is displaying like this, when I execute
    customer1   1000
    customer2   1000
    customer3   1000
    customer4   1000
    customer5   1000
    customer6   1000
    Result         1000
    I couldn't figureout this issue.
    Any help is appreciated with points.
    Thanks In Advance
    Regards,
    PNK

    I checked the report again. It is actually displaying like this..
    Actual Values for the customers:
    customer1 100
    customer2 50
    customer3 125
    customer4 135
    customer5 150
    customer6 1000
    Result       1550
    But it is displaying like this, when I execute
    customer1 1550
    customer2 1550
    customer3 1550
    customer4 1550
    customer5 1550
    customer6 1550
    Result      1550
    Result is some how over writting the values for single values.
    Regards,
    PNK
    Edited by: pnk on Apr 23, 2008 9:27 PM

  • Help needed for compiling error  URGENT

    Hello,
    I have been looking at this compilation error for a while and I cannot figure it out.
    I am compiling with this command:
    javac -classpath classes -sourcepath src -d classes src\pshah3\library\gui\GraphicalGui.java
    The error is:
    C:\java\hw5>javac -classpath classes -sourcepath src -d classes src\pshah3\library\gui\GraphicalGui.java
    src\pshah3\library\gui\GraphicalGui.java:32: error while writing <anonymous pshah3.library.gui.GraphicalGui$1>:classes\pshah\library\gui\GraphicalGui$1.class
    (The system cannot find the path specified)
    public void actionPerformed(ActionEvent e) { System.exit
    (0); }
    Why is it telling me that it cannot find the path, when it has to create the .class file itself?
    I would appreciate some insight into this problem?
    Thanks,
    Premal

    Thank you for you help, but i'am still a bit confused. The "pshah" was a typo, it should have been pshah3, so that's not the problem. Here's a more detailed explanation of what i'am trying.
    I am declaring the exitlister class in the following path:
    c:\java\hw5\src\pshah3\library\gui
    The file is fairly simple, it looks like this.
    package pshah3.library.gui;
    import java.awt.*;
    import java.awt.event.*;
    public class ExitListener extends WindowAdapter{
         public void windowClosing(WindowEvent event) {
              System.exit(0);
    The other file that i'am including is in the same location...it starts out like this.
    package pshah3.library.gui;
    import pshah3.library.*;
    import java.io.*;
    import java.util.*;
    import java.awt.*;
    import javax.swing.*;
    import java.awt.event.*;
    class GraphicalGui {
              public static void main (String[] args){     
              JFrame backGround = new JFrame("Tech Library");
              backGround.setSize(400,150);
              backGround.addWindowListener (new ExitListener());
              Container content = backGround.getContentPane();
    I am compiling from the c:\java\hw5 directory with the command
    javac -classpath classes -sourcepath src -d classes src\pshah3\library\gui\GraphicalGui.java
    I am doing this so all the classes go in a "classes" directory with the same heirarchy as the source.
    Do you think i'am doing something funky with the packages??
    Again the error is:
    src\pshah3\library\gui\GraphicalGui.java:39: error while writing <anonymous pshah3.library.gui.GraphicalGui$1>: classes\pshah3\library\gui\GraphicalGui$1.class
    (The system cannot find the path specified)
    public void actionPerformed(ActionEvent e) { System.exit
    (0); }
    THANKS A LOT!!!

  • Help needed about HTTPS and policy files !!

    Hi everyone,
    my Web Start application crashes with a SSLPeerUnverifiedException when I
    try to connect to the server with HTTPClient :
    // proxy settings
    HTTPConnection.setProxyServer(ipProxy, portProxy);
    // connection
    HTTPConnection con = new HTTPConnection("https", serverName, -1);
    // Post (then there is a SSLPeerUnverifiedException....)
    HTTPResponse rsp = con.Post("/myurl.jsp, toSend, ct_hdr);
    My application runs in a secure environnement configured by the javaws.policy :
    grant codeBase "file:${jnlpx.home}/javaws.jar" {
    permission java.security.AllPermission;
    and the ${user.home}.java.policy (shared by another application, an applet I think) :
    keystore "file:${user.home}/xxxxxxxxxxxxxxxxxxxxx.p7c";
    grant codebase "https://xxxxxxxxxxxxxxx/-" signedby "xxxxxxxxxx" {
    permission java.lang.RuntimePermission "usePolicy";
    permission java.lang.RuntimePermission "accessDeclaredMembers";
    permission java.lang.RuntimePermission "setIO";
    permission java.lang.RuntimePermission "modifyThread";
    permission java.lang.RuntimePermission "stopThread";
    permission java.lang.RuntimePermission "accessClassInPackage.sun.security.provider";
    permission java.lang.RuntimePermission "loadLibrary.*";
    permission java.security.SecurityPermission "insertProvider.SUN";
    permission java.security.SecurityPermission "insertProvider.JCRYPTO";
    permission java.security.SecurityPermission "insertProvider.JCRYPTO_PKCS11";
    permission java.security.SecurityPermission "putProviderProperty.JCRYPTO";
    permission java.security.SecurityPermission "putProviderProperty.JCRYPTO_PKCS11";
    permission java.security.SecurityPermission "removeProviderProperty.JCRYPTO";
    permission java.security.SecurityPermission "removeProvider.JCRYPTO";
    permission java.security.SecurityPermission "removeProvider.JCRYPTO_PKCS11";
    permission java.security.SecurityPermission "removeProvider.SUN";
    permission java.util.PropertyPermission "*", "read,write";
    permission java.io.FilePermission "<<ALL FILES>>", "write,read,delete";
    permission java.net.NetPermission "specifyStreamHandler";
    permission java.net.SocketPermission "localhost:1024-", "listen";
    permission java.net.SocketPermission "*", "connect,accept,listen,resolve";
    permission java.awt.AWTPermission "accessClipboard";
    permission java.lang.RuntimePermission "queuePrintJob";
    permission java.lang.reflect.ReflectPermission "suppressAccessChecks";
    permission java.awt.AWTPermission "showWindowWithoutWarningBanner";
    grant codebase "file:/myApplication/-" {
    permission java.security.AllPermission;
    In this file (.java.policy) when I replace "codebase "https://xxxxxxxxxxxxxxx/-""
    by "codebase "http://xxxxxxxxxxxxxxx/-"" everything works fine !! It's very very
    very very strange...
    my application is launched by Web Start 1.2 and use JRE 1.4.1
    Any ideas ? Please, I become crazy...

    In this file (.java.policy) when I replace "codebase
    "https://xxxxxxxxxxxxxxx/-""
    by "codebase "http://xxxxxxxxxxxxxxx/-"" everything
    works fine !! I am not so sure that a code source cares for whether the resource is downloaded with s-http or normal http. Is the distinction important for the policy file?
    You could go digging in the RFC that describes what a URL is (because that is what the code source is).
    Also you could switch on a nice flag in you server environment that output information if security things go wrong: -Djava.security.debug=failure
    In the output you should see from where your code is loaded. If it says http and not https, then that is what should appear in your policy file.

  • Help needed for CORBA over Http through proxy server[Very Urgent]

    Hi Friendz,
    I am new to J2EE. Right now I am learning RMI, Corba now.
    In RMI, to pass through Http to bypass firewall or through proxy sever, we can use either Http to port or Http to CGI/Servlet i.e., Http tunneling.
    In the same, I am running a simple corba application, i want my corba application to pass through my proxy server using http which is configured to address 127.0.0.1 and port 8118.
    How to pass my corba application through proxy server. please help me and it is very urgent.
    Is it possible or not, please let me know some comments about this topic
    Thanks in advance Friends for your help

    This is so extremely urgent that it needs to be asked multiple times.
    http://forum.java.sun.com/thread.jspa?threadID=762950

Maybe you are looking for

  • Apple TV 5ghz not working after upgrade to 5201

    I've been using a 5ghz connection for a few months now with no problem. I've just upgraded to software version 5.1 (5201) and 5ghz no longer works - I just get a message saying no connectivity. 2.4ghz still works but is not ideal due to other competi

  • How can I control the direction of  Panel Page  menuTabs (menu1) ?

    Hi all, in ADF FACES - JDeveloper 10.1.3 how can I control the direction of Panel Page menuTabs (menu1) either from left to right or right to left ? regards,

  • Regarding to sending workitem in PO.

    Hi Friends.. Iam creating one workflow for Purchase order referring standard workflow 20000075.Whenever iam create a PO it automatically trigger that workflow and send an workitem to approver for to release PO.Everything is fine but i need to display

  • How to get the selection version id

    Friends, When we run the standard transaction in background ,selection version id generated...is it any Function Module to get that id...... Thanks & regards Shankar

  • I can't copy and paste. Try to follow instructions to fix, but get stuck.

    How do I fix this? I tried to follow the instructions, but when I get to the part of copying the lines of text they give me, I , of course, can't. Help please. Unprivileged scripts cannot access Cut/Copy/Paste programatically for security reasons. Cl