InDesign - ORB - Java not working
i trying use indesign using java via orb.
when run following java program
package indesigntest;
import java.io.bufferedreader;
import java.io.filereader;
import org.omg.corba.orb;
import org.omg.corba.object;
import com.adobe.ids.idsexception;
import com.adobe.ids.basics.application;
import com.adobe.ids.basics.applicationhelper;
public class main {
public static void main(string[] args) {
try {
orb orb = orb.init(args, null);
bufferedreader iorin = new bufferedreader(new filereader("d:\\ior.txt"));
string application_ior = iorin.readline();
object object = orb.string_to_object(application_ior);
application myapp = applicationhelper.narrow(object);
myapp.consoleerr("error occur");
myapp.consoleout("first hello server");
} catch (idsexception e) {
e.printstacktrace();
} catch (exception e) {
e.printstacktrace();
}
}
}
i got following exception:
com.adobe.ids.idsexception: idl:com/adobe/ids/idsexception:1.0
@ com.adobe.ids.idsexceptionhelper.read(unknown source)
@ com.adobe.ids.basics._applicationstub.consoleerr(unknown source)
@ indesigntest.main.main(main.java:18)
------------------------------------------------------------------------------------------ ---
here indesign server command running sucessfully @ backend
d:\>c:
c:\>cd\
c:\>cd c:\program files\adobe\adobe indesign cs6 server x64
c:\program files\adobe\adobe indesign cs6 server x64>indesignserver -iorfile d:\
ior.txt -pluginpath server\corba
================================================================================
. indesign cs6 server version 8.0 x64 evaluation
. copyright 1999-2012 adobe systems incorporated , licensors.
. rights reserved. see other legal notices in readme.
================================================================================
08/09/12 17:41:07 info [server] initializing
08/09/12 17:41:07 info [server] loading application
08/09/12 17:41:07 info [server] restoring object model
08/09/12 17:41:07 info [server] scanning plug-ins
08/09/12 17:41:08 info [server] initializing plug-ins
08/09/12 17:41:08 info [server] starting service registry
08/09/12 17:41:25 info [server] executing startup services
08/09/12 17:41:25 info [server] using configuration configuration_noport
08/09/12 17:41:28 info [server] initializing application
08/09/12 17:41:28 info [server] completing initialization
08/09/12 17:41:32 info [server] image previews off
08/09/12 17:41:32 info [server] server running
08/09/12 17:41:32 info [javascript] executing file: c:\program files\adobe\adob
e indesign cs6 server x64\scripts\startup scripts\connectinstancestoestk.js
08/09/12 17:41:32 info [javascript] executing file: c:\program files\adobe\adob
e indesign cs6 server x64\scripts\converturltohyperlink\startup scripts\convertu
rltohyperlinkmenuitemloader.jsx
08/09/12 17:41:32 info [javascript] executing file: c:\program files\adobe\adob
e indesign cs6 server x64\scripts\converturltohyperlink\converturltohyperlinkmen
uitem.jsxbin
08/09/12 17:41:36 info [server] initializing corba api
08/09/12 17:41:36 info [server] applicationior:010000002200000049444c3a636f6d2f
61646f62652f6964732f4170706c69636174696f6e3a312e30000000010000000000000068000000
010102000b00000031302e302e302e3231390000380a000013000000ff6964735f706f61fe00b023
50010008b40031000200000000000000080000000100000000545441010000001c00000001000000
010001000100000001000105090101000100000009010100
08/09/12 17:41:36 info [server] writing ior 'd:\ior.txt'
generated iot.txt file
ior:010000002200000049444c3a636f6d2f61646f62652f6964732f4170706c69636174696f6e3a312e300000 00010000000000000068000000010102000b00000031302e302e302e3231390000d008000013000000ff696473 5f706f61fe8fa023500100130c0031000200000000000000080000000100000000545441010000001c00000001 000000010001000100000001000105090101000100000009010100
------------------------------------------------------------------------------------------ --------------------------------
environment:
windows 7 64 bit
jdk 6
adobe indesign cs6 server x64
adobe indesign cs5.5 server sdk
trial activated using
"adobe_prtk --tool=starttrial --leid=indesignserver-cs6-win-gm"
please let me know missing.
i interested in indesign purchase if got working.
thanks in advance.
hey,
unfortunately adobe has stopped supporting java-api.
read here:
http://forums.adobe.com/thread/997395?tstart=0
nils
More discussions in InDesign Server Developers
adobe
Comments
Post a Comment