on 08-27-2007 3:59 PM
Hi all,
The code generated by the BoGenerator has an import to a class that doesnt exist.
com.sap.ip.me.api.smartsync.ObjectIterator. The class did exist in the 2.1 version of MEg.jar but not in the current 2.5 version.
I downloaded the SAP Mobile Development Kit 2.5. Which also includes the MDKPlugin. This plugin includes both BoGenerator.jar and MEg.jar.
Either the 2 jars don't match or I am doing something wrong. Has anyone solved this problem already?
Regards,
Michel
hi michel,
generally, ME2.1 APIs are not totally compatible with MI2.5 APIs. thus, you need
to re-write your code according to what is being offered by MI2.5 APIs.
If you need an iterator, MI2.5 has MeIterator. please refer to:
https://help.sap.com/javadocs/NW04/current/me/com/sap/ip/me/api/services/MeIterator.html
regards
jo
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Jo,
Thanks for your reply!
The problem is not in my code, but in the code that is generated by the BoGenerator. It has an import to com.sap.ip.me.api.smartsync.ObjectIterator which doesn't exist anymore. I can change it manually but that's not what I want. It shouldn't be there in the first place.
Regards,
Michel
I removed the import using the ant task replace. The class was never used.
[code] <replace dir="${generate.dir}/java" value="">
<include name="*/.java"/>
<replacetoken>import com.sap.ip.me.api.smartsync.ObjectIterator;</replacetoken>
</replace>[/code]
It works now, but looks like there's a bug in the BoGenerator.jar
hi,
the easiest thing to do is to modify the template that is included in the BoGenerator.jar.
extract the jar files and locate the template.txt under the location
com\sap\mbs\util\bogenerator\builder\bomanager\implclass
you can also found other templates for methods, etc... and you can customize
them to cater your needs. after you have made the changes in the templates,
repack the jar once again, put it the same location on the MDK plugin. then
restart your NWDS...
regards
jo
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
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.