Unsightly void in header when using AUTO_RESIZE_OFF

I find that JTable's AUTO_RESIZE_OFF works nicely because it allows you exact control over the preferred sizes of your columns with no funny business.
There is one problem though- the header needs a "plug" to fill the void when the columns take up less room than the width of the table. Right now the header abrubtly stops at the last column, and there is a non-standard, non-native void between the end of the column and the vertical scrollbar.
Check out Windows Explorer's details view for how this should work. They have a "faux" column at the end that absorbs all the excess space. How do I do this in Java? Really, the L&F should take care of this, but since it doesn't...
I think that AUTO_RESIZE_OFF style tables will become more the norm. Why? Because widescreen monitors are now common place and you might have an auto-sizing table with 3 small columns that looked okay on a traditional resolution, but when you go widescreen, the table expands far too much to be asthetically desirable. The columns don't need all that real estate.

That's because the failover token (DefaultToken) is being used.  Alternative way would be to generate a logon token, then log off the session that created it:
ceSession = ceSessionMgr.Logon(username, password, cmsname, authtype)
Dim MyIdentityCookie As New HttpCookie("IdentityCookie", ceSession.LogonTokenMgr.CreateLogonTokenEx("", 10, 10))
MyIdentityCookie.Path = "/"
Response.Cookies.Add(MyIdentityCookie)
ceSession.Logoff()
Response.Redirect("http://" & hostname & "/businessobjects/enterprise115/InfoView/logon.aspx")

Similar Messages

  • Display Long field Description in 2 lines in Header when using REUSE_ALV_HI

    Hi,
      I am using REUSE_ALV_HIERSEQ_LIST_DISPLAY .
    I need to have 2 lines in the header to display  long field descriptions like
    Ex   Shipment Notification Idoc or Billing Document Cancel  should appear as
    Shipment Notification       Billing Document
    Idoc                                        Cancel
    Is there a way of doing this when calling the above ALV function?
    Thanks
    Prashant

    Hi Prashanta ,
    We can give headers in ALV using short/medium/long text.
    And this comes in one line. You can use short/medium text, if possible.
    Hence , having 2 lines in the header to display long field descriptions is not possible.
    Hope this helps you.

  • Error in soap header when use webservice consumer proxy

    Hi all,
    I create a webservice consumer proxy to external server. the webservice provider is .Net  and it required a message level security.
    The soap message should include a soap header, like this:
    <SOAP-ENV:Header>
    <m:AuthHeader xmlns:m="http://tempuri.org/">
    <m:Username>test1</m:Username>
    <m:Password>test</m:Password>
    </m:AuthHeader>
    </SOAP-ENV:Header>
    I have found many information from here. Now I used  IF_WSPROTOCOL_WS_HEADER in my program, like this:
    REPORT  zws_jp_test01.
    DATA: lo_zws_jp_co_service_soap TYPE REF TO zws_jp_co_service_soap .
    DATA: lo_fault TYPE REF TO cx_ai_system_fault.
    DATA: lo_appl_fault TYPE REF TO cx_ai_application_fault.
    TRY.
        CREATE OBJECT lo_zws_jp_co_service_soap
          EXPORTING
            logical_port_name = 'ZWS_JP_LP4'.
      CATCH cx_ai_system_fault INTO lo_fault.
        MESSAGE lo_fault TYPE 'I'.
    ENDTRY.
    DATA: output TYPE zws_jp_create_job_ad_soap_out .
    DATA: input TYPE zws_jp_create_job_ad_soap_in .
    DATA: lr_ws_header TYPE REF TO if_wsprotocol_ws_header.
    DATA: lv_name TYPE string,
          lv_namespace TYPE string.
    DATA l_xstring TYPE xstring.
    DATA l_string TYPE string.
    DATA: ixml TYPE REF TO if_ixml,
         xml_document TYPE REF TO if_ixml_document,
         xml_root TYPE REF TO if_ixml_element,
         xml_element TYPE REF TO if_ixml_element,
         xml_node TYPE REF TO if_ixml_node.
    lr_ws_header ?= lo_zws_jp_co_service_soap->get_protocol(
                                               if_wsprotocol=>ws_header ).
    CONCATENATE
      '<SOAP-ENV:Header>'
        '<m:AuthHeader xmlns:m="http://tempuri.org/">'
          '<m:Username>test1</m:Username>'
          '<m:Password>test</m:Password>'
        '</m:AuthHeader>'
      '</SOAP-ENV:Header>'
    INTO l_string.
    l_xstring = cl_proxy_service=>cstring2xstring( l_string ).
    CALL FUNCTION 'SDIXML_XML_TO_DOM'
      EXPORTING
        xml           = l_xstring
      IMPORTING
        document      = xml_document
      EXCEPTIONS
        invalid_input = 1
        OTHERS        = 2.
    IF sy-subrc = 0 AND NOT xml_document IS INITIAL.
      xml_root = xml_document->get_root_element( ).
      xml_element ?= xml_root->get_first_child( ).
      WHILE NOT xml_element IS INITIAL.
        lv_name = xml_element->get_name( ).
        lv_namespace = xml_element->get_namespace_uri( ).
        lr_ws_header->set_request_header(
            name            = lv_name
            namespace       = lv_namespace
            dom             = xml_element
            must_understand = SPACE
        xml_element ?= xml_element->get_next( ).
      ENDWHILE.
    ENDIF.
    input-job_ad-id = 0.
    input-job_ad_text-id = 0.
    input-job_ad-publish_location = 1.
    TRY.
        CALL METHOD lo_zws_jp_co_service_soap->create_job_ad
          EXPORTING
            input  = input
          IMPORTING
            output = output.
      CATCH cx_ai_system_fault INTO lo_fault .
        MESSAGE lo_fault TYPE 'I'.
      CATCH cx_ai_application_fault INTO lo_appl_fault.
        MESSAGE lo_appl_fault TYPE 'I'.
        WRITE: output-create_job_ad_result-id.
    ENDTRY.
    But there is error when I run this program. the error is "SoapFaultCode:1"
    In tcode ST11, I see this log:
    E SOAP_RUNTIME 20100624004837.9280000 : CL_SOAP_RUNTIME_CLIENT
    ->EXEC_PROCESSING SOAP Fault Exception caught: : SOAP header To
    was not understood.
    btw the release is  701.
    Any one can navigate me to solved the problem?

    Hi,
      I have the same problem as you did before and I posted my code in this [thread|Change SOAP Header: Consuming Webservice;.
      In order to to solve your problem, I need to know what is the header that you want to add into the header, what is WSDL, and have you try testing that web service using other tool such as SOAPUI or XMLSPY and what is the result of testing tool?
    Regards,
    Chaiphon

  • Need to avoid header When using GUI_DOWNLOAD with file type "DBF"

    Hi ,
    I am downloading internal table to excel on the desktop using GUI_DOWNLOAD with file type "DBF".
    Internal table I use do not have any header.
    But I do see the header in the downloaded file.
    It displays 1 row as " F1  F2 F3..ETC" heading for each column.
    Is there any variable we need to set to suppress header.
    Thank you,
    Kumar

    Hello Dilip,
    I tried using GUI_DOWNLOAD with FILE TYPE as "DBF", and i see the problem as mentioned. My question to you is:
    1. Why do you need 'DBF' format?
    2. Is it required to save the file as '.CSV'? Can you not try to save in '.XLS' file?
    Plz revert back.
    BR,
    Suhas

  • How do I change the content-type in http header when using JAX-WS?

    I need to change Content-Type in http Header. I am using JAX-WS to invoke web service call. Can someone tell me how to do it? Thanks a lot!

    LabVIEW does so many wonderful things, but the inability to perform what should be a simple task, such as upgrade a RT chassis within a LV Project, bewilders me. This is going to cost me hours, I just know it...
    Is there anything on the Idea Exchange for this?? A quick search shows nothing, so maybe I'll add an entry.
    Thoric (CLA, CLED, CTD and LabVIEW Champion)

  • Need to remove header When using GUI_DOWNLOAD with file type "DBF"

    Hi ALL,
    I am using GUI_DOWNLOAD function module to downlaod data to csv file . I have taken FILE TYPE as "DBF" . After download , I have found data is downloaded along with a default header . Now how can I avoid Header while downloading.
    Please help me to solve this problem.
    thanks and regards,
    Dilip
    Edited by: dilip kumar on Jun 9, 2009 11:51 AM

    Hello Dilip,
    I tried using GUI_DOWNLOAD with FILE TYPE as "DBF", and i see the problem as mentioned. My question to you is:
    1. Why do you need 'DBF' format?
    2. Is it required to save the file as '.CSV'? Can you not try to save in '.XLS' file?
    Plz revert back.
    BR,
    Suhas

  • Wrap report column header when using heading type : Column Names

    The headers for my report is actual data from the database. In order to get it to work I'm using aliases on my columns that correspond to the header name that I want. However, I have been unable to get the headers to wrap. I have tried using <br> and chr(10) but it seems to be stripping them out since it's a column alias. Any ideas? Region source is listed below...r1.fc_desc is the column header that I need to have wrapped.
    declare
    v_sql varchar2(4000);
    v_sql2 varchar2(4000);
    cursor c1 is select distinct fc_code, fc_desc from
    [email protected] where FG_ID=v('G_FINANCIAL_GROUP') order by fc_desc;
    begin
    for r1 in c1 loop
    if v_sql is null then
    v_sql:='select to_char(trans_week_end_thur,''mm/dd/yyyy'') as "Week Ending",sum(decode(fc_code,'''||r1.fc_code||''',payments,0)) as "'||r1.fc_desc||'"';
    v_sql2:='select ''Average:'' as "WeekEnding", avg(sum(decode(fc_code,'''||r1.fc_code||''',payments,0))) as "'||r1.fc_desc||'"';
    else v_sql:=v_sql||' ,sum(decode(fc_code,'''||r1.fc_code||''',payments,0)) as "'||r1.fc_desc||'"';
    v_sql2:=v_sql2||' ,avg(sum(decode(fc_code,'''||r1.fc_code||''',payments,0))) as "'||r1.fc_desc||'"';
    end if;
    end loop;
    if v_sql is null then
    v_sql := 'select ''No records found for weekly analysis by insurance class for this financial group '' as " " from dual;';
    else
    v_sql:= v_sql||' from [email protected] where fg_id=:G_FINANCIAL_GROUP group by trans_week_end_thur';
    v_sql2:=v_sql2||' from [email protected] where fg_id=:G_FINANCIAL_GROUP group by trans_week_end_thur;';
    v_sql:=v_sql||' union '||v_sql2;
    end if;
    return v_sql;
    end;

    I've resorted to creating a separate function to return a colon-separated list of column names, in which you can include a br tag or whatever, until I get a chance to research this more thoroughly.
    I thought it would just be a case of asking APEX not to strip the HTML, but it's clearly not as simple as that.
    Regards,
    John.

  • Ok so when using safari search in header - it uses google.co.kr instead of .co.uk when javascript is turned on

    So when using safari and using the header to search - google comes up with .co.kr instead of .co.uk
    This only happens when javascript is turned on.

    Try checking your Google search settings.
    https://support.google.com/websearch/?hl=en&rd=2#topic=3036131

  • Annoying distortion-sound when using Org. N95 Head...

    Is it only me that has this distortion when using the original head-set?
    Button pressed: *spszzzz*
    I thought this was the 21-century and distortion was long gone? maybe Nokia reinveted it?

    so no one here can help me ?
    We can't see your laptop or read your mind. Which model do you have?
    There's a new BIOS which purports to fix sound problems for these.
    Satellite A500-ST5602, A500-ST56X4, A500-ST56EX, A500-ST6622, A500-ST5601, A500-ST56X3, A500-ST5605, A500-ST5606, A500-ST6621, A505-S6996, A505-S6995, A505-S6994, A505-S6992, A505-S6991, A505-S6990, A505-S6985, A505-S6982, A505-S6981, A505-S6980, A505-SP7930R, A505-SP7930C, A505-SP7930A, A505-SP7913R, A505-SP7913C, A505-SP7913A, A505-SP7914R, A505-SP7914C, A505-SP7914A, A505-SP6996R, A505-SP6996C, A505-SP6996A, A505-S6979, A505-S6976, A505-S6975, A505-S6971, A505-S6972, A505-S6970, A505-S6973, A505-S6969, A505-S6967, A505-S6966, A505-S6965, A505-S6960, A505-SP6986R, A505-SP6986C, A505-SP6986A, A505-SP6988C, A505-SP6988A, A505-S6997, A505-S6998, A505-S6999, A505-S6986, A505-S6993, A505-S6984, A505-S6983, A505-S6989, A505-SP6988R, A505-S69803,
     M500-ST5405, M500-ST54E2, M500-ST54E1, M500-ST5401, M500-ST6421, M500-ST54X1, M500-ST6422, M505-S4949, M505-S1401, M505-S4945, M505-S4947, M505-S4940, M505-S4982, M505-S4980, M505-S4985-T, M505-S4990-T, M505D-S4970RD, M505D-S4970RD, M505-S4972, M505-S4975, U500-ST5302, U500-ST6321, U500-ST6322, U500-ST5305, U505-S2925P, U505-S2925BN, U505-S2925W, U505-S2930, U505-S2935, U505-S2940, U505-SP2916A, U505-SP2916C, U505-SP2916R, U505-S2950PK, U505-S2950RD, U505-S2950WH, U505-S2960, U505-S2960PK, U505-S2960RD, U505-S2960WH, U505-S2961, U505-S2970, U505-S2965, U505-S2965RD, U505-S2965WH, U505-S2980-T, U505-S2975, U505-S2002, U505-SP3018M, U505-SP3018L, U505-S2950, U505-SP2990A, U505-SP2990R, U505-SP2990C
    Satellite Pro U500-EZ1321, U500-EZ1311
    -Jerry

  • Invalid Content-Type value on OC4J 10.1.3.4.0 when using JAX-WS

    Hi all,
    I'm developing web services using JAX-WS on top of OC4J 10.1.3.4.0. I followed the procedure to enable this in the developer guide with success. My web service is running fine but the headers of the HTTP response contains an invalid value for the Content-Type header
    The charset element has the value utf-8" (with the double quote included) which is interpreted as a wrong encoding by the client application.<br />
    Below is the HTTP request and response with the error. (I stripped the soap part for clarity)<br />
    <br />
    POST /mywebservice/ HTTP/1.1<br />
    Content-Type: text/xml;charset=UTF-8<br />
    SOAPAction: "http://soap.exemple.com/mywebservice"<br />
    User-Agent: Jakarta Commons-HttpClient/3.0.1<br />
    Host: behs0054:8888<br />
    Content-Length: 2174<br />
    <br />
    &lt;...&gt; soap message<br />
    <hr />
    HTTP/1.1 500 Internal Server Error<br />
    Date: Fri, 03 Oct 2008 13:10:43 GMT<br />
    Server: Oracle Containers for J2EE<br />
    Connection: Keep-Alive<br />
    Keep-Alive: timeout=15, max=100<br />
    Content-Type: text/xml;charset=<strong>utf-8"
    </strong>Transfer-Encoding: chunked
    &lt;...&gt; soap fault received
    <hr />
    Thanks a lot for your answers,
    Gauthier

    Does not only happen when using JAX-WS.
    the following servlet code is enough to reproduce the problem :
    protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
    response.setContentType("text/xml;charset=\"utf-8\"");
    It only occurs on 10.1.3.4.0 (works fine on 10.1.3.3.0 and 11.1.1.1.0 TP4)
    Regards

  • No "Remote-User" in HTTP header when HTTP request gets to WLS

    Hello Exprers,
    I have a customer, using 10.3.3 on Linux machine. Web server as Apache.
    He wants Remote-User in HTTP header, he used to get it when he used Tomcat. But when he transffered to Apache and 10.3.3, he is not getting the Remote-User in header, instead he is getting proxy-remote-user.
    He wants the Remote-user in HTTP header.
    Any clue, on why he is not getting it.

    Hi,
    We are facing error while doing openConnection
    When I tried with simple java file it worked as shown below
    import java.io.*;
    import javax.net.ssl.HttpsURLConnection;
    public class test
    public static void main(String[] args) throws Exception
    String httpsURL = "https://rcfe.aspac.citicorp.com:40054/servlet/Verify";
    URL myurl = new URL(httpsURL);
    HttpsURLConnection con = (HttpsURLConnection)myurl.openConnection();
    InputStream ins = con.getInputStream();
    InputStreamReader isr = new InputStreamReader(ins);
    BufferedReader in = new BufferedReader(isr);
    if (con!=null)
    System.out.println("con="+con);
    System.out.println(ins);
    Output*
    [rcrrgbg2@kauh0079:/rcrmap2/weblogic/bea/ORA_PFRD/forms/j2ee] java test
    con=com.ibm.net.ssl.www2.protocol.https.e:https://rcfe.aspac.citicorp.com:40054/servlet/Verify
    sun.net.www.protocol.http.HttpURLConnection$HttpInputStream@5f6c5f6c
    However when I tried with below program I am able to write upto Web CL URL but after that no log is written when it tries to do openConnection() for this line csConn=(HttpsURLConnection)new URL(webclURL).openConnection(); in the below code
    Some part of the code:_
    =======================================================================
    import java.io.*;
    import javax.servlet.http.*;
    import javax.servlet.*;
    import java.util.Hashtable;
    import java.io.File;
    import java.io.FileInputStream;
    import javax.servlet.ServletException;
    import javax.servlet.ServletOutputStream;
    import javax.servlet.http.HttpServlet;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    import javax.net.ssl.HttpsURLConnection;
    import java.net.URL;
    public class CRMSLogin extends HttpServlet
    private static final long serialVersionUID=-6294676216324813290L;
    public void doPost(HttpServletRequest request,HttpServletResponse response) throws ServletException,IOException
    String iniFile=request.getParameter("CRMS_INI_FILE_PATH");
    String sessionId=request.getParameter("SessionId");
    String applId=request.getParameter("apl_id");
    String userId=request.getParameter("userId");
    String clientIp=request.getRemoteAddr();
    Properties iniProp=this.getProperties(iniFile);
    String crmsAppServerContext=iniProp.getProperty("CRMS_APP_SERVER_CONTEXT");
    String appModule=iniProp.getProperty("CRMS_MODULE");
    String webclURL=iniProp.getProperty("WEBCL_URL");
    // HttpsURLConnection csConn=null;
    String crmsFormsTerm=null;
    crmsFormsTerm=getEntitlements(iniFile.trim(),sessionId,applId.trim(),clientIp.trim(),webclURL.trim());
    String baseContent=this.getBaseContent(iniProp);
    ServletOutputStream out=response.getOutputStream();
    baseContent=baseContent.replaceAll("<!APP_TITLE!>","Credit Risk Management System");
    baseContent=baseContent.replaceAll("<!APP_CONTEXT!>",crmsAppServerContext);
    baseContent=baseContent.replaceAll("<!APP_MODULE!>",appModule);
    baseContent=baseContent.replaceAll("<!APP_TRACE!>",crmsFormsTerm.replaceAll(" ", ""));
    baseContent=baseContent.replaceAll("<!USER_ID!>",userId);
    baseContent=baseContent.replaceAll("<!SESSION_ID!>",sessionId);
    baseContent=baseContent.replaceAll("<!APPL_ID!>",applId.trim());
    baseContent=baseContent.replaceAll("<!CLIENT_IP!>",clientIp.trim());
    baseContent=baseContent.replaceAll("<!INI_FILE!>",iniFile.trim());
    out.println(baseContent);
    out.flush();
    out.close();
    private synchronized Properties getProperties(String inifile)
    Properties iniProp=new Properties();
    FileInputStream iniFileStream=null;
    try
    iniFileStream=new FileInputStream(inifile);
    iniProp.load(iniFileStream);
    iniFileStream.close();
    catch(Exception e)
    finally
    try
    if(iniFileStream!=null)
    iniFileStream.close();
    catch(Exception e)
    return iniProp;
    public static synchronized String getEntitlements(String inifile,String sessionId,String applId,String clientIp,String webclURL)
         HttpsURLConnection csConn=null;
         OutputStreamWriter requestStream=null;
         BufferedReader responseStream=null;
         StringBuffer responseData=new StringBuffer();
         String csReturnString=null;
         //String webclURL=null;
         BufferedWriter traceLog=null;
         int csCount=6;
         Properties iniProp=new Properties();
         String traceFile=null;
         String entitlementData=null;
         try
         readIniProperties(inifile,iniProp);
         traceFile=getTraceFile(iniProp);
         traceLog=new BufferedWriter(new FileWriter(traceFile,true));
         if(traceFile!=null)
         traceLog.write("###########################");
         traceLog.write("P A R A M E T E R S");
         traceLog.write("###########################");
         traceLog.newLine();
         traceLog.write("INI_FILE:"+inifile);
         traceLog.newLine();
         traceLog.write("SESSION_ID:"+sessionId);
         traceLog.newLine();
         traceLog.write("APPL_ID:"+applId);
         traceLog.newLine();
         traceLog.write("CLIENT_IP:"+clientIp);
         traceLog.newLine();
         traceLog.write("count:"+csCount);
         traceLog.newLine();
         traceLog.write("###########################");
         traceLog.newLine();
         //webclURL=getWebclURL(traceLog,iniProp);
         if(webclURL!=null)
         traceLog.write("Web CL URL:"+webclURL);
              traceLog.newLine();
         csConn=(HttpsURLConnection)new URL(webclURL).openConnection();     
    traceLog.write("Open Connection - Completed!");
         traceLog.newLine();
         csConn.setRequestMethod("POST");
         csConn.setDoInput(true);
         csConn.setDoOutput(true);
         requestStream=new OutputStreamWriter(csConn.getOutputStream());
         traceLog.write("Open Request Stream - Completed!");
         traceLog.newLine();
         requestStream.write("SessionId="+sessionId+"&ClientIP="+clientIp+"&apl_id="+applId+"&count="+csCount);
         requestStream.flush();
         requestStream.close();
         traceLog.write("Write Params to Request Stream - Completed!");
         traceLog.newLine();
         responseStream=new BufferedReader(new InputStreamReader(csConn.getInputStream()));
         traceLog.write("Open Response Stream - Completed!");
         traceLog.newLine();
         while((csReturnString=responseStream.readLine())!=null)
         responseData.append(csReturnString);
         traceLog.write("Response Stream Reading - Completed!");
         traceLog.newLine();
         responseStream.close();
         csConn.disconnect();
         entitlementData=getEntitlementData(traceLog,responseData.toString(),iniProp);
         traceLog.write("responseData::"+responseData);
         traceLog.newLine();
         traceLog.newLine();
         traceLog.write("entitlementData::"+entitlementData);
         traceLog.newLine();
         traceLog.flush();
         traceLog.close();
         catch(Exception e)
         e.printStackTrace();
         finally
         try
         if(requestStream!=null)
         requestStream.close();
    =======================================================================
    output_
    ###########################P A R A M E T E R S###########################
    INI_FILE:/rcrmap1/rcrrgbg2/crms.ini
    SESSION_ID:%2526%253ASIGNED_TICKET%253D%2526PROVIDER_TICKET%253D002c6e4cH0tZy2Gj4JBCOiSL7uSlKisfsqgwP9KoRRn7e%252BY%253D%253AKRSERVER0006%252BA9A52AAE%252B4D1DC7AA%252B14400
    APPL_ID:RCRMKR
    CLIENT_IP:169.165.42.174
    count:6
    Web CL URL:https://rcfe.aspac.citicorp.com:40054/servlet/Verify
    Please help to guide us.
    Regards,
    Harish

  • Invalid SOAP action when using java ws WebService

    Hi all,
    this is a slightly more detailed error for a problem i posted recently. I am connecting to a web service that was generated from WSDL. It has two methods "HelloWorld" and "HelloSayFirstName". As defined in the WSDL, the methods use the SOAP action document style. I want to add a cookie to the http header, so after the port is created, I use the following to add the header to the requestContext:
              BindingProvider bindingProvider = (BindingProvider) servicePort;
              Map<String, Object> requestContext = bindingProvider.getRequestContext();
              List<String> cookies = new ArrayList<String>();
              cookies.add("mycookie=mytoken");
              HashMap<String, List<String>> httpHeaders = new HashMap<String, List<String>>();
              httpHeaders.put(HTTPConstants.HEADER_COOKIE, cookies);
              requestContext.put(MessageContext.HTTP_REQUEST_HEADERS, httpHeaders);
    This works when I call the first method (HelloWorld) - the first activity message sent to the server contains the following:
    <HttpRequest>
    <Method>POST</Method>
    <QueryString></QueryString>
    <WebHeaders>
    <Cache-Control>no-cache</Cache-Control>
    <Connection>keep-alive</Connection>
    <Pragma>no-cache</Pragma>
    <Transfer-Encoding>chunked</Transfer-Encoding>
    <Content-Type>text/xml; charset=UTF-8</Content-Type>
    <Accept>*</Accept>
    <Cookie>mycookie=mytoken</Cookie>
    <Host>exampleHost</Host>
    <User-Agent>Java/1.5.0_14</User-Agent>
    <SOAPAction>"http://tempuri.org/IMyService/HelloWorld"</SOAPAction>
    </WebHeaders>
    </HttpRequest>
    <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
    <s:Header xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
    <To s:mustUnderstand="1" xmlns="http://schemas.microsoft.com/ws/2005/05/addressing/none">http://exampleHost/WebServices/WCFService/Service.svc</To>
    <Action s:mustUnderstand="1" xmlns="http://schemas.microsoft.com/ws/2005/05/addressing/none">http://tempuri.org/IMyService/HelloWorld</Action>
    </s:Header>
    <soap:Body>
    <HelloWorld xmlns="http://tempuri.org/" xmlns:ns2="http://schemas.datacontract.org/2004/07/" xmlns:ns3="http://schemas.microsoft.com/2003/10/Serialization/">
    <myValue1>world</myValue1>
    </HelloWorld>
    </soap:Body>
    </soap:Envelope>
    However, after this method, the httpHeaders in the requestContext object have been updated to include the "Accept" header and the "SOAPAction" header - which is the incorrect action! Now, when I call the method "HelloSayFirstName" I get the following:
    <HttpRequest>
    <Method>POST</Method>
    <QueryString></QueryString>
    <WebHeaders>
    <Cache-Control>no-cache</Cache-Control>
    <Connection>keep-alive</Connection>
    <Pragma>no-cache</Pragma>
    <Transfer-Encoding>chunked</Transfer-Encoding>
    <Content-Type>text/xml; charset=UTF-8</Content-Type>
    <Accept>*</Accept>
    <Cookie>mycookie=mytoken</Cookie>
    <Host>exampleHost</Host>
    <User-Agent>Java/1.5.0_14</User-Agent>
    <SOAPAction>"http://tempuri.org/IMyService/HelloWorld"</SOAPAction>
    </WebHeaders>
    </HttpRequest>
    <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
    <s:Header xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
    <To s:mustUnderstand="1" xmlns="http://schemas.microsoft.com/ws/2005/05/addressing/none">http://exampleHost/WebServices/WCFService/Service.svc</To>
    <Action s:mustUnderstand="1" xmlns="http://schemas.microsoft.com/ws/2005/05/addressing/none">http://tempuri.org/IMyService/HelloWorld</Action>
    </s:Header>
    <soap:Body>
    <HelloSayFirstName xmlns="http://tempuri.org/" xmlns:ns2="http://schemas.datacontract.org/2004/07/" xmlns:ns3="http://schemas.microsoft.com/2003/10/Serialization/">
    <dataContractValue></dataContractValue>
    </HelloSayFirstName>
    </soap:Body>
    </soap:Envelope>
    It seems that the SOAPAction in the http header and the soap header is incorrect. Is there any reason why the requestContext would keep hold of the action that was previously called, and not use the new action? I'm stumped here - any help would be greatly appreciated.
    Cheers.

    Does not only happen when using JAX-WS.
    the following servlet code is enough to reproduce the problem :
    protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
    response.setContentType("text/xml;charset=\"utf-8\"");
    It only occurs on 10.1.3.4.0 (works fine on 10.1.3.3.0 and 11.1.1.1.0 TP4)
    Regards

  • How do I close a JInternalFrame when using subclasses and a separate cla...

    The heading should be: How do I close a JInternalFrame when using subclasses and a separate class for the actionListener?
    I have just created a JInternalFrame appclication and now I want to structure up my code. I have a Superclass that contains the usual settings for the two JInternalFrame:s, and the two subclasses with frame specific information. Both the JInternalFrames use the same OK button. I want to have the actionListener outside the classes to avoid repetition of code. But the dispose()-function does not work properly, it does not close the opened JInternalFrame. What�s wrong?
    class Superclass extends JFrame
         JButton b= new JButton("ok");    
         Superclass()
    class Subclass1 extends Superclass
         Subclass1 ()
              add(ok);
           ok.addActionListener(new Listener());
    class Subclass2 extends Superclass
         Subclass2 ()
              add(ok);
           ok.addActionListener(new Listener());
    class Listener extends Superclass implements ActionListener
         public void actionPerformed(ActionEvent e)
                   dispose();
    }How do I controll in the Listener class that the button in Subclass1 is beeing pressed?

    First of all I think I misunderstood your question. You said you had two internal frames, so I thought you wanted to close the internal frame.
    It now looks to me like you want to close the entire JFrame, which makes the code even a little easier. Something like:
    JComponent component = (JComponent)event.getSource();
    JFrame frame = (JFrame)SwingUtilities.windowForComponent( component );
    frame.dispose();
    Ok, I will make a try:
    public static Container getAncestorOfClass(Class c, Component comp)
    w.getAncestorOfClass(w, this); Fiirst you need to learn the basics of reading the API.
    "getAncestorOfClass()" is a static method. That means you don't use a variable to invoke the method. You use the class itself.
    "w" is a variable, which is a JFrame, but that is not what the first parameter should be. The first parameter is a "Class".
    "this" will refer to your Listener class, but you need the Component that generated the ActionEvent.
    When I thought you wanted to close an internal frame then the code would have been something like:
    JComponent component = (JComponent)event.getSource();
    Container container = SwingUtilities.getAncesterOfClass( JInternalFrame.class, component );
    JInternalFrame internalFrame = (JInternalFrame)container;
    internalFrame.invokeSomeMethodHere();If you need further help then you need to create a "Short, Self Contained, Compilable and Executable, Example Program (SSCCE)", that demonstrates the incorrect behaviour.
    http://homepage1.nifty.com/algafield/sscce.html

  • IPC problem when using WSRP

    Hello all,
    I have a problem with IPC when using WSRP. The setting: I have two Portlets, an EchoPortlet which echoes back what was typed into a textfield and a MessagePortlet, which receives the typed in text form the EchoPortlet via a custom event (PortletMessageEvent) in a custom backing file and displays it. The portlets are Weblogic JSF portlets. I am using WLP 9.2.3.
    In local mode everything just works fine; when I consume the two portlets as remote portlets, the event does not seem to get handled:
    These are my .portlet files:
    EchoPortlet:
    <?xml version="1.0" encoding="UTF-8"?>
    <portal:root
    xmlns:netuix="http://www.bea.com/servers/netuix/xsd/controls/netuix/1.0.0"
    xmlns:portal="http://www.bea.com/servers/netuix/xsd/portal/support/1.0.0"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://www.bea.com/servers/netuix/xsd/portal/support/1.0.0 portal-support-1_0_0.xsd">
    <netuix:portlet
    definitionLabel="echo_1"
    title="Echo Portlet">
    <netuix:titlebar>
    </netuix:titlebar>
    <netuix:content>
    <netuix:facesContent contentUri="/portlets/echo/jsp/messageentry.faces"/>
    </netuix:content>
    </netuix:portlet>
    </portal:root>
    MessagePortlet:
    <?xml version="1.0" encoding="UTF-8"?>
    <portal:root xmlns:netuix="http://www.bea.com/servers/netuix/xsd/controls/netuix/1.0.0"
    xmlns:portal="http://www.bea.com/servers/netuix/xsd/portal/support/1.0.0"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.bea.com/servers/netuix/xsd/portal/support/1.0.0 portal-support-1_0_0.xsd">
    <netuix:portlet backingFile="de.awd.vertriebsportal.common.EventListenerBacking"
    definitionLabel="message_1" title="Message Portlet">
    <netuix:handleCustomEvent event="PortletMessageEvent" eventLabel="handleCustomEvent1"
    fromSelfInstanceOnly="false" onlyIfDisplayed="true" sourceDefinitionWildcard="any">
    <netuix:invokeBackingFileMethod method="handleEvent"/>
    </netuix:handleCustomEvent>
    <netuix:titlebar/>
    <netuix:content>
    <netuix:facesContent contentUri="/portlets/message/jsp/messagedisplay.faces"/>
    </netuix:content>
    </netuix:portlet>
    </portal:root>
    Here are the WSRP requests from the performBlockingInteraction request on that sends the event:
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
    <soapenv:Header />
    <soapenv:Body>
    <urn:performBlockingInteraction xmlns:urn="urn:oasis:names:tc:wsrp:v1:types">
    <urn:registrationContext>
    <urn:registrationHandle>4001</urn:registrationHandle>
    </urn:registrationContext>
    <urn:portletContext>
    <urn:portletHandle>echo_1</urn:portletHandle>
    </urn:portletContext>
    <urn:runtimeContext>
    <urn:userAuthentication>wsrp:none</urn:userAuthentication>
    <urn:portletInstanceKey>wsrpjsftestremote
    main_T1800382711259255957802</urn:portletInstanceKey>
    <urn:namespacePrefix>
    T1800382711259255957802</urn:namespacePrefix>
    <urn:sessionID>
    LG1JLTdVBQjGnZPJm685DwXkJPMpM122Gny8jRNSsyqwyBCgGBXR!-117247815</urn:sessionID>
    <urn:extensions>
    <urn1:LookAndFeelDescriptor xmlns:urn1="urn:bea:wsrp:ext:v1:types">
    <urn1:skeletonId>text</urn1:skeletonId>
    <urn1:skeletonPath>
    /framework/skeletons/</urn1:skeletonPath>
    <urn1:skinId>text</urn1:skinId>
    <urn1:skinPath>/framework/skins/</urn1:skinPath>
    </urn1:LookAndFeelDescriptor>
    </urn:extensions>
    </urn:runtimeContext>
    <urn:userContext xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:nil="true" />
    <urn:markupParams>
    <urn:secureClientCommunication>
    false</urn:secureClientCommunication>
    <urn:locales>de</urn:locales>
    <urn:mimeTypes>text/html</urn:mimeTypes>
    <urn:mimeTypes>image/gif</urn:mimeTypes>
    <urn:mimeTypes>image/x-xbitmap</urn:mimeTypes>
    <urn:mimeTypes>image/jpeg</urn:mimeTypes>
    <urn:mimeTypes>image/pjpeg</urn:mimeTypes>
    <urn:mimeTypes>
    application/x-shockwave-flash</urn:mimeTypes>
    <urn:mimeTypes>application/x-ms-application</urn:mimeTypes>
    <urn:mimeTypes>application/x-ms-xbap</urn:mimeTypes>
    <urn:mimeTypes>
    application/vnd.ms-xpsdocument</urn:mimeTypes>
    <urn:mimeTypes>application/xaml+xml</urn:mimeTypes>
    <urn:mimeTypes>application/vnd.ms-excel</urn:mimeTypes>
    <urn:mimeTypes>
    application/vnd.ms-powerpoint</urn:mimeTypes>
    <urn:mimeTypes>application/msword</urn:mimeTypes>
    <urn:mimeTypes>*/*</urn:mimeTypes>
    <urn:mode>wsrp:view</urn:mode>
    <urn:windowState>wsrp:normal</urn:windowState>
    <urn:clientData>
    <urn:userAgent>Mozilla/4.0 (compatible; MSIE 7.0; Windows
    NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR
    3.0.04506.648; .NET CLR 3.5.21022; InfoPath.1; MS-RTC LM
    8)</urn:userAgent>
    </urn:clientData>
    <urn:navigationalState>
    /wsrpjsftestWeb/portlets/echo/jsp/messageentry.faces</urn:navigationalState>
    <urn:markupCharacterSets>UTF-8</urn:markupCharacterSets>
    <urn:markupCharacterSets>*</urn:markupCharacterSets>
    </urn:markupParams>
    <urn:interactionParams>
    <urn:portletStateChange>readOnly</urn:portletStateChange>
    <urn:formParameters name="T1800382711259255957802:MessageEntryForm:messageSubmit">
    <urn:value>
    <![CDATA[Abschicken]]>
    </urn:value>
    </urn:formParameters>
    <urn:formParameters name="T1800382711259255957802:MessageEntryForm:message">
    <urn:value>
    <![CDATA[asdadasd]]>
    </urn:value>
    </urn:formParameters>
    <urn:formParameters name="T1800382711259255957802:MessageEntryForm">
    <urn:value>
    <![CDATA[T1800382711259255957802:MessageEntryForm]]>
    </urn:value>
    </urn:formParameters>
    </urn:interactionParams>
    </urn:performBlockingInteraction>
    </soapenv:Body>
    </soapenv:Envelope>
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
    <soapenv:Header />
    <soapenv:Body>
    <performBlockingInteractionResponse xmlns="urn:oasis:names:tc:wsrp:v1:types">
    <updateResponse>
    <navigationalState>
    /portlets/echo/jsp/messageentry.faces</navigationalState>
    </updateResponse>
    <extensions>
    <Event xmlns="urn:bea:wsrp:ext:v1:types">
    <eventName xmlns:urn="urn:bea:wsrp:wlp:v2:events:name">
    urn:PortletMessageEvent</eventName>
    <eventType xmlns:urn="urn:bea:wsrp:wlp:v2:events:type">
    urn:custom</eventType>
    <eventPayload>
    <binary>rO0ABXQACGFzZGFkYXNk</binary>
    </eventPayload>
    <sourceDefinitionLabel>echo_1</sourceDefinitionLabel>
    <sourceInstanceLabel>
    T1800382711259255957802</sourceInstanceLabel>
    </Event>
    </extensions>
    </performBlockingInteractionResponse>
    </soapenv:Body>
    </soapenv:Envelope>
    The following getMarkup requests for the EchoPortlet and the MessagePortlet:
    Echo:
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Header/><soapenv:Body><urn:getMarkup xmlns:urn="urn:oasis:names:tc:wsrp:v1:types"><urn:registrationContext><urn:registrationHandle>4001</urn:registrationHandle></urn:registrationContext><urn:portletContext><urn:portletHandle>echo_1</urn:portletHandle></urn:portletContext><urn:runtimeContext><urn:userAuthentication>wsrp:none</urn:userAuthentication><urn:portletInstanceKey>wsrpjsftestremote     main_T1800382711259255957802</urn:portletInstanceKey><urn:namespacePrefix>T1800382711259255957802</urn:namespacePrefix><urn:sessionID>LG1JLTdVBQjGnZPJm685DwXkJPMpM122Gny8jRNSsyqwyBCgGBXR!-117247815</urn:sessionID><urn:extensions><urn1:LookAndFeelDescriptor xmlns:urn1="urn:bea:wsrp:ext:v1:types"><urn1:skeletonId>text</urn1:skeletonId><urn1:skeletonPath>/framework/skeletons/</urn1:skeletonPath><urn1:skinId>text</urn1:skinId><urn1:skinPath>/framework/skins/</urn1:skinPath></urn1:LookAndFeelDescriptor></urn:extensions></urn:runtimeContext><urn:userContext xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true"/><urn:markupParams><urn:secureClientCommunication>false</urn:secureClientCommunication><urn:locales>de</urn:locales><urn:mimeTypes>text/html</urn:mimeTypes><urn:mimeTypes>image/gif</urn:mimeTypes><urn:mimeTypes>image/x-xbitmap</urn:mimeTypes><urn:mimeTypes>image/jpeg</urn:mimeTypes><urn:mimeTypes>image/pjpeg</urn:mimeTypes><urn:mimeTypes>application/x-shockwave-flash</urn:mimeTypes><urn:mimeTypes>application/x-ms-application</urn:mimeTypes><urn:mimeTypes>application/x-ms-xbap</urn:mimeTypes><urn:mimeTypes>application/vnd.ms-xpsdocument</urn:mimeTypes><urn:mimeTypes>application/xaml+xml</urn:mimeTypes><urn:mimeTypes>application/vnd.ms-excel</urn:mimeTypes><urn:mimeTypes>application/vnd.ms-powerpoint</urn:mimeTypes><urn:mimeTypes>application/msword</urn:mimeTypes><urn:mimeTypes>*/*</urn:mimeTypes><urn:mode>wsrp:view</urn:mode><urn:windowState>wsrp:normal</urn:windowState><urn:clientData><urn:userAgent>Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; InfoPath.1; MS-RTC LM 8)</urn:userAgent></urn:clientData><urn:navigationalState>/portlets/echo/jsp/messageentry.faces</urn:navigationalState><urn:markupCharacterSets>UTF-8</urn:markupCharacterSets><urn:markupCharacterSets>*</urn:markupCharacterSets></urn:markupParams></urn:getMarkup></soapenv:Body></soapenv:Envelope>
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
    <soapenv:Header />
    <soapenv:Body>
    <getMarkupResponse xmlns="urn:oasis:names:tc:wsrp:v1:types">
    <markupContext>
    <mimeType>text/html; charset=UTF-8</mimeType>
    <markupString>
    <![CDATA[
    <form id="T1800382711259255957802:MessageDisplayForm" method="post" action="http://localhost:7001/wsrpjsftestWeb/appmanager/wsrpjsftestremote/main?_nfpb=true&amp;_windowLabel=T1800382711259255957802&amp;wsrp-urlType=blockingAction&amp;wsrp-url=&amp;wsrp-requiresRewrite=false&amp;wsrp-navigationalState=%2FwsrpjsftestWeb%2Fportlets%2Fecho%2Fjsp%2Fmessagedisplay.faces&amp;wsrp-interactionState=&amp;wsrp-mode=wsrp%3Aview&amp;wsrp-windowState=wsrp%3Anormal" enctype="application/x-www-form-urlencoded">
    <table cellpadding="0" cellspacing="5" border="0" width="100%" >
    <tr>
    <td valign="top">
    <label for="T1800382711259255957802:MessageDisplayForm:message">
    <span id="T1800382711259255957802:MessageDisplayForm:messageLabel">Nachricht:</span>
    </label>
    </td>
    <td valign="top">
    <span id="T1800382711259255957802:MessageDisplayForm:message">asdadasd</span>
    </td>
    </tr>
    <tr>
    <td valign="top" colspan="2">
    <input type="submit" name="T1800382711259255957802:MessageDisplayForm:_id1" value="Zur&uuml;ck" />
    </td>
    </tr>
    </table>
    <input type="hidden" name="T1800382711259255957802:MessageDisplayForm" value="T1800382711259255957802:MessageDisplayForm" /></form>
    ]]>
    </markupString>
    <locale>de-DE</locale>
    <requiresUrlRewriting>false</requiresUrlRewriting>
    </markupContext>
    </getMarkupResponse>
    </soapenv:Body>
    </soapenv:Envelope>
    Message:
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Header/><soapenv:Body><urn:getMarkup xmlns:urn="urn:oasis:names:tc:wsrp:v1:types"><urn:registrationContext><urn:registrationHandle>4001</urn:registrationHandle></urn:registrationContext><urn:portletContext><urn:portletHandle>message_1</urn:portletHandle></urn:portletContext><urn:runtimeContext><urn:userAuthentication>wsrp:none</urn:userAuthentication><urn:portletInstanceKey>wsrpjsftestremote     main_T1800482711259255957849</urn:portletInstanceKey><urn:namespacePrefix>T1800482711259255957849</urn:namespacePrefix><urn:sessionID>LG1JLTdVBQjGnZPJm685DwXkJPMpM122Gny8jRNSsyqwyBCgGBXR!-117247815</urn:sessionID><urn:extensions><urn1:LookAndFeelDescriptor xmlns:urn1="urn:bea:wsrp:ext:v1:types"><urn1:skeletonId>text</urn1:skeletonId><urn1:skeletonPath>/framework/skeletons/</urn1:skeletonPath><urn1:skinId>text</urn1:skinId><urn1:skinPath>/framework/skins/</urn1:skinPath></urn1:LookAndFeelDescriptor></urn:extensions></urn:runtimeContext><urn:userContext xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true"/><urn:markupParams><urn:secureClientCommunication>false</urn:secureClientCommunication><urn:locales>de</urn:locales><urn:mimeTypes>text/html</urn:mimeTypes><urn:mimeTypes>image/gif</urn:mimeTypes><urn:mimeTypes>image/x-xbitmap</urn:mimeTypes><urn:mimeTypes>image/jpeg</urn:mimeTypes><urn:mimeTypes>image/pjpeg</urn:mimeTypes><urn:mimeTypes>application/x-shockwave-flash</urn:mimeTypes><urn:mimeTypes>application/x-ms-application</urn:mimeTypes><urn:mimeTypes>application/x-ms-xbap</urn:mimeTypes><urn:mimeTypes>application/vnd.ms-xpsdocument</urn:mimeTypes><urn:mimeTypes>application/xaml+xml</urn:mimeTypes><urn:mimeTypes>application/vnd.ms-excel</urn:mimeTypes><urn:mimeTypes>application/vnd.ms-powerpoint</urn:mimeTypes><urn:mimeTypes>application/msword</urn:mimeTypes><urn:mimeTypes>*/*</urn:mimeTypes><urn:mode>wsrp:view</urn:mode><urn:windowState>wsrp:normal</urn:windowState><urn:clientData><urn:userAgent>Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; InfoPath.1; MS-RTC LM 8)</urn:userAgent></urn:clientData><urn:markupCharacterSets>UTF-8</urn:markupCharacterSets><urn:markupCharacterSets>*</urn:markupCharacterSets></urn:markupParams></urn:getMarkup></soapenv:Body></soapenv:Envelope>
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Header/><soapenv:Body><getMarkupResponse xmlns="urn:oasis:names:tc:wsrp:v1:types"><markupContext><mimeType>text/html; charset=UTF-8</mimeType><markupString><![CDATA[
              <form id="T1800482711259255957849:MessageDisplayForm" method="post" action="http://localhost:7001/wsrpjsftestWeb/appmanager/wsrpjsftestremote/main?_nfpb=true&amp;_windowLabel=T1800482711259255957849&amp;wsrp-urlType=blockingAction&amp;wsrp-url=&amp;wsrp-requiresRewrite=false&amp;wsrp-navigationalState=%2FwsrpjsftestWeb%2Fportlets%2Fmessage%2Fjsp%2Fmessagedisplay.faces&amp;wsrp-interactionState=&amp;wsrp-mode=wsrp%3Aview&amp;wsrp-windowState=wsrp%3Anormal" enctype="application/x-www-form-urlencoded">
                   <table cellpadding="0" cellspacing="5" border="0" width="100%" >
                   <tr>
                   <td valign="top">
                        <label for="T1800482711259255957849:MessageDisplayForm:message">
                                  <span id="T1800482711259255957849:MessageDisplayForm:messageLabel">Nachricht:</span>
                        </label>
                             </td>
                   <td valign="top">
                             <span id="T1800482711259255957849:MessageDisplayForm:message"></span>
                             </td>
                   </tr>
                   </table>
              <input type="hidden" name="T1800482711259255957849:MessageDisplayForm" value="T1800482711259255957849:MessageDisplayForm" /></form>
    ]]></markupString><locale>de-DE</locale><requiresUrlRewriting>false</requiresUrlRewriting></markupContext></getMarkupResponse></soapenv:Body></soapenv:Envelope>
    Finally, the code of the handleEvent method in the backing file (works fine locally):
         public void handleEvent(HttpServletRequest request,
                   HttpServletResponse response,
                   Event event) {
              System.out.println("EventListenerBacking - Receiving custom event...");
              CustomEvent customEvent = (CustomEvent) event;
              Serializable payload = customEvent.getPayload();
              System.out.println("EventListenerBacking - payload: " + payload);
         BackingPortletUtil portletUtil = PortletUtilFactory.getInstance().getBackingPortletUtil();
              portletUtil.storeSharedState(request, payload);
              request.setAttribute("customPayload", payload);
    And the code to fire the event:
         public void sendMessage(HttpServletRequest request, Serializable payload) {
              PortletBackingContext context = getPortletBackingContext(request);
              if (context != null) {
                   System.out.println("Sending portlet message with event " + PORTLET_EVENT);
                   context.fireCustomEvent(PORTLET_EVENT, payload);
    PORTLET_EVENT is a static constant:
    public static final String PORTLET_EVENT = "PortletMessageEvent";
    Any idea, why the event is not handled when using WSRP?
    Kind regards,
    Stefan

    Hello Stefan,
    The event handling information is added to the proxy portlet only when the proxy portlet is created- not when it is added to a page. So if you already have the remote portlet added to a page when you add an event to the portlet on the producer side, you would need to remove the proxy portlet from the page on the consumer side, remove the proxy portlet from the consumer entirely, and re-add it from the producer.
    It is also possible to create the proxy portlets from the IDE, but in WLP 9.2, it isn't possible to change the IP of a producer after a streaming portal has been created in most cases. If your producer does not require registration and your streaming portal does not contain any customized remote portlets (portlets whose preference values were changed), it may be possible in WLP 9.2 to use the propagation tool to move the streaming portal to a new consumer, and once it is on the new consumer I think you can use the the Admin Tools to change the WSDL URL of the producer to point to your new producer. If registration is required or any of the producer portlets are customized, this won't work. It is worth noting that WLP 10.2 and higher versions support moving streaming portals across producers even when registration is required or portlets have been customized, so upgrading WLP versions is another possibility.
    Kevin

  • Jax-ws 2.2.8 and ws-addressing: Client throwing java.lang.NullPointerException on receipt of HTTP 202 when using non-anonymous ReplyTo address

    Server: JBoss EAP 6.2.0
    Client: JDK 1.7.0_51 x64
    JAX-WS: RI 2.2.8 ( via -Djava.endorsed.dirs )
    I am getting a java.lang.NullPointerException when calling the operation on the WS endpoint from the client when using non-anonymous replyTo address.
    I have simplified the scenario into a small test case that hopefully others can replicate. Since the exception is happening on the client instead of the server, I would think that the container used is irrelevant, but I have specified it nonetheless.
    1) WebService:
    package test.webservice;
    import java.util.Random;
    import javax.jws.WebMethod;
    import javax.jws.WebParam;
    import javax.jws.WebService;
    import javax.jws.soap.SOAPBinding;
    import javax.xml.ws.soap.Addressing;
    @WebService(targetNamespace="http://services.nowhere.org/")
    @Addressing(required=true)
    @SOAPBinding(style = SOAPBinding.Style.DOCUMENT)
    public class RandomTest {
        @WebMethod
        public long nextRandom(@WebParam boolean forceException) throws Exception {
            if( forceException ) {
                throw new Exception("Some exception");
            Random rand = new Random();
            return rand.nextLong();
    2) Generated WSDL by JBossEAP 6.2.2:
    <?xml version='1.0' encoding='UTF-8'?><wsdl:definitions xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:wsp="http://www.w3.org/ns/ws-policy" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" xmlns:wsam="http://www.w3.org/2007/05/addressing/metadata" xmlns:tns="http://webservice.test/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:ns1="http://schemas.xmlsoap.org/soap/http" name="RandomTestService" targetNamespace="http://webservice.test/">
      <wsdl:types>
    <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://webservice.test/" elementFormDefault="unqualified" targetNamespace="http://webservice.test/" version="1.0">
      <xs:element name="nextRandom" type="tns:nextRandom"/>
      <xs:element name="nextRandomResponse" type="tns:nextRandomResponse"/>
      <xs:complexType name="nextRandom">
        <xs:sequence/>
      </xs:complexType>
      <xs:complexType name="nextRandomResponse">
        <xs:sequence>
          <xs:element name="return" type="xs:long"/>
        </xs:sequence>
      </xs:complexType>
    </xs:schema>
      </wsdl:types>
      <wsdl:message name="nextRandom">
        <wsdl:part element="tns:nextRandom" name="parameters">
        </wsdl:part>
      </wsdl:message>
      <wsdl:message name="nextRandomResponse">
        <wsdl:part element="tns:nextRandomResponse" name="parameters">
        </wsdl:part>
      </wsdl:message>
      <wsdl:portType name="RandomTest">
        <wsdl:operation name="nextRandom">
          <wsdl:input message="tns:nextRandom" name="nextRandom" wsam:Action="http://webservice.test/RandomTest/nextRandomRequest" wsaw:Action="http://webservice.test/RandomTest/nextRandomRequest">
        </wsdl:input>
          <wsdl:output message="tns:nextRandomResponse" name="nextRandomResponse" wsam:Action="http://webservice.test/RandomTest/nextRandomResponse" wsaw:Action="http://webservice.test/RandomTest/nextRandomResponse">
        </wsdl:output>
        </wsdl:operation>
      </wsdl:portType>
      <wsdl:binding name="RandomTestServiceSoapBinding" type="tns:RandomTest">
        <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
        <wsaw:UsingAddressing wsdl:required="true"/>
        <wsp:PolicyReference URI="#RandomTestServiceSoapBinding_WSAM_Addressing_Policy"/>
        <wsdl:operation name="nextRandom">
          <soap:operation soapAction="" style="document"/>
          <wsdl:input name="nextRandom">
            <soap:body use="literal"/>
          </wsdl:input>
          <wsdl:output name="nextRandomResponse">
            <soap:body use="literal"/>
          </wsdl:output>
        </wsdl:operation>
      </wsdl:binding>
      <wsdl:service name="RandomTestService">
        <wsdl:port binding="tns:RandomTestServiceSoapBinding" name="RandomTestPort">
          <soap:address location="http://localhost:8080/servertest/RandomTest"/>
        </wsdl:port>
      </wsdl:service>
        <wsp:Policy xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" wsu:Id="RandomTestServiceSoapBinding_WSAM_Addressing_Policy"><wsam:Addressing><wsp:Policy/></wsam:Addressing></wsp:Policy>
    </wsdl:definitions>
    3) ant build.xml to generate the client code from WSDL
    <?xml version="1.0" encoding="UTF-8"?>
    <project default="build" basedir="..">
        <property name="jaxws.classpath" location="C://jaxws-2.2.8/jaxws-ri/lib/*.jar"/>
        <taskdef name="wsimport" classname="com.sun.tools.ws.ant.WsImport">
               <classpath path="${jaxws.classpath}"/>
        </taskdef>
        <target name="build" >
            <!-- For these to work, the JAR files in tools/jaxws-ri must be included in Ant's classpath -->
            <wsimport wsdl="http://localhost:8080/servertest/RandomTest?wsdl"
                   verbose="true"
                   sourcedestdir="src"
                   destdir="bin"
                   keep="true">
                   <xjcarg value="-enableIntrospection"/>
            </wsimport>
        </target>
    </project>
    4) Client code
    4a) ClientTest.java - Actual client run from client
    package test.wsclient;
    import java.util.ArrayList;
    import java.util.List;
    import javax.xml.ws.BindingProvider;
    import javax.xml.ws.Endpoint;
    import javax.xml.ws.handler.Handler;
    import javax.xml.ws.soap.AddressingFeature;
    import org.nowhere.services.RandomTest;
    import org.nowhere.services.RandomTestService;
    public class ClientTest {
        public static void main(String args[]) throws Exception {
            ClientTest app = new ClientTest();
            app.testAddressing();
        public void testAddressing() throws Exception {
            String REPLY_TO_ADDRESS = "http://localhost:8082/servertest/RandomCallback";
            String FAULT_TO_ADDRESS = "http://localhost:8082/servertest/RandomCallbackFault";
            RandomTestService service = new RandomTestService();
            RandomTest port = service.getRandomTestPort(new AddressingFeature());
            BindingProvider provider = (BindingProvider) port;
            // pass the replyTo address to the handler
            provider.getRequestContext().put("ReplyTo", REPLY_TO_ADDRESS);
            provider.getRequestContext().put("FaultTo", FAULT_TO_ADDRESS);
            // Register handlers to set the ReplyTo and FaultTo on the SOAP request sent to the WS endpoint
            List<Handler> handlerChain = new ArrayList<Handler>();
            handlerChain.add(new ClientHandler());
            provider.getBinding().setHandlerChain(handlerChain);
            // Start endpoint to receive callbacks from WS
            Endpoint endpoint = Endpoint.publish(REPLY_TO_ADDRESS, new CallbackSEI());
            try {
                port.nextRandom(false);
            } catch( Exception ex ) {
                ex.printStackTrace();
            } finally {
                Thread.sleep(10000);
            endpoint.stop();
            System.exit(0);
    4b) ClientHandler.java - Used to set the wsa ReplyTo address and FaultTo address when sending SOAP request from client to server
    package test.wsclient;
    import java.util.Set;
    import javax.xml.namespace.QName;
    import javax.xml.soap.SOAPEnvelope;
    import javax.xml.soap.SOAPHeader;
    import javax.xml.ws.handler.MessageContext;
    import javax.xml.ws.handler.MessageContext.Scope;
    import javax.xml.ws.handler.soap.SOAPHandler;
    import javax.xml.ws.handler.soap.SOAPMessageContext;
    import org.w3c.dom.Node;
    import org.w3c.dom.NodeList;
    public class ClientHandler implements SOAPHandler<SOAPMessageContext> {
        public ClientHandler() {};
        @Override
        public Set<QName> getHeaders() {
            return null;
        @Override
        public void close(MessageContext arg0) {
        @Override
        public boolean handleFault(SOAPMessageContext context) {
            return true;
        protected void setAnAddress(SOAPHeader header, String tagName, String address) {
            NodeList nodeListReplyTo = header.getElementsByTagName(tagName);
            NodeList nodeListAddress = nodeListReplyTo.item(0).getChildNodes();
            for (int i = 0; i < nodeListAddress.getLength(); i++) {
                Node node = nodeListAddress.item(i);
                if ("Address".equals(node.getLocalName())) {
                    node.setTextContent(address);
                    break;
        protected String getMessageID(SOAPHeader header) {
            NodeList nodeListMessageId = header.getElementsByTagName("MessageID");
            return nodeListMessageId.item(0).getTextContent();
        @Override
        public boolean handleMessage(SOAPMessageContext context) {
            Boolean isOutbound = (Boolean) context.get(SOAPMessageContext.MESSAGE_OUTBOUND_PROPERTY);
            if (isOutbound) {
                try {
                    SOAPEnvelope envelope = context.getMessage().getSOAPPart().getEnvelope();
                    SOAPHeader header = envelope.getHeader();
                    /* extract the generated MessageID */
                    String messageID = getMessageID(header);
                    context.put("MessageID", messageID);
                    context.setScope("MessageID", Scope.APPLICATION);
                    /* change ReplyTo address */
                    setAnAddress(header, "ReplyTo", (String) context.get("ReplyTo"));
                    setAnAddress(header, "FaultTo", (String) context.get("FaultTo"));
                } catch (Exception ex) {
                    throw new RuntimeException(ex);
            return true;
    4c) CallbackSEI.java - endpoint on the client for server to send the SOAP response back to the client
    package test.wsclient;
    import javax.annotation.Resource;
    import javax.jws.Oneway;
    import javax.jws.WebParam;
    import javax.jws.WebService;
    import javax.xml.ws.Action;
    import javax.xml.ws.RequestWrapper;
    import javax.xml.ws.WebServiceContext;
    import javax.xml.ws.soap.Addressing;
    @WebService
    @Addressing
    //@HandlerChain(file = "/handler-chain.xml")
    public class CallbackSEI {
        @Resource
        private WebServiceContext context;
         * If there is no namespace specified in the method below, then the CallbackSEI needs to be in the same package as the
         * WS endpoint.
        @Oneway
        @Action(input="http://services.nowhere.org/RandomTest/nextRandomResponse")
        @RequestWrapper(localName="nextRandomResponse", targetNamespace="http://services.nowhere.org/")
        public void handleNotification(@WebParam(name="return")long random) {
            System.out.println("Asynch response received");
            System.out.println( random );
            //System.out.println("This response relates to the message ID: "+ getMessageID());
    In summary:
    Server is listening on port 8080
    Client will listen in port 8082 for the callback from the server for the SOAP response
    Now when I run the client, I see that the proper behaviour as far as ws-addressing is concerned. That is:
    client  -- SOAP request ( on port 8080 ) --> server
    client <-- HTTP 202 ( empty HTTP body )  --- server
    client <-- SOAP response ( on port 8082 )  --- server
    All well and good, except that I am getting a NullPointerException on the client side when I call the operation.
    With debugging of the SOAP request and responses, I get the following output:
    ---[HTTP request - http://localhost:8080/servertest/RandomTest]---
    Accept: text/xml, multipart/related
    Content-Type: text/xml; charset=utf-8
    SOAPAction: "http://services.nowhere.org/RandomTest/nextRandomRequest"
    User-Agent: JAX-WS RI 2.2.8 svn-revision#13980
    <?xml version='1.0' encoding='UTF-8'?><S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"><S:Header><To xmlns="http://www.w3.org/2005/08/addressing">http://localhost:8080/servertest/RandomTest</To><Action xmlns="http://www.w3.org/2005/08/addressing">http://services.nowhere.org/RandomTest/nextRandomRequest</Action><ReplyTo xmlns="http://www.w3.org/2005/08/addressing">
        <Address>http://localhost:8082/servertest/RandomCallback</Address>
    </ReplyTo><FaultTo xmlns="http://www.w3.org/2005/08/addressing">
        <Address>http://localhost:8082/servertest/RandomCallbackFault</Address>
    </FaultTo><MessageID xmlns="http://www.w3.org/2005/08/addressing">uuid:bcd2f6ef-3034-49e8-b837-dbd6a772fb93</MessageID></S:Header><S:Body><ns2:nextRandom xmlns:ns2="http://services.nowhere.org/"><arg0>false</arg0></ns2:nextRandom></S:Body></S:Envelope>--------------------
    ---[HTTP response - http://localhost:8080/servertest/RandomTest - 202]---
    null: HTTP/1.1 202 Accepted
    Content-Length: 0
    Content-Type: text/xml;charset=UTF-8
    Date: Fri, 18 Jul 2014 08:34:36 GMT
    Server: Apache-Coyote/1.1
    java.lang.NullPointerException
        at com.sun.proxy.$Proxy38.nextRandom(Unknown Source)
        at test.wsclient.ClientTest.testAddressing(ClientTest.java:43)
        at test.wsclient.ClientTest.main(ClientTest.java:18)
    ---[HTTP request]---
    Cache-control: no-cache
    Host: localhost:8082
    Content-type: text/xml; charset=UTF-8
    Content-length: 704
    Connection: keep-alive
    Pragma: no-cache
    User-agent: Apache CXF 2.7.7.redhat-1
    Accept: */*
    <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Header><Action xmlns="http://www.w3.org/2005/08/addressing">http://services.nowhere.org/RandomTest/nextRandomResponse</Action><MessageID xmlns="http://www.w3.org/2005/08/addressing">urn:uuid:65d8d7fc-09e4-494a-a9c5-0a01faf4d7e6</MessageID><To xmlns="http://www.w3.org/2005/08/addressing">http://localhost:8082/servertest/RandomCallback</To><RelatesTo xmlns="http://www.w3.org/2005/08/addressing">uuid:bcd2f6ef-3034-49e8-b837-dbd6a772fb93</RelatesTo></soap:Header><soap:Body><ns2:nextRandomResponse xmlns:ns2="http://services.nowhere.org/"><return>2870062781194370669</return></ns2:nextRandomResponse></soap:Body></soap:Envelope>--------------------
    Asynch response received
    2870062781194370669
    As you can see from the output above, the proxy is throwing an Exception when it receives the HTTP 202 response.
    Any ideas ?

    I think I have found when I get this error and probably I have found a bug. I will appreciate if someone can confirm this.
    In my BPEL project setup, my BPEL process's wsdl file imports another wsdl from different namespace. Here is sample snippet -
    <wsdl:definitions targetNamespace="http://namespace/1">
    <wsdl:import namespace="http://namespace/2" location="resources/another.wsdl"/>
    <plnk:partnerLinkType....../>
    </wsdl:definitions>
    Please let me know. I checked the bundled samples with Oracle BPEL PM and did not find any similar case where process wsdl imports another wsdl.
    Thank you.
    Meghana

Maybe you are looking for

  • Itunes wont open error says I need Quicktime version 7.5 5 for it to work

    Computer wasn't working got a new operation system installed not when I plug my Iphone in it only brings Iphoto up I can't get Itunes to come up and every time I try it says error I need version 7.5 5 Quicktime player for Itunes to work How do I fix

  • Trading Parner Not Inherited to Cross Company Balance Sheet Line item

    Hi, I posted cross company document using document type that is already untick in field 'inter-company posting' and 'enter tpid'. My accounting entries is as per below:    Co1000   Cr Balance Sheet   $250    Co1001   Dr Expense            $10    Co10

  • 875P Neo HDD/CD/DVD configuration

    I am running Windows ME. How should I set up a Maxtor ata100 20gig HDD, Internal CDRom/writer, Internal DVD player, Internal Colorado Tape back up drive (all on IDE connectors) on the 875P motherboard, P4 2.8? I also have a 6gig Fujitsu ata33 HDD but

  • Lose connection to router after iMac wakes up

    Ok, when my iMac is waking up after it has been asleep it loses its connection to the router (grayed out). I can turn it off, turn it on, select my network but it says it cannot establish a connection to base station. Then for some reason it starts t

  • Is it possible to forbid selection in TextField?

    I have a small problem: my text field keeps selecting itself, for example if I alt-tab from and to application. For my application, text selection is not needed and will not be used - so I want to disallow this annoying behavior. Actually, just setti