Problem in Uploading Files with Categories

Hi All,
We are working on uploading files to Content Database(CDB) after creating categories for all files to be uploaded individually. The code is working fine when we are using FdkConstants.ATTRIBUTE_TYPE_STRING for Attributes.ATTRIBUTE_TYPE while creating named-value pair for categoryAttributes. In this case all the files are uploading with category.
But the problem we are facing is, when we use datatype other than STRING for FdkConstants like FdkConstants.ATTRIBUTE_TYPE_INTEGER, or FdkConstants.ATTRIBUTE_TYPE_BINARY…….. category sub class is not creating, and getting errors like
AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
faultSubcode:
faultString: ORACLE.FDK.MetaDataError:ORACLE.FDK.MetadataOperationFailed
faultActor:
faultNode:
faultDetail:
     {http://xmlns.oracle.com/content/ws}fault:<detailedErrorCode xsi:type="xsd:string">ORACLE.FDK.MetadataOperationFailed</detailedErrorCode><errorCode xsi:type="xsd:string">ORACLE.FDK.MetaDataError</errorCode><exceptionEntries xsi:type="ns1:ArrayOfFdkExceptionEntry" xsi:nil="true"/><info xsi:type="ns1:ArrayOfNamedValue" xsi:nil="true"/><serverStackTraceId xsi:type="xsd:string"/>
     {http://xml.apache.org/axis/}hostname:bluejays.appsassociates.com
ORACLE.FDK.MetaDataError:ORACLE.FDK.MetadataOperationFailed
     at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
     at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
     at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
     at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
     at java.lang.Class.newInstance0(Class.java:350)
     at java.lang.Class.newInstance(Class.java:303)
     at org.apache.axis.encoding.ser.BeanDeserializer.<init>(BeanDeserializer.java:104)
     at org.apache.axis.encoding.ser.BeanDeserializer.<init>(BeanDeserializer.java:90)
     at oracle.ifs.fdk.FdkException.getDeserializer(FdkException.java:270)
     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
     at java.lang.reflect.Method.invoke(Method.java:585)
     at org.apache.axis.encoding.ser.BaseDeserializerFactory.getSpecialized(BaseDeserializerFactory.java:154)
     at org.apache.axis.encoding.ser.BaseDeserializerFactory.getDeserializerAs(BaseDeserializerFactory.java:84)
     at org.apache.axis.encoding.DeserializationContext.getDeserializer(DeserializationContext.java:464)
     at org.apache.axis.encoding.DeserializationContext.getDeserializerForType(DeserializationContext.java:547)
     at org.apache.axis.message.SOAPFaultDetailsBuilder.onStartChild(SOAPFaultDetailsBuilder.java:157)
     at org.apache.axis.encoding.DeserializationContext.startElement(DeserializationContext.java:1035)
     at oracle.xml.parser.v2.NonValidatingParser.parseElement(NonValidatingParser.java:1276)
     at oracle.xml.parser.v2.NonValidatingParser.parseRootElement(NonValidatingParser.java:324)
     at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:291)
     at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:207)
     at oracle.xml.jaxp.JXSAXParser.parse(JXSAXParser.java:292)
     at org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227)
     at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)
     at org.apache.axis.Message.getSOAPEnvelope(Message.java:424)
     at org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62)
     at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206)
     at org.apache.axis.client.Call.invokeEngine(Call.java:2765)
     at org.apache.axis.client.Call.invoke(Call.java:2748)
     at org.apache.axis.client.Call.invoke(Call.java:2424)
     at org.apache.axis.client.Call.invoke(Call.java:2347)
     at org.apache.axis.client.Call.invoke(Call.java:1804)
     at oracle.ifs.fdk.CategoryManagerSoapBindingStub.createCategorySubClass(CategoryManagerSoapBindingStub.java:611)
     at oracle.ifs.fdk.client.impl.CategoryManagerProxy.createCategorySubClass(CategoryManagerProxy.java:100)
     at scheduleUpload.AarlmsUpload.createCategory(AarlmsUpload.java:851)
Can anyone please solve our problem why this is happening? Please give solution as early as possible.
Thanks in advance
Eswari

Hi Shashikumar,
Can i have your mail id.
I have some documents on bid process.
Best Regards,
Anil Rajpal

Similar Messages

  • Problem in Upload files with Default Browser

    I love to use the default broswer to upload files to server due to its functionality. But today I came across something weird. I wanted to upload apk files to google play store, and when I click upload, the playbook file manager will open for me to select the file to upload, but the problem is the playbook file manager is limited to display some file formats like "apk, bar, mus, finale, tar, bz2 and bin".  I will like an update to fix this issue.
    Thanks.

    try by using System.err.println insted of System.out.println
    I'vs tried it with J2EE it works.

  • Impossible Upload files with Filezilla FTP Client after upgrade win8 to win8.1

    Hi
    Things were working fine with win 8 but, after Upgrade to win 8.1 is not possible upload files with Filezilla  FTP Client.
    is there anyone facing same problem?
    thanks in advance for any answer to help me solve this issue 
    Regards 
    TC

    Hi,
    Please Change your transfer settings in site manager from either default or passive to active it to see what's going on.
    Also, check IE compatibility mode.
    In addition, I suggest you install all latest updates for Windows since these updates will improve and fix some known issues.
    Kate Li
    TechNet Community Support

  • Upload files with swedish characters NS 4.7

    Hi,
    I can upload files with swedish characters in the file name with IE 5, but not with Netscape 4.7. iFS presents an error message that the file doesn't exist or is empty.
    Is there a solution for this problem?
    /Elin
    null

    check out if you are using javascripts and whether IE supports it
    Roberto Nanamura <[email protected]> wrote:
    >
    Hi,
    I am having a problem uploading files with Internet Explorer, it works with
    Netscape Communicator. Has someone had the same problem?
    I am using WebLogic 5.1 service pack 5 with Netscape iPlanet 4.1 service pack 2
    in a Solaris 7.
    Best regards,
    Roberto N Nanamura
    Technical Consultant
    Summa Technologies

  • Problem while uploading data with GUI UPLOAD Function

    Hi,
      I am facing problem while uploading data with FM GUI UPLOAD    in out text file there are 7 row  but after the FM GUI UPLOAD  there are 14 entries are coming in Internal table   and each alternate row is coming as blank  with  0000 in some column   in internal table first row is proper and second line is blank so on.
    what can be the problem .
    The program in which we are using this we are using it from last 2 year but we are facing problem today only.
    regards,
      zafar

    Hi,
      The file formate is same as it is from last two years it is automatically generated by one another bar code server and there is no change  in the file formate.
      So waht can be the problem  to check any inconsistancy in system  i have develop a samll program fro  uploading a text file with same function module ,  but it is working fine.
    regards,
      zafar

  • How to associate an uploaded file with form data

    I have a "ticketing" app which stores a ticket no. as well as allows users to upload multiple files per ticket. The problem I am having is how to associate an uploaded file with a particular ticket no. As you can guess this becomes complicated when the same user can potentially update multiple tickets using the same file names. I am having difficulty trying to understand how to associate a ticket no with one or more uploaded files. I do have a custom table which I update with the attachments but I am unsure how to, or when to, update the ticket information on this custom table. I only want to retrieve attachments for a given ticket, not all attachments uploaded by a user.Does anyone have any ideas?

    Hi,
    My question is bit related to this topic.
    I am having a requirement to upload the CSV files so that they will store in a database table and later on wards when they search on that table it needs to pull the information and display on the form. I am a new bee to application express. Could some body tell me how to start this process with??. Just give me an overvoew/hints so that I will try to carry on my own.
    Cheers,
    Krishna.

  • Logic to upload file with dynamic columns

    hi
    in my requirement i hav given to add logic to upload file with dynamic columns so that this upload program can be reused.
    this way the program is flexible, irrespective of the number of columns in the file.
    can any one explain this?
    and let me know what actually i hav to do.

    Check the program and the dynamic column is in the col_pos internal table and in the routines get_structure onwards.
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/scm/dynamic%2bstructures%2band%2bcomponents
    cheers
    Aveek

  • Upload files with international content

    I want to upload files with international content(many languages), from
    a single JSP. Any ideas?
    thanks,
    M.

    Hi Marco,
    I dont know transaction CV02N. But if this application uses standard function modules like GUI_UPLOAD it should work with ITS. A special configuration should not be required as long as the files have a size up to 5 MB. If they are larger it might be required to adjust the size of the request container MaxReqSize. Dont forget that Java has to be activated to let webgui access the filesystem.
    Regards,
    Klaus

  • Problem opening PDF files with adobe

    I cannot get adobe to open my pdf files. Not from internet nor from desktop.
    I downloads fine,. I have installed and reinstalled several times.
    If I try to open it looks like it opens but closes immediately. I tried to open adobe, but nothing. A grey screen and that's it. I cannot access the help button

    Yes, I finally got it working using number 2:-) Thank you very much
    2013/8/1 Pat Willener <[email protected]>
       Re: Problem opening PDF files with adobe  created by Pat Willener<http://forums.adobe.com/people/pwillener>in
    Adobe Reader - View the full discussion<http://forums.adobe.com/message/5557146#5557146

  • Problem upload file with ftp

    Hi,
    I'd like to upload a file with an ftp. I declared a method using an url as follow :
    public static void uploadFile(File fileToMove_p, String newFileName_p) {
    try {
    URL url_l = new URL("ftp://[uid]:[pwd]@localhost/" + newFileName_p);
    URLConnection connection_l = url_l.openConnection();
    OutputStream output_l = connection_l.getOutputStream();
    BufferedOutputStream bos = new BufferedOutputStream(output_l);
    BufferedInputStream bis = new BufferedInputStream(new FileInputStream(fileToMove_p));
    int i;
    while ((i = bis.read()) != -1) {
    bos.write(i);
    catch (IOException ex) {}
    But when I oppen my new file, it miss the end of my data. The ftp cut the few last line of my original file.
    Any idear of what is happening here and how I can solve the problem ?
    Thanks

    Are you closing the OutputStream? If not, you probably should, and closing the stream will flush it prior to closing.
    HTH,
    &#167;

  • Having problem uploading files with file manager

    When i use file manager and try to select a file from desktop then desktop disappears quickly so you can't even select the file you want.  I'm using firefox 25 and i thought it was that so i deleted firefox and reinstalled firefaox and get the same problem.
    It tried with safari and it works ok.  Any ideas on how to fix this?  Its really annoying.
    Thanks,
    Den

    Well, since you didn't mention exactly what the problem is, I have to assume you have not set up your website definition properties correctly. There are plenty of good step by step instructions in the help files for setting up your website definition.

  • Problem with uploading files with DMR (rights management) included in them to a Zen Visio

    Hi,
    I though I had got this fixed but nope still having problems so hope you clever people can help me out.
    I have the ZVM and it is great, I have been able to transfer movies, CD's, photos all with no problem with a music track taking approx 2-3 seconds. However when using music files with DMR (those from HMV's music rental - this is the reason I bought the player) have big problems in transferring. I have been in touch with the tech guys at HMV and they took me through a firmware upg, re-installation of the Creative software updating the licenses in the music files and then lastly a format. Just after the format it looked as if everything was working fine however things started to slow down and now I am struggling to get tracks over. Again this is only those with DMR and all normal files (music, video, photo) go on fine. I only have 4Gb used so I can't see it is down to that.
    Are there any other things I can look at doing or is the player useless for the reason I bought it's
    Thanks,
    Mark

    Thanks Jason that seems to have helped a bit. I can now transfer using the Creative M Series Media Explorer software but not with Windows Media Player. Also when I try to use the Creative Sync Manager it is crashing out every time. My concern is that without the latter working how will I easily get the files on the ZVM updated so that the DRM does not stop the files playing (also I would just like everything working properly!!). Any further suggestions?

  • Problem by uploading files via gui_upload with large files

    I´m using gui_upload to upload files to the application server. When I´m trying to trasfer files bigger than 150MB I get the exception dp_out_of_memory.

    Hi Patrick,
    I'm always getting a 'TVS_NEW_PAGE_ALLOC_FAILED'-dump. There current memory usage is inside, also a hint, which parameters have to be changed.
    I think, you are in a similar situation. Have a look, if system parameter abap/heap_area_dia is your limit. There is also a parameter abap/heaplimit, which is limit for one workprocess. Probably this triggers your dump (but all based on my experience with unsuccessful new page allocation).
    Maybe your 'no roll' dump is more linked to parameters ztta/roll_area - ask a basis expert / have a look in OSS.
    Regards,
    Christian

  • Uploading file with an enforced category

    I am trying to upload files to a directory with an enforced category. I took the HandlingEnforcedCategories.java from the DEV Kit, modified to my requirements and still running into issue. It's something to do with library/workspace I think which I am still confused about.
    My sandbox path is /regionUS/BUSINESS%20SECTOR/ (I am escaping the scape or else the api chokes)
    My library/workspace is CUSTOMERS (library/bookshelf icon shows up here)
    My folder where category is applied is COOLEZ which is under CUSTOMERS
    I am trying to upload images and apply category to /regionUS/BUSINESS%20SECTOR/CUSTOMERS/COOLEZ/IMAGES/2009/04
    all the folders exist and the category exist too but I am still getting the error that says
    "Required metadata folder missing. Ensure prerequisite sample has been run."
    The question is why would this complain about the missing metadata folder?
    Here are the couple interested methods
    public static void main(String args[]) {
    try {
    upload ( "coolac",
    "coolpw",
    "http://contentdbserverurl:7779/content/ws",
    "regionUS/BUSINESS%20SECTOR/",
    "CUSTOMERS/COOLEZ/IMAGES/2009/04/",
    "test1.jpg",
    new FileInputStream(new File("c:/test/test1.jpg")),
    "DAMAGED_PRODUCT_IMAGES",
    mapObj
    catch (Exception e) {
    e.printStackTrace();
    } catch (ExelContentDBException e) {
    e.printStackTrace();
    // TODO
    public static void upload(String username,
    String password,
    String contentDBURL,
    String sandboxRootPath,
    String workspaceName,
    String sourceFilename,
    FileInputStream sourceFileInputStream,
    String categoryName,
    Map categoryMap) throws ContentDBException {
    System.out.println("**** : ApplyingCategories: starting");
    FdkCredential credential = new SimpleFdkCredential(username, password);
    ManagersFactory session = null;
    try {
    session = ManagersFactory.login(credential, contentDBURL);
    FileManager fileM = session.getFileManager();
    Item folder = null;
    try {
    Item sandbox = fileM.resolvePath(sandboxRootPath, null);
    // Note: some clients may use the term 'Library' when referring to
    // or displaying a Workspace Item (including the Content DB Web UI).
    //for now I am hardcoding the values
    Item workspace = (sandbox == null) ? null : fileM.resolveRelativePath(sandbox.getId(), "CUSTOMERS", null);
    folder = (workspace == null) ? null : fileM.resolveRelativePath( workspace.getId(), "COOLEZ/IMAGES/2009/04/", null);
    catch (FdkException e) {
    System.out.println("**** : Error locating metadata folder.");
    throw e;
    if (folder == null) {
    throw new ContentDBException("**** : Required metadata folder missing. Ensure prerequisite sample has been run.");
    CommonManager commonM = session.getCommonManager();
    AttributeRequest[] requestedAttributes = AttributeRequests.ITEM_CATEGORY_CONFIGURATION;
    folder = commonM.getItem(folder.getId(),requestedAttributes);
    Item categoryConfiguration = (Item) CommonUtils.getAttribute(folder, Attributes.CATEGORY_CONFIGURATION);
    Map m = CommonUtils.getAttributesMap(categoryConfiguration);
    boolean configEnabled = ((Boolean) m.get(Attributes.CONFIGURATION_ENABLED)).booleanValue();
    Item[] requiredCategories = (Item[]) m.get(Attributes.REQUIRED_CATEGORIES);
    if (configEnabled = false ||
    requiredCategories == null ||
    requiredCategories.length != 1) {
    System.out.println("**** : Category configuration settings unexpected. Has prerequisite samples been run?");
    throw new ContentDBException("Category configuration settings unexpected.");
    requestedAttributes = AttributeRequests.CATEGORY_CLASS_ATTRIBUTES;
    Item catClass = commonM.getItem(requiredCategories[0].getId(), requestedAttributes);
    String displayName = (String) CommonUtils.getAttribute(catClass, Attributes.DISPLAY_NAME);
    if (!displayName.equals(categoryName)) {
    System.out.println("**** : Category configuration settings unexpected. Has prerequisite samples been run?");
    throw new ContentDBException ("Category configuration settings unexpected.");
    // get category metadata attribute internal names from the
    // metadata attribute display names
    // when creating a category instance definition, we specify internal names
    String categoryKeyItems[] = new String[categoryMap.size()];
    Set setObj = categoryMap.keySet();
    Iterator iterObj = setObj.iterator();
    int i = 0;
    while (iterObj.hasNext()) {
    categoryKeyItems[i] = (String) iterObj.next();
    i++;
    Map attributeMap = CategoryUtils.getCategoryAttrInternalNames(session,
    catClass.getId(),
    categoryKeyItems);
    if (attributeMap == null ||
    attributeMap.isEmpty() ) {
    System.out.println("**** : Category class structure invalid.");
    throw new ContentDBException ("Metadata configuration of the required Category class is invalid. Suggested resolution is to drop and recreate category class.");
    requestedAttributes = null;
    Item docDef = fileM.createDocumentDefinition(new NamedValue[] {
    ClientUtils.newNamedValue(Attributes.NAME, sourceFilename),
    ClientUtils.newNamedValue(Options.CONTENTSTREAM,
    sourceFileInputStream)
    }, requestedAttributes);
    // First attempt to createDocument in the enforced metadata folder without
    // supplying a category instance definition.
    // If the enforced metadata folder has been setup correctly, an
    // FdkException with error code ORACLE.FDK.AggregateError will occur
    // containing an FdkExceptionEntry with errorcode ORACLE.FDK.MetaDataError
    // and detailed error code ORACLE.FDK.MetadataRequired. The info
    // NamedValue[] of the FdkExceptionEntry should have a key
    // ECM.EXCEPTIONINFO.MissingMetaData with a long[] value containing the
    // ids of the mandatory category classes for which definition were
    // not supplied.
    Item doc = null;
    NamedValue[] documentDef = new NamedValue[] {
    ClientUtils.newNamedValue(Options.USE_SAVED_DEFINITION,new Long(docDef.getId())),
    ClientUtils.newNamedValue(Options.DESTFOLDER, new Long(folder.getId())),
    try {
    // The following call should FAIL !!! - and exception be caught in
    // catch block
    doc = fileM.createDocument(documentDef, null, null);
    // The following calls should never occur ...
    System.out.println("**** : Document create succeeded.");
    System.out.println("**** : Are there no longer required categories on the folder?");
    catch (FdkException fe) {
    System.out.println("**** : Document create failed (which is what we expected).");
    System.out.println("**** : " + fe);
    // Next, attempt to retry createDocument in the enforced metadata folder
    // this time supplying a category instance definition for the mandatory
    // category class. The advantage of utilizing document definitions is
    // that the content does not need to be reuploaded. The document
    // definition can be reused when retrying the failed operation.
    NamedValue[] categoryInstanceAttributes = new NamedValue[categoryKeyItems.length];
    for (int x=0; x < categoryKeyItems.length; x++) {
    categoryInstanceAttributes[x] = (NamedValue) categoryMap.get(categoryKeyItems[x]);
    NamedValue[] categoryDef = new NamedValue[] {
    ClientUtils.newNamedValue(Options.CATEGORY_CLASS_ID,
    new Long(catClass.getId())),
    ClientUtils.newNamedValue(Options.CATEGORY_DEFINITION_ATTRIBUTES,
    categoryInstanceAttributes)
    documentDef = new NamedValue[] {
    ClientUtils.newNamedValue(Options.USE_SAVED_DEFINITION,new Long(docDef.getId())),
    ClientUtils.newNamedValue(Options.DESTFOLDER, new Long(folder.getId())),
    ClientUtils.newNamedValue(Options.CATEGORY_DEFINITION, categoryDef)
    System.out.println("**** : Create a Document using saved definition item ...");
    requestedAttributes = AttributeRequests.DOCUMENT_CATEGORY_ATTRIBUTES;
    doc = fileM.createDocument(documentDef, null, requestedAttributes);
    catch (Throwable t)
    t.printStackTrace();
    finally
    CommonUtils.bestEffortLogout(session);
    System.out.println("**** : ApplyingCategories: done");
    }

    I finally got the code working that uploads a file with the attached catogory values. The problem was the internalAttributeMap that had to be created with CategoryUtils.getCategoryAttrInternalNames
    I will post the code later with some cleanup. The documentation is not very friendly. The example code is very confusing. I don't have any books on it and I didn't go to any of Oracle's training either.
    Do you guys know of any good books, sites or blogs on development with Cotnent DB?

  • Problem opening pdf files with Adobe Reader in Windows 7

    I bought a new Dell (Inspiron 5110) with pre-installed Windows 7 Home Premium (Version 6.1 SP1, 64 bit) and pre-installed Adobe Reader X (10.1.1). I cannot open ANY of my old pdf files with the Adobe reader (even after I re-installed the Adobe Reader). On another computer with Windows 7 I get the same error message. When I installed several other pdf-readers (Sumatra, Foxit, ..) I can still not open the pdf's -- but all the pdf's still open under Windows XP on my old computer and they also open on all my colleagues' non-Windows 7 computers. So it appears to be a Windows 7 problem. The Adobe error message says 'Adobe Reader could not open _.pdf because it is either not a supported file type or because the file has been damaged (…..).
    N.B.: I can download pdf files from the internet and can then open these 'new' pdf files with Adobe Reader X.
    N.B.2.: Most of the 'old' pdf files are scientific articles downloaded from various journal websites 2002-2011, so their quality should be out of question.
    N.B.3.:I've transfered the files via memory stick and portable HD.
    N.B.4.: If I try to open the pdf's via 'Open with' the problem remains the same.
    N.B.5.: When, on my Win7 Dell, I've uploaded/attached one of these old pdf files to an email the rtecipient could not tead it. But he could read it when I'd sent the same file from my old Win XP computer.
    N.B.6.: I have repeated this last observation: When I upload an old pdf file on my Win7 Dell to my email account and then send it to myself, I cannot open/read it on my Win XP (nor on the Dell, of course). Although the file size is precisely the same.
    N.B.7.: When I download a new pdf on my Dell, then upload/attach it to an email also on the Dell and send it to myself, I can download and read the attached pdf on both computers.
    Would be grateful for any suggestions.

    This is really strange.
    Please correct me if I am wrong, but from what I can understand, any PDF which is launched on your Win 7 OS fails to open, even though the same file works perfectly fine on your Win XP machine?
    Could you please run a full system anti virus scan on the said PDFs that are present on your local system. It could be a case of infected PDFs.
    Also, it would be great if you could try and download some of the erroneous PDFs from the web again, and see if you experience the same behavior.
    Thanks
    Ankit

Maybe you are looking for