Hmm... It seems many places have to change. We will try to find a better solution in next week.
Regards, Shi Jinghai/Beijing Langhua Ltd. 在 2010-10-13三的 10:58 +0200,[email protected]写道: > > You have to change > > List<Map<String, String>> featureCountList = FastList.newInstance(); > > to > > List<Map<String, ? extends Object>> featureCountList = > > FastList.newInstance(); > > > > and > > public static List<Map<String, String>> listCountByFeatureForType > > to > > public static List<Map<String, ? extends Object>> > > listCountByFeatureForType > > > > save and rebuild. > > Thanks for the hint! Now ProductSearchSession.java compiles with > OpenJDK. I've had to do the same modifications in > InvoiceServices.java, OagisInventoryServices.java and > OagisShipmentServices.java. Now, I get the following error, that I > wasn't able to correct because I'm not acquainted with Java : > > > classes: > [javac16] Compiling 3 source files to > /srv/www/Ofbiz-10.04/specialpurpose/oagis/build/classes > [javac16] > /srv/www/Ofbiz-10.04/specialpurpose/oagis/src/org/ofbiz/oagis/OagisInventoryServices.java:179: > > parseIsoDateString(java.lang.String,java.util.List<java.util.Map<java.lang.String,java.lang.String>>) > in org.ofbiz.oagis.OagisServices cannot be applied to > (java.lang.String,java.util.List<java.util.Map<java.lang.String,? extends > java.lang.Object>>) > [javac16] Timestamp snapshotDate = > OagisServices.parseIsoDateString(snapshotDateStr, errorMapList); > [javac16] ^ > [javac16] > > Any idea ? > > > > > 在 2010-10-06三的 09:45 +0200,[email protected]写道: > > > Hello, > > > > > > Here is what I've done : > > > svn co http://svn.apache.org/repos/asf/ofbiz/branches/release10.04 > > > Ofbiz-10.04 > > > cd Ofbiz-10.04 > > > ant run-install > > > > > > Here, I'm using the Sun (well, Oracle) jdk on a linux Debian amd64 > laptop : > > > ~ § java -version > > > java version "1.6.0_21" > > > Java(TM) SE Runtime Environment (build 1.6.0_21-b06) > > > Java HotSpot(TM) 64-Bit Server VM (build 17.0-b16, mixed mode) > > > The build is successful. Then, ./startofbiz.sh : > > > > > > Set OFBIZ_HOME to - /srv/www/Ofbiz-10.04 > > > Exception in thread "main" java.net.SocketException: Invalid argument > > > at java.net.PlainSocketImpl.socketBind(Native Method) > > > at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:365) > > > at java.net.ServerSocket.bind(ServerSocket.java:319) > > > at java.net.ServerSocket.<init>(ServerSocket.java:185) > > > at org.ofbiz.base.start.Start.initListenerThread(Start.java:167) > > > at org.ofbiz.base.start.Start.init(Start.java:93) > > > at org.ofbiz.base.start.Start.main(Start.java:410) > > > > > > Same story with stable release 9.04. > > > > > > BUT, when I use OpenJDK : > > > ~ § java -version > > > java version "1.6.0_18" > > > OpenJDK Runtime Environment (IcedTea6 1.8.1) (6b18-1.8.1-2) > > > OpenJDK 64-Bit Server VM (build 16.0-b13, mixed mode) > > > > > > 9.04 builds successfully, and starts like a charm, whereas 10.04 fails > > > to compile : > > > > > > build: > > > [echo] [build] ========== Start Building Framework (Compile) > ========== > > > .../... > > > classes: > > > [javac16] /srv/www/Ofbiz-10.04/common.xml:93: warning: > 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set > to false for repeatable builds > > > [javac16] Compiling 55 source files to > /srv/www/Ofbiz-10.04/applications/product/build/classes > > > [javac16] > /srv/www/Ofbiz-10.04/applications/product/src/org/ofbiz/product/product/ProductSearchSession.java:1231: > cannot find symbol > > > [javac16] symbol : method > add(java.util.Map<java.lang.String,java.lang.Object>) > > > [javac16] location: interface > java.util.List<java.util.Map<java.lang.String,java.lang.String>> > > > [javac16] > featureCountList.add(UtilMisc.toMap("productFeatureId", (String) > searchResult.get("pfacProductFeatureId"), "productFeatureTypeId", (String) > searchResult.get("pfcProductFeatureTypeId"), "description", (String) > searchResult.get("pfcDescription"), "featureCount", Long.toString((Long) > searchResult.get("featureCount")))); > > > [javac16] ^ > > > [javac16] 1 error > > > > > > BUILD FAILED > > > /srv/www/Ofbiz-10.04/build.xml:186: The following error occurred while > executing this line: > > > /srv/www/Ofbiz-10.04/applications/build.xml:67: The following error > occurred while executing this line: > > > /srv/www/Ofbiz-10.04/macros.xml:27: The following error occurred while > executing this line: > > > /srv/www/Ofbiz-10.04/common.xml:93: Compile failed; see the compiler > error output for details. > > > > > > I'm using ant 1.8 : > > > ~ § ant -version > > > Apache Ant version 1.8.0 compiled on March 11 2010 > > > > > > Any idea ? > > > > > > > > >
