Copy link to clipboard
Copied
When I call ai with jacob, I sometimes report this error. The Chinese meaning of the above popover is:
Unable to create new illustration, command cancelled.
I want to know under what circumstances will this popover appear,and how to avoid the popover,for help.
Copy link to clipboard
Copied
are you using a script? can you post your code?
Copy link to clipboard
Copied
This is my code:
ActiveXComponent app = new ActiveXComponent("Illustrator.Application");
Dispatch docs = Dispatch.get(app, "Documents").toDispatch();
Dispatch doc = Dispatch.call(docs, "Add").toDispatch();
And this is error info:
com.jacob.com.ComFailException: Invoke of: Add
Source: Adobe Illustrator
Description: an Illustrator error occurred: 129 ('')
at com.jacob.com.Dispatch.invokev(Native Method) ~[Jacob-1.20.jar!/:na]
at com.jacob.com.Dispatch.invokev(Dispatch.java:625) ~[Jacob-1.20.jar!/:na]
at com.jacob.com.Dispatch.callN(Dispatch.java:453) ~[Jacob-1.20.jar!/:na]
at com.jacob.com.Dispatch.call(Dispatch.java:529) ~[Jacob-1.20.jar!/:na]
It happens on this line of code:
Dispatch doc = Dispatch.call(docs, "Add").toDispatch();
And it happens occasionally.
Copy link to clipboard
Copied
Well, that just happens if one is calling AI with Jacob. Don't do that.
; -)
Copy link to clipboard
Copied
🤣🤣🤣
Copy link to clipboard
Copied
This is my code:
ActiveXComponent app = new ActiveXComponent("Illustrator.Application");
Dispatch docs = Dispatch.get(app, "Documents").toDispatch();
Dispatch doc = Dispatch.call(docs, "Add").toDispatch();
And this is error info:
com.jacob.com.ComFailException: Invoke of: Add
Source: Adobe Illustrator
Description: an Illustrator error occurred: 129 ('')
at com.jacob.com.Dispatch.invokev(Native Method) ~[Jacob-1.20.jar!/:na]
at com.jacob.com.Dispatch.invokev(Dispatch.java:625) ~[Jacob-1.20.jar!/:na]
at com.jacob.com.Dispatch.callN(Dispatch.java:453) ~[Jacob-1.20.jar!/:na]
at com.jacob.com.Dispatch.call(Dispatch.java:529) ~[Jacob-1.20.jar!/:na]
It happens on this line of code:
Dispatch doc = Dispatch.call(docs, "Add").toDispatch();
And it happens occasionally.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now