Hi,
I'm using Policy Server 7.0.1 and Security Server on Windows 2003 and JBoss 3.2.5. I have Adobe Policy Server and Adobe Security Server both deployed on the same JBoss instance. Security is configured using SSL.
I'm trying to attach a Policy to a PDF using the PDFManipulation tool inside the Security Server API.
I have a Servlet successfully connecting to Policy Server, I'm looking up the PDFManipulation in the JNDI, creating a transaction and are trying by the ConnectionFactory class to get a connection to the native PDFManipulation.exe. I'm getting the error message : "Detected GIOP 1.2 protocol error in input message".
So I wonder is the IOR String [IOR:00000000000000224...] wrong or what?
Anyone out there recognize this error?
regards
Jerry Johansson
Perth, Australia
-----------------------------------------------------
This is my code:
private PDFDocument getPDFDocument(String rawPDFPath)
{
try
{
InitialContext ctx = new InitialContext();
Object pdfObject = ctx.lookup("PDFManipulation");
ConnectionFactory pdfConnectionFactory = (ConnectionFactory)
PortableRemoteObject.narrow(pdfObject, ConnectionFactory.class);
UserTransaction trans = (UserTransaction)ctx.lookup("java:comp/UserTransaction");
log.debug("UserTransaction " + trans);
trans.begin();
PDFFactory pdfFactory = PDFFactoryHelper.narrow((org.omg.CORBA.Object) pdfConnectionFactory.getConnection());
// !!!! EXCEPTION happens above.
-----------------------------------------------------
This is the log:
2005-06-23 16:02:29,562 DEBUG [com.ebooks.ebl.onlinereader.aps.factory.OnlineReaderPolicyFactory] UserTransaction org.jboss.tm.usertx.client.ServerVMClientUserTransaction@40f2f1
2005-06-23 16:02:29,718 INFO [com.adobe.service.logging.Logger] $$$/server/service/logging/msg.LogSvcInit=Logger com.adobe.service.logging.Logger initialized
2005-06-23 16:02:29,781 INFO [com.adobe.document.PDFManipulation] Service PDFManipulation: Creating the temporary directory for managed process.
2005-06-23 16:02:30,843 INFO [com.adobe.document.PDFManipulation] Service PDFManipulation: Starting native process with command line C:\APS\Adobe\LiveCycle\PolicyServer\jboss-3.2.5\server\all\svcnative\PDFManipulation\bin\PDFManipulation.exe -IOR IOR:000000000000002249444C3A636F6D2F61646F62652F736572766963652F4D616E616765723A312E30000000000000020000000000000088000102000000000E3139322E3136382E302E313434000DC8000000134A426F73732F42522D312F0100000000000000000000000400000014000000080000004000600DC90000000000000008000000004A414300000000010000001C000000000001000100000001050100010001010900000001050100010000001400000008000000E000600DC9000000010000002C0000000000000001000000010000001C00000000000100010000000105010001000101090000000105010001 -KeyPass YmVkcm9jaw== -CertPath "C:\APS\Adobe\LiveCycle\PolicyServer\jboss-3.2.5\server\all\svcnative" -SSLNativeDir "C:\APS\Adobe\LiveCycle\PolicyServer\jboss-3.2.5\server\all\svcnative\ServicesNatives2\lib" -AppServer jboss
2005-06-23 16:02:35,296 INFO [STDOUT] omniORB: From endpoint: giop:tcp:192.168.0.144:3528. Detected GIOP 1.2 protocol error in input message. Connection is closed.
omniORB: From endpoint: giop:tcp:192.168.0.144:3528. Detected GIOP 1.2 protocol error in input message. Connection is closed.
-----------------------------------------------------