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

Community Tip - Your Friends List is a way to easily have access to the community members that you interact with the most! X

Windchill Java Lang Error

luiz.hnm
9-Granite

Windchill Java Lang Error

I am trying to create more instances in a part with CREO, and then when i check in Windchil an error appears:

"java.lang.IllegalArgumentException 
Nested exception is: java.lang.IllegalArgumentException"

The "Java Lang" error appears too in other situations, without explanations, for example when I import a part to Windchill:

"java.lang.ClassCastException: class java.lang.String cannot be cast to class java.lang.Number (java.lang.String and java.lang.Number are in module java.base of loader 'bootstrap')"

We are at the beginning of the Windchill implementation. Does anyone know how to solve this problem?

 

 

ACCEPTED SOLUTION

Accepted Solutions

I’d bet big money you have an attribute and a designated parameter with the same name and the the parameter is a String that Windchill is attempting to push its value into a Real Number (or Real Number w/Units attribute.

 

If this is what’s happening the OOTB way to solve it is to make sure the datatypes of the attribute and the parameter are the same.

There’s no way OOTB to change the datatype of an attribute. However, you can either delete the attribute and make a new one as a String.

Or a direct edit of the dB can be done but that requires really knowing what you’re doing.

And that’s not something I’d explain in detail here.

View solution in original post

4 REPLIES 4
avillanueva
22-Sapphire II
(To:luiz.hnm)

Were there any attributes added to the WTPart object? Post your object init rules for Parts as well.

Yes, a new attribute was created for categorization of the parts. Sorry, but i don't have access to this init rules for Parts. But do you have a guess what the problem might be?

HelesicPetr
22-Sapphire I
(To:luiz.hnm)

Hello @luiz.hnm 

The issue can be that designated parameters in models are different type then the attributes in Windchill. Designated parameters have to match with attributes in windchill database. Type and Attribute management is the right place where admin can check that. 

 

I would check configuration  with your administrator who should know what was set on the windchill side. 

 

PetrH

I’d bet big money you have an attribute and a designated parameter with the same name and the the parameter is a String that Windchill is attempting to push its value into a Real Number (or Real Number w/Units attribute.

 

If this is what’s happening the OOTB way to solve it is to make sure the datatypes of the attribute and the parameter are the same.

There’s no way OOTB to change the datatype of an attribute. However, you can either delete the attribute and make a new one as a String.

Or a direct edit of the dB can be done but that requires really knowing what you’re doing.

And that’s not something I’d explain in detail here.

Announcements


Top Tags