Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Generating PUB Documents Through the API

 I have a simple template / dsx - basically a paragraph of text (just to test the concept)

I imported the provided SampleDocGen project from PUB/lib/api/examples into eclipse
After modifying it to include the correct libraries - it executes and generates a document
However - the moment I add the Rhapsody library to the project (thats the end goal - to be able to generate a document from Rhapsody) - it fails to generate because it fails to checkout the license

[Sample] 08:50:43 - Starting run...

[Sample] 08:50:43 - License checkout failed. Retrying for 20 more seconds...

[Sample] 08:50:48 - License checkout failed. Retrying for 15 more seconds...

[Sample] 08:50:53 - License checkout failed. Retrying for 10 more seconds...

[Sample] 08:50:58 - License checkout failed. Retrying for 5 more seconds...

[Sample] 08:51:03 - Unable to access license factory.

[PUB] 08:51:03 - CRRPE3010E The license could not be verified.

Unable to access license factory.

Exception in thread "main" java.lang.IllegalStateException: failure 'Remote document generation failed for report URL file:/C:/Work/T1.dsx'

at com.ibm.icu.impl.Assert.fail(Assert.java:15)

at com.ibm.rational.rpe.examples.docgen.SampleDocgen.run(SampleDocgen.java:226)

at com.ibm.rational.rpe.examples.docgen.SampleDocgen.main(SampleDocgen.java:384)



Remove the Rhapsody library - it works again 

Any ideas ?

0 votes


Accepted answer

Permanent link

Fixed it. 

PUB is 64 bit - Rhapsody client 32 bit
Adding Rhapsody made eclipse try and load 32 bit versions of all dlls
In Build Settings I forced the rcl_telelogic jar file to use the rcl_telelogic.dll from the '64' folder in the PUB install

Ralph Schoon selected this answer as the correct answer

0 votes

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details

Question asked: Dec 06 '21, 3:52 a.m.

Question was seen: 854 times

Last updated: Feb 17 '22, 5:27 a.m.

Confirmation Cancel Confirm