How to modify JColorChooser component?

Hi is there any way to remove* swatches Tab AND preview pane/area from the JColorChooser.
I want only the HSB and RGB tab only... I also want to know if it is removed will i be able to use default listeners.
I also want to draw a color circle / color wheel in java! Is there any default component or any toturial available? [By color circle / color wheel i mean a circular form of the slider found on the HSB tab] If not color circle at least how to generate the color Band on which the slider slides in HSB tab?
Please can u help?

Hi is there any way to remove swatches Tab AND preview pane/area from the JColorChooser.Like this?
import javax.swing.*;
import javax.swing.border.*;
import java.awt.*;
import java.awt.event.*;
class Testing
  public void buildGUI()
    JColorChooser jcc = new JColorChooser();
    JFrame f = new JFrame();
    f.getContentPane().add(jcc);
    f.pack();
    f.setLocationRelativeTo(null);
    f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    modifyChooser(jcc.getComponents());
    f.setVisible(true);
  public void modifyChooser(Component[] comps)
    for(int x = 0,y = comps.length; x < y; x++)
      if(comps[x] instanceof JTabbedPane)
        ((JTabbedPane)comps[x]).removeTabAt(0);
      else if(comps[x] instanceof JPanel)
        Border b = ((JPanel)comps[x]).getBorder();
        if(b instanceof TitledBorder && ((TitledBorder)b).getTitle().equals("Preview"))
          comps[x].getParent().remove(comps[x]);
      else if(comps[x] instanceof Container) modifyChooser(((Container)comps[x]).getComponents());
  public static void main(String[] args)
    SwingUtilities.invokeLater(new Runnable(){
      public void run(){
        new Testing().buildGUI();
I want only the HSB and RGB tab only... I also want to know if it is removed will i be able to use default listeners.post back the results of your tests

Similar Messages

  • How to modify a component on screen?

    Hi,
      In my program, on the default screen, there is a checkbox and a parameter. If user click checkbox, I want the parameter become disable. How to realize this in program?
       Thanks!

    Hi long,
    1. Its a little tricky.
    2. we have to use two events.
       at selection screen. (for detecting checkbox tick)
       at selection screen output.  (for showing disabled)
    3. just copy paste in new program.
    4.
    report abc.
    data : flag type i.
    parameters : a(10) type c modif id M1.
    parameters : chk type c as checkbox user-command ch.
    initialization.
    flag = 1.
    at selection-screen .
      check sy-ucomm = 'CH'.
      flag = 1.
      if chk = 'X'.
        flag = 0.
      endif.
    at selection-screen output.
      loop at screen.
        if screen-group1  = 'M1'.
          screen-input = flag.
          modify screen.
        endif.
      endloop.
    regards,
    amit m.

  • How to modify configuration component to add custom VAC in NW2004s?

    Hi,
       In Personal Data DC of ESS in NW2004s, I have created my own VACs and have changed Configuration component's "loadConfiguration" method to add this newly created VAC to an existing perspective.
      Any changes done in the method "loadConfiguration" are not getting reflected. even if i throw an exception it has no effect.
    When i see the application proprties,CcPerPersonal  is not specified as com.sap.xss.hr.per.de.personal.cc.CcPerPersonalDE as it used to be in NW2004.
    how WD Framework recognizes which configuration component to refer to?
    Kind Regards,
    Vishal

    Hi,
    The generic Cc loads the appropriate configurations. In this case , the configuration is done using Self service administrator. To make these changes to be reflected , please use your local Cc in application properties.. as we do in ERP 2004. both in componentDC and componentName
    Regards
    Bharathwaj

  • How to modify default Space Around Component in NetBeans 6.0?

    Hi,
    Does anybody know how to modify the default Space Around Component in NetBeans 6.0? I use Panel and either they stick completely to the border or stand too far. I can't find any options to modify this in NetBeans 6.0. I have tried using the 'Space Around Component...' functionality, but as soon as I move an element, NetBeans automatically replaces the values I have entered with default values I am not interested in.
    Does anyone have the solution?
    Thanks!

    I think you just have to move the component holding the alt key... that way you can put the components wherever you want to..... it was alt, or shift, or another special key, try it... i don�t remember right now

  • How to modify a pod in dashboard component?

    Hi
    I am new to flex and programming in general. So please do forgive me if I do not express my query clearly or with the right info.
    I am trying to build an application to show case photographs and one of the components I am using is the Dashboard built by WASI and can be seen here. It has several pods but I would like to have one of the pods load up with my own default position, width and height yet still retain the characteristics of minimizing, maximizing & drag and drop. Other than through the pods.xml file, I do not know how to modify (or which other file I should modify for that matter) so that when the application loads, it always starts with the particular pod at my desired height (top to bottom), width (about 1/4 of screen real estate) and position (left side of the screen)
    Below is the pods.xml file and attached is the project zip file.
    <?xml version="1.0" encoding="utf-8"?>
    <!--
    Used to specify the pod content in the dashboard sample app.
    To keep the implementation straightforward, all of the data is
    stored in this file rather than a database or separate XML files.
    -->
    <views>
        <!--
            <view> - Represents a tab.
                id - Must be unique so state can be saved properly.
                label - The label of the tab.
                <pod>
                    id - Must be unique per view so state can be saved properly.
                    type - Type of pod content. Valid values are chart, pieChart, form and list. "chart" and "pieChart" each have drill downs to one level.
                           "chart" is a fixed drill down to 30 days in a month.
                           "pieChart" is a fixed drill down to four geographical regions.
                    title - The title of the pod.
                    dataSource - The xml to load for the pod.
                    selectedViewIndex - Sets the default content view for pod content with a view stack.
                    valueField - For chart pods, the field from the xml data to use for displaying the value. This field should be numeric.
                    categoryField - For chart pods, the field from the xml data to use for displaying the category.
                    dataTipUnitLabel - Rollover label used for displaying the units.
                                       Label is delimited by "*" and places the first value before the unit and the second value after the unit. Ex: $50M.
                    dataTipLabelField - Rollover label field used for PieCharts.
                    labels - For form pods, used to label the fields.
                    dataFields - For form pods, used to assign the data fields to the form fields.
                                 The second field should always be a date expressed in milliseconds since the epoch.
        -->
        <view
            id="view0"
            label="Sales">
            <pod
                id="pod00"
                type="chart"
                title="Yearly Revenue"
                dataSource="data/revenue.xml"
                selectedViewIndex="1"
                valueField="value"
                categoryField="month"
                dataTipUnitLabel="$*M"
                dataTipLabelField="month"/>
            <pod
                id="pod06"
                type="pieChart"
                title="Revenue by Region"
                dataSource="data/revenue_by_region.xml"
                valueField="value"
                categoryField="region"
                dataTipUnitLabel="$*M"
                dataTipLabelField="region"/>
            <pod
                id="pod01"
                type="chart"
                title="Yearly Profit"
                dataSource="data/profit.xml"
                valueField="value"
                categoryField="month"
                dataTipUnitLabel="$*M"
                dataTipLabelField="month"/>
            <pod
                id="pod02"
                type="form"
                title="To Do"
                dataSource="data/tasks.xml"
                labels="Name,Date,Description"
                dataFields="name,date,description" />
            <pod
                id="pod03"
                type="list"
                title="Company News"
                dataSource="data/news.xml" />
            <pod
                id="pod04"
                type="form"
                title="Sales Pipeline"
                dataSource="data/pipeline.xml"
                selectedViewIndex="1"
                labels="Name,Date,Description"
                dataFields="name,date,description" />
            <pod
                id="pod05"
                type="chart"
                title="Projected Revenue"
                dataSource="data/projected_revenue.xml"
                valueField="value"
                categoryField="month"
                dataTipUnitLabel="$*M"
                dataTipLabelField="month"/>
        </view>
    Thank you very much for any help you may provide.
    Best regards
    Vanery

    hi,
    u may upload a file from the desktop in ur webdynpro .. thn u can save it in database and can download accordingly..
    1.create a node 'FILEUPLOAD' with 2 attributes
    a) FILECONTENT type XSTRING
    b) FILENAME type STRING
    2. Create a fileuplaod uielement
    a) bind the data property with attribute 'FILECONTENT'
    b) bind the filename property with attribute 'FILENAME'
    3. Create a button 'UPLOAD'
    a) create the action method for this button and save the contents of file in database
    Data l_node type ref to if_wd_context_node.
    Data l_stru type wd_this->elements_cn_fileupload.
    l_node = wd_context->get_child_node( 'FILEUPLOAD' ).
    l_node->get_static_attributes( importing static_attributes = l_stru ).
    "save l_stru-fielcontent in database. Your file will be saved in the database in XSTRING format.
    Now when you want to display this file;
    1. Create a Node 'FILEDOWNLOAD' with 1 attribute
    a) FILE type XSTRING
    2. Create a filedownload uielement
    a) bind the data property with the attribute 'FILE'
    Fetch the file from database and set the File attribute of the filedownload uielemnt to display the file.
    regards,
    Amit

  • How to modify a part of task parameters via worklist (not all paramenters)?

    I am making a demo of showing the functions of human workflow / worklist using Oracle SOA Suite. The following process is not a real project. But I have some questions about how to modify parameters in worklist and jdeveloper. Please help me.
    I create a BPEL with human workflow. It has 2 human tasks.
    The first human task is a single approver type and the parameters contents can be modified via worklist. The user is oc4jadmin.
    If oc4jadmin rejects it, the process will go to the second human task.
    The second human task is a sequential lists of approvers type and the parameters contents can be modified via worklist. 3 users (the order is : jcooper -> jlondon-> tolstoy) can access it. The process is able to abrupt completion if anyone rejects it.
    After the process is invoked in BPEL control,
    1, oc4jadmin login worklist and modified the data, than reject it.
    2, jcooper can login worklist and changed the data, save it, and approve.
    3, jlondon login, view data, change data, and save it. However, if jlondon modified the
    My questions are as follow:
    1, If oc4jadmin rejects the task in worklist, how can I set the parameter cannot be modified and saved.
    2, schema:
    <schema attributeFormDefault="unqualified"
         elementFormDefault="qualified"
         targetNamespace="http://xmlns.oracle.com/BPEL_single_sequential"
         xmlns="http://www.w3.org/2001/XMLSchema"
    xmlns:vv="http://xmlns.oracle.com/BPEL_single_sequential">
         <element name="BPEL_single_sequentialProcessRequest">
              <complexType>
                   <sequence>
                        <element name="input" type="vv:complexType1" maxOccurs="unbounded"/>
                   </sequence>
              </complexType>
         </element>
         <element name="BPEL_single_sequentialProcessResponse">
              <complexType>
                   <sequence>
                        <element name="result" type="string"/>
                   </sequence>
              </complexType>
         </element>
    <complexType name="complexType1">
    <sequence>
    <element name="pid" type="string"/>
    <element name="ptitle" type="string" maxOccurs="unbounded"/>
    </sequence>
    </complexType>
    </schema>
    In the worklist, the user can add another pid and leave the ptitle empty. In the schema, the ptitle (minOccurs=1) should appear at least once. How can I set that, if the user add another pid and must add at least one ptitle before saving it?
    3, One element likes gender=male/female. In the worklist form, the default graphic component is an input field. How can I set the component to a dropdown list and it highlight value.
    4, The default form is jsp file and it is beautiful. Could I make a jspx page and replace the jsp page? How to replace the jsp to jspx?
    5, If I use sequencial approver type for the human task, how can I set various page layout? For example, user 1 can view and modified all parameters. User 2 can view some part of the parameters and changes it. User 3 can view all paramters but can just modified some of them?
    Thanks a lot!
    Edited by: [email protected] on 2009-3-10 上午12:39
    Edited by: [email protected] on 2009-3-10 上午12:44
    Edited by: YE

    Hi,
    all what you asked about can be done through java script.

  • How can Modify the Text of a MessageArea in a Application WD ABAP Standard?

    Dear Experts.
    How can Modify the Text of a MessageArea in a Application WD ABAP Standard?
    I found the following link in the helpsap, but in this moment I don't know How found this text? and Modify this text with a new text.
    http://help.sap.com/saphelp_nw70/helpdata/en/3a/f6ba42a950da11e10000000a155106/frameset.htm
    The text of a MessageArea are in a table of configuration or can do the system for get this text and show in the application in the portal? How can get this and modify by a new text.
    Please help me with a suggestions.
    Thanks
    Regards
    Carmen G.

    Dear Kranthi..
    The datas of the Application is the following:
    General Information About the Application and Component
    Application: FITE_REQUEST
    Web Dynpro Component: FITV_FPM
    Window Information: FPM_WINDOW
    View Information: Layout_view
    Information on Field
    Field ID: HELPTEXT
    Type of UI Element : Explanation
    Attributes of UI Element
    TEXT_DOCUMENT_NAME: FITE_FPM_REQUEST_GENERAL_DA
    I dont found this method L_MESSAGE_MANAGER->REPORT_T100_MESSAGE.
    Please can give more suggestions for found the method
    Thanks in advance
    Regards
    Carmen G.

  • How to construct the component tree in my custom component?Help!

    Hi, i am writing a custom component like this:
    public class HtmlCategory extends HtmlPanelGrid
         public void processRestoreState(javax.faces.context.FacesContext context,
                java.lang.Object state)
              setColumns(1);
              HtmlCommandLink link=new HtmlCommandLink();
              link.setValue("Let's Bingo");
              MyUtil.setActionListener(context,link,"#{temp.mytest}");
              UIParameter param=new UIParameter();
              param.setName("name");
              param.setValue("Robin!");
              link.getChildren().add(param);
              param.setParent(link);
              getChildren().add(link);
              link.setParent(this);
              super.processRestoreState(context,state);
    }         you see, i want to construct the compont tree at Restore View phase this way,because the structure of the component tree will always be the same, so i don't the user to write extra code.
    But the children of the component are not rendered,the renderer of the HtmlCategory component just extends the HtmlGridRenderer(myfaces) directly,and always calls the "super" methods in the encode methods of the renderer.
    I got a message from the console:
    Wrong columns attribute for PanelGrid id0:id4: -2147483648
    but i have set the columns attribute in the code above, so what's happening? or please give some advice about how to render the component tree by myself in Restore View with the tree constructing code in the custom component class code,just lke the code above.
    Best Regards:)
    Robin

    Well, i don't know if i have got my question clear.
    usually, according to the tags you use in the jsf page, a component tree will be created at the Restore View phase,for example:
    <f:form>
      <h:panelGrid ...........>                         
              <h:dataTable ................>
              </h:dataTable>
       </h:panelGrid>
    </f:form>but because i am writing a component for my web app, all the child components and their attributes are not likely to change. so i want to reduce the tags into one custom tag, and construct the component tree internally by myself.But it is not the case of backing bean.So i wrote the the code in the method:
    public void processRestoreState(javax.faces.context.FacesContext context,java.lang.Object state)as it is shown in my orginal message.But it seems that it is not right way to construct my component tree.So where should i put the code that construct the component tree?Overriding the method :
    public void processRestoreState(javax.faces.context.FacesContext context,java.lang.Object state)is not the right way?
    Best Regards:)
    Robin

  • How to modify a pdf?

    how to modify a existing pdf document?

    Hi kewme5798,
    You can edit a PDF file if you have the  Adobe Acrobat software
    1. Open Adobe Acrobat. From the File menu select "Open." Browse to the document you wish to edit and double-click the file to open it.
      2. Add or remove pages by selecting the "Tools" menu on the right-hand side of the page. Select the "Pages" option. Choose the appropriate action: "Insert from file," "Delete," "Extract" or "Replace," to name a few options. For example, to add pages from another PDF file, click the "Insert from file" option and select the file you wish to insert. Follow the prompts to tell Acrobat where to insert the additional pages (before or after the existing pages) and click "OK." Delete pages by the clicking the "Delete" option and highlighting the pages you wanted deleted from the PDF file.
    3. Edit the text within the pages by selecting "Tools," "Content," "Edit Document Text." Highlight the text you need to edit and type in the new text.
    4. Click on "Tools," "Content" and "Edit Object" to move objects around on the page, resize them, flip or rotate them. You can also edit the size and orientation of images and text boxes using this option.
      5. Complete the necessary editing, proofread your changes and click "Save As" from the File menu.  Name your document something to indicate that it is a revised version of the original document and click the "Save" button.

  • How to modify a lookup field-type to use checkbox instead of radiobutton?

    How to modify a lookup field-type to use checkbox instead of radiobutton?
    I would like to modify the behavior for the lookup field.
    Normally you get a screen where it is possible to search through a lookup. The items resulted from the search are listed as radiobutton items. Therefore you can select only one at the time to be added.
    Is it possible to have the items to be listed as checkbox instead? So that you can check multiple items and therefore be able to add multiple items at the time?
    For example:
    To add the user to 10 different groups on MS-AD.
    It is desired to have the ability to check multiple groups to be added instead only one at the time.
    My client would like to use this feature in many other situations.

    Displaying will not be a big deal but with that you have to customize the action class and its working as well.

  • How to modify a column name & How to modify a constraint name

    How to modify a column name?
    How to modify a primary key constraint name if the pk has been referenced by another foreign key?
    Thanks.

    Hi,
    What version of oracle are you using? If it is 9i,
    then you can the command
    alter table <table_name> rename column <column_name> to <new_column>;
    if it is 8i or earlier, you can create a view with the required names.
    hth
    Always post the oracle version and the platform you are using to get better response.

  • How to modify the coding part of KE30 reports ?

    How to modify the coding part of KE30 reports ,
    so that I can be able to restrict report output based on sales office.
    I am unable to find out the program name also.
    Regards
    Anubhav

    >
    Venkat Reddy wrote:
    > Hi,
    >
    > If u want to know the program running for KE30 just go to SE93 and give KE30
    > and click on display you can see the program running for KE30 will be SAPMKCEE.
    > I think this is much simpler :-).
    >
    > Rather than change the standard report try to prepared your own that will be more
    > comfortable since it will be complex task to achieve editing the standard program.
    > Good Luck
    >
    > Regards
    > VEnk@
    >
    > Edited by: Venkat Reddy on Dec 11, 2009 4:52 PM
    Venkat,your answer is much simpler If the OP knows there is a tcode Se93, what if he/she does not know it?? 
    P.S: Just a thought.
    Regards.
    Vishwa.

  • How to modify the text in login page?

    In login page , there are some lines text:
    This network is to be used only for legitimate business purposes. If you are not authorized to have access, do not enter this network. By entering the network, you agree to maintain its confidentiality and not to disclose or misuse the information contained in the network and you further agree to our monitoring of your use of this network.
    How to modify or delete these words ?
    Thanks

    This text is not a translation managed in the DB.  you can modify the aspx page, directly.  web\webcommon\login.aspx

  • How to display the Component view in the Pop up

    HI.
    I created one Z Component.
    In that i put one Button name as a POPUP.
    when i press that Button i want open an another component View or Same Component another View.
    How it is possible.
    I am writing the code in Event Handler.
    CALL METHOD COMP_CONTROLLER->IF_BSP_WD_WINDOW_MANAGER~CREATE_POPUP
      EXPORTING
        IV_INTERFACE_VIEW_NAME = 'ZKRI_NAVIGATION/DetailsOV' 
        IV_USAGE_NAME          =  'ConfigStdAlone'
        IV_TITLE               = 'Hello'
      RECEIVING
        RV_RESULT              =  confirm_popup.
    confirm_popup->set_on_close_event( iv_event_name = 'POPUP_CLOSED' iv_view = me ).
      confirm_popup->open( ).
    But i did not get the Popup with the view.
    How it is possible. Please expalin how to call another view in pop up with in the Same Component.
    How to call another component view

    Hi,
    Did you create a component usage of the Z component in the Run time Repository ?
    You can look into any of the standard fields with an F4 help for sample code..like Business Partner etc.,
    Regards,
    Masood Imrani S.
    Edited by: Masood Imrani on May 12, 2009 4:23 PM

  • Error 500--Internal Server Error:How to modify req.setReportAbsolutePath

    I test a servlet but I get following errors. I use OBIEE 11g and Jdeveloper 11.1.1.3
    How to modify the source code and the req.setReportAbsolutePath?
    ===============error====================
    http://127.0.0.1:7101/Application4-Project4-context-root/bipservlettest
    Error 500--Internal Server Error
    java.lang.NullPointerException
         at java.io.OutputStream.write(OutputStream.java:58)
         at mywebcenter.BipServletTest.doGet(BipServletTest.java:75)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.dms.wls.DMSServletFilter.doFilter(DMSServletFilter.java:330)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.doIt(WebAppServletContext.java:3684)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3650)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2268)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2174)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1446)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    ========source code============
    package mywebcenter;
    import java.io.IOException;
    import java.io.PrintWriter;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import com.oracle.xmlns.oxp.service.publicreportservice.AccessDeniedException;
    import com.oracle.xmlns.oxp.service.publicreportservice.AccessDeniedException_Exception;
    import com.oracle.xmlns.oxp.service.publicreportservice.DeliveryRequest;
    import com.oracle.xmlns.oxp.service.publicreportservice.InvalidParametersException;
    import com.oracle.xmlns.oxp.service.publicreportservice.InvalidParametersException_Exception;
    import com.oracle.xmlns.oxp.service.publicreportservice.LocalDeliveryOption;
    import com.oracle.xmlns.oxp.service.publicreportservice.OperationFailedException;
    import com.oracle.xmlns.oxp.service.publicreportservice.OperationFailedException_Exception;
    import com.oracle.xmlns.oxp.service.publicreportservice.PublicReportService;
    import com.oracle.xmlns.oxp.service.publicreportservice.PublicReportServiceClient;
    import com.oracle.xmlns.oxp.service.publicreportservice.PublicReportServiceService;
    import com.oracle.xmlns.oxp.service.publicreportservice.ReportRequest;
    import com.oracle.xmlns.oxp.service.publicreportservice.ReportResponse;
    import com.oracle.xmlns.oxp.service.publicreportservice.ScheduleRequest;
    import java.io.IOException;
    import java.io.OutputStream;
    import java.io.PrintWriter;
    import java.net.URL;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import javax.xml.namespace.QName;
    public class BipServletTest extends HttpServlet {
    private static final String CONTENT_TYPE =
    "text/html; charset=windows-1252";
    private static PublicReportServiceService publicReportServiceService;
    public void init(ServletConfig config) throws ServletException {
    super.init(config);
    public void doGet(HttpServletRequest request,
    HttpServletResponse response) throws ServletException,
    IOException {
    response.setContentType(CONTENT_TYPE);
    OutputStream os = response.getOutputStream();
    //PrintWriter out = response.getWriter();
    String sid = "";
    System.out.println("===57===");
    publicReportServiceService = new PublicReportServiceService(new URL("http://localhost:9704/xmlpserver/services/PublicReportService"),
    new QName("http://xmlns.oracle.com/oxp/service/PublicReportService",
    "PublicReportServiceService"));
    PublicReportService publicReportService =
    publicReportServiceService.getPublicReportService();
    //To get a session id
    System.out.println("===64===");
    try {
    sid = this.getSessionID("weblogic", "welcome1", publicReportService);
    } catch (AccessDeniedException_Exception e) {
    System.out.println("invalid user");
    //To generate a report and display it
    System.out.println("===72===");
    ReportResponse res = this.getReportInSession(publicReportService, sid);
    byte[] binaryBytes = res.getReportBytes();
    os.write(binaryBytes);
    response.setContentType(res.getReportContentType());
    public String getSessionID(String username, String password, PublicReportService publicReportService) throws AccessDeniedException_Exception {
    String sid = publicReportService.login(username, password);
    return sid;
    public ReportResponse getReportInSession(PublicReportService publicReportService,
    String sid) {
    ReportRequest req = new ReportRequest();
    ReportResponse res = new ReportResponse();
    System.out.println("===89===");
    req.setAttributeFormat("pdf");
    req.setAttributeLocale("en-US");
    req.setAttributeTemplate("Simple");
    req.setReportAbsolutePath("E:\\OracleBI_win2008_32_20101206\\user_projects\\domains\\bifoundation_domain\\config\\bipublisher\\repository\\Reports\\Samples\\11g Overview\\W2 2010.xdo");
    //req. setSizeOfDataChunkDownload (-1); //download all
    try {
    System.out.println("99");
    res = publicReportService.runReportInSession(req, sid);
    System.out.println("101");
    System.out.println("===100==="+res.getReportContentType());
    } catch (Exception e) {
    System.out.println(e);
    System.out.println("===107===");
    return res;
    ============Jdeveloper console==================
    [Another instance of the application is running on the server.  JDeveloper redeploy the application.]
    [Application Application4 stopped but not undeployed from Server Instance IntegratedWebLogicServer]
    [Running application Application4 on Server Instance IntegratedWebLogicServer...]
    [12:45:14 PM] ---- Deployment started. ----
    [12:45:14 PM] Target platform is (Weblogic 10.3).
    [12:45:14 PM] Retrieving existing application information
    [12:45:14 PM] Running dependency analysis...
    [12:45:14 PM] Deploying 2 profiles...
    [12:45:15 PM] Wrote Web Application Module to C:\Users\Administrator\AppData\Roaming\JDeveloper\system11.1.1.3.37.56.60\o.j2ee\drs\Application4\Project4WebApp.war
    [12:45:15 PM] WARNING: Connection ApplicationDB has no password. ApplicationDB-jdbc.xml file not generated for connection ApplicationDB.
    [12:45:15 PM] Wrote Enterprise Application Module to C:\Users\Administrator\AppData\Roaming\JDeveloper\system11.1.1.3.37.56.60\o.j2ee\drs\Application4
    [12:45:15 PM] Redeploying Application...
    [12:45:17 PM] Application Redeployed Successfully.
    [12:45:17 PM] The following URL context root(s) were defined and can be used as a starting point to test your application:
    [12:45:17 PM] http://192.168.1.17:7101/Application4-Project4-context-root
    [12:45:17 PM] Elapsed time for deployment: 4 seconds
    [12:45:17 PM] ---- Deployment finished. ----
    Run startup time: 3547 ms.
    [Application Application4 deployed to Server Instance IntegratedWebLogicServer]
    Target URL -- http://127.0.0.1:7101/Application4-Project4-context-root/bipservlettest
    ===57===
    ===64===
    ===72===
    ===89===
    99
    javax.xml.ws.soap.SOAPFaultException: oracle.xdo.webservice.exception.OperationFailedException: PublicReportService::generateReport failed: due to oracle.xdo.servlet.CreateException: Report definition not found:E:\OracleBI_win2008_32_20101206\user_projects\domains\bifoundation_domain\config\bipublisher\repository\Reports\Samples\11g Overview\W2 2010.xdo
    ===107===
    <Dec 8, 2010 12:45:24 PM PST> <Error> <HTTP> <BEA-101020> <[ServletContext@26496369[app:Application4 module:Application4-Project4-context-root path:/Application4-Project4-context-root spec-version:2.5]] Servlet failed with Exception
    java.lang.NullPointerException
         at java.io.OutputStream.write(OutputStream.java:58)
         at mywebcenter.BipServletTest.doGet(BipServletTest.java:75)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         Truncated. see log file for complete stacktrace
    >
    <Dec 8, 2010 12:45:24 PM PST> <Notice> <Diagnostics> <BEA-320068> <Watch 'UncheckedException' with severity 'Notice' on server 'DefaultServer' has triggered at Dec 8, 2010 12:45:24 PM PST. Notification details:
    WatchRuleType: Log
    WatchRule: (SEVERITY = 'Error') AND ((MSGID = 'BEA-101020') OR (MSGID = 'BEA-101017') OR (MSGID = 'BEA-000802'))
    WatchData: DATE = Dec 8, 2010 12:45:24 PM PST SERVER = DefaultServer MESSAGE = [ServletContext@26496369[app:Application4 module:Application4-Project4-context-root path:/Application4-Project4-context-root spec-version:2.5]] Servlet failed with Exception
    java.lang.NullPointerException
         at java.io.OutputStream.write(OutputStream.java:58)
         at mywebcenter.BipServletTest.doGet(BipServletTest.java:75)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.dms.wls.DMSServletFilter.doFilter(DMSServletFilter.java:330)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.doIt(WebAppServletContext.java:3684)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3650)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2268)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2174)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1446)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    SUBSYSTEM = HTTP USERID = <WLS Kernel> SEVERITY = Error THREAD = [ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)' MSGID = BEA-101020 MACHINE = WIN-IT8WDLG81KH TXID = CONTEXTID = 55211ca27b9d1dfd:bd42a62:12cc7606a10:-8000-000000000000009c TIMESTAMP = 1291841124147
    WatchAlarmType: AutomaticReset
    WatchAlarmResetPeriod: 30000
    >
    <Dec 8, 2010 12:45:34 PM PST> <Alert> <Diagnostics> <BEA-320016> <Creating diagnostic image in c:\users\administrator\appdata\roaming\jdeveloper\system11.1.1.3.37.56.60\defaultdomain\servers\defaultserver\adr\diag\ofm\defaultdomain\defaultserver\incident\incdir_12 with a lockout minute period of 1.>

    am able to login
    http://192.168.75.140:7001/console/login/LoginForm.jsp
    from this environment-> servers-> all servers(adminserver,soa_server1, oim_server1, oam_server1) status is running,and health is ok.
    I have started these servers from command line <base_domain/bin/sh startManagedWebLogic.sh oim_server1
    result is <server started in running mode>
    now I shutdown the oam_server1 and oim_server1
    again I started the oim_server1 as above
    command line result is < <May 30, 2013 7:54:47 PM IST> <Notice> <WebLogicServer> <BEA-000360> <Server started in RUNNING mode>
    but in (http://localhost:7001/console) window oim_server1 status is unknown...

Maybe you are looking for

  • Slow printing

    Hi- I have a hp laserjet 100 color mfp m175a printer and I am using Mac OS 10.7. It takes a long time to print a document (approximatelly 45 or more seconds per page). Printing itself is fast, but the printer takes long time to load the document, and

  • K210 will not connect to secured network

    My Lenovo K210 system running Vista will not connect to a secured wireless network.  I added a Tenda, and Netgear USB wifi stick as well as a Rosewell PCI card (removing each before proceeding to the next element.).  It will see the secured network,

  • VGA to HDMI issue with Toshiba TV

    Hi, I'm having issues connecting an old powerbook G4 running 10.4.11 into a Toshiba TV. I have a DVI to VGA converter from the laptop connected to a VGA to HDMI cable running to the TV's HDMI input. The laptop recognises the television in the display

  • Where are printer paper profiles stored in Mavericks?

    In previous versions of OS X, I could find where my printer paper profiles were stored. I have some test paper profiles that don't work and I want to delete them but I can't find them in Mavericks 10.9.2 I have done a search for their name but appare

  • ExportAsFDF is not working properly on Acrobat Professional 8

    Hi, I am working on Acrobat Professional 8 to export FDF using vb.net. FDF export by manually is working proper but from script its giving me below FDF file: %FDF-1.2 %âãÏÓ 1 0 obj <</FDF<</ID[<D112096744983A4F942778C9714C68BB><18355F3D06AAA94DA58E6A