on 05-05-2014 9:41 AM
Hi,
I have formatted my laptop PC and re-installed Sybase Unwired Workspace 2.2. After the installation I get Code Generation Error message:
Before Code Generarion attemp the Java Build Path / Source tab is empty and after the Code Generation the error specified above is generated and the following path is added to the Java Build Path / Source tab:
XXX/Generated Code/src (missing)
I cannot resolve the problem. Does anybody has idea about the problem?
thanks,
Thanks to all,
The OSS has provided us with a patch: PATCH-10361-2.2SP02. the problem is resolved.
The afx-compiler.jar, AfxGenModel.templatej.jar and AfxGenModelMDP.templatej.jar files providen with SP02 are replaced with the patch PATCH-10361-2.2SP02.
Now the generated code is fine.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It seems that your problem is not related to the error that you see on eclipse as the error should normally disappear after the workspace refreshes. The problem is more to do with the code that is generated.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
For which platform you trying to generated the code?
Is this first time you generated the code? What about project? Existing one or you created a new one?
Can you manually create a folder named "Generated Code" inside the project and then try to generate the code. (Make sure this folder should be empty)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I tried generationg code for Java for Android.
Before the format operation the code generation process was fine.The project is existing one.
"Generated Code" forlder exists under the project forlder and is empty. I run the application with administrative privilages. I also use "Run As Administrator" option.
Generated Code" forlder exists under the project forlder and is empty.
Howcome "Generated Code" folder is empty. Did you delete its content (subfolders/files inside this folder) and trying to regenerating code?
In general, this "Generated Code" folder is created only when we try to generate the code for a particular platform and it should have some cotents, e.g. for iOS, it should have .h, .m files folder.
Is it possible, can you try with one small new project (maybe with one mbo) and try to generate the code for Android and see if you come across the similar issue?
Hi,
1. I created a new model having only one MBO and generated code successfuly.
2. The result is the same after deletion of "Generated Code" and creating new folder
3. The result is the same after generation code to another folder.
nothing has changed but I discovered additional information in the "workspace\.metadata\.log" file:
com.sybase.uep.tooling.codegeneration.coordinator.CoordinatorException: Member not found: inverseClass on object com.sybase.afx.compiler.AttributeDef@2a3881
at com.sybase.uep.tooling.codegeneration.coordinator.impl.ClientObjectAPICoordinator.sendRequest(ClientObjectAPICoordinator.java:115)
at com.sybase.uep.tooling.codegeneration.ui.CodeGenerationJob.sendRequest(CodeGenerationJob.java:200)
at com.sybase.uep.tooling.codegeneration.ui.CodeGenerationJob.processTasks(CodeGenerationJob.java:172)
at com.sybase.uep.tooling.codegeneration.ui.CodeGenerationJob.runInWorkspace(CodeGenerationJob.java:123)
at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:38)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
Caused by: com.sybase.uep.tooling.codegeneration.clientobjectapi.ClientObjectAPIException: Member not found: inverseClass on object com.sybase.afx.compiler.AttributeDef@2a3881
at com.sybase.uep.tooling.codegeneration.coordinator.CoordinatorException.<init>(CoordinatorException.java:27)
... 6 more
Caused by: com.sybase.modeling.templatej.runtime.adapter.impl.NoSuchMemberException: Member not found: inverseClass on object com.sybase.afx.compiler.AttributeDef@2a3881
at com.sybase.uep.tooling.codegeneration.CodeGenerationException.<init>(CodeGenerationException.java:26)
at com.sybase.uep.tooling.codegeneration.clientobjectapi.ClientObjectAPIException.<init>(ClientObjectAPIException.java:27)
at com.sybase.uep.tooling.codegeneration.clientobjectapi.impl.ClientObjectAPIDelegator.generate(ClientObjectAPIDelegator.java:155)
at com.sybase.uep.tooling.codegeneration.coordinator.impl.ClientObjectAPICoordinator.sendRequest(ClientObjectAPICoordinator.java:86)
... 5 more
Hi,
There are 59 MBOs in my model. Creating the project from scratch will be painful
I have discovered an interesting point:
- I have changed my language setting from Turkish to English (US). Then I tried generating code again and the code was generated but there are errros in the generated code. The generated files are in the Genereted Code\src\Project Name folder as expected but for MBOs having "create" method there are erros in the generated code.
For MBO named "Tahsilatlar" the following error message is listed:
I_TAHSILAT_SEKLI is an input parameter of the Remote Function related to the "create" method.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.