Quantcast
Channel: Adobe Community: Message List - InDesign Server Developers
Viewing all 641 articles
Browse latest View live

IndesignServer Object Model files

$
0
0

Greetings

 

I was wondering: when loading the IndesignServer Object Model in extendscript_toolkit , where are those files located?

It looks like an Adobe Flex application, that loads like for example, and XML or something.

 

Does anyone know where I can find all the class files information in a seperate file or something, for Indesign Server?

 

Thanks!

 

Regards

 

Mario


Running sample .command files return "command not found"

$
0
0

Greetings,

 

I'm trying to run the following script located in the SDK sample folder:

 

startup-indesign-server-CORBA-4instances.command

 

This is what I run in Terminal (mac):

 

/Applications/Adobe\ InDesign\ CS6\ Server/samples/load-balancing-and-queuing-clients/indesignserver-star tup-scripts/startup-indesign-server-CORBA-4instances.command

 

and this is what Terminal returns: : command not found.

 

Anybody any idea what's going on and how I can run this script? I've tried sudo already but nothing...

 

Thanks!

 

Greetings

 

M.

Re: Running sample .command files return "command not found"

$
0
0

okay, I changed my permissions on the .command file itself by "chmod 777 <filenamehere>"

and then

 

bash <filenamehere>

 

And it started...

Re: [IDS Win]How to flush Indesign server.

$
0
0

I have te same problem, have you found a solution?

Tanks

How to flush Indesign server.

$
0
0

I am using Indesign server to create documents which contains text and images. My job is to create & export documents to pdf. Document are sometimes contains 100 plus pages. I'm closing the document each time.

This all works perfectly, but while it's running, I see the memory usage of InDesignServer.exe spike by several MB, and then it settles back down to a still-higher-than-initial value. Eventually, the InDesignServer.exe is taking up several hundred MB and my server starts giving out-of-memory errors.

I'm not sure what I'm doing wrong. Like the original poster asked, it appears as though I should be flushing something that I am not.

 

I can't find anything in the language reference on how to programmatically flush this after each document. I'm not even sure if this is the culprit.

Problem processing files when plug-in not available

$
0
0

I our newspaper production we us a third party plugin: MEDIALINKID(MODEL).PLN fra Atex. When Indesign server tries to process documents saved from compuers using this plug-in, indesign server produce this error message:

06/25/13 15:03:39 ERROR [server] The document "ABBSA1-2105-1-002-T.indd" uses one or more plug-ins which are not currently available on your system. MEDIALINKID(MODEL).PLN

I have tried to install the plugin in Indesign server plug-in folder but that does not help. Is it possible to instruct Indesign Server to ignore the missing plugin message? A far as I know there are no content in the files that are dependent on the plug-in being available.

Re: InDesign Server (CS5.5 and CS6) CPU hog when no activity is happening.

$
0
0

Hi,

 

Did you solve your problem ? I think I have same issues : InDesign server (CS5.5 on mac) stuck at 100% of CPU after the job being done.

Did you use multi instance or single ?

 

Thanks

Re: InDesign Server (CS5.5 and CS6) CPU hog when no activity is happening.

$
0
0

Hi there,

 

Yes we solved it. We had a background process in our app that was trying to send over a thumbnail generation script. This would peg the INDS server for up to 15 minutes of just doing nothing. You would see the script come across but nothing would return so it would hose. Ended up fixing the error in our application and INDS has been working like a dream.

 

When we were running this we only were on a single-instance. We've now migrated to a multi-instance and throughput seems to be a lot faster now.


Unable to run Multiple Sessions in InDesign Server

$
0
0

Hi,

 

I was trying to execute the following code simultaneously using two threads. But it executed only the first thread and it got stuck with the second thread while it was exceuting the line stub.beginSession(). Please comment on this.

 

try {

 

 

                              // Setup the parameters

                              RunScriptParameters runScriptParams = new RunScriptParameters();

                              runScriptParams.setScriptLanguage("javascript");

 

 

                              runScriptParams.setScriptText("alert('hello world')");

 

                              BasicClientConfig basicClientConfig = new BasicClientConfig();

                              SimpleChain httpChain = new SimpleChain();

                              httpChain.addHandler(new CommonsHTTPSender());

                              basicClientConfig.deployTransport("http", httpChain);

 

 

                              // Make a service

                              Service inDesignService = new ServiceLocator(basicClientConfig);

                              ServiceStub stub = (ServiceStub) inDesignService

                                                  .getService(new URL("http://127.0.0.1:8470"));

 

 

                              UnsignedInt sessionID = stub.beginSession();

                              System.out.println("begin session : " + sessionID.toString());

 

 

                              // Set sessionID into header so that server knows run scripts in

                              // a session context.

                              SOAPHeaderElement header = new SOAPHeaderElement(

                                                  "http://ns.adobe.com/InDesign/soap/", "sessionID");

                              header.addTextNode(sessionID.toString());

                              stub.setHeader(header);

 

 

                              IntHolder errorNumber = new IntHolder(0);

                              StringHolder errorString = new StringHolder();

                              DataHolder results = new DataHolder();

 

 

                              // Execute the script

 

 

                              stub.runScript(runScriptParams, errorNumber, errorString, results);

 

 

                              if (errorNumber.value == 0) {

                                        System.out.println("Script success");

                                        if (results.value.getData() == null)

                                                  System.out.println(": Script reported no errors");

                                        else

                                                  System.out.println(" ("

                                                                      + results.value.getData().getClass().getName()

                                                                      + "): " + results.value.getData());

                              } else {

                                        System.err.println("Error number: " + errorNumber.value);

                                        if (!errorString.value.equals(null))

                                                  System.err.println(errorString.value);

                              }

 

 

                              try {

                                        stub.endSession(sessionID);

                              } catch (NullPointerException e) {

                              }

 

 

                              System.out.println("end session : " + sessionID.toString());

 

 

                    } catch (IllegalArgumentException e) {

                    } catch (IOException e) {

                              System.err.println(e.getMessage());

                    } catch (Exception e) {

                              System.err.println(e.getMessage());

                    }

 

Thanks And Best Regards,

Dinesh.

Re: Unable to run Multiple Sessions in InDesign Server

InDesignServer Jpeg - antiAlias jpegColorSpace

$
0
0

Can anyone tell me if antiAlias, jpegColorSpace and embedColorProfile exist in the InDesignServer Jpeg output? I know with the stanalone application you can use JPEGExportPreference.

 

 

 

opJPG.antiAlias = true;

 

opJPG.embedColorProfile = true;

 

opJPG.jpegColorSpace = JpegColorSpaceEnum.RGB;

 

 

 

 

 

Thank you,

 

Warren

Re: Unable to run Multiple Sessions in InDesign Server

$
0
0

Thanks for the reply. I will try to use Axis1 then to see the results.

 

Best Regards,

Dinesh.

Re: Cannot start multiple sessions in CS6

$
0
0

Hi Martin,

 

Can you pls post the code of sample-client.java which you got from Adobe support. I tried with the axis1 to run multiple sessions as you explained but could not get the expected results.

 

Best Regards,

Dinesh

Re: Cannot start multiple sessions in CS6

Re: Cannot start multiple sessions in CS6

$
0
0

Thank you very much Martin.

 

Best Regards,

Dinesh.


Re: Cannot start multiple sessions in CS6

$
0
0

Hi,

 

I have a related question, I don't think i should start a new thread for it.

I have expanded the C sharp SOAP example to start a few scripts simultaneously. But it appears like it isn't working.

 

My first change was to start every script from a different thread

 

                    Parallel.ForEach<Script>(scripts, script =>

                        {

                            Console.WriteLine("Starting script '" + script.ToString() + "' on thread: " + Thread.CurrentThread.ManagedThreadId.ToString());

                            script.Run(proxy);

                        });

This starts all scripts but it seems that they don't get executed at the same time.

 

I then changed the RunScript in script.cs to RunScriptAsync (proxy.RunScriptAsync(mParams);)

this however doesn't seem to actually execute the scripts.

 

Can anyone point me in the right direction?

Re: Cannot start multiple sessions in CS6

$
0
0

Hi Martin,

 

I just thought to get some input from you regarding the following matter. I tried to execute the sample code and it gave me the following error. I have used the axis 1 also.

 

Java Console Output

 

Session A: Creating New Doc 1

begin session : 2

Using session : 2

Script success

: Script reported no errors

Session B: Creating New Doc 2

begin session : 3

Using session : 3

Script success

: Script reported no errors

Session A: Add Text Frame To Doc 1

Using session : 2

Session B: Add Text Frame To Doc 2

; nested exception is:

          org.w3c.dom.DOMException: WRONG_DOCUMENT_ERR: A node is used in a different document than the one that created it.

Using session : 3

Script success

: Script reported no errors

Session A: Save and Close Doc 1

Using session : 2

; nested exception is:

          org.w3c.dom.DOMException: WRONG_DOCUMENT_ERR: A node is used in a different document than the one that created it.

Session B: Save and Close Doc 2

Using session : 3

Script success

: Script reported no errors

 

InDesign Server Output

 

Mon Jul  8 14:34:48 2013 INFO[javascript] Executing Script
Mon Jul  8 14:34:48 2013 INFO[server] Creating New Doc 1
Mon Jul  8 14:37:53 2013 INFO[javascript] Executing Script
Mon Jul  8 14:37:53 2013 INFO[server] Creating New Doc 2

SOAP 1.1 fault: SOAP-ENV:Server [no subcode]

"Client opened session with ID 1 but the SOAP header targets session with ID 2!"

Detail: None

Mon Jul  8 14:37:54 2013 INFO[javascript] Executing Script
Mon Jul  8 14:37:54 2013 INFO[server] Add Text Frame To Doc 2

SOAP 1.1 fault: SOAP-ENV:Server [no subcode]

"Client opened session with ID 1 but the SOAP header targets session with ID 2!"

Detail: None

Mon Jul  8 14:37:54 2013 INFO[javascript] Executing Script
Mon Jul  8 14:37:54 2013 INFO[server] Save and Close Doc 2

 

Do you have any clue about this, any input is highly appreciated.

 

Thanks And Best Regards,

Dinesh.

Re: Cannot start multiple sessions in CS6

$
0
0

Hi Dinesh,

 

I must admit I didn't tried the example, I just got inspiration from the SampleClient.java code in order to write my own mutlithread code...

 

But after a quick look, it seems that the problem is because a script tries to refer to a document created in another thread.

I think the problem is because all scripts in the example (addtextFrame1, addtextFrame2, saveclose1, saveclose2) refer to app.documents[0].

But app.documents[0] is created in thread 1...

Try to change to app.documents[1] for the scripts addtextFrame2 and saveclose2.

 

In general, it is your responsibility to verify that you access the proper document, I would advise sending the document name as a script argument to be sure, and never use app.documents[x]

 

I hope that will solve your problem,

/Martin

Re: Cannot start multiple sessions in CS6

$
0
0

Hi Martin,

 

Thanks for the reply and explanation. However I am still unable to run this. It created the session 2 but it took about 3-5 min to create the session 3. I am thinking why it takes such a time to create the session 3. Any hint for this ?

 

Thanks for your help too.

 

Best Regards,

Dinesh.

Indesign Server CS6 / Windows 7 professionel 64bit: Can't start the server

$
0
0

Hi

 

I have installed Indesign Server CS6 / 64bit on a Windows 7 professional / 64bit PC. This pC is a developer machine with different versions of Adobe and other programs installed.

 

When I start the server the message "The application was unable to start correctly 0xc000007b" is displayed.

 

- Is Indesign Server CS6 runnable on a Windows 7 64bit PC?

- What is about this error message?

- What can I do?

 

Thanks for some help.

 

Kind regards

Hans

Viewing all 641 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>