). without text, or lack of
in the HTML seems to work in the DB.
Referring to my other post, the theory was that there was a resource (font) missing from the jar file. Could this be a similar issue?
Connected to Oracle Database 11g Enterprise Edition Release 11.2.0.4.0
Connected as sc@scc
SQL> set serveroutput on
SQL> exec dbms_java.set_output(1000000);
PL/SQL procedure successfully completed
SQL> create or replace and compile java source named testasposewords as
2 import com.aspose.words.Document;
3 import com.aspose.words.DocumentBuilder;
4 import com.aspose.words.SaveFormat;
5 import java.io.ByteArrayOutputStream;
6 public class TestAsposeWords
7 {
8 public static void test(String html) throws Exception
9 {
10 System.out.println (“------------------------------------------------------------------------------------”);
11 System.out.println (“html=”+html);
12 Document doc = new Document();
13 DocumentBuilder builder=new DocumentBuilder(doc);
14 System.out.println (“Before insertHtml()”);
15 builder.insertHtml (html);
16 System.out.println (“Before save()”);
17 ByteArrayOutputStream dstStream = new ByteArrayOutputStream();
18 doc.save(dstStream, SaveFormat.DOCX);
19 System.out.println (“After save()”);
20 }
21 }
22 /
create or replace and compile java source named testasposewords as
import com.aspose.words.Document;
import com.aspose.words.DocumentBuilder;
import com.aspose.words.SaveFormat;
import java.io.ByteArrayOutputStream;
public class TestAsposeWords
{
public static void test(String html) throws Exception
{
System.out.println (“------------------------------------------------------------------------------------”);
System.out.println (“html=”+html);
Document doc = new Document();
DocumentBuilder builder=new DocumentBuilder(doc);
System.out.println (“Before insertHtml()”);
builder.insertHtml (html);
System.out.println (“Before save()”);
ByteArrayOutputStream dstStream = new ByteArrayOutputStream();
doc.save(dstStream, SaveFormat.DOCX);
System.out.println (“After save()”);
}
}
ORA-29553: class in use: SC.TestAsposeWords
SQL> create or replace procedure Test_Aspose_words (p_HTML IN VARCHAR2)
2 AS LANGUAGE JAVA
3 NAME ‘TestAsposeWords.test(java.lang.String)’;
4 /
Procedure created
SQL> exec Test_Aspose_words(‘IGNORE’);
------------------------------------------------------------------------------------
html=IGNORE
Before insertHtml()
Before save()
After save()
PL/SQL procedure successfully completed
SQL> exec Test_Aspose_words (‘Hello
’); ------------------------------------------------------------------------------------
Before insertHtml()
Before save()
After save()
PL/SQL procedure successfully completed
SQL> exec Test_Aspose_words (‘Hello
’); ------------------------------------------------------------------------------------
Before insertHtml()
Before save()
After save()
PL/SQL procedure successfully completed
SQL> exec Test_Aspose_words (‘