Unable to read ITResource details using Platform class

Hi,
When I try to read the ITResource parameters using Platform class, it says ITResource does not exist, code below:
tcITResourceInstanceOperationsIntf itTResourceOperationsIntf=Platform.getService(tcITResourceInstanceOperationsIntf.class);
Hashtable itmap=new Hashtable();
itmap.put(OIMConstants.ITRESOURCE_NAME, resourceName);
tcResultSet rset=itIntf.findITResourceInstances(itmap);
However, if I use the same code by getting the instance of ITResourceInstanceOperations, I am able to read the parameters ?? Any idea on this ??
Thanks,
Hrushikesh

Project folder is a IDE concept, not used by Java itself. Java works with class paths, which designate where it can search for classes and resources.
Anyway, most of the IDEs handle properties files correctly (i.e. copy them in the right place when building/compiling, so that they can be found by Java when running the program). So you should put them along with java classes, in your packages structure.
So if you have a properties file named "Toto.properties", which is located in the "titi.tata" package, then you would load it with:ResourceBundle.getBundle("titi.tata.Toto");

Similar Messages

  • Unable to read values populated using Java Script

    hi Experts,
    we generated a BSP Page through some SPRO setting it contains HTML and ABAP scripts.
    in that we have 2 select - option - dropdowns. i first one is being populated by ABAP script. second one is being populated by java script.
    the BSP page is working fine. but i am unable to read the second dropdown value using a class method
    we call this class method in the BADI : CRM_SERVICE_WEBREQ. method : FORM_ON_EVENT
      CALL METHOD cl_uxs_xml_services=>get_value_via_xpath
      EXPORTING
        ir_node                   = ir_form_data
        id_xpath                  = 'secondChoice'
         id_xpath_namespace_uri    =
         id_xpath_namespace_prefix =
         id_multi_namespace        =
      RECEIVING
        rd_value                  = lv_value
      EXCEPTIONS
        not_found                 = 1
        not_unique                = 2
        OTHERS                    = 3
    but i am able to read other fields in the page. i am not sure but i changed the id and name on the second drop down.
    pls let me know how to read the value for second drop down.

    Hi Ben Grice,
    ASP.NET questions should be post in
    ASP.NET forums. You can get better help there.
    Thanks for your understanding.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Unable to read/write bytes using 9870 with cRio 9151

    Hi everyone,
    I'm currently having some problems trying to use 2 ports of module NI 9870. I'm unable to read bytes even if I try to send some datas (I always get a Timeout) and I'm also unable to write some datas( I can't see nothing on Hyperterminal).
    Please find enclosed a snapshot of my Fpga code.
    Regard,
    Nicolas Kaminski, Toulouse France
    Attachments:
    ReadBytes.jpg ‏93 KB
    WriteBytes.jpg ‏30 KB

    Hello,
    Can you give us some other details:
    Are you sure that you provide power to the 9870 module?
    Do you have tested your system with an example? (NI-987x Serial Loopback.lvproj)
    DO you get something through that loopback?
    Regards,
    Mathieu P. | Certified LabVIEW Associate Developer
    National Instruments France
    #adMrkt{text-align: center;font-size:11px; font-weight: bold;} #adMrkt a {text-decoration: none;} #adMrkt a:hover{font-size: 9px;} #adMrkt a span{display: none;} #adMrkt a:hover span{display: block;}
    Journées techniques : des fondamentaux aux dernières technologies pour la mesure et le contrôle/comm...

  • Unable to read the file using UTL_FILE Dir

    I need to read/write a file from/to the operating system through PLSQL Package. I used UTL_FILE package to do the same. In the application server the utl_file_dir(/usr/tmp in my system) is created as a softlink to database server.
    oI want to run this package through the application server. However I am unable to read and write the file to the operating system.
    I just wondering it is not reading/opening the file from the server. Please suggest me how to modify my code.

    Hi,
    How to check if it is end of file or not? I have the following function which is working fine in my win2003 server std 32bit and Oracle10g Database R2 Standard Edition one 32bit. HOwever, when I deploy to production server which is 64bit OS and database, it gives error at UTL_FILE.GET_LINE(fptr, tmp);
    Any idea why it behaves like that?
         FUNCTION readFile (
              inHTML OUT CLOB,
              path IN VARCHAR2,
              htmlFile IN VARCHAR2
         ) RETURN BOOLEAN IS
         fptr utl_file.file_type;
         tmp VARCHAR2(5023);
         bufferlen BINARY_INTEGER;
         BEGIN
              fptr := UTL_FILE.FOPEN(path, htmlFile, 'r');
              DBMS_LOB.CREATETEMPORARY(inHTML, TRUE);
              DBMS_LOB.OPEN(inHTML, DBMS_LOB.LOB_READWRITE);
              LOOP
                   UTL_FILE.GET_LINE(fptr, tmp);
                   if tmp is not null then
                        tmp := tmp || CHR(10);
                        bufferlen := LENGTH(tmp);
                        DBMS_LOB.WRITEAPPEND(inHTML, bufferlen, tmp);
                   end if;
              END LOOP;
              WHEN NO_DATA_FOUND THEN
              DBMS_LOB.CLOSE(inHTML);
                   UTL_FILE.FCLOSE(fptr);
                   RETURN TRUE;
              WHEN OTHERS THEN
                   DBMS_LOB.CLOSE(inHTML);
                   DBMS_LOB.FREETEMPORARY(inHTML);
                   RETURN FALSE;
         END readFile;

  • Read infotype records using the classes

    Hi All,
    In my system i can see many classes with cl_hrpa*
    Here i want to read a infotype record using these classes. I want finally the data in PA0008 or a record in P0008 format.
    i tried using the various classes like
    cl_hrpa_masterdata_factory
    if_hrpa_infty_bl
    hrpad_infty_container_tab
    I tried using the sevaral calsses passing one class type to other. finally i get is the class cl_hrpa_infotype_0008_in.
    can any one suggest how i should be reading the data for any infotype.
    Pls do not suggest the function module HR_READ_INFOTYPE. I want to use these classes to read the data.
    Pls suggest
    Regards,
    Umesh Chaudhari.

    Hi,
    Did you get any replies to this or have you found an answer on your own?
    Regards,
    LC

  • I am unable to read pdf files using Acrobat Reader on my MAC OS X. Any suggestions?

    How do I read pdf files using my MAC OS X?

    You can read pdf files with preview. Select a pdf document, right click on it, and choose Preview. You can also get info and select to choose Preview for all.
    You can also install Adobe Reader 10.1.3 for Lion. It will also install a plug-in to read pdf docs in the browser.
    http://www.adobe.com/support/downloads/detail.jsp?ftpID=5360

  • Unable to read 5th channel using cDAQ 9178 with NI 9219 modules

    Dear LabView user,
    I've made a VI for reading the measurements of a couple of LVDT sensors, a load cell and a couple of strain gauges. When I connect 4 of these sensors to my cDAQ 9178 with using 1 slot of NI 9219, then there is no problem for my VI. But if I use 2 modules, and connect the 2 LVDT sensors and the load cell to the first module, and the 2 strain gauges to the 2nd module, then my program only will show the readings of the first module and the readings of only 1 strain gauge on the 2nd module. I've found that there occurs an error for the 5th channel in the 'zero' state. It says my buffer size is too small... How can I solve this problem? I can't work with finite samples because it is a continious measurement. 
    I also have the cDAQ 9171 USB module, if I only connect 4 sensors to this module, the sample rate is high (100 Samples/sec), when I use the same configuration, but connect this with the cDAQ 9178, the sample rate is much lower however I use the same NI 9219 module to fill the slots. Is there some kind of setting I need to make when switching over to the cDAQ 9178?
    I've attached my VI.
    With kind regards,
    Pete

    Dear RavensFan, 
    Thank you for your answer.
    "Have you tried swapping the modules between the slots and see if you still have the same problem or if it moves?"  When I use the cDAQ 9178, I always use the first 2 slots next to the power suply and the usb connection, you mean that I should try for example the 4th and the 5th slot or other slots? I will try this on Monday, and I will let you know.
    About the states machines inside a state: How is it possible then to use several buttons, like start and stop measurement and the 'home' button inside the state "measurement"? Should I make another simple state machine inside this state? 
    What about that 5th channel that I'm unable to read? The problem happens in my "zero" state: to acquire my "zero elements", the loop does the job for the 5 channels for the first 8 samples, after that, it doesn't want to sample the 5 channels anymore, it only does for 4 channels... It's something about the buffer size, but I don't know how to fix that.
    With kind regards,
    Peter

  • Unable to read Diagnostic Code using MessageHeaders/InternetHeaders

    I'm trying to read "Diagnostic-Code" Header using the following code:
    +{color:#0000ff}MessageHeaders messageHeaders=new MessageHeaders(part2.getInputStream());+
    + Enumeration iheaders=messageHeaders.getAllHeaders();+
    + while(iheaders.hasMoreElements())+
    + {+
    + Header header=(Header)iheaders.nextElement();+
    + System.out.println("InternetHeaders : "+header.getName()+": "+header.getValue());+
    + }{color}+
    Message contains the following:
    {color:#008000}*--nBSIUV3H002931.1262025031/**dummyserver.net*{color}
    Content-Type: message/delivery-status
    *{color:#0000ff}Reporting-MTA:{color} dns; dummyserver.net*
    *{color:#0000ff}Received-From-MTA:{color} DNS; localhost*
    *{color:#0000ff}Arrival-Date:{color} Mon, 28 Dec 2009 13:30:30 -0500 (EST)*
    *{color:#ff0000}Final-Recipient: {color}RFC822; [email protected]*
    *{color:#0000ff}{color:#ff0000}Action:{color}{color} failed*
    *{color:#ff0000}Status: {color}5.3.0*
    *{color:#ff0000}Remote-MTA:{color} DNS; dummyserver.net*
    *{color:#ff0000}Diagnostic-Code:{color} SMTP; 553 5.3.0 <[email protected]>... Unknown user - sorry.*
    *{color:#ff0000}Last-Attempt-Date:{color} Mon, 28 Dec 2009 13:30:31 -0500 (EST)*
    *{color:#008000}--nBSIUV3H002931.1262025031/dummyserver.net
    {color}*
    But the above Code is able to read only the first three headers in {color:#0000ff}*blue*{color} and not the ones in *{color:#ff0000}red{color}*.
    The reason seems to be the blank line which is being considered as end of headers.
    Please suggest how to read "Diagnostic-Code
    " without reading the stream and matching pattern.

    Try using the DSN support included with JavaMail.
    As described in [NOTES.txt|http://java.sun.com/products/javamail/NOTES.txt], add dsn.jar to your CLASSPATH.
    See the javadocs for the [com.sun.mail.dsn.DeliveryStatus|http://java.sun.com/products/javamail/javadocs/com/sun/mail/dsn/DeliveryStatus.html] class.

  • Iomega ZIP drive-constantly unable to read disks when using on both PC&Mac

    I'm constantly having problems with Iomega ZIP disks:
    -can't be read by PC or MAC
    -needs reformatting
    I have to erase the disk using disk utitlities and make sure its FAT 32 (not 16) for the PC to read it.
    However this is only temporary as the disk will again become unreadable by both machines.
    Is this because i'm constantly using is on both machines?
    Does anyone else have this problem?
    Any solutions?
    This appears to have started since the last major OS X upgrade - i.e 10.3 to 10.4.
    Cheers
    Tasha

    You may not want to hear this - but the best thing to do is to get anything that matters off Zip disks, and never touch them again. They're inherently unreliable, and you're much better off using CD-R or DVD-R.

  • JHAT unable to read heap dump

    I have a heap dump taken on a 64 bit linux 1.5.0_16 JVM (64bit).
    I'm unable to read the file using JHAT (latest 1.6.0 JDK), getting the following error: WARNING: Ignoring unrecognized record type 32
    Have tried on both Win32 and 64bit Linux platforms.
    Regards,

    Hi Mike,
    your heap dump is probably broken. Taking heap dump with jmap under JDK 1.5 is more suited for recovering a heap dump from a core dump file rather than taking the heap dump of a running java application. jmap can observe the heap in an inconsistent state and hence the dump file is not always useful. You can try to create core dump of the java application (if you can) and than use jmap to get heap dump from core dump. Note that there is no such from when you are running on JDK/JRE 6.
    Bye,
    Tomas Hurka <mailto:[email protected]>
    NetBeans Profiler http://profiler.netbeans.org
    VisualVM http://visualvm.dev.java.net
    Software Engineer, Developer Platforms Group
    Sun Microsystems, Praha Czech Republic

  • How to use ABAP Class to modify Web Query Result ??

    Hi all !
    We are using Web Templates to display our Query.
    What I would like to do ( and seems a really important issue for our users! ) is to have a "PAGE BREAK" everytime the value of a charateristics change in the report
    For Example :
    -Page 1-
    Division     Project
       A               1
                        2
                        3
    -Page 2-
    Division     Project
       B               1
                        2
                        3
    and so on....
    I read threads about using ABAP CLASS but no example what so ever...
    We are presently under BW 3.1 but are considering upgrading to 7.0 by the end of the year so if there is a solution to my problem on either version i'd like to know.
    If anyone has any information about how I can do this it would be most appreciated
    Thx
    JB.

    Hi Yong,
    Ravi is right, first check the blogs by Jocelyn, and if you still have specific questions you can ask them. I have used ABAP classes in workflow and I know Mike Pokraka tries to use classes exclusively.
    Regards,
    Martin

  • I am unable to open encrypted emails using webmail and a CAC reader.  It says "content can't be displayed because the S/MIME control isn't available."  I'm using a Macbook Pro with 10.10 OS and have tried both Safari and Chrome.

    I am using a Macbook Pro with OS X Yosemite 10.10.2.  I am unable to open encrypted emails using webmail.  I have verified my certificates are loaded in the keychain for my military common access card while using a CAC reader.  When I try to view the message it gives me the error saying "content can't be displayed because the S/MIME control isn't available." 

    I am using a Macbook Pro with OS X Yosemite 10.10.2.  I am unable to open encrypted emails using webmail.  I have verified my certificates are loaded in the keychain for my military common access card while using a CAC reader.  When I try to view the message it gives me the error saying "content can't be displayed because the S/MIME control isn't available." 

  • When I read a pdf document using Safari I'm unable to read more than one page of a file. A padlock icon is locked on the tab. Please help.

    When I read a pdf document using Safari on my IPad  I'm unable to read more than one page of a file. A padlock icon is locked on the tab. Please help.

    Hi snoreaustralia,
    It sounds like you just need to associate the PDF filename extension with Acrobat, rather than Preview. Please see this document from the Microsoft Help for instructions on choosing the default program for opening a particular file type (in your case, PDF): Change which programs Windows uses by default - Windows Help
    Best,
    Sara

  • Unable to read File using File Adapter

    Hi,
    I am using File adapter to read XML file.
    I able to write payload contents to file. but using same schema, path i am unable to read the file.
    receive process is not initiating.
    what could be the possible issue?
    Thanks

    Could you please give more info about the configuration, like the spring file entries? Do you see any errors in the server log? Thanks.

  • I am unable to read signatures on PDF files sent from my Los Angeles office - they use windows, any solution?

    I am unable to read signatures on PDF files sent from my Los Angeles office - they use windows, any solution?

    Hey guys,
    So this is follow up from my debarkle with the EDD. I found out my problem with copying files from Mac to EDD and vice versa was a result of a not so good EDD ( i had an apollo hard drive from imation) that was not very compatible with macs. So i did my research and found out that the best hard drives were Western Digital and Seagate. I bought the newest western digital EDD 1TB and formated it to FAT32 and guess what...no problems so far. The only problem is that FAT32 format doesn't copy files larger than about 4 gigs so i couldnt copy a movie from my brothers computer onto my EDD that was 1080p. You could probably resolve that by partitioning a small part of your hard drive in ExFAT? but yeah, hopefully that helped guys.
    Aaisha

Maybe you are looking for

  • Urgent Help need for PCUI

    Hello    We have customization screen in Sales Transaction.    It is working fine in CRM.    But From Enterprice Portal That screen disappear.    From some documentation To use EEWb.    I generate prject in EEWB.    In Deziner also I got field.    My

  • Exporting to a PDF with facing pages

    Please help, I have encounter a problem with InDesign CS4, which I didn't have with CS3 version. When I export an InDesign document with facing pages into a PDF, it turns it into a PDF document with consecutive pages (spreads are broken into individu

  • New Nokia N80 Firmware update available via NSU (v...

    There is a new N80 Firmware Update Available --> version 5.0725.0.1 APAC !! Product Code: 0527591 Waiting for EMEA firmware! Nokia 5320 XM Red v4.13

  • Itunes needs a "party mode"

    I am hoping to have a party in the coming weeks and i know from past experience that windows has a party mode, which is great, as it allows guests to put music on without allowing them access to the rest of the computer. Is there any way i can achiev

  • Cannot Undo in Keynote 4.01

    Has anyone experienced that Edit/Undo is not functioning? I am not sure if there is something wrong with my system and that it is a common experience? It is a real pain when you are working and rely on Undo functions a lot. Any feedback is most appre