• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

CS5 CSXS Logger errors

Participant ,
Mar 23, 2011 Mar 23, 2011

Copy link to clipboard

Copied

Hello,

I'm running into errors when using my Photoshop panel in CS5. I've been using trials of Flash Builder 4 on various machines and each time I have to set the environment up I seem to run into new issues. As of the last machine I was on, it was functioning fine in both CS4 & 5, but on this machine running the panel in CS5 outputs:

3/9/2011 07:50:16.600 [DEBUG] com.adobe.csxs.external.CommunicationUtils [DispatchingRequest functionName="findMiddleSuspender" params="true|true"]
------------------
3/9/2011 07:50:16.600 [ERROR] com.adobe.csxs.external.CommunicationUtils [Error in request data, it is null where some data is expected ]
------------------
3/9/2011 07:50:16.601 [INFO] com.adobe.csxs.external.CommunicationUtils [RequestResult after parsing result="[RequestResult status="RequestResultInvalid" data=null]" ]
------------------
3/9/2011 07:50:16.602 [DEBUG] com.adobe.csxs.external.CommunicationUtils [Result="[RequestResult status="RequestResultInvalid" data=null]"]
------------------

I can't find any documentation on external.CommunicationUtils, so I'm not sure at what point the error is being thrown.

The function call (mxml):

private function findMiddle_StageBoth(event:Event):void {
   CSXSInterface.instance.evalScript("findMiddleSuspender", "true|true");
}

The function (jsx):
function findMiddleSuspender (a) {
   app.activeDocument.suspendHistory("Find Middle", "findMiddle(a)");
   // All the parameter parsing happens in the next function. I left this in here for reference, but even something as simple as alert(a) throws the error. I'm not sure where that means the script is having problems.
}

In an attempt to try to figure out where the error is actually happening, I stripped the functions down to bare bones:

(mxml):

private function findMiddle_StageBoth(event:Event):void {
   CSXSInterface.instance.evalScript("findMiddleSuspender");
}

(jsx):

function findMiddleSuspender () {
   alert('Foo')
}

and it still gave me the "some data is expected" error, which leads me to believe it's not my functions that are the problem.


My current setup:
• Flash Builder 4
• SDK: CS Flex SDK 3.4.0 (Also tried Flex 3.5 and Flex 4)
• Libs: CSXSLibrary.swc (Don't recall where I got it. CSXSLibrary-2.0-sdk-3.4-public.swc that comes with the SDK and Panel Dev Guide both cause errors with the Air Logger)

TOPICS
Actions and scripting

Views

566

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe
Community Expert ,
Mar 24, 2011 Mar 24, 2011

Copy link to clipboard

Copied

LATEST

Maybe you should also post there

http://forums.adobe.com/community/flash_builder

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines