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

Community Tip - Need to share some code when posting a question or reply? Make sure to use the "Insert code sample" menu option. Learn more! X

OIR CREATE, MODIFY ERROR

YJ_10068754
8-Gravel

OIR CREATE, MODIFY ERROR

hello. I want to modify EPMDocument OIR. However, an error occurs when creating or editing something.


INFO: wt.system.err wcadmin - MPInputStream object body top boundary mismatch
INFO: wt.system.err wcadmin - expecting ------WebKitFormBoundaryE1m4lu5jFp1z5kHW
INFO: wt.system.err wcadmin - found
ERROR: com.ptc.jca.mvc.controllers.ActionController wcadmin - java.lang.reflect.InvocationTargetException java.lang.reflect.InvocationTargetException
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

---- Omitted below ----


Is there a solution??

6 REPLIES 6

Hi @YJ_10068754 

Yes, you need to correct your modified XML. 

I guess that something is wrong in your XML file. 

 

Try to export the OOTB OIR and load it back. 

If it does not fail, your modification is bad formatted. 

 

PS> share your OIR xml definition

PetrrH

After checking many things, it doesn't seem to be a problem with the OIR file. The error also occurs when exporting and reinserting the current OIR. Also, an error occurs when exporting and inserting the basic OOTB OIR file. Is there somewhere that manages permissions for creating and editing OIRs? While looking for technical documentation, I heard that it might be an ACL-related issue. The contents of the OIR are attached below.

-----------------------------------
<AttributeValues objType="wt.epm.EPMDocument">

<!-- set the folder -->
<AttrValue id="folder.id" algorithm="com.ptc.core.foundation.folder.server.impl.FolderPathAttributeAlgorithm">
<Arg>/Default</Arg>
</AttrValue>

<!-- set the lifecycle -->
<AttrValue id="lifeCycle.id" algorithm="com.ptc.core.foundation.lifecycle.server.impl.LifeCycleTemplateAttributeAlgorithm"
ignore="false"
force="false"
final="false">
<Arg>Basic</Arg>
</AttrValue>

<!-- set the team template -->
<AttrValue id="teamTemplate.id" algorithm="com.ptc.core.foundation.team.server.impl.TeamTemplateAttributeAlgorithm">
<Arg>Default</Arg>
</AttrValue>

<!-- set the number to a generated number -->
<AttrValue id="number"
algorithm="com.ptc.windchill.enterprise.revisionControlled.server.impl.NumberGenerator"
ignore="false"
force="false"
final="false">
<Arg>{GEN:wt.enterprise.SequenceGenerator:EPM_seq:10:0}</Arg>
</AttrValue>

<!-- set the version info to a generated version info -->
<AttrValue id="MBA|versionInfo" algorithm="com.ptc.core.foundation.vc.server.impl.VersionInfoGenerator">
<Arg>wt.series.HarvardSeries</Arg>
</AttrValue>

<!-- specify AttrConstraint tag -->
<AttrConstraint id="lifeCycle.id" algorithm="com.ptc.core.rule.server.impl.GatherAttributeConstraints">
<Value algorithm="com.ptc.core.rule.server.impl.GetServerAssignedConstraint"/>
<Value algorithm="com.ptc.core.rule.server.impl.GetImmutableConstraint"/>
</AttrConstraint>
<AttrConstraint id="lifeCycle" algorithm="com.ptc.core.rule.server.impl.GatherAttributeConstraints">
<Value algorithm="com.ptc.core.rule.server.impl.GetServerAssignedConstraint"/>
<Value algorithm="com.ptc.core.rule.server.impl.GetImmutableConstraint"/>
</AttrConstraint>
<AttrConstraint id="folder.id" algorithm="com.ptc.core.rule.server.impl.GatherAttributeConstraints">
<Value algorithm="com.ptc.core.rule.server.impl.GetServerPreGeneratedValue"/>
</AttrConstraint>
<AttrConstraint id="number" algorithm="com.ptc.core.rule.server.impl.GatherAttributeConstraints">
<Value algorithm="com.ptc.core.rule.server.impl.GetServerAssignedConstraint"/>
<Value algorithm="com.ptc.core.rule.server.impl.GetImmutableConstraint"/>
</AttrConstraint>
<AttrConstraint id="teamTemplate.id" algorithm="com.ptc.core.rule.server.impl.GatherAttributeConstraints">
<Value algorithm="com.ptc.core.rule.server.impl.GetServerAssignedConstraint"/>
<Value algorithm="com.ptc.core.rule.server.impl.GetImmutableConstraint"/>
</AttrConstraint>
<AttrConstraint id="teamTemplate" algorithm="com.ptc.core.rule.server.impl.GatherAttributeConstraints">
<Value algorithm="com.ptc.core.rule.server.impl.GetServerAssignedConstraint"/>
<Value algorithm="com.ptc.core.rule.server.impl.GetImmutableConstraint"/>
</AttrConstraint>
<AttrConstraint id="organization.id" algorithm="com.ptc.core.rule.server.impl.GatherAttributeConstraints">
<Value algorithm="com.ptc.core.rule.server.impl.GetServerPreGeneratedValue">
<Value algorithm="com.ptc.windchill.enterprise.org.server.impl.OwningOrgDefaultAlgorithm"/>
</Value>
</AttrConstraint>
</AttributeValues>

 

thank you. @HelesicPetr 

Hi @YJ_10068754 

If it is ACL issue, so put your account to the administrator role.

It the issue is solved, yes it is ACL issue.

PetrH

The wcadmin account performing the task is already a member of the Administrators group. Is there a way to grant ACL administrator permissions other than this method?

Hi @YJ_10068754 

If the user is a member of administrator group, it seams that the issue is not ACL configuration

 

but you can try

Setting Permissions through the Policy Administration Utility

PetrH

In policy management, the administrators group has full wtobject privileges relative to root privileges. I have no idea what the problem is.

Announcements


Top Tags