Skip to main content
1-Visitor
April 21, 2015
Solved

partlist

Hello,

I Would like to load a partlist object but it is not working. Here is a sample of my xml file:

<?xml version="1.0" ?><!DOCTYPE NmLoader SYSTEM "standardX24.dtd">

<NmLoader>

<csvPartList handler="com.ptc.arbortext.windchill.partlist.LoadPartList.createPartList" >

<csvuser></csvuser>

<csvname>720A00</csvname>

<csvnumber>0000000002</csvnumber>

<csvfolder>/Default/Planche Catalogue - POC</csvfolder>

<csvlifecycle></csvlifecycle>

<csvview></csvview>

<csvteamTemplate></csvteamTemplate>

<csvlifecyclestate>RELEASED</csvlifecyclestate>

<csvtypedef>WCTYPE|com.ptc.arbortext.windchill.partlist.PartList</csvtypedef>

<csvversion>A</csvversion>

<csviteration>1</csviteration>

<csvdescription />

<csvinformationType />

<csvpartListItemType />

<csvparentContainerPath></csvparentContainerPath>

<csvorganizationName></csvorganizationName>

<csvorganizationID></csvorganizationID>

<csvcreateTimestamp></csvcreateTimestamp>

<csvmodifyTimestamp></csvmodifyTimestamp>

<csvauthoringLanguage>en</csvauthoringLanguage>

</csvPartList>

<csvendIBAHolder handler="wt.iba.value.service.LoadValue.endIBAHolder" />

</NmLoader>

Here is the stack trace:

(wt.ixb.publicforhandlers.ixbResource/18) wt.ixb.publicforhandlers.LogHelper$IxbException: Error in XML input file

at wt.ixb.publicforhandlers.LogHelper.userError(LogHelper.java:230)

at wt.ixb.publicforhandlers.LogHelper.userError(LogHelper.java:566)

at wt.ixb.impl.doc.IxbDomDocument.initialize(IxbDomDocument.java:169)

at wt.ixb.publicforapps.IxbDomDocumentDelegate.newIxbDocument(IxbDomDocumentDelegate.java:39)

at wt.ixb.publicforapps.IxbHelper.newIxbDocument(IxbHelper.java:282)

at wt.load.StandardLoadService.importData(StandardLoadService.java:776)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:606)

at wt.method.MethodResultWriter.writeExternal(MethodResultWriter.java:152)

at wt.method.MethodResult.writeExternal(MethodResult.java:228)

at java.io.ObjectOutputStream.writeExternalData(ObjectOutputStream.java:1455)

at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1429)

at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1177)

at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:347)

at sun.rmi.server.UnicastRef.marshalValue(UnicastRef.java:293)

at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:332)

at sun.rmi.transport.Transport$1.run(Transport.java:177)

at sun.rmi.transport.Transport$1.run(Transport.java:174)

at java.security.AccessController.doPrivileged(Native Method)

at sun.rmi.transport.Transport.serviceCall(Transport.java:173)

at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:556)

at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:811)

at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:670)

at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)

at java.lang.Thread.run(Thread.java:745)

Thanks,

Julien

jrezeAnswer
1-Visitor
May 6, 2015

I fixed my problem.

To load a part List, i need to load also the related WTPart object and the partToPartList link.

The use empty was not a problem fyi

3 replies

14-Alexandrite
April 23, 2015

In my opinion csvuser is the problem. You have to put a user.

I usually use "wcadmin".

Translate
23-Emerald II
May 1, 2015

That stack trace is pretty generic and usually there is another error(s) that shows up in the logs along with that. Do you still have the log? If so, can you attach it to the thread?

Translate
jreze1-VisitorAuthorAnswer
1-Visitor
May 6, 2015

I fixed my problem.

To load a part List, i need to load also the related WTPart object and the partToPartList link.

The use empty was not a problem fyi

Translate