Home » Fusion Middleware & Colab Suite » Collaboration & Content Management » getRequestedAttributes() Problem
getRequestedAttributes() Problem [message #184928] Fri, 28 July 2006 15:06
esalazar
Messages: 1
Registered: July 2006
Junior Member
Hi, i am trying to get the attributes of certain file (the pdf in the example). It resolves the path with no problem, but when i try to perform operations with the file (NamedValue[] nvs = doc.getRequestedAttributes()Wink it throws errors... what am i doing wrong?
also, i've only found oracle documentation, but not users examples on the web about attribute editing.. any clue?

Thanx

            Item doc = fileM.resolvePath("/nexgenbs/workspaces/PRUEBA/prueba1152757138109xxx.pdf",ars);
        
            System.out.println(doc.getId() + " - " + doc.getName() + " - " + doc.getType());
            NamedValue[] nvs = doc.getRequestedAttributes();
            for (int i=0; i<nvs.length; i++)
            {
            NamedValue nv = nvs[i];
            System.out.println(nv.getName() + " - " + nv.getValue());
            }       



The error:

Quote:

Fatal exception occurred in run():
java.lang.NullPointerException:java.lang.NullPointerException
java.lang.NullPointerException
at oracle.ifs.examples.cs.tests.TestCategories2.run(TestCategories2.java:173)
at java.lang.Thread.run(Thread.java:595)

oracle.ifs.examples.cs.tests.TestCategories2: ending
Process exited with exit code 0.
Previous Topic: OCS sizing
Next Topic: Need Help in making OCS work
Goto Forum:
  


Current Time: Sat Nov 23 02:03:47 CST 2024