cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Help us improve the PTC Community by taking this short Community Survey! X

partlist

jreze
7-Bedrock

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

ACCEPTED SOLUTION

Accepted Solutions
jreze
7-Bedrock
(To:jreze)

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

View solution in original post

3 REPLIES 3
ngiacom
14-Alexandrite
(To:jreze)

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

I usually use "wcadmin".

LoriSood
22-Sapphire III
(To:jreze)

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?

jreze
7-Bedrock
(To:jreze)

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

Announcements


Top Tags