cancel
Showing results for 
Search instead for 
Did you mean: 

Compile error during Flex Deployment of a Webservice

Former Member
0 Kudos

Hello,

We are using the Visual Composer (7.0 SP9) to display the data from a home made Web Service. This is the complete display of a simple table without input.

We tested the Web Service with the "Test Dat Service" option and within the Web Service Navigator of the J2EE Engine. This all worked fine.

When we try to deploy the application with Flash/Flex it fails, but when we try to deploy it with WebDynpro, the table is displayed correctly.

The following error is created during the compilation:

Error in compiling Flex application: Error 1049: Expected a field name after '.' operator.

(E:\usr\sap\DP6\JC00\j2ee\cluster\server0\GUIMachine_Business_Packages\Prodin_Taken_2_8620\FLEX_COMPILATION_FOLEDR\AAD25B.mxml:300)

Error 1205: The statement '' is incomplete.

(E:\usr\sap\DP6\JC00\j2ee\cluster\server0\GUIMachine_Business_Packages\Prodin_Taken_2_8620\FLEX_COMPILATION_FOLEDR\AAD25B.mxml:300)

Error 1099: This statement is not permitted in a class definition.

(E:\usr\sap\DP6\JC00\j2ee\cluster\server0\GUIMachine_Business_Packages\Prodin_Taken_2_8620\FLEX_COMPILATION_FOLEDR\AAD25B.mxml:302)

Error 1099: This statement is not permitted in a class definition.

(E:\usr\sap\DP6\JC00\j2ee\cluster\server0\GUIMachine_Business_Packages\Prodin_Taken_2_8620\FLEX_COMPILATION_FOLEDR\AAD25B.mxml:303)

Error 1099: This statement is not permitted in a class definition.

(E:\usr\sap\DP6\JC00\j2ee\cluster\server0\GUIMachine_Business_Packages\Prodin_Taken_2_8620\FLEX_COMPILATION_FOLEDR\AAD25B.mxml:304)

Error 1099: This statement is not permitted in a class definition.

(E:\usr\sap\DP6\JC00\j2ee\cluster\server0\GUIMachine_Business_Packages\Prodin_Taken_2_8620\FLEX_COMPILATION_FOLEDR\AAD25B.mxml:305)

Error 1099: This statement is not permitted in a class definition.

(E:\usr\sap\DP6\JC00\j2ee\cluster\server0\GUIMachine_Business_Packages\Prodin_Taken_2_8620\FLEX_COMPILATION_FOLEDR\AAD25B.mxml:307)

Error 1128: Attribute used outside class.

(E:\usr\sap\DP6\JC00\j2ee\cluster\server0\GUIMachine_Business_Packages\Prodin_Taken_2_8620\FLEX_COMPILATION_FOLEDR\AAD25B.mxml:310)

Error 1128: Attribute used outside class.

(E:\usr\sap\DP6\JC00\j2ee\cluster\server0\GUIMachine_Business_Packages\Prodin_Taken_2_8620\FLEX_COMPILATION_FOLEDR\AAD25B.mxml:337)

Error 1049: Expected a field name after '.' operator.

(E:\usr\sap\DP6\JC00\j2ee\cluster\server0\GUIMachine_Business_Packages\Prodin_Taken_2_8620\FLEX_COMPILATION_FOLEDR\AAD25B.mxml:355)

Error 1205: The statement '' is incomplete.

(E:\usr\sap\DP6\JC00\j2ee\cluster\server0\GUIMachine_Business_Packages\Prodin_Taken_2_8620\FLEX_COMPILATION_FOLEDR\AAD25B.mxml:355)

Error 1140: ActionScript 2.0 class scripts may only define class or interface constructs.

(E:\usr\sap\DP6\JC00\j2ee\cluster\server0\GUIMachine_Business_Packages\Prodin_Taken_2_8620\FLEX_COMPILATION_FOLEDR\AAD25B.mxml:337)

Error 1128: Attribute used outside class.

(E:\usr\sap\DP6\JC00\j2ee\cluster\server0\GUIMachine_Business_Packages\Prodin_Taken_2_8620\FLEX_COMPILATION_FOLEDR\AAD25B.mxml:376)

Error 1128: Attribute used outside class.

(E:\usr\sap\DP6\JC00\j2ee\cluster\server0\GUIMachine_Business_Packages\Prodin_Taken_2_8620\FLEX_COMPILATION_FOLEDR\AAD25B.mxml:394)

Error 1128: Attribute used outside class.

(E:\usr\sap\DP6\JC00\j2ee\cluster\server0\GUIMachine_Business_Packages\Prodin_Taken_2_8620\FLEX_COMPILATION_FOLEDR\AAD25B.mxml:408)

Error 1029: Unexpected '}' encountered

(E:\usr\sap\DP6\JC00\j2ee\cluster\server0\GUIMachine_Business_Packages\Prodin_Taken_2_8620\FLEX_COMPILATION_FOLEDR\AAD25B.mxml:417)

Failed to compile AAD25B.mxml

Does anybody know what the problem could be?

Thanks in advance,

Edwin Oldenburg

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

The problem has been solved.

The Data Service had an output port with the name "return". This was a default name which our tooling gave to the Web Service.

Probably the name "return" conflicted within the flex compilation code because this is also a command. We renamed the output port to another name and we could compile the application in flex without any problems.

Former Member
0 Kudos

Hi Edwin,

have you access to the AAD25B.mxml file and take a look at the lines where the errors occurs?

Maybe you get further particulars about the errors.

But I think, this is an error in VC, but I'm not sure.

Best Regards,

Marcel