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

Community Tip - Visit the PTCooler (the community lounge) to get to know your fellow community members and check out some of Dale's Friday Humor posts! X

Translate the entire conversation x

rbInfo to java code conversion

YoonKim
10-Marble

rbInfo to java code conversion

I am using Windchill PDMLink Release 13.0 and Datecode with CPS 13.0.2.2

How to convert the following in the securityLabelDownloadAckResource.rbInfo to securityLabelDownloadAckResource.java?
The rbInfo contains the followings:
TEST1_ONLY_DownloadAck.value=I have read and agree to the terms of the state export license.
TEST1_ONLY_DownloadAck.comment=State export license user acknowledgement
TRUE_DownloadAck.value=I have read and agree to the terms of the state export license.
TRUE_DownloadAck.comment=State export license user acknowledgement
downloadAckMessageKey.value=TRUE_DownloadAck

ACCEPTED SOLUTION

Accepted Solutions
YoonKim
10-Marble
(To:YoonKim)

The issue was a bit misguided since I thought I had to convert my existing securityLabelDownloadAckResource.rbInfo into securityLabelDownloadAckResource.java for my Windchill13.0 Upgrade from WC12. The following is the errors that I got after an upgrade to WC13.

 

ERROR [main] wt.access.configuration.SecurityLabelsHandler - The security label value downloadAckMessageKey: TRUE_DownloadAck; is not a valid resource bundle key. Setting the value to null.

 

Somehow, building of the securityLabelDownloadAckResource.java in <WT_Home>wtCustom\wt\access\configuration with "ant -f bin/tools.xml class -Dclass.includes" failed to recreate the class in the <WT_Home>codebase\wt\access\configuration folder.  Eventually, I had to update the corresponding java file in <WT_HOME>src\wt\access\configuration. Then, build it with <wt_home>ant -f bin/tools.xml class -Dclass.includes=wt\access\configuration\securityLabelDownloadAckResource.java -Dclass.force=true, which worked to recreate of  securityLabelDownloadAckResource.class.

 

The class definition of the java file is:

public class securityLabelDownloadAckResource extends WTListResourceBundle {

@RBEntry("TRUE_DownloadAck")
@RBComment("This is a Sample Download Ack Message")
public static final String downloadAckMessageKey = "TRUE_DownloadAck";

}

 



 

View solution in original post

3 REPLIES 3

Hi @YoonKim,


Thank you for your question. 

Your post appears well documented but has not yet received any response. I am replying to raise awareness. Hopefully, another community member will be able to help.

Also, feel free to add any additional information you think might be relevant. It sometimes helps to have screenshots to better understand what you are trying to do. 

 

Regards,

Anurag 

Fadel
23-Emerald I
(To:YoonKim)

Hi , Peter , I think this issue is resolved now as per support case 17624282, would you share the resolution ?

Fede
YoonKim
10-Marble
(To:YoonKim)

The issue was a bit misguided since I thought I had to convert my existing securityLabelDownloadAckResource.rbInfo into securityLabelDownloadAckResource.java for my Windchill13.0 Upgrade from WC12. The following is the errors that I got after an upgrade to WC13.

 

ERROR [main] wt.access.configuration.SecurityLabelsHandler - The security label value downloadAckMessageKey: TRUE_DownloadAck; is not a valid resource bundle key. Setting the value to null.

 

Somehow, building of the securityLabelDownloadAckResource.java in <WT_Home>wtCustom\wt\access\configuration with "ant -f bin/tools.xml class -Dclass.includes" failed to recreate the class in the <WT_Home>codebase\wt\access\configuration folder.  Eventually, I had to update the corresponding java file in <WT_HOME>src\wt\access\configuration. Then, build it with <wt_home>ant -f bin/tools.xml class -Dclass.includes=wt\access\configuration\securityLabelDownloadAckResource.java -Dclass.force=true, which worked to recreate of  securityLabelDownloadAckResource.class.

 

The class definition of the java file is:

public class securityLabelDownloadAckResource extends WTListResourceBundle {

@RBEntry("TRUE_DownloadAck")
@RBComment("This is a Sample Download Ack Message")
public static final String downloadAckMessageKey = "TRUE_DownloadAck";

}

 



 

Announcements
Top Tags