hi,
i tried to build the latest svn, but it failed with the following message. i am doing a fresh build with no changes whatsoever on a linux machine with jdk 1.6.11 Anybody else experience such issue. Rohit prepare: [mkdir] Created dir: /mnt/server-disk/ofbizsvn/ofbiz/applications/product/build/classes [mkdir] Created dir: /mnt/server-disk/ofbizsvn/ofbiz/applications/product/build/lib classes: [javac16] Compiling 54 source files to /mnt/server-disk/ofbizsvn/ofbiz/applications/product/build/classes [javac16] /mnt/server-disk/ofbizsvn/ofbiz/applications/product/src/org/ofbiz/product/product/ProductSearchSession.java:1230: 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] Note: /mnt/server-disk/ofbizsvn/ofbiz/applications/product/src/org/ofbiz/product/product/ProductSearch.java uses unchecked or unsafe operations. [javac16] Note: Recompile with -Xlint:unchecked for details. [javac16] 1 error |
I just ran ant run-install on a fresh checkout and I don't get any errors.
-Adrian rohit wrote: > hi, > > i tried to build the latest svn, but it failed with the following message. i > am doing a fresh build with no changes whatsoever on a linux machine with > jdk 1.6.11 > > Anybody else experience such issue. > > Rohit > > > prepare: > [mkdir] Created dir: > /mnt/server-disk/ofbizsvn/ofbiz/applications/product/build/classes > [mkdir] Created dir: > /mnt/server-disk/ofbizsvn/ofbiz/applications/product/build/lib > > classes: > [javac16] Compiling 54 source files to > /mnt/server-disk/ofbizsvn/ofbiz/applications/product/build/classes > [javac16] > /mnt/server-disk/ofbizsvn/ofbiz/applications/product/src/org/ofbiz/product/product/ProductSearchSession.java:1230: > 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] Note: > /mnt/server-disk/ofbizsvn/ofbiz/applications/product/src/org/ofbiz/product/product/ProductSearch.java > uses unchecked or unsafe operations. > [javac16] Note: Recompile with -Xlint:unchecked for details. > [javac16] 1 error > > |
yes, it tried building on another machine with jdk 1.6.0_17 and it build fine. But it does not build with jdk 1.6.0_11.
which jdk version did u test with? Rohit |
In reply to this post by rohit
I've had success with jdk-1.6.0_16, i'm on 64 bit ubuntu
On Thu, Feb 4, 2010 at 10:20 AM, rohit <[hidden email]> wrote: > > hi, > > i tried to build the latest svn, but it failed with the following message. i > am doing a fresh build with no changes whatsoever on a linux machine with > jdk 1.6.11 > > Anybody else experience such issue. > > Rohit > > > prepare: > [mkdir] Created dir: > /mnt/server-disk/ofbizsvn/ofbiz/applications/product/build/classes > [mkdir] Created dir: > /mnt/server-disk/ofbizsvn/ofbiz/applications/product/build/lib > > classes: > [javac16] Compiling 54 source files to > /mnt/server-disk/ofbizsvn/ofbiz/applications/product/build/classes > [javac16] > /mnt/server-disk/ofbizsvn/ofbiz/applications/product/src/org/ofbiz/product/product/ProductSearchSession.java:1230: > 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] Note: > /mnt/server-disk/ofbizsvn/ofbiz/applications/product/src/org/ofbiz/product/product/ProductSearch.java > uses unchecked or unsafe operations. > [javac16] Note: Recompile with -Xlint:unchecked for details. > [javac16] 1 error > > > -- > View this message in context: http://n4.nabble.com/ofbiz-build-fails-tp1469028p1469028.html > Sent from the OFBiz - User mailing list archive at Nabble.com. > |
I am having the same problem on ubuntu 9.10 x86 with :
java version "1.6.0_0" OpenJDK Runtime Environment (IcedTea6 1.6.1) (6b16-1.6.1-3ubuntu1) OpenJDK Client VM (build 14.0-b16, mixed mode, sharing) |
Hello,
I have face the same problem and found a solution by simply extracting the added variable to a temporary variable. my java version is: java version "1.6.0_17" OpenJDK Runtime Environment (IcedTea6 1.7.1) (fedora-36.b17.fc12-x86_64) OpenJDK 64-Bit Server VM (build 14.0-b16, mixed mode) The version is the same as Rohit, but it did not works for me... so I think that may be this error is introduce by OpenJDK? Anyway, modifying the code of ProductSearchSession.java : featureCountList.add(UtilMisc.toMap("productFeatureId", (String) searchResult.get("pfacProductFeatureId"), "productFeatureTypeId", (String) ... ; by : Map<String, String> e = UtilMisc.toMap("productFeatureId", (String) searchResult.get("pfacProductFeatureId"), "productFeatureTypeId", (String) searchResult.get("pfcProductFeatureTypeId"), "description", (String) searchResult.get("pfcDescription"), "featureCount", Long.toString((Long) searchResult.get("featureCount"))); featureCountList.add(e); The same in InvoiceServices.java remplacing : invoicesCreated.add(UtilMisc.toMap("commissionInvoiceId",invoiceId, "salesRepresentative ",partyIdBillFrom)); by : Map<String, String> e = UtilMisc.toMap("commissionInvoiceId",invoiceId, "salesRepresentative ",partyIdBillFrom); invoicesCreated.add(e); All this makes OFBiz compiling fine for me. Hope this will help. Bye, Kévin |
Administrator
|
Hi Kévin,
So you got OFBiz running on OpenJDK? Jacques From: "Kévin Sailly" <[hidden email]> > Hello, > > I have face the same problem and found a solution by simply extracting the > added variable to a temporary variable. > > my java version is: > java version "1.6.0_17" > OpenJDK Runtime Environment (IcedTea6 1.7.1) (fedora-36.b17.fc12-x86_64) > OpenJDK 64-Bit Server VM (build 14.0-b16, mixed mode) > > The version is the same as Rohit, but it did not works for me... so I think > that may be this error is introduce by OpenJDK? > > Anyway, modifying the code of ProductSearchSession.java : > featureCountList.add(UtilMisc.toMap("productFeatureId", (String) > searchResult.get("pfacProductFeatureId"), "productFeatureTypeId", (String) > ... ; > > by : > Map<String, String> e = UtilMisc.toMap("productFeatureId", (String) > searchResult.get("pfacProductFeatureId"), "productFeatureTypeId", (String) > searchResult.get("pfcProductFeatureTypeId"), "description", (String) > searchResult.get("pfcDescription"), "featureCount", Long.toString((Long) > searchResult.get("featureCount"))); > featureCountList.add(e); > > The same in InvoiceServices.java remplacing : > invoicesCreated.add(UtilMisc.toMap("commissionInvoiceId",invoiceId, > "salesRepresentative ",partyIdBillFrom)); > > by : > Map<String, String> e = UtilMisc.toMap("commissionInvoiceId",invoiceId, > "salesRepresentative ",partyIdBillFrom); > invoicesCreated.add(e); > > All this makes OFBiz compiling fine for me. > > Hope this will help. > > Bye, > Kévin > -- > View this message in context: http://n4.nabble.com/ofbiz-build-fails-tp1469028p1676589.html > Sent from the OFBiz - User mailing list archive at Nabble.com. > |
Hello Jacques,
Yes it is, after the changes I made, it start well. I have some other things to check for now but my computer is out of order for the moment. Kévin |
Free forum by Nabble | Edit this page |