IC5Notice: We have upgraded developerWorks Community to the latest version of IBM Connections. For more information, read our upgrade FAQ.
Topic
  • 1 reply
  • Latest Post - ‏2013-03-06T11:29:58Z by PoulomiGupta
PoulomiGupta
PoulomiGupta
102 Posts

Pinned topic hihi

‏2013-03-05T10:36:42Z |

 

 

Updated on 2013-12-18T10:48:15Z at 2013-12-18T10:48:15Z by PoulomiGupta
  • babinag
    babinag
    91 Posts

    Re: String enumeration --- Classcast Exception.

    ‏2013-03-05T13:48:30Z  
    Hello,
    Seems, that you missed this line of stacktrace, that could help:
    
    java.lang.ClassCastException: com.ibm.ccd.content.common.Item incompatible with com.ibm.ccd.common.util.AustinWriter
    


    The "save()" operation you using is not suitable for item (it is for "Doc Writer::save(String documentPath)").
    try this:
    
    for...
    { var value = checkString(finer_cat_multi_occur[counter], 
    ""); 
    
    if(value != 
    
    null && value.trim().length() > 0) 
    { out.writeln(
    "value : "+value); oItem.setEntryAttrib(
    "Non-media Primary Spec/Finer_Categorizations_LKP#"+multiIndex, value); multiIndex++; oItem.saveCtgItem(); 
    } end 
    
    for