Getting ServeltContext object in different ways

If we can get ServletContext object in our servlet using getServletContext() then what is the need for getting it using the ServletConfig object i.e by
using config.getServletContext() where config refers to the ServletConfig object.
Are these methods there just for convinience ?

Just read the API documentation: http://java.sun.com/products/servlet/2.5/docs/servlet-2_5-mr2/javax/servlet/GenericServlet.html#getServletContext()

Similar Messages

  • How to get similar color for objects in different pictures

    how do you get similar color for objects in different pictures
    I have a prodject that i'm working on and i need to edit several images at once (preferabley) so that they are the same color. They are wooden cupboards and i need all the wood looking the same colour. In light room you can edit a group of images at the same time hence the colours are the same . Is this possible in Elements ? If so how do i do this ?
    I have tried duplicating layers and it just replaces the whole image, it seems to work using levels layers but not the other layers ... I have 30 more images to do and would ideally not like to adjust all the images manually ? I dont mind doing minor tweaks. Essentially all the images where taken with the same camera and lighting and lens's ...
    Screen shot is where I'm at at the moment...
    I have posted this question else where but was told to repost  - this is a link to my previous post as to where we got to
    http://forums.adobe.com/message/4720576#4720576

    You could try using the raw converter. Open one file and edit it (File>Open, pick the image and choose Camera Raw as the format before you click Open). Then open the next image and click the little four-lined square on the upper right side of the ACR window and choose Previous Conversion from the flyout menu.

  • Different ways ofaccessing an object

    How many different ways you can access another class' methods and attributes. I mean other than just instantiating an object with in your class.
    Actually I read somewhere that an attrivute to an object can be made readily availabale to the entire application. How would u ever do that?

    One way would be the reflection api to access another classes methods. The only way to access attributes would be if the executing class was within the allowed visiblity (public, protected, package, private).

  • Why can't get the object "out" in this way?

    We use "PrintWriter out=response.getWriter()"to get a "out" object in Servlet and output text to webbrowser with it.But I think the PrintWriter is a class and Why can't I get the object "out" use this way:"PrintWriter out=new PrintWriter()"?I think the later is easier to understand.Anyone can help me?

    I check the Servlet API.The PrintWriter has a constructor with a abstract object Writer as it's parameter.I couldn't create the Writer object so I can't create the out object.Why it's constructor is protected by java?

  • Different ways to find Customer exit, User Exit & Badi

    Dear All,
    What are the different ways by which we can find  Customer Exit, User Exit & Badi for a given transaction code
    Thanks
    Ravindra suvarna

    <b>use  this report  u  can  find associate badi and  user exit both for  perticular transaction</b>&----
    *& Report  ZNEGI16                                                     *
    REPORT  ZNEGI16                                 .
    TABLES : TSTC,
    TADIR,
    MODSAPT,
    MODACT,
    TRDIR,
    TFDIR,
    ENLFDIR,
    SXS_ATTRT ,
    TSTCT.
    DATA : JTAB LIKE TADIR OCCURS 0 WITH HEADER LINE.
    DATA : FIELD1(30).
    DATA : V_DEVCLASS LIKE TADIR-DEVCLASS.
    PARAMETERS : P_TCODE LIKE TSTC-TCODE,
    P_PGMNA LIKE TSTC-PGMNA .
    DATA wa_tadir type tadir.
    START-OF-SELECTION.
    IF NOT P_TCODE IS INITIAL.
    SELECT SINGLE * FROM TSTC WHERE TCODE EQ P_TCODE.
    ELSEIF NOT P_PGMNA IS INITIAL.
    TSTC-PGMNA = P_PGMNA.
    ENDIF.
    IF SY-SUBRC EQ 0.
    SELECT SINGLE * FROM TADIR
    WHERE PGMID = 'R3TR'
    AND OBJECT = 'PROG'
    AND OBJ_NAME = TSTC-PGMNA.
    MOVE : TADIR-DEVCLASS TO V_DEVCLASS.
    IF SY-SUBRC NE 0.
    SELECT SINGLE * FROM TRDIR
    WHERE NAME = TSTC-PGMNA.
    IF TRDIR-SUBC EQ 'F'.
    SELECT SINGLE * FROM TFDIR
    WHERE PNAME = TSTC-PGMNA.
    SELECT SINGLE * FROM ENLFDIR
    WHERE FUNCNAME = TFDIR-FUNCNAME.
    SELECT SINGLE * FROM TADIR
    WHERE PGMID = 'R3TR'
    AND OBJECT = 'FUGR'
    AND OBJ_NAME EQ ENLFDIR-AREA.
    MOVE : TADIR-DEVCLASS TO V_DEVCLASS.
    ENDIF.
    ENDIF.
    SELECT * FROM TADIR INTO TABLE JTAB
    WHERE PGMID = 'R3TR'
    AND OBJECT in ('SMOD', 'SXSD')
    AND DEVCLASS = V_DEVCLASS.
    SELECT SINGLE * FROM TSTCT
    WHERE SPRSL EQ SY-LANGU
    AND TCODE EQ P_TCODE.
    FORMAT COLOR COL_POSITIVE INTENSIFIED OFF.
    WRITE:/(19) 'Transaction Code - ',
    20(20) P_TCODE,
    45(50) TSTCT-TTEXT.
    SKIP.
    IF NOT JTAB[] IS INITIAL.
    WRITE:/(105) SY-ULINE.
    FORMAT COLOR COL_HEADING INTENSIFIED ON.
    Sorting the internal Table
    sort jtab by OBJECT.
    data : wf_txt(60) type c,
    wf_smod type i ,
    wf_badi type i ,
    wf_object2(30) type C.
    clear : wf_smod, wf_badi , wf_object2.
    Get the total SMOD.
    LOOP AT JTAB into wa_tadir.
    at first.
    FORMAT COLOR COL_HEADING INTENSIFIED ON.
    WRITE:/1 SY-VLINE,
    2 'Enhancement/ Business Add-in',
    41 SY-VLINE ,
    42 'Description',
    105 SY-VLINE.
    WRITE:/(105) SY-ULINE.
    endat.
    clear wf_txt.
    at new object.
    if wa_tadir-object = 'SMOD'.
    wf_object2 = 'Enhancement' .
    elseif wa_tadir-object = 'SXSD'.
    wf_object2 = ' Business Add-in'.
    endif.
    FORMAT COLOR COL_GROUP INTENSIFIED ON.
    WRITE:/1 SY-VLINE,
    2 wf_object2,
    105 SY-VLINE.
    endat.
    case wa_tadir-object.
    when 'SMOD'.
    wf_smod = wf_smod + 1.
    SELECT SINGLE MODTEXT into wf_txt
    FROM MODSAPT
    WHERE SPRSL = SY-LANGU
    AND NAME = wa_tadir-OBJ_NAME.
    FORMAT COLOR COL_NORMAL INTENSIFIED OFF.
    when 'SXSD'.
    For BADis
    wf_badi = wf_badi + 1 .
    select single TEXT into wf_txt
    from SXS_ATTRT
    where sprsl = sy-langu
    and EXIT_NAME = wa_tadir-OBJ_NAME.
    FORMAT COLOR COL_NORMAL INTENSIFIED ON.
    endcase.
    WRITE:/1 SY-VLINE,
    2 wa_tadir-OBJ_NAME hotspot on,
    41 SY-VLINE ,
    42 wf_txt,
    105 SY-VLINE.
    AT END OF object.
    write : /(105) sy-ULINE.
    ENDAT.
    ENDLOOP.
    WRITE:/(105) SY-ULINE.
    SKIP.
    FORMAT COLOR COL_TOTAL INTENSIFIED ON.
    WRITE:/ 'No.of Exits:' , wf_smod.
    WRITE:/ 'No.of BADis:' , wf_badi.
    ELSE.
    FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.
    WRITE:/(105) 'No userexits or BADis exist'.
    ENDIF.
    ELSE.
    FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.
    WRITE:/(105) 'Transaction does not exist'.
    ENDIF.
    AT LINE-SELECTION.
    data : wf_object type tadir-object.
    clear wf_object.
    GET CURSOR FIELD FIELD1.
    CHECK FIELD1(8) EQ 'WA_TADIR'.
    read table jtab with key obj_name = sy-lisel+1(20).
    move jtab-object to wf_object.
    case wf_object.
    when 'SMOD'.
    SET PARAMETER ID 'MON' FIELD SY-LISEL+1(10).
    CALL TRANSACTION 'SMOD' AND SKIP FIRST SCREEN.
    when 'SXSD'.
    SET PARAMETER ID 'EXN' FIELD SY-LISEL+1(20).
    CALL TRANSACTION 'SE18' AND SKIP FIRST SCREEN.
    endcase.

  • URGENT Different ways of creating portals (Daniel & subbu Have a look and answer)

    Hi all,
         My primary aim is to run an existing application in a portal server.
    My application is running in weblogic6.1. I need to provide a link to that application
    from a portlet.
    I was going thro' the newsgroups and I found out the following responses for my
    requirement,
    I am not clear with these answers.
    1) I need to know what is an IFRAME and some more steps to execute the answer
    given by
    Daniel selman.
    2) Can I convert an URL into portlet?
         This URL content should be shown as it, without has to write any code from the
    side of developer.
    Plz give me some detailed steps to execute this.
    If you guyz can give me some good reference document probably a cook book sort
    of thing, then I will feel more comfortable.
    Thanx in advance,
    Prasanna
    Different ways of creating portlets
    Answered By Daniel selman.
    You can also use an IFRAME inside a Portlet to "include" an external URL within
    a Portlet page.
    I have attached an example of doing this (content.jsp for the portlet uses an
    IFRAME to include www.google.com).
    Can I convert an URL into portlet?
    Answered By Subbu Allamaraju <subbuATBeaDOTCom>
    This URL content should be shown as it, without has to write any code from the
    side of developer. The example provided in portal installation needs demonstrates
    this feature to some extent. But the developer is supposed to extract HTML content
    he/she wants to see and put it in the JSP.
    If the URL is pointing to a page in the same web app, it is straight forward
    to make it a portlet.
    I have few JSPs running in a machine that is remote to the portal node, and which
    is accessible through a proxy from portal. Can I convert these applications into
    portlets?
    Answered By Subbu Allamaraju <subbuATBeaDOTCom>
    The easiest approach is make those remote apps available as web services. Please
    look at the portal wizard that can create portlets to talk to web services. The
    same wizard will also help convering remote
    URLs to portlets.
    I have a full fledged webapplication running on weblogic server. But for some
    additional features (commercial services) I need to used portal server. How do
    i modify the existing site for the desired
    change?
    Answered By Subbu Allamaraju <subbuATBeaDOTCom>
    This will involve some amount of redesign since you're converint a regular web
    site into a portal (the domain/portal wizards will help you do this). You'll then
    need to create a new portal app, and convert those web apps into portlets, and
    add these portlets to the new portal app.

    Prasanna,
    It is impossible to answer this question is a general way, it all depends on
    what the other web application is doing. If it is just returning static HTML
    then a home-grown solution (scrape taglib / IFRAME) and some URL rewriting
    will suffice. If the remote application requires authentication, uses SSL,
    cookies, Javascript, displays pop-ups etc. then things can get complicated
    extremely quickly. At that point you probably need to use a 3rd-party web
    scraping engine (Kapow for example. Peter Laird posted a list of many
    others.)
    There are network throughput, single sign-on, and performance issues to
    consider. Obviously the most performant solution entails converting your
    exisitng WLS application into a Portal application, by refactoring its JSPs,
    deploying its EJBs etc. Alternatively making remote calls into your business
    objects (EJBs) or deploying WebServices to extract the DATA from the remote
    application independent of the presentation may be an option for well
    architected applications.
    So, sorry, I'm afraid it is very hard to generalize these things into much
    more than a list of issues that you should consider as you work through the
    possible solutions.
    FYI: IFRAME is supported by IE 5+ and Netscape 6.x:
    http://www.webreview.com/browsers/browser_implementation.shtml
    Sincerely,
    Daniel Selman
    "Prasanna" <[email protected]> wrote in message
    news:[email protected]...
    >
    Hi all,
    My primary aim is to run an existing application in a portal server.
    My application is running in weblogic6.1. I need to provide a link tothat application
    from a portlet.
    I was going thro' the newsgroups and I found out the following responsesfor my
    requirement,
    I am not clear with these answers.
    1) I need to know what is an IFRAME and some more steps to execute theanswer
    given by
    Daniel selman.
    2) Can I convert an URL into portlet?
    This URL content should be shown as it, without has to write any code fromthe
    side of developer.
    Plz give me some detailed steps to execute this.
    If you guyz can give me some good reference document probably a cook booksort
    of thing, then I will feel more comfortable.
    Thanx in advance,
    Prasanna
    Different ways of creating portlets
    Answered By Daniel selman.
    You can also use an IFRAME inside a Portlet to "include" an external URLwithin
    a Portlet page.
    I have attached an example of doing this (content.jsp for the portlet usesan
    IFRAME to include www.google.com).
    Can I convert an URL into portlet?
    Answered By Subbu Allamaraju <subbuATBeaDOTCom>
    This URL content should be shown as it, without has to write any code fromthe
    side of developer. The example provided in portal installation needsdemonstrates
    this feature to some extent. But the developer is supposed to extract HTMLcontent
    he/she wants to see and put it in the JSP.
    If the URL is pointing to a page in the same web app, it isstraight forward
    to make it a portlet.
    I have few JSPs running in a machine that is remote to the portal node,and which
    is accessible through a proxy from portal. Can I convert theseapplications into
    portlets?
    Answered By Subbu Allamaraju <subbuATBeaDOTCom>
    The easiest approach is make those remote apps available as web services.Please
    look at the portal wizard that can create portlets to talk to webservices. The
    same wizard will also help converingremote
    URLs to portlets.
    I have a full fledged webapplication running on weblogic server. But forsome
    additional features (commercial services) I need to used portal server.How do
    i modify the existing site for thedesired
    change?
    Answered By Subbu Allamaraju <subbuATBeaDOTCom>
    This will involve some amount of redesign since you're converint a regularweb
    site into a portal (the domain/portal wizards will help you do this).You'll then
    need to create a new portal app, and convert those web apps into portlets,and
    add these portlets to the new portal app.

  • Getting an object from HttpSession...

    Hi all,
    I am stuck which is according to me is very obvious...please correct me if I am wrong.
    I have a java.util.ArrayList object in my HttpSession object.
    Now in my helper class to which the request is passed from the servlet I am extracting this ArrayList object in one ArrayList object and putting it into the HashMap. After this, I am again extracting this ArrayList object from the HttpSession and assigning it to a newly created ArrayList object in my helper class. Now I am passing this newly created ArrayList object to a method. This method after processing changes this ArrayList object. And finally I am putting this changed ArrayList object in the HashMap I created earlier.
    After doing all this, when I am trying to extract and print these ArrayList Objects from the session object...I found my first ArrayList object has also been affected by the same change as the second one. The expected result was only the second object will be changed. I am stuck with this.
    I know it has something to do with references....but I am not able to understand that when I am trying to create two new copies by extracting an object from the Session...and changing one how is my second object getting affected. Any help will be appriciated.
    The code for this is as follows:
    "phSessionState" is a collection object in HttpSession which holds all the other objects. We are not putting different objects directly in the HttpSession.
    "LineObject" is a simple JavaBean kind of class with gettrs and setters
    ArrayList originalList = (ArrayList)phSessionState.getData("lineObjectList");
    HashMap stagedLineObjects = new HashMap();
    stagedLineObjects.put("OriginalList", originalList);
    //Extracting same in another object and calling a method to update it.
    ArrayList tempList = (ArrayList)phSessionState.getData("lineObjectList");
    //Method to update the ArrayList
    updateLineObjectList(tempList, request);
    stagedLineObjects.put("UpdatedList", tempList);
    //Trying to get the objects from the HashMap and print
    System.out.println("Retriving OriginalList...");
    ArrayList List1 = (ArrayList)stagedLineObjects.get("OriginalList");
    for(int i=0; i<List1.size(); i++)
         LineObject lo = (LineObject)List1.get(i);
         System.out.println(lo.getUserID() + "\t" + lo.getPassword()
    + "\t" + lo.getFirstName() + "\t" + lo.getMiddleName() + "\t" +
    lo.getLastName());
    System.out.println("Retriving UpdatedList...");
    ArrayList List2 = (ArrayList)stagedLineObjects.get("UpdatedList");
    for(int i=0; i<List2.size(); i++)
         LineObject lo = (LineObject)List2.get(i);
         System.out.println(lo.getUserID() + "\t" + lo.getPassword()
    + "\t" + lo.getFirstName() + "\t" + lo.getMiddleName() + "\t" +
    lo.getLastName());
    Waiting for your valuable help...
    Thanks & Regards,
    Gauz

    You must remember that objects are passed by reference. So when you are passing around your ArrayList, you are actually passing a reference to the ArrayList. In other words, there exists one instance of your specific ArrayList in memory and what you are passing around are copies of the "reference" to that memory location.
    If you want to pass a copy of your ArrayList, you can create a copy of the ArrayList and pass the reference to that new copy. One way to do this is as follows:ArrayList originalList = new ArrayList();
    //Let's put two objects into the ArrayList
    originalList.add(1, new StringBuffer("object1"));
    originalList.add(2, new StringBuffer("object2"));
    //Now let's copy the ArrayList
    ArrayList copyOfList = new ArrayList(originalList);
    //now, you have two copies of the ArrayList.  You can make
    //changes to copyOfList without affecting originalList
    copyOfList.add(3, new StringBuffer("object3"));
    //Checking the size of each ArrayList will demonstrate a difference
    System.out.println("Original's size is " + originalList.size());
    System.out.println("Copy's size is " + copyOfList.size());
    //Output should be:
    //  Original's size is 2
    //  Copy's size is 3Please keep in mind that the objects within the ArrayList are also being passed by reference. So if you modify an object within originalList, those modifications will be reflected in the same object found in copyOfList.
    For example,StringBuffer sb = (StringBuffer)copyOfList.get(1);
    sb.append(":modified");
    //Now print the values of the first object in each ArrayList
    StringBuffer sbFromOriginal = (StringBuffer)originalList.get(1);
    StringBuffer sbFromCopy = (StringBuffer)copyOfList.get(1);
    System.out.println("Original's value is " + sbFromOriginal.toString());
    System.out.println("Copy's value is " + sbFromCopy.toString());
    //Your output should read
    //  Original's value is object1:modified
    //  Copy's value is object1:modifiedThis is because you made a copy of the ArrayList, but not a copy of each object within the ArrayList. So you actually have two seperate copies of ArrayList but they are referencing the same two objects in positions 1 and 2. The object in position 3 exists only in copyOfList.
    Hope this helps.

  • Client Install Fails - Unable to get Win32_OperatingSystem object

    I have a PC that won't install the SCCM client via Client Push.  In the CCM.Log file on the site server, it connects to the IPC$ and admin$ shares using my client installation account, but then it comes back with this error:
    ---> Unable to get Win32_OperatingSystem object from WMI on remote machine "PCNAME", error = 0x80080005.
    I know that error means that access was denied to WMI, and I verified that when I run wbemtest manually (using the same client installation account), I can connect to the root\cimv2 object on that PC but when I try to enumerate the instances of the Win32_OperatingSystem object, I get the same error.
    I also tried using Computer Management applet (remotely - I have no local access to this PC) to look at the WMI Control properties.  Again, I get the same access denied error so I can't check/change the security permissions that way.
    I have verified that my client installation account is in the local Administrators group of the PC.  I've already tried rebuilding the WMI repository - that worked but it didn't fix the access issue.  I know I can install the client manually but I'm guessing I'd still have a problem with inventories, etc. that are dependent on access to that WMI object.  Any suggestions about how to go about fixing the WMI access issue?
    Thanks so much, --Jo

    Finally getting back to this issue after vacaton... sigh.
    I got a little further.  I took client push out of the mix and ran ccmsetup.exe locally on the PC.  This time the client installation ran.  However, I'm still getting a similar error from the client itself and the client is not talking to the site.  After the client was installed, only about 10 of the log files showed up in system32\ccm\logs. 
    ccmexec.log shows this error: 
    Endpoint'PolicyAgent_PolicyEvaluator' return 0x80070057 from event notification
    PolicyAgentProvider.log has these lines repeating:
    Failed to create actual config class for 'CCM_RootCACertificates' 
    Failed to update namespace 'Machine' (80041002) 
    Successfully updated namespace 'DefaultMachine' 
    Successfully updated namespace 'DefaultUser' 
    Failed to create actual config class for 'CCM_MulticastConfig' 
    Failed to update namespace 'Machine' (80041002) 
    PolicyEvaluator.log has this error:
    Received notification that Local policy has changed. 
    Failed to trigger Machine settings update (80070057)
    SrcUpdateManager has these errors:
    Instance of CCM_SourceUpdateClientConfig doesn't exist in WMI
    Failed to get instance of CCM_SourceUpdateHistory, error 80041002
    ClientIDManagerStartup.log has these errors:
    GetSystemEnclosureInfo failed (0x80080005)
    ComputeHardwareID failed (0x80080005).
    RegTask: Failed to create registration request body. Error: 0x80080005
    The rest of the logs that exist (LocationServices, StatusAgent, ClientLocation, RemCtrl, and setuppolicyevaluator) appear to be OK. 
    These seem to all be WMI-related errors/issues, but I can't find any specific information on any SCCM/SMS websites/forums that address these particular errors in these particular log files.  I've tried rebuilding the repository (several times), I've done the regsvr stuff as discussed above, etc. 
    I ran WMIDIAG next.  It ran for a little less than two hours - not sure if that's normal or not, but the log file continued to update the entire time.  Now I have this log file and I'm not sure what to do with the issues I found.  I'm looking at the WMI REPORT: BEGIN section...  I see instructions that make sense for most of the errors.  However, the section of log file below shows the area that is most likely causing issues for SCCM because it is the same error I get on the client install.  I have no idea how to fix this stuff - any help would be appreciated:
    31997 14:20:05 (1) !! ERROR: WMI ENUMERATION operation errors reported: .......................................... 33 ERROR(S)!
    31998 14:20:05 (0) ** - ROOT/CIMV2, InstancesOfAsync, CIM_USBDevice, 0x80080005 - .
    31999 14:20:05 (0) ** - ROOT/CIMV2, InstancesOfAsync, CIM_USBHub, 0x80080005 - .
    32000 14:20:05 (0) ** - ROOT/CIMV2/SMS, InstancesOfAsync, SMS_Class_Template, 0x80041011 - (WBEM_E_PROVIDER_NOT_FOUND) Provider referenced in the schema does not have a corresponding registration.
    32001 14:20:05 (0) ** - Root/Default, InstancesOf, SystemRestore, 0x80080005 - Server execution failed.
    32002 14:20:05 (0) ** - Root/CIMv2, InstancesOf, Win32_Process, 0x80080005 - Server execution failed.
    32003 14:20:05 (0) ** - Root/CIMv2, InstancesOf, Win32_OperatingSystem, 0x80080005 - Server execution failed.
    32004 14:20:05 (0) ** - Root/CIMv2, InstancesOf, Win32_ComputerSystem, 0x80080005 - Server execution failed.
    32005 14:20:05 (0) ** - Root/CIMv2, InstancesOf, Win32_Service, 0x80041013 - (WBEM_E_PROVIDER_LOAD_FAILURE) COM cannot locate a provider referenced in the schema.
    32006 14:20:05 (0) ** - Root/CIMv2, InstancesOf, Win32_Bios, 0x80080005 - Server execution failed.
    32007 14:20:05 (0) ** - Root/CIMv2, InstancesOf, Win32_PerfRawData_Tcpip_IP, 0x80080005 - Server execution failed.
    32008 14:20:05 (0) ** - Root/CIMv2, InstancesOf, Win32_PerfRawData_Tcpip_TCP, 0x80080005 - Server execution failed.
    32009 14:20:05 (0) ** - Root/CIMv2, InstancesOf, Win32_PerfRawData_Tcpip_UDP, 0x80080005 - Server execution failed.
    32010 14:20:05 (0) ** - Root/CIMv2, InstancesOf, Win32_PerfRawData_Tcpip_ICMP, 0x80080005 - Server execution failed.
    32011 14:20:05 (0) ** - Root/CIMv2, InstancesOf, Win32_PerfRawData_PerfOS_Cache, 0x80080005 - Server execution failed.
    32012 14:20:05 (0) ** - Root/CIMv2, InstancesOf, Win32_PerfRawData_PerfOS_Memory, 0x80041013 - (WBEM_E_PROVIDER_LOAD_FAILURE) COM cannot locate a provider referenced in the schema.
    32013 14:20:05 (0) ** - Root/CIMv2, InstancesOf, Win32_PerfRawData_PerfOS_Objects, 0x80080005 - Server execution failed.
    32014 14:20:05 (0) ** - Root/CIMv2, InstancesOf, Win32_PerfRawData_PerfOS_PagingFile, 0x80080005 - Server execution failed.
    32015 14:20:05 (0) ** - Root/CIMv2, InstancesOf, Win32_PerfRawData_PerfOS_Processor, 0x80080005 - Server execution failed.
    32016 14:20:05 (0) ** - Root/CIMv2, InstancesOf, Win32_PerfRawData_PerfOS_System, 0x80080005 - Server execution failed.
    32017 14:20:05 (0) ** - Root/CIMv2, InstancesOf, Win32_PerfRawData_PerfProc_Process, 0x80080005 - Server execution failed.
    32018 14:20:05 (0) ** - Root/CIMv2, InstancesOf, Win32_PerfRawData_PerfProc_Thread, 0x80080005 - Server execution failed.
    32019 14:20:05 (0) ** - Root/CIMv2, InstancesOf, Win32_PerfFormattedData_Tcpip_IP, 0x80080005 - Server execution failed.
    32020 14:20:05 (0) ** - Root/CIMv2, InstancesOf, Win32_PerfFormattedData_Tcpip_TCP, 0x80080005 - Server execution failed.
    32021 14:20:05 (0) ** - Root/CIMv2, InstancesOf, Win32_PerfFormattedData_Tcpip_UDP, 0x80080005 - Server execution failed.
    32022 14:20:05 (0) ** - Root/CIMv2, InstancesOf, Win32_PerfFormattedData_Tcpip_ICMP, 0x80041013 - (WBEM_E_PROVIDER_LOAD_FAILURE) COM cannot locate a provider referenced in the schema.
    32023 14:20:05 (0) ** - Root/CIMv2, InstancesOf, Win32_PerfFormattedData_PerfOS_Cache, 0x80080005 - Server execution failed.
    32024 14:20:05 (0) ** - Root/CIMv2, InstancesOf, Win32_PerfFormattedData_PerfOS_Memory, 0x80080005 - Server execution failed.
    32025 14:20:05 (0) ** - Root/CIMv2, InstancesOf, Win32_PerfFormattedData_PerfOS_Objects, 0x80080005 - Server execution failed.
    32026 14:20:05 (0) ** - Root/CIMv2, InstancesOf, Win32_PerfFormattedData_PerfOS_PagingFile, 0x80080005 - Server execution failed.
    32027 14:20:05 (0) ** - Root/CIMv2, InstancesOf, Win32_PerfFormattedData_PerfOS_Processor, 0x80080005 - Server execution failed.
    32028 14:20:05 (0) ** - Root/CIMv2, InstancesOf, Win32_PerfFormattedData_PerfOS_System, 0x80080005 - Server execution failed.
    32029 14:20:05 (0) ** - Root/CIMv2, InstancesOf, Win32_PerfFormattedData_PerfProc_Process, 0x80080005 - Server execution failed.
    32030 14:20:05 (0) ** - Root/CIMv2, InstancesOf, Win32_PerfFormattedData_PerfProc_Thread, 0x80080005 - Server execution failed.
    32031 14:20:05 (0) **
    32032 14:20:05 (1) !! ERROR: WMI EXECQUERY operation errors reported: ............................................ 17 ERROR(S)!
    32033 14:20:05 (0) ** - Root/Default, SELECT * FROM SystemRestore, 0x80080005 - Server execution failed.
    32034 14:20:05 (0) ** - Root/CIMv2, SELECT * FROM Win32_LogicalDisk WHERE FreeSpace > 10000000 AND DriveType = 3, 0x80080005 - Server execution failed.
    32035 14:20:05 (0) ** - Root/CIMv2, SELECT * FROM Win32_PageFileUsage, 0x80041013 - (WBEM_E_PROVIDER_LOAD_FAILURE) COM cannot locate a provider referenced in the schema.
    32036 14:20:05 (0) ** - Root/CIMv2, SELECT * FROM Win32_BIOS WHERE Version IS NOT NULL, 0x80080005 - Server execution failed.
    32037 14:20:05 (0) ** - Root/CIMv2, SELECT * FROM Win32_NetworkAdapter WHERE AdapterType IS NOT NULL AND AdapterType != "Wide Area Network (WAN)" AND Description != "Packet Scheduler Miniport", 0x80041013 - (WBEM_E_PROVIDER_LOAD_FAILURE) COM cannot locate a provider referenced in the schema.
    32038 14:20:05 (0) ** - Root/CIMv2, SELECT * FROM Win32_Processor WHERE Name IS NOT NULL, 0x80080005 - Server execution failed.
    32039 14:20:05 (0) ** - Root/CIMv2, SELECT * FROM Win32_DiskDrive, 0x80041013 - (WBEM_E_PROVIDER_LOAD_FAILURE) COM cannot locate a provider referenced in the schema.
    32040 14:20:05 (0) ** - Root/CIMv2, SELECT * FROM Win32_ComputerSystem, 0x80080005 - Server execution failed.
    32041 14:20:05 (0) ** - Root/CIMv2, SELECT * FROM Win32_DiskPartition, 0x80041013 - (WBEM_E_PROVIDER_LOAD_FAILURE) COM cannot locate a provider referenced in the schema.
    32042 14:20:05 (0) ** - Root/CIMv2, SELECT * FROM Win32_LogicalDisk WHERE Description != "Network Connection", 0x80080005 - Server execution failed.
    32043 14:20:05 (0) ** - Root/CIMv2, SELECT * FROM Win32_SoundDevice, 0x80041013 - (WBEM_E_PROVIDER_LOAD_FAILURE) COM cannot locate a provider referenced in the schema.
    32044 14:20:05 (0) ** - Root/CIMv2, SELECT * FROM Win32_VideoController, 0x80080005 - Server execution failed.
    32045 14:20:05 (0) ** - Root/CIMv2, SELECT * FROM Win32_USBController, 0x80041013 - (WBEM_E_PROVIDER_LOAD_FAILURE) COM cannot locate a provider referenced in the schema.
    32046 14:20:05 (0) ** - Root/CIMv2, SELECT * FROM Win32_DesktopMonitor, 0x80080005 - Server execution failed.
    32047 14:20:05 (0) ** - Root/CIMv2, SELECT * FROM Win32_PointingDevice WHERE Status = "OK", 0x80041013 - (WBEM_E_PROVIDER_LOAD_FAILURE) COM cannot locate a provider referenced in the schema.
    32048 14:20:05 (0) ** - Root/CIMv2, SELECT * FROM Win32_Keyboard, 0x80080005 - Server execution failed.
    32049 14:20:05 (0) ** - Root/CIMv2, SELECT * FROM Win32_SystemDriver WHERE StartMode != "Disabled", 0x80041013 - (WBEM_E_PROVIDER_LOAD_FAILURE) COM cannot locate a provider referenced in the schema.
    32050 14:20:05 (0) **
    32051 14:20:05 (0) ** WMI PUT operations: ........................................................................ OK.
    32052 14:20:05 (0) ** WMI DELETE operations: ..................................................................... OK.
    32053 14:20:05 (0) ** WMI GET VALUE operations: .................................................................. OK.
    32054 14:20:05 (0) ** WMI static instances retrieved: ............................................................ 1541.
    32055 14:20:05 (0) ** WMI dynamic instances retrieved: ........................................................... 0.
    32056 14:20:05 (0) ** WMI instances request cancellations (to limit performance impact): ......................... 0.
    32057 14:20:05 (0) **
    32058 14:20:05 (0) ** 38 error(s) 0x80080005 - (WBEM_UNKNOWN) This error code is external to WMI.
    32059 14:20:05 (0) **
    32060 14:20:05 (0) ** 1 error(s) 0x80041011 - (WBEM_E_PROVIDER_NOT_FOUND) Provider referenced in the schema does not have a corresponding registration
    32061 14:20:05 (0) ** => This error is typically due to the following major reasons:
    32062 14:20:05 (0) **    - The application queried by the WMI provider is not installed, not available or not running
    32063 14:20:05 (0) **      at the time of the request was made. This error can also be generated because
    32064 14:20:05 (0) **      the application supporting the providers has been uninstalled.
    32065 14:20:05 (0) **    - The WMI provider binary files are not accessible (e.g. access denied ACL).
    32066 14:20:05 (0) **    - A WMI provider registration problem at the CIM level (MOFCOMP.EXE) or at the COM level (REGSVR32.EXE).
    32067 14:20:05 (0) **      You must re-register the WMI provider by recompiling its associated MOF file with MOFCOMP.EXE
    32068 14:20:05 (0) **    Note: - If the WMI provider DLL CIM and COM registrations are correct, this error can
    32069 14:20:05 (0) **            be returned because the provider has a dependency on another DLL that cannot be
    32070 14:20:05 (0) **            loaded (missing or bad DLL)
    32071 14:20:05 (0) **          - Dependencies can be found with the DEPENDS.EXE tool coming with the
    32072 14:20:05 (0) **            Windows XP and Windows 2003 Support Tools. The command line is as follows:
    32073 14:20:05 (0) **            e.g. DEPENDS.EXE <PATH><Provider.DLL>
    32074 14:20:05 (0) ** => If the software has been de-installed intentionally, then this information must be
    32075 14:20:05 (0) **    removed from the WMI repository. You can use the 'WMIC.EXE' command to remove the provider
    32076 14:20:05 (0) **    registration data and its set of associated classes.
    32077 14:20:05 (0) ** => To correct this situation, you can:
    32078 14:20:05 (0) **    - Install or start the application supporting these providers.
    32079 14:20:05 (0) **    - Register the providers in CIM (MOFCOMP) or DCOM (REGSVR32).
    32080 14:20:05 (0) **    Note: In this case the provider should also be listed in the 'missing WMI
    32081 14:20:05 (0) **          provider DCOM registrations' or in the 'missing WMI provider files' section.
    32082 14:20:05 (2) !! WARNING: Re-registering with REGSVR32.EXE all DLL from 'C:\WINDOWS\SYSTEM32\WBEM\'
    32083 14:20:05 (0) **          may not solve the problem as the DLL supporting the WMI class(es)
    32084 14:20:05 (0) **          can be located in a different folder.
    32085 14:20:05 (0) **          You must refer to the class name to determine the software delivering the related DLL.
    32086 14:20:05 (0) **
    Thanks, --Jo

  • Different ways to setup applets... what's best?

    Alright. I need some help deciding how to setup an applet. I'm a high school student and I'm going to be in a competition on Saturday that will be using Java applets. I've been trying to get my hands on as much info about it as I can, but I've seen so many different ways of displaying things on an applet that I'm not sure what to do anymore.
    So here's the deal. In a book I have, they set up applets like this:
    import javax.swing.*;
    public class Example extends JApplet
       public void init()
          getContentPane().add(new ExamplePanel ());
          set size (300, 300)
    }And the other class:
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class ExamplePanel extends JPanel
       private vars
       public ExamplePanel ()
          set up listeners and set background
       public void paintComponent (Graphics page)
          super.paintComponent (page);
          paint stuff
       event methods
    }I'm pretty sure this works fine, but while on the Java website, looking for examples, I noticed that sun sets up applets like this:
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.event.*;
    public class Example extends JPanel implements listener interfaces
       protected and private vars
       public Example ()
          set up panels, labels, basically any JComponent stuff
          create listeners
          use add(...) to put stuff on applet
       event methods
       private static void createAndShowGUI()
            JFrame frame = new JFrame ("Example");
            frame.setDefaultCloseOperation (JFrame.EXIT_ON_CLOSE);
            JComponent newContentPane = new Example();
            newContentPane.setOpaque (true);
            frame.setContentPane (newContentPane);
            frame.pack();
            frame.setVisible(true);
        public static void main()
            javax.swing.SwingUtilities.invokeLater(new Runnable()
                public void run()
                    createAndShowGUI();
    }I don't know which way is better, but we don't have much time so I need something that's easy. The problem with the second one is that I don't know how to draw shapes on the second one and I might need to do that. I tried using paintComponent in it and things just got screwy. If anyone knows of a better way, please let me know. And since that one was developed directly from Sun, I'm guessing it's more efficient, so I would like to use that one if I can just learn how to use it as easily as the first.
    Also, if anyone knows a completely different way to do this that's better, please let me know.

    The second Example class shows an important issue: swing is not thread safe, and thus all GUI operations, including creating the GUI itself, must be done in the event dispatch thread. Read more about it at http://java.sun.com/docs/books/tutorial/uiswing/misc/threads.html#EDT.
    The second class Example does also not seem to be an applet, that is why main() is used instead of init(). But even in init() you are not guaranteed that the current thread is the EDT - it is choosen by the browser you are using - and you should thus use invokeLater() there as well.
    Appart from that, a component should not care if it is displayed in an applet or in an application.

  • A different way to deal with "unknown" user after upgrade from Tiger.

    It's a known issue that doing upgrade and install or archive and install from Tiger to Leopard, produces a lot of folders with "unknown" group in their "get info" panel. This has to do with a different group structure in Tiger and Leopard.
    In Tiger, every user has their own private group with the same name as the username. That group is set to be user's primary group.
    In leopard, every new user with an account is a member of the group staff (gid=20) which is not present in Tiger. Leopard doesn't fully understand Tiger's private group structure, hence the "unknown" group. This causes various problems such as Finder crashes when trying to change the permissions and ownership in the get info window.
    Apple's proposed way of dealing with this is described [here|http://docs.info.apple.com/article.html?artnum=307128].
    However, this method doesn't change the existing group structure and doesn't resolve all the problems.
    I'd like to suggest a different way of dealing with it.
    1. create a new admin user (if you don't have one already), log out of your primary account and log into the new one.
    2. enter the following in terminal:
    *sudo dscl . delete /users/"username"*
    where username is the short name of the user on the main account (not the one you are currently logged into).
    This will delete that user.
    3. Log out/in.
    4. go to system preferences->accounts and create a new user with the name and short name exactly as the one you've deleted in step 2.
    You'll be get a popup saying that a home directory by this name already exists and asking if you want to use it. Say "Yes".
    That's it. Your main user will be recreated using the native group structure of Leopard with gid=20(staff). Permissions on your home directory will be reset with correct group and ownership.
    I tested the process on my powerbook after an upgrade and install from Tiger to leopard and it worked without a hitch.
    I like this method better than Apple's because it completely gets rid of Tiger's group structure which was creating all the confusion. The only downside as far as I can see is that you might have to manually change the group ownership on some files belonging to the main user that sit outside your home directory.
    I would appreciate any comments on this.

    hmm, I confess, I did this before installing 10.5.2 so i can't say for sure. However, I've dealt with a few people (see e.g. this [thread|http://discussions.apple.com/thread.jspa?messageID=7012957]) who are running 10.5.2 and still have this issue. I don't know what if anything 10.5.2 did about this but I'm quite sure that it didn't change the group structure inherited from Tiger.
    Message was edited by: V.K.

  • Two separate versions of the same file corrupted in different ways...

    I was working on a Photoshop CS4 file last night that was created in CS4 and has only been opened on this machine in CS4. I saved the file and closed Photoshop. When I open the file today, all my layers are gone, flattened into one Background layer, and the image looks like colored TV static. On top of that, the separate, older version of this file with a different name (created earlier in the week on the same machine in the same CS4) will not open at all - I get the error message, "Could not complete your request because the file is empty" and the file size has mysteriously shrunk to 76 KB from 20+ MB. What happened?! I'm guessing these files are corrupted beyond recovery, but why and how did this happen? Has anyone had this or a similar problem? I want to know how to prevent this from happening in the future. Please help! Thank you. =)

    Thanks for the suggestion, Chris.
    Same issue, new question - don't ask me why I did this, but while both Photoshop and the now corrupted file were open, I changed the name of the folder containing the file, then continued to save the open version of the file without first closing it and reopening it from the newly renamed folder. Could this have caused both files in that folder to become corrupted in different ways? The other file that gives me the "file is empty" error was not open at the time, but it was in that folder. I'm thinking maybe by changing the path to the files while Photoshop was running, that could have triggered this. ?? I have 3 1TB internal drives raided to read as 1 drive, so I'm really hoping that one of these disks is not dying on me as you suggested. I was also backing up an external drive using BackBlaze when this all occurred - any possible connection? How can I find out if one of my three raided drives (and which one) might be going bad?
    Thanks!!

  • Multiple iPhoto libraries to manage photostreams in different ways

    My wife and I both have iPhone's. I have a 5s and she a 5. We share an iCloud account so that all photos she takes and ones I take go into one photostream and then automatically get loaded on my iMac hard drive. This way we are sure to not lose any photos.
    This works great for that purpose. However, I would like to create an iPhoto library that will only upload photos taken with my iPhone.
    I know I can create multiple iPhoto libraries, but I would like to have the ability to manage preferences for each so that they manage photos in different ways.
    Is there a way to do this?
    Thanks in advance for any suggestions you may offer.
    Keith

    I know I can create multiple iPhoto libraries, but I would like to have the ability to manage preferences for each so that they manage photos in different ways.
    Keith, the problem is, that only one iPhoto ibrary can be associated with the photo stream on any device, see e.g.  http://documentation.apple.com/en/aperture/usermanual/index.html#chapter=14%26se ction=2%26tasks=true
    Photo Stream is designed to work with one Aperture or iPhoto library at a time. However, it’s easy to switch the library Photo Stream uses to upload and download photos.
    If you enable the photo stream in a different library, the photo stream will be removed from the earlier library. You would continually have to reanable the photo straem when switching between libraries, and each time the stream would be reset. This way, auto matic import will not work reliably, because the photo stream would only be seeing the current ly stored photos in iCloud.
    Have you considered to use the Shared Photo Streams for specific purposes? I am using the Shared Photo Streams as thematic iCloud albums, for wildlife photos, family photos, etc.
    iCloud: Using and troubleshooting Shared Photo Streams
    -- Léonie

  • Web Dynpro Java : Failed to get deployable object part info for component

    Currently we have a web dynpro java project which connects to the ABAP backend with Web Services. Everything seems fine, and when we transport to the production server via NWDI, we have the following error. Everytime we try to access the application , the error is occurred.
    com.sap.tc.webdynpro.services.exceptions.WDRuntimeException: Failed to get deployable object part info for component com.sie.attachmentcomp.AttachmentComp
        at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.getComponentDeploymentDescription(ClientComponent.java:784)
        at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.createComponent(ClientComponent.java:934)
        at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.createComponent(ClientComponent.java:177)
        at com.sap.tc.webdynpro.progmodel.components.ComponentUsage.createComponentInternal(ComponentUsage.java:149)
        at com.sap.tc.webdynpro.progmodel.components.ComponentUsage.createComponent(ComponentUsage.java:116)
    It is working properly in our development , and testing environment. Only production has this error. And one weird thing is that this particular error occurred only sometimes to some user. For example; I could not access to the application with this error yesterday but my friend can access. Today, I can access in the morning but my friend cannot. For another friend , Yesterday he can access by using IE but not by Firefox. But today Firefox is fine but not with IE. It seems crazy.
    For more information, in our J2EE engine for the production server, we have 3 server nodes (clusters). And we are not sure it is the source of the problem. Is there any solution , and any way to know from the application that we are on which server?
    We also go and check from the Content Administrator in Web Dynpro Console. Under our project name, in the list of Components, sometimes we can see AttachmentComp but sometimes not.
    Please help us as our project is about to go-live next week.
    Thanks,
    Yu

    Hi Meenge,
    Please check below document for finding root cause for "Failed to start deployable object part info for <development component> and application <application name>"
    http://help.sap.com/saphelp_nwce711core/helpdata/en/44/7716e1633a12d1e10000000a422035/frameset.htm
    OR http://help.sap.com/saphelp_nw04/helpdata/EN/f4/1a1041a0f6f16fe10000000a1550b0/frameset.htm
    Hope it helps
    Regards
    Arun

  • Different ways to shutdown and startup instance in 10g

    I have just installed 10g on my win2003 server. There seems to be 3 different ways to shutdown / startup an instance in 10g.
    1. via SQLPLUS (how its always been) with shutdown and startup commands
    2. via the new OEM Web interface
    3. Start / Stop the NT Service for the instance
    questions:
    - Did I miss anything other methods?
    - how come OEM ask for O/S login as well as DB login, when shutdown or startup? but via SQLPLUS I only have to login using as DBA? different level of security?
    - When shutdown via either SQLPLUS or OEM, the NT service is still shown as "started"? so does this mean that the NT service is more than the oracle instance???
    Thanks
    Clo

    how come OEM ask for O/S login as well as DB loginWith SQL*Plus, you are already logged into the Operating System. There is a OS session in progress. With OEM web interface, it has to first start a OS session and then connect to Oracle using Oracle credentials supplied to actually shutdown the DB.
    the NT service is still shown as "started"? The difference between NT service started or not started (given that the database was already shutdown) will be:
    When NT service is started but the DB is shutdown, your users will get this error message:
    Enter user-name: scott
    Enter password:
    ERROR:
    ORA-01034: ORACLE not available
    ORA-27101: shared memory realm does not exist
    Enter user-name:When NT service is stopped, your users will get this error message:
    Enter user-name: scott
    Enter password:
    ERROR:
    ORA-12560: TNS:protocol adapter error
    Enter user-name:The NT service needs to be running for you to be able to do a STARTUP or SHUTDOWN on the database. You will NOT be able to STARTUP if the NT service was not running (STARTUP will not start your NT service automatically).

  • OIM - Task Assignment Adapter - How to get the object instance key?

    Hello experts,
    I'm trying to use a task assignment adapter to assign an approval task dynamically. Basically, the user can request a resource like "CustomApp Profiles" and we create an object form to let them choose the profile that he needs. Each profile has an owner, which is populate in a Lookup (Owner is the code and Profile is the decode).
    So, in the approval task, I need to get the profile selected by user in the object form and search into the lookup who is the owner of that profile. But I don't know how can I get the object instance key using the parameters that can be mapped to a task assignment adapter.
    Looking into the OIM documents, I believe that the easier way is using the request key, because the REQ_KEY is a foreign key in OBI table.
    Did anyone knows how can I get the object instance key using the request key? Can I use some API or should I execute a SQL statement directly in OIM database?
    Best Regards,
    Nitto

    To retry a task that is in a rejected state, you use the SCH_KEY which is the task key.  In OIM, all rejected tasks are listed in the OTI table.  It contains all the important information about a rejected or pending task.
    You can use the APIs found in the tcProvisioningOperationsIntf class to retrieve open tasks.
    -Kevin

Maybe you are looking for