Forum Replies Created
-
AuthorPosts
-
in reply to: Lotus Notes 8.5.3 troubles with ttf fonts January 29, 2013 at 17:35in reply to: Lotus Notes 8.5.3 troubles with ttf fonts January 29, 2013 at 15:40#29206
here you are
I attach PDF, xls, xml, html.
We had PD4ML 3.6.0, now we’re performing the test with 3.8.1
You are very kind :->
tommaso spazzali
in reply to: Lotus Notes 8.5.3 troubles with ttf fonts January 29, 2013 at 11:57#29204thanks for the quick answer
the code I use is:
Document tmp = db.createDocument(); RichTextItem rti = tmp.createRichTextItem("PD4MLBody"); doc.renderToRTItem(rti); DxlExporter dxl = session.createDxlExporter(); dxl.setConvertNotesBitmapsToGIF(true); => in this case il useless dxl.setOutputDOCTYPE(false); => tried with (true) but is the same
Stringxml= dxl.exportDxl(tmp);and the string “xml” contains
<tablecell borderwidth='0px 0px 2px 2px'> <pardef id='25' align='center' rightmargin='3.8229in' keepwithnext='true' keeptogether='true'/> <par def='25'><run><font size='36pt' name='IDAutomationHI25M' truetype='false' familyid='70'/>ÀU+!!$Ã</run>
<compositedata type='65402' prevtype='65413' nexttype='65413' afterparcount='4'> ev8iAAAABwAAAAAAAAAAAAAAAAAAAAAAAABiYXJjb2RlAA== </compositedata>
</par></tablecell>where the last part has something to do with the Base64 Encode of the Barcode.
I don’t know how to export a DXL in a different way … sorry
-t-
in reply to: Lotus Notes 8.5.3 troubles with ttf fonts January 29, 2013 at 11:27#29202UnDecoding Base64 the string:
ev8iAAAABwAAAAAAAAAAAAAAAAAAAAAAAABiYXJjb2RlAA==gives:zÿ”����������������������barcode�
with the text “barcode” at the end (that comes from the final part of the string AABiYXJjb2RlAA==)
In fact that field is a BARCODE…
even though this doesn’t help me :-< -t-
in reply to: problems running agent in background with domino 7.0.4 August 18, 2010 at 08:01#28180@PD4ML wrote:
> – the server seems to be unable to run in headless mode. It seems that domino 7 runs a 1.4 JVM which doesn’t support headless mode.
JDK introduced the headless mode starting from 1.4. However, as far as I remember, particular IBM’s JDK 1.4 implementations has problems with it. I would recommend to try to manage to run your JDK headless.
Regarding the exception. It looks like the only potential source of it is null returned by the code:
try { md5 = java.security.MessageDigest.getInstance("MD5"); } catch (Exception e) { return null; }Could you please create a minimalistic test in your environment and check if it returns an MD5 instance.
You are quite right.
I tried a simple agent with the code:
1. try { 2. md5 = java.security.MessageDigest.getInstance("MD5"); 3. } catch (Exception e) { 4. return null; 5. }and it raised an error because:
>This error can occur when a Domino 6 file named ibmjcaprovider.jar still exists on
>the machine, because, for unknown reasons, it was not properly removed during
>the upgrade. In Domino 6, the file ibmjcaprovider.jar was used to provide the class
>listed in the error message. Due to the change in JVM version for Domino 7, a
>new jar file is used, ibmjceprovider.jar.
>
>To correct the problem, delete ibmjcaprovider.jar as it is no longer needed.
(http://www-01.ibm.com/support/docview.wss?uid=swg21243598)but even if I correct this error using headless I still got an error here:
17/08/2010 03.59.55 PM HTTP JVM: java.lang.NoClassDefFoundError: sun/awt/X11GraphicsEnvironment 17/08/2010 03.59.55 PM HTTP JVM: at java.lang.Class.forName1(Native Method) 17/08/2010 03.59.55 PM HTTP JVM: at java.lang.Class.forName(Class.java:180) 17/08/2010 03.59.55 PM HTTP JVM: at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:91) 17/08/2010 03.59.55 PM HTTP JVM: at java.awt.Font.initializeFont(Font.java:333) 17/08/2010 03.59.55 PM HTTP JVM: at java.awt.Font.<init>(Font.java:368) 17/08/2010 03.59.55 PM HTTP JVM: at org.zefer.pd4ml.PD4PageMark.<init>(Unknown Source) 17/08/2010 03.59.55 PM HTTP JVM: at PdfAgent.generatePDF(PdfAgent.java:189) 17/08/2010 03.59.55 PM HTTP JVM: at PdfAgent.NotesMain(PdfAgent.java:140) 17/08/2010 03.59.55 PM HTTP JVM: at lotus.domino.AgentBase.runNotes(Unknown Source) 17/08/2010 03.59.55 PM HTTP JVM: at lotus.domino.NotesThread.run(Unknown Source)
looking here seems that some problem with IBM JVM 1.4.2 & headless is present:
http://www.ibm.com/developerworks/forums/message.jspa?messageID=3056901
BUT having deleted ibmjceprovider.jar it is possible to use Xvfb and I managed to produce a PDF (even if not complete, but this will be another post).
thanks a lot
tommaso
-
AuthorPosts
