documentation on creating help pages

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
41 messages Options
123
Reply | Threaded
Open this post in threaded view
|

Re: compile error on trunk and 10.04, revision 945444

Matt Warnock
First compile on this machine.  Have not run into this issue on other
machines before.
--
Matt Warnock <[hidden email]>
RidgeCrest Herbals, Inc.

On Mon, 2010-05-17 at 23:01 -0700, BJ Freeman wrote:

> have you compiles on this setup before or is this your first compile
>
>
> =========================
> BJ Freeman
> http://bjfreeman.elance.com
> Strategic Power Office with Supplier Automation <http://www.businessesnetwork.com/automation/viewforum.php?f=93>
> Specialtymarket.com <http://www.specialtymarket.com/>
>
> Systems Integrator-- Glad to Assist
>
> Chat  Y! messenger: bjfr33man
> Linkedin
> <http://www.linkedin.com/profile?viewProfile=&key=1237480&locale=en_US&trk=tab_pro>
>
>
> Matt Warnock sent the following on 5/17/2010 10:47 PM:
> > Thanks for the tip, I guess I just blindly assumed that any commit
> > should still compile.  That's probably naive on my part.
> >
> > However, I reverted to 945340, and have the same result.  Also tried
> > installing sun-java-6-jdk, to see if openjdk was missing something, but
> > got the same result.
> >
> > The error seems to be in file:
> > [of-biz-home]/applications/product/src/org/ofbiz/product/product/ProductSearchSession.java
> > at line 1231: cannot find symbol
> >
> > This same file was changed when I reverted to 945340, but the changes
> > may go back further, I dunno.
> >
> >   [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
> >
> >
> > Anyone running Debian out there?  Anyone seeing this on other machines?
> > Any suggestions?
> >
>

Reply | Threaded
Open this post in threaded view
|

Re: compile error on trunk and 10.04, revision 945444

el.ansari
In reply to this post by BJ Freeman
Which version of jdk are u using ? I've had the same issue with java 1.6.0_20 (the last one) but not with 18 for example.
Good luck and if you find a solution with the latest jdk, let us know.

Thanks
----- Mail Original -----
De: "Matt Warnock" <[hidden email]>
À: [hidden email]
Envoyé: Mardi 18 Mai 2010 07h01:13 Monrovia (GMT)
Objet: Re: compile error on trunk and 10.04, revision 945444

First compile on this machine.  Have not run into this issue on other
machines before.
--
Matt Warnock <[hidden email]>
RidgeCrest Herbals, Inc.

On Mon, 2010-05-17 at 23:01 -0700, BJ Freeman wrote:

> have you compiles on this setup before or is this your first compile
>
>
> =========================
> BJ Freeman
> http://bjfreeman.elance.com
> Strategic Power Office with Supplier Automation <http://www.businessesnetwork.com/automation/viewforum.php?f=93>
> Specialtymarket.com <http://www.specialtymarket.com/>
>
> Systems Integrator-- Glad to Assist
>
> Chat  Y! messenger: bjfr33man
> Linkedin
> <http://www.linkedin.com/profile?viewProfile=&key=1237480&locale=en_US&trk=tab_pro>
>
>
> Matt Warnock sent the following on 5/17/2010 10:47 PM:
> > Thanks for the tip, I guess I just blindly assumed that any commit
> > should still compile.  That's probably naive on my part.
> >
> > However, I reverted to 945340, and have the same result.  Also tried
> > installing sun-java-6-jdk, to see if openjdk was missing something, but
> > got the same result.
> >
> > The error seems to be in file:
> > [of-biz-home]/applications/product/src/org/ofbiz/product/product/ProductSearchSession.java
> > at line 1231: cannot find symbol
> >
> > This same file was changed when I reverted to 945340, but the changes
> > may go back further, I dunno.
> >
> >   [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
> >
> >
> > Anyone running Debian out there?  Anyone seeing this on other machines?
> > Any suggestions?
> >
>

Reply | Threaded
Open this post in threaded view
|

Re: compile error on trunk and 10.04, revision 945444

BJ Freeman
In reply to this post by Adrian Crum-2

what the error says in that it can not find a certain class in the
classpath. my guess is the map method which would be in the JDK runtime.

as far as debian Adam Health is the one that puts Debian specific items
in.  Not sure he reads the user mailing list. Might give him a shout on
the dev ML.

I have not run 10;.04 on my centos which as Open JDK, but I doubt it is
the same distro as debian.
I am downloading through eclipse on to my dev machine it is slow.
so will let you know if it compiles, later this day.


=========================
BJ Freeman
http://bjfreeman.elance.com
Strategic Power Office with Supplier Automation <http://www.businessesnetwork.com/automation/viewforum.php?f=93>
Specialtymarket.com <http://www.specialtymarket.com/>

Systems Integrator-- Glad to Assist

Chat  Y! messenger: bjfr33man
Linkedin
<http://www.linkedin.com/profile?viewProfile=&key=1237480&locale=en_US&trk=tab_pro>


Matt Warnock sent the following on 5/17/2010 11:59 PM:
> Have tried it with and without "ant clean" before, usually running "ant
> run-install", but also various other "ant" and "./ant" targets. Not sure
> I understand the difference between ./ant and the system ant.
>
> Wish I understood the error messages better.  
>


Reply | Threaded
Open this post in threaded view
|

Re: compile error on trunk and 10.04, revision 945444

BJ Freeman
In reply to this post by Adrian Crum-2
Just compiled latest rev successfully.
strange it would stop on that file since map is used in the framework
which compiled fine.

how about memory on the machine?
I have seen strange compile errors when the compiler runs out of memory.


=========================
BJ Freeman
http://bjfreeman.elance.com
Strategic Power Office with Supplier Automation <http://www.businessesnetwork.com/automation/viewforum.php?f=93>
Specialtymarket.com <http://www.specialtymarket.com/>

Systems Integrator-- Glad to Assist

Chat  Y! messenger: bjfr33man
Linkedin
<http://www.linkedin.com/profile?viewProfile=&key=1237480&locale=en_US&trk=tab_pro>


BJ Freeman sent the following on 5/18/2010 4:03 AM:

> what the error says in that it can not find a certain class in the
> classpath. my guess is the map method which would be in the JDK runtime.
>
> as far as debian Adam Health is the one that puts Debian specific items
> in.  Not sure he reads the user mailing list. Might give him a shout on
> the dev ML.
>
> I have not run 10;.04 on my centos which as Open JDK, but I doubt it is
> the same distro as debian.
> I am downloading through eclipse on to my dev machine it is slow.
> so will let you know if it compiles, later this day.
>
>
> =========================
> BJ Freeman
> http://bjfreeman.elance.com
> Strategic Power Office with Supplier Automation <http://www.businessesnetwork.com/automation/viewforum.php?f=93>
> Specialtymarket.com <http://www.specialtymarket.com/>
>
> Systems Integrator-- Glad to Assist
>
> Chat  Y! messenger: bjfr33man
> Linkedin
> <http://www.linkedin.com/profile?viewProfile=&key=1237480&locale=en_US&trk=tab_pro>
>
>
> Matt Warnock sent the following on 5/17/2010 11:59 PM:
>> Have tried it with and without "ant clean" before, usually running "ant
>> run-install", but also various other "ant" and "./ant" targets. Not sure
>> I understand the difference between ./ant and the system ant.
>>
>> Wish I understood the error messages better.  
>>
>
>
>


Reply | Threaded
Open this post in threaded view
|

Re: compile error on trunk and 10.04, revision 945444

BJ Freeman
In reply to this post by Adrian Crum-2
I just noticed in eclipse it gave me an error on that file about maps.
that was because I had I assigned 1.4 to the project.
when I changed the runtime 1.6_08 the errors went away.
do a java -version to see what you are compiling with.

=========================
BJ Freeman
http://bjfreeman.elance.com
Strategic Power Office with Supplier Automation <http://www.businessesnetwork.com/automation/viewforum.php?f=93>
Specialtymarket.com <http://www.specialtymarket.com/>

Systems Integrator-- Glad to Assist

Chat  Y! messenger: bjfr33man
Linkedin
<http://www.linkedin.com/profile?viewProfile=&key=1237480&locale=en_US&trk=tab_pro>


BJ Freeman sent the following on 5/18/2010 4:33 AM:

> Just compiled latest rev successfully.
> strange it would stop on that file since map is used in the framework
> which compiled fine.
>
> how about memory on the machine?
> I have seen strange compile errors when the compiler runs out of memory.
>
>
> =========================
> BJ Freeman
> http://bjfreeman.elance.com
> Strategic Power Office with Supplier Automation <http://www.businessesnetwork.com/automation/viewforum.php?f=93>
> Specialtymarket.com <http://www.specialtymarket.com/>
>
> Systems Integrator-- Glad to Assist
>
> Chat  Y! messenger: bjfr33man
> Linkedin
> <http://www.linkedin.com/profile?viewProfile=&key=1237480&locale=en_US&trk=tab_pro>
>
>
> BJ Freeman sent the following on 5/18/2010 4:03 AM:
>> what the error says in that it can not find a certain class in the
>> classpath. my guess is the map method which would be in the JDK runtime.
>>
>> as far as debian Adam Health is the one that puts Debian specific items
>> in.  Not sure he reads the user mailing list. Might give him a shout on
>> the dev ML.
>>
>> I have not run 10;.04 on my centos which as Open JDK, but I doubt it is
>> the same distro as debian.
>> I am downloading through eclipse on to my dev machine it is slow.
>> so will let you know if it compiles, later this day.
>>
>>
>> =========================
>> BJ Freeman
>> http://bjfreeman.elance.com
>> Strategic Power Office with Supplier Automation <http://www.businessesnetwork.com/automation/viewforum.php?f=93>
>> Specialtymarket.com <http://www.specialtymarket.com/>
>>
>> Systems Integrator-- Glad to Assist
>>
>> Chat  Y! messenger: bjfr33man
>> Linkedin
>> <http://www.linkedin.com/profile?viewProfile=&key=1237480&locale=en_US&trk=tab_pro>
>>
>>
>> Matt Warnock sent the following on 5/17/2010 11:59 PM:
>>> Have tried it with and without "ant clean" before, usually running "ant
>>> run-install", but also various other "ant" and "./ant" targets. Not sure
>>> I understand the difference between ./ant and the system ant.
>>>
>>> Wish I understood the error messages better.  
>>>
>>
>>
>
>
>


Reply | Threaded
Open this post in threaded view
|

Re: compile error on trunk and 10.04, revision 945444

Jacques Le Roux
Administrator
In reply to this post by BJ Freeman
No problems OOTB either here (XP)

Jacques

From: "BJ Freeman" <[hidden email]>

> Just compiled latest rev successfully.
> strange it would stop on that file since map is used in the framework
> which compiled fine.
>
> how about memory on the machine?
> I have seen strange compile errors when the compiler runs out of memory.
>
>
> =========================
> BJ Freeman
> http://bjfreeman.elance.com
> Strategic Power Office with Supplier Automation <http://www.businessesnetwork.com/automation/viewforum.php?f=93>
> Specialtymarket.com <http://www.specialtymarket.com/>
>
> Systems Integrator-- Glad to Assist
>
> Chat  Y! messenger: bjfr33man
> Linkedin
> <http://www.linkedin.com/profile?viewProfile=&key=1237480&locale=en_US&trk=tab_pro>
>
>
> BJ Freeman sent the following on 5/18/2010 4:03 AM:
>> what the error says in that it can not find a certain class in the
>> classpath. my guess is the map method which would be in the JDK runtime.
>>
>> as far as debian Adam Health is the one that puts Debian specific items
>> in.  Not sure he reads the user mailing list. Might give him a shout on
>> the dev ML.
>>
>> I have not run 10;.04 on my centos which as Open JDK, but I doubt it is
>> the same distro as debian.
>> I am downloading through eclipse on to my dev machine it is slow.
>> so will let you know if it compiles, later this day.
>>
>>
>> =========================
>> BJ Freeman
>> http://bjfreeman.elance.com
>> Strategic Power Office with Supplier Automation <http://www.businessesnetwork.com/automation/viewforum.php?f=93>
>> Specialtymarket.com <http://www.specialtymarket.com/>
>>
>> Systems Integrator-- Glad to Assist
>>
>> Chat  Y! messenger: bjfr33man
>> Linkedin
>> <http://www.linkedin.com/profile?viewProfile=&key=1237480&locale=en_US&trk=tab_pro>
>>
>>
>> Matt Warnock sent the following on 5/17/2010 11:59 PM:
>>> Have tried it with and without "ant clean" before, usually running "ant
>>> run-install", but also various other "ant" and "./ant" targets. Not sure
>>> I understand the difference between ./ant and the system ant.
>>>
>>> Wish I understood the error messages better.  
>>>
>>
>>
>>
>
>

Reply | Threaded
Open this post in threaded view
|

Re: compile error on trunk and 10.04, revision 945444

Matt Warnock
In reply to this post by el.ansari
java -version gives 1.6.0_0-1b, standard with Debian stable.  
--
Matt Warnock <[hidden email]>
RidgeCrest Herbals, Inc.

On Tue, 2010-05-18 at 04:28 -0500, El Ansari Abdesamad wrote:

> Which version of jdk are u using ? I've had the same issue with java 1.6.0_20 (the last one) but not with 18 for example.
> Good luck and if you find a solution with the latest jdk, let us know.
>
> Thanks
> ----- Mail Original -----
> De: "Matt Warnock" <[hidden email]>
> À: [hidden email]
> Envoyé: Mardi 18 Mai 2010 07h01:13 Monrovia (GMT)
> Objet: Re: compile error on trunk and 10.04, revision 945444
>
> First compile on this machine.  Have not run into this issue on other
> machines before.

Reply | Threaded
Open this post in threaded view
|

Re: compile error on trunk and 10.04, revision 945444

Matt Warnock
In reply to this post by BJ Freeman
The machine in question is AMD Turion 64bit, 2 processors, 16GB of real
memory.  But I also see the same errors on my Core2 Duo laptop, running
Ubuntu 10.04, with 4GB memory.  That one *USED* to compile OK, but that
was like 2 months ago.

I am not doing anything to set memory requirements.  I don't have a
JAVA_HOME or ANT environment variable set, I thought on Linux that was
not required, am I wrong?  Like I said, it worked before, but maybe its
not seeing the right classpath.


--
Matt Warnock <[hidden email]>
RidgeCrest Herbals, Inc.

On Tue, 2010-05-18 at 04:33 -0700, BJ Freeman wrote:

> Just compiled latest rev successfully.
> strange it would stop on that file since map is used in the framework
> which compiled fine.
>
> how about memory on the machine?
> I have seen strange compile errors when the compiler runs out of memory.
>
>
> =========================
> BJ Freeman
> http://bjfreeman.elance.com
> Strategic Power Office with Supplier Automation <http://www.businessesnetwork.com/automation/viewforum.php?f=93>
> Specialtymarket.com <http://www.specialtymarket.com/>
>
> Systems Integrator-- Glad to Assist
>
> Chat  Y! messenger: bjfr33man
> Linkedin
> <http://www.linkedin.com/profile?viewProfile=&key=1237480&locale=en_US&trk=tab_pro>
>
>
> BJ Freeman sent the following on 5/18/2010 4:03 AM:
> > what the error says in that it can not find a certain class in the
> > classpath. my guess is the map method which would be in the JDK runtime.
> >
> > as far as debian Adam Health is the one that puts Debian specific items
> > in.  Not sure he reads the user mailing list. Might give him a shout on
> > the dev ML.
> >
> > I have not run 10;.04 on my centos which as Open JDK, but I doubt it is
> > the same distro as debian.
> > I am downloading through eclipse on to my dev machine it is slow.
> > so will let you know if it compiles, later this day.
> >
> >
> > =========================
> > BJ Freeman
> > http://bjfreeman.elance.com
> > Strategic Power Office with Supplier Automation <http://www.businessesnetwork.com/automation/viewforum.php?f=93>
> > Specialtymarket.com <http://www.specialtymarket.com/>
> >
> > Systems Integrator-- Glad to Assist
> >
> > Chat  Y! messenger: bjfr33man
> > Linkedin
> > <http://www.linkedin.com/profile?viewProfile=&key=1237480&locale=en_US&trk=tab_pro>
> >
> >
> > Matt Warnock sent the following on 5/17/2010 11:59 PM:
> >> Have tried it with and without "ant clean" before, usually running "ant
> >> run-install", but also various other "ant" and "./ant" targets. Not sure
> >> I understand the difference between ./ant and the system ant.
> >>
> >> Wish I understood the error messages better.  
> >>
> >
> >
> >
>

Reply | Threaded
Open this post in threaded view
|

Re: compile error on trunk and 10.04, revision 945444

Matt Warnock
In reply to this post by BJ Freeman
I am compiling from the command line, using openjdk, "java -version"
gives the following:
java version "1.6.0_0"
OpenJDK  Runtime Environment (build 1.6.0_0-b11)
OpenJDK 64-Bit Server VM (build 1.6.0_0-b11, mixed mode)

--
Matt Warnock <[hidden email]>
RidgeCrest Herbals, Inc.


On Tue, 2010-05-18 at 04:47 -0700, BJ Freeman wrote:

> I just noticed in eclipse it gave me an error on that file about maps.
> that was because I had I assigned 1.4 to the project.
> when I changed the runtime 1.6_08 the errors went away.
> do a java -version to see what you are compiling with.
>
> =========================
> BJ Freeman
> http://bjfreeman.elance.com
> Strategic Power Office with Supplier Automation <http://www.businessesnetwork.com/automation/viewforum.php?f=93>
> Specialtymarket.com <http://www.specialtymarket.com/>
>
> Systems Integrator-- Glad to Assist
>
> Chat  Y! messenger: bjfr33man
> Linkedin
> <http://www.linkedin.com/profile?viewProfile=&key=1237480&locale=en_US&trk=tab_pro>
>
>
> BJ Freeman sent the following on 5/18/2010 4:33 AM:
> > Just compiled latest rev successfully.
> > strange it would stop on that file since map is used in the framework
> > which compiled fine.
> >
> > how about memory on the machine?
> > I have seen strange compile errors when the compiler runs out of memory.
> >
> >
> > =========================
> > BJ Freeman
> > http://bjfreeman.elance.com
> > Strategic Power Office with Supplier Automation <http://www.businessesnetwork.com/automation/viewforum.php?f=93>
> > Specialtymarket.com <http://www.specialtymarket.com/>
> >
> > Systems Integrator-- Glad to Assist
> >
> > Chat  Y! messenger: bjfr33man
> > Linkedin
> > <http://www.linkedin.com/profile?viewProfile=&key=1237480&locale=en_US&trk=tab_pro>
> >
> >
> > BJ Freeman sent the following on 5/18/2010 4:03 AM:
> >> what the error says in that it can not find a certain class in the
> >> classpath. my guess is the map method which would be in the JDK runtime.
> >>
> >> as far as debian Adam Health is the one that puts Debian specific items
> >> in.  Not sure he reads the user mailing list. Might give him a shout on
> >> the dev ML.
> >>
> >> I have not run 10;.04 on my centos which as Open JDK, but I doubt it is
> >> the same distro as debian.
> >> I am downloading through eclipse on to my dev machine it is slow.
> >> so will let you know if it compiles, later this day.
> >>
> >>
> >> =========================
> >> BJ Freeman
> >> http://bjfreeman.elance.com
> >> Strategic Power Office with Supplier Automation <http://www.businessesnetwork.com/automation/viewforum.php?f=93>
> >> Specialtymarket.com <http://www.specialtymarket.com/>
> >>
> >> Systems Integrator-- Glad to Assist
> >>
> >> Chat  Y! messenger: bjfr33man
> >> Linkedin
> >> <http://www.linkedin.com/profile?viewProfile=&key=1237480&locale=en_US&trk=tab_pro>
> >>
> >>
> >> Matt Warnock sent the following on 5/17/2010 11:59 PM:
> >>> Have tried it with and without "ant clean" before, usually running "ant
> >>> run-install", but also various other "ant" and "./ant" targets. Not sure
> >>> I understand the difference between ./ant and the system ant.
> >>>
> >>> Wish I understood the error messages better.  
> >>>
> >>
> >>
> >
> >
> >
>

Reply | Threaded
Open this post in threaded view
|

Re: compile error on trunk and 10.04, revision 945444 SOLVED (workaround)

Matt Warnock
Th problem appears to be openjdk-specific.
If after doing "apt-get install java-6-sun-jdk" I then run
"update-java-alternatives --list" I get three options:
java-6-openjdk 1061 /usr/lib/jvm/java-6-openjdk
java-6-sun 63 /usr/lib/jvm/java-6-sun
java-gcj 1042 /usr/lib/jvm/java-gcj

If I then run "update-java-alternatives --set java-6-sun"
then it compiles fine.  

If I change back with "update-java-alternatives --set java-6-openjdk" it
breaks again.  But 9.04 compiles fine under openjdk, like I said. Still
don't know what openjdk is missing on Debian stable, but the Sun java
package apparently supplies it.

BTW, just out of curiosity, what is the purpose of "./ant", and why
would it be needed?  It seems to set JAVA, look for an
"ant-launcher.jar" file (of which there are several in my system, but
none in this directory tree, should I worry?) and then launch java,
which I assume runs the ant application.  How is this different from
the /usr/bin/ant shell script, which seems to do a lot more, but in the
same general vein?  Is the ./ant just a quick-and-dirty version of the
same thing?  Is there a reason I should use one or the other?

--
Matt Warnock <[hidden email]>
RidgeCrest Herbals, Inc.

On Tue, 2010-05-18 at 10:03 -0600, Matt Warnock wrote:
> I am compiling from the command line, using openjdk, "java -version"
> gives the following:
> java version "1.6.0_0"
> OpenJDK  Runtime Environment (build 1.6.0_0-b11)
> OpenJDK 64-Bit Server VM (build 1.6.0_0-b11, mixed mode)
>

Reply | Threaded
Open this post in threaded view
|

Re: compile error on trunk and 10.04, revision 945444 SOLVED (workaround)

BJ Freeman
In reply to this post by Matt Warnock
I would then say it has to do with the code changes in the trunk like is
   <Map<String, String>>
debian open JDK does not cover this.


=========================
BJ Freeman
http://bjfreeman.elance.com
Strategic Power Office with Supplier Automation <http://www.businessesnetwork.com/automation/viewforum.php?f=93>
Specialtymarket.com <http://www.specialtymarket.com/>

Systems Integrator-- Glad to Assist

Chat  Y! messenger: bjfr33man
Linkedin
<http://www.linkedin.com/profile?viewProfile=&key=1237480&locale=en_US&trk=tab_pro>


Matt Warnock sent the following on 5/18/2010 9:54 AM:

> Th problem appears to be openjdk-specific.
> If after doing "apt-get install java-6-sun-jdk" I then run
> "update-java-alternatives --list" I get three options:
> java-6-openjdk 1061 /usr/lib/jvm/java-6-openjdk
> java-6-sun 63 /usr/lib/jvm/java-6-sun
> java-gcj 1042 /usr/lib/jvm/java-gcj
>
> If I then run "update-java-alternatives --set java-6-sun"
> then it compiles fine.  
>
> If I change back with "update-java-alternatives --set java-6-openjdk" it
> breaks again.  But 9.04 compiles fine under openjdk, like I said. Still
> don't know what openjdk is missing on Debian stable, but the Sun java
> package apparently supplies it.
>
> BTW, just out of curiosity, what is the purpose of "./ant", and why
> would it be needed?  It seems to set JAVA, look for an
> "ant-launcher.jar" file (of which there are several in my system, but
> none in this directory tree, should I worry?) and then launch java,
> which I assume runs the ant application.  How is this different from
> the /usr/bin/ant shell script, which seems to do a lot more, but in the
> same general vein?  Is the ./ant just a quick-and-dirty version of the
> same thing?  Is there a reason I should use one or the other?
>


Reply | Threaded
Open this post in threaded view
|

Re: compile error on trunk and 10.04, revision 945444 SOLVED (workaround)

Matt Warnock
Sounds right.  Thanks to all who helped and made suggestions.  I was
(and remain) over my head.  But at least it's running now. :)

--
Matt Warnock <[hidden email]>
RidgeCrest Herbals, Inc.

On Tue, 2010-05-18 at 12:10 -0700, BJ Freeman wrote:

> I would then say it has to do with the code changes in the trunk like is
>    <Map<String, String>>
> debian open JDK does not cover this.
>
>
> =========================
> BJ Freeman
> http://bjfreeman.elance.com
> Strategic Power Office with Supplier Automation <http://www.businessesnetwork.com/automation/viewforum.php?f=93>
> Specialtymarket.com <http://www.specialtymarket.com/>
>
> Systems Integrator-- Glad to Assist
>
> Chat  Y! messenger: bjfr33man
> Linkedin
> <http://www.linkedin.com/profile?viewProfile=&key=1237480&locale=en_US&trk=tab_pro>
>
>
> Matt Warnock sent the following on 5/18/2010 9:54 AM:
> > Th problem appears to be openjdk-specific.
> > If after doing "apt-get install java-6-sun-jdk" I then run
> > "update-java-alternatives --list" I get three options:
> > java-6-openjdk 1061 /usr/lib/jvm/java-6-openjdk
> > java-6-sun 63 /usr/lib/jvm/java-6-sun
> > java-gcj 1042 /usr/lib/jvm/java-gcj
> >
> > If I then run "update-java-alternatives --set java-6-sun"
> > then it compiles fine.  
> >
> > If I change back with "update-java-alternatives --set java-6-openjdk" it
> > breaks again.  But 9.04 compiles fine under openjdk, like I said. Still
> > don't know what openjdk is missing on Debian stable, but the Sun java
> > package apparently supplies it.
> >
> > BTW, just out of curiosity, what is the purpose of "./ant", and why
> > would it be needed?  It seems to set JAVA, look for an
> > "ant-launcher.jar" file (of which there are several in my system, but
> > none in this directory tree, should I worry?) and then launch java,
> > which I assume runs the ant application.  How is this different from
> > the /usr/bin/ant shell script, which seems to do a lot more, but in the
> > same general vein?  Is the ./ant just a quick-and-dirty version of the
> > same thing?  Is there a reason I should use one or the other?
> >
>

Reply | Threaded
Open this post in threaded view
|

Re: documentation on creating help pages

BJ Freeman
In reply to this post by BJ Freeman
I did not have time to see if this integrates into 9.04.
I am guessing since it was instituted shortly after 9.04 that it would work.
however till someone Or I can test this, I don't want to created a
support night mare by documenting anything.

=========================
BJ Freeman
http://bjfreeman.elance.com
Strategic Power Office with Supplier Automation <http://www.businessesnetwork.com/automation/viewforum.php?f=93>
Specialtymarket.com <http://www.specialtymarket.com/>

Systems Integrator-- Glad to Assist

Chat  Y! messenger: bjfr33man
Linkedin
<http://www.linkedin.com/profile?viewProfile=&key=1237480&locale=en_US&trk=tab_pro>


BJ Freeman sent the following on 5/17/2010 3:38 PM:

> the docbook was started in Aug  2009
> http://svn.apache.org/viewvc?view=revision&revision=805338
> there are approximately 135 commits up this month
> I will document them this weekend in wiki.
>
> =========================
> BJ Freeman
> http://bjfreeman.elance.com
> Strategic Power Office with Supplier Automation <http://www.businessesnetwork.com/automation/viewforum.php?f=93>
> Specialtymarket.com <http://www.specialtymarket.com/>
>
> Systems Integrator-- Glad to Assist
>
> Chat  Y! messenger: bjfr33man
> Linkedin
> <http://www.linkedin.com/profile?viewProfile=&key=1237480&locale=en_US&trk=tab_pro>
>
>
> Ruth Hoffman sent the following on 5/17/2010 2:06 PM:
>> Hi BJ:
>> How about in a 9.04 release? Is there such a thing or does it need to be
>> created? If so, how is data loaded into the DB? Are there any examples
>> of seed data that have help files in docBook format? And, can  9.04
>> release even display docBook content?
>> TIA
>> Ruth
>> ----------------------------------------------------
>> Find me on the web at http://www.myofbiz.com or Google keyword "myofbiz"
>> [hidden email]
>>
>> BJ Freeman wrote:
>>> the seem to follow the information on the
>>> http://docbook.org/
>>> they are put in the ofbiz_home/component/documentation/
>>> folder
>>>
>>> =========================
>>> BJ Freeman
>>> http://bjfreeman.elance.com
>>> Strategic Power Office with Supplier Automation
>>> <http://www.businessesnetwork.com/automation/viewforum.php?f=93>
>>> Specialtymarket.com <http://www.specialtymarket.com/>
>>>
>>> Systems Integrator-- Glad to Assist
>>>
>>> Chat  Y! messenger: bjfr33man
>>> Linkedin
>>> <http://www.linkedin.com/profile?viewProfile=&key=1237480&locale=en_US&trk=tab_pro>
>>>
>>>
>>>
>>> Christopher Snow sent the following on 5/17/2010 1:26 PM:
>>>  
>>>> Is there any documentation on writing help pages for the help system?
>>>>
>>>> Many thanks,
>>>>
>>>> Chris
>>>>
>>>>    
>>>
>>>
>>>  
>
>
>


Reply | Threaded
Open this post in threaded view
|

Re: compile error on trunk and 10.04, revision 945444

jonatan soto
In reply to this post by Matt Warnock
Hi Matt,

I am experiencing exactly the same issue. Have you found any solution?

System: Debian Lenny stable

Java version:
java version "1.6.0_0"
OpenJDK  Runtime Environment (build 1.6.0_0-b11)
OpenJDK 64-Bit Server VM (build 1.6.0_0-b11, mixed mode)

Ofbiz r952591

------

I have also a working Ofbiz instance on my PC running a two months ago
revision. The SO is Ubuntu Karmic and it's working fine.

Regards,




On Tue, May 18, 2010 at 6:03 PM, Matt Warnock <
[hidden email]> wrote:

> I am compiling from the command line, using openjdk, "java -version"
> gives the following:
> java version "1.6.0_0"
> OpenJDK  Runtime Environment (build 1.6.0_0-b11)
> OpenJDK 64-Bit Server VM (build 1.6.0_0-b11, mixed mode)
>
> --
> Matt Warnock <[hidden email]>
> RidgeCrest Herbals, Inc.
>
>
> On Tue, 2010-05-18 at 04:47 -0700, BJ Freeman wrote:
> > I just noticed in eclipse it gave me an error on that file about maps.
> > that was because I had I assigned 1.4 to the project.
> > when I changed the runtime 1.6_08 the errors went away.
> > do a java -version to see what you are compiling with.
> >
> > =========================
> > BJ Freeman
> > http://bjfreeman.elance.com
> > Strategic Power Office with Supplier Automation <
> http://www.businessesnetwork.com/automation/viewforum.php?f=93>
> > Specialtymarket.com <http://www.specialtymarket.com/>
> >
> > Systems Integrator-- Glad to Assist
> >
> > Chat  Y! messenger: bjfr33man
> > Linkedin
> > <
> http://www.linkedin.com/profile?viewProfile=&key=1237480&locale=en_US&trk=tab_pro
> >
> >
> >
> > BJ Freeman sent the following on 5/18/2010 4:33 AM:
> > > Just compiled latest rev successfully.
> > > strange it would stop on that file since map is used in the framework
> > > which compiled fine.
> > >
> > > how about memory on the machine?
> > > I have seen strange compile errors when the compiler runs out of
> memory.
> > >
> > >
> > > =========================
> > > BJ Freeman
> > > http://bjfreeman.elance.com
> > > Strategic Power Office with Supplier Automation <
> http://www.businessesnetwork.com/automation/viewforum.php?f=93>
> > > Specialtymarket.com <http://www.specialtymarket.com/>
> > >
> > > Systems Integrator-- Glad to Assist
> > >
> > > Chat  Y! messenger: bjfr33man
> > > Linkedin
> > > <
> http://www.linkedin.com/profile?viewProfile=&key=1237480&locale=en_US&trk=tab_pro
> >
> > >
> > >
> > > BJ Freeman sent the following on 5/18/2010 4:03 AM:
> > >> what the error says in that it can not find a certain class in the
> > >> classpath. my guess is the map method which would be in the JDK
> runtime.
> > >>
> > >> as far as debian Adam Health is the one that puts Debian specific
> items
> > >> in.  Not sure he reads the user mailing list. Might give him a shout
> on
> > >> the dev ML.
> > >>
> > >> I have not run 10;.04 on my centos which as Open JDK, but I doubt it
> is
> > >> the same distro as debian.
> > >> I am downloading through eclipse on to my dev machine it is slow.
> > >> so will let you know if it compiles, later this day.
> > >>
> > >>
> > >> =========================
> > >> BJ Freeman
> > >> http://bjfreeman.elance.com
> > >> Strategic Power Office with Supplier Automation <
> http://www.businessesnetwork.com/automation/viewforum.php?f=93>
> > >> Specialtymarket.com <http://www.specialtymarket.com/>
> > >>
> > >> Systems Integrator-- Glad to Assist
> > >>
> > >> Chat  Y! messenger: bjfr33man
> > >> Linkedin
> > >> <
> http://www.linkedin.com/profile?viewProfile=&key=1237480&locale=en_US&trk=tab_pro
> >
> > >>
> > >>
> > >> Matt Warnock sent the following on 5/17/2010 11:59 PM:
> > >>> Have tried it with and without "ant clean" before, usually running
> "ant
> > >>> run-install", but also various other "ant" and "./ant" targets. Not
> sure
> > >>> I understand the difference between ./ant and the system ant.
> > >>>
> > >>> Wish I understood the error messages better.
> > >>>
> > >>
> > >>
> > >
> > >
> > >
> >
>
>
Reply | Threaded
Open this post in threaded view
|

Re: compile error on trunk and 10.04, revision 945444

jonatan soto
I found a very silly workaround that momentarily solves the issue.

ProductSearchSession.java (line 1231):

String str1 = (String) searchResult.get("pfacProductFeatureId");
            String str2 = (String)
searchResult.get("pfcProductFeatureTypeId");
            String str3 = (String) searchResult.get("pfcDescription");
            String str4 = Long.toString((Long)
searchResult.get("featureCount"));
            Map map = UtilMisc.toMap("productFeatureId", str1,
"productFeatureTypeId", str2, "description", str3, "featureCount", str4);
            featureCountList.add(map);

I just extract the map field out of the *List*.add(...) method and it works.

After I did this modification I faced more compiling error classes like that
involves UtliMisc.toMap(...) method calls:
InvoiceServices.java
OagisInventoryServices.java
.... (wip)


So I think there's is a bug in the OpenJDK1.6 stable package for Debian
(even with Sun JDK as Matt noted before) when a (static?) generic method is
used as a parameter. This is just my guess...

Hope it helps.

On Thu, Jun 10, 2010 at 7:23 PM, Jonatan Soto <[hidden email]>wrote:

> Hi Matt,
>
> I am experiencing exactly the same issue. Have you found any solution?
>
> System: Debian Lenny stable
>
> Java version:
> java version "1.6.0_0"
> OpenJDK  Runtime Environment (build 1.6.0_0-b11)
> OpenJDK 64-Bit Server VM (build 1.6.0_0-b11, mixed mode)
>
> Ofbiz r952591
>
> ------
>
> I have also a working Ofbiz instance on my PC running a two months ago
> revision. The SO is Ubuntu Karmic and it's working fine.
>
> Regards,
>
>
>
>
>
> On Tue, May 18, 2010 at 6:03 PM, Matt Warnock <
> [hidden email]> wrote:
>
>> I am compiling from the command line, using openjdk, "java -version"
>> gives the following:
>> java version "1.6.0_0"
>> OpenJDK  Runtime Environment (build 1.6.0_0-b11)
>> OpenJDK 64-Bit Server VM (build 1.6.0_0-b11, mixed mode)
>>
>> --
>> Matt Warnock <[hidden email]>
>> RidgeCrest Herbals, Inc.
>>
>>
>> On Tue, 2010-05-18 at 04:47 -0700, BJ Freeman wrote:
>> > I just noticed in eclipse it gave me an error on that file about maps.
>> > that was because I had I assigned 1.4 to the project.
>> > when I changed the runtime 1.6_08 the errors went away.
>> > do a java -version to see what you are compiling with.
>> >
>> > =========================
>> > BJ Freeman
>> > http://bjfreeman.elance.com
>> > Strategic Power Office with Supplier Automation <
>> http://www.businessesnetwork.com/automation/viewforum.php?f=93>
>> > Specialtymarket.com <http://www.specialtymarket.com/>
>> >
>> > Systems Integrator-- Glad to Assist
>> >
>> > Chat  Y! messenger: bjfr33man
>> > Linkedin
>> > <
>> http://www.linkedin.com/profile?viewProfile=&key=1237480&locale=en_US&trk=tab_pro
>> >
>> >
>> >
>> > BJ Freeman sent the following on 5/18/2010 4:33 AM:
>> > > Just compiled latest rev successfully.
>> > > strange it would stop on that file since map is used in the framework
>> > > which compiled fine.
>> > >
>> > > how about memory on the machine?
>> > > I have seen strange compile errors when the compiler runs out of
>> memory.
>> > >
>> > >
>> > > =========================
>> > > BJ Freeman
>> > > http://bjfreeman.elance.com
>> > > Strategic Power Office with Supplier Automation <
>> http://www.businessesnetwork.com/automation/viewforum.php?f=93>
>> > > Specialtymarket.com <http://www.specialtymarket.com/>
>> > >
>> > > Systems Integrator-- Glad to Assist
>> > >
>> > > Chat  Y! messenger: bjfr33man
>> > > Linkedin
>> > > <
>> http://www.linkedin.com/profile?viewProfile=&key=1237480&locale=en_US&trk=tab_pro
>> >
>> > >
>> > >
>> > > BJ Freeman sent the following on 5/18/2010 4:03 AM:
>> > >> what the error says in that it can not find a certain class in the
>> > >> classpath. my guess is the map method which would be in the JDK
>> runtime.
>> > >>
>> > >> as far as debian Adam Health is the one that puts Debian specific
>> items
>> > >> in.  Not sure he reads the user mailing list. Might give him a shout
>> on
>> > >> the dev ML.
>> > >>
>> > >> I have not run 10;.04 on my centos which as Open JDK, but I doubt it
>> is
>> > >> the same distro as debian.
>> > >> I am downloading through eclipse on to my dev machine it is slow.
>> > >> so will let you know if it compiles, later this day.
>> > >>
>> > >>
>> > >> =========================
>> > >> BJ Freeman
>> > >> http://bjfreeman.elance.com
>> > >> Strategic Power Office with Supplier Automation <
>> http://www.businessesnetwork.com/automation/viewforum.php?f=93>
>> > >> Specialtymarket.com <http://www.specialtymarket.com/>
>> > >>
>> > >> Systems Integrator-- Glad to Assist
>> > >>
>> > >> Chat  Y! messenger: bjfr33man
>> > >> Linkedin
>> > >> <
>> http://www.linkedin.com/profile?viewProfile=&key=1237480&locale=en_US&trk=tab_pro
>> >
>> > >>
>> > >>
>> > >> Matt Warnock sent the following on 5/17/2010 11:59 PM:
>> > >>> Have tried it with and without "ant clean" before, usually running
>> "ant
>> > >>> run-install", but also various other "ant" and "./ant" targets. Not
>> sure
>> > >>> I understand the difference between ./ant and the system ant.
>> > >>>
>> > >>> Wish I understood the error messages better.
>> > >>>
>> > >>
>> > >>
>> > >
>> > >
>> > >
>> >
>>
>>
>
Reply | Threaded
Open this post in threaded view
|

Re: compile error on trunk and 10.04, revision 945444

BJ Freeman
yes so I just do
wget http://ci.apache.org/projects/ofbiz/snapshots/ofbiz-trunk-current.zip
since it is compiled

=========================
BJ Freeman
http://bjfreeman.elance.com
Strategic Power Office with Supplier Automation  <http://www.businessesnetwork.com/automation/viewforum.php?f=52>
Specialtymarket.com  <http://www.specialtymarket.com/>

Systems Integrator-- Glad to Assist

Chat  Y! messenger: bjfr33man
Linkedin
<http://www.linkedin.com/profile?viewProfile=&key=1237480&locale=en_US&trk=tab_pro>


Jonatan Soto sent the following on 6/10/2010 11:52 AM:

> I found a very silly workaround that momentarily solves the issue.
>
> ProductSearchSession.java (line 1231):
>
> String str1 = (String) searchResult.get("pfacProductFeatureId");
>              String str2 = (String)
> searchResult.get("pfcProductFeatureTypeId");
>              String str3 = (String) searchResult.get("pfcDescription");
>              String str4 = Long.toString((Long)
> searchResult.get("featureCount"));
>              Map map = UtilMisc.toMap("productFeatureId", str1,
> "productFeatureTypeId", str2, "description", str3, "featureCount", str4);
>              featureCountList.add(map);
>
> I just extract the map field out of the *List*.add(...) method and it works.
>
> After I did this modification I faced more compiling error classes like that
> involves UtliMisc.toMap(...) method calls:
> InvoiceServices.java
> OagisInventoryServices.java
> .... (wip)
>
>
> So I think there's is a bug in the OpenJDK1.6 stable package for Debian
> (even with Sun JDK as Matt noted before) when a (static?) generic method is
> used as a parameter. This is just my guess...
>
> Hope it helps.
>
> On Thu, Jun 10, 2010 at 7:23 PM, Jonatan Soto<[hidden email]>wrote:
>
>> Hi Matt,
>>
>> I am experiencing exactly the same issue. Have you found any solution?
>>
>> System: Debian Lenny stable
>>
>> Java version:
>> java version "1.6.0_0"
>> OpenJDK  Runtime Environment (build 1.6.0_0-b11)
>> OpenJDK 64-Bit Server VM (build 1.6.0_0-b11, mixed mode)
>>
>> Ofbiz r952591
>>
>> ------
>>
>> I have also a working Ofbiz instance on my PC running a two months ago
>> revision. The SO is Ubuntu Karmic and it's working fine.
>>
>> Regards,
>>
>>
>>
>>
>>
>> On Tue, May 18, 2010 at 6:03 PM, Matt Warnock<
>> [hidden email]>  wrote:
>>
>>> I am compiling from the command line, using openjdk, "java -version"
>>> gives the following:
>>> java version "1.6.0_0"
>>> OpenJDK  Runtime Environment (build 1.6.0_0-b11)
>>> OpenJDK 64-Bit Server VM (build 1.6.0_0-b11, mixed mode)
>>>
>>> --
>>> Matt Warnock<[hidden email]>
>>> RidgeCrest Herbals, Inc.
>>>
>>>
>>> On Tue, 2010-05-18 at 04:47 -0700, BJ Freeman wrote:
>>>> I just noticed in eclipse it gave me an error on that file about maps.
>>>> that was because I had I assigned 1.4 to the project.
>>>> when I changed the runtime 1.6_08 the errors went away.
>>>> do a java -version to see what you are compiling with.
>>>>
>>>> =========================
>>>> BJ Freeman
>>>> http://bjfreeman.elance.com
>>>> Strategic Power Office with Supplier Automation<
>>> http://www.businessesnetwork.com/automation/viewforum.php?f=93>
>>>> Specialtymarket.com<http://www.specialtymarket.com/>
>>>>
>>>> Systems Integrator-- Glad to Assist
>>>>
>>>> Chat  Y! messenger: bjfr33man
>>>> Linkedin
>>>> <
>>> http://www.linkedin.com/profile?viewProfile=&key=1237480&locale=en_US&trk=tab_pro
>>>>
>>>>
>>>>
>>>> BJ Freeman sent the following on 5/18/2010 4:33 AM:
>>>>> Just compiled latest rev successfully.
>>>>> strange it would stop on that file since map is used in the framework
>>>>> which compiled fine.
>>>>>
>>>>> how about memory on the machine?
>>>>> I have seen strange compile errors when the compiler runs out of
>>> memory.
>>>>>
>>>>>
>>>>> =========================
>>>>> BJ Freeman
>>>>> http://bjfreeman.elance.com
>>>>> Strategic Power Office with Supplier Automation<
>>> http://www.businessesnetwork.com/automation/viewforum.php?f=93>
>>>>> Specialtymarket.com<http://www.specialtymarket.com/>
>>>>>
>>>>> Systems Integrator-- Glad to Assist
>>>>>
>>>>> Chat  Y! messenger: bjfr33man
>>>>> Linkedin
>>>>> <
>>> http://www.linkedin.com/profile?viewProfile=&key=1237480&locale=en_US&trk=tab_pro
>>>>
>>>>>
>>>>>
>>>>> BJ Freeman sent the following on 5/18/2010 4:03 AM:
>>>>>> what the error says in that it can not find a certain class in the
>>>>>> classpath. my guess is the map method which would be in the JDK
>>> runtime.
>>>>>>
>>>>>> as far as debian Adam Health is the one that puts Debian specific
>>> items
>>>>>> in.  Not sure he reads the user mailing list. Might give him a shout
>>> on
>>>>>> the dev ML.
>>>>>>
>>>>>> I have not run 10;.04 on my centos which as Open JDK, but I doubt it
>>> is
>>>>>> the same distro as debian.
>>>>>> I am downloading through eclipse on to my dev machine it is slow.
>>>>>> so will let you know if it compiles, later this day.
>>>>>>
>>>>>>
>>>>>> =========================
>>>>>> BJ Freeman
>>>>>> http://bjfreeman.elance.com
>>>>>> Strategic Power Office with Supplier Automation<
>>> http://www.businessesnetwork.com/automation/viewforum.php?f=93>
>>>>>> Specialtymarket.com<http://www.specialtymarket.com/>
>>>>>>
>>>>>> Systems Integrator-- Glad to Assist
>>>>>>
>>>>>> Chat  Y! messenger: bjfr33man
>>>>>> Linkedin
>>>>>> <
>>> http://www.linkedin.com/profile?viewProfile=&key=1237480&locale=en_US&trk=tab_pro
>>>>
>>>>>>
>>>>>>
>>>>>> Matt Warnock sent the following on 5/17/2010 11:59 PM:
>>>>>>> Have tried it with and without "ant clean" before, usually running
>>> "ant
>>>>>>> run-install", but also various other "ant" and "./ant" targets. Not
>>> sure
>>>>>>> I understand the difference between ./ant and the system ant.
>>>>>>>
>>>>>>> Wish I understood the error messages better.
>>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>
>>>
>>>
>>
>

Reply | Threaded
Open this post in threaded view
|

Re: compile error on trunk and 10.04, revision 945444

jonatan soto
Very clever. Thanks BJ.

BTW, which platform is used to make the snapshots? i386?



On Thu, Jun 10, 2010 at 10:03 PM, BJ Freeman <[hidden email]> wrote:

> yes so I just do
> wget http://ci.apache.org/projects/ofbiz/snapshots/ofbiz-trunk-current.zip
> since it is compiled
>
>
> =========================
> BJ Freeman
> http://bjfreeman.elance.com
> Strategic Power Office with Supplier Automation  <
> http://www.businessesnetwork.com/automation/viewforum.php?f=52>
>
> Specialtymarket.com  <http://www.specialtymarket.com/>
>
> Systems Integrator-- Glad to Assist
>
> Chat  Y! messenger: bjfr33man
> Linkedin <
> http://www.linkedin.com/profile?viewProfile=&key=1237480&locale=en_US&trk=tab_pro
> >
>
>
> Jonatan Soto sent the following on 6/10/2010 11:52 AM:
>
>  I found a very silly workaround that momentarily solves the issue.
>>
>> ProductSearchSession.java (line 1231):
>>
>> String str1 = (String) searchResult.get("pfacProductFeatureId");
>>             String str2 = (String)
>> searchResult.get("pfcProductFeatureTypeId");
>>             String str3 = (String) searchResult.get("pfcDescription");
>>             String str4 = Long.toString((Long)
>> searchResult.get("featureCount"));
>>             Map map = UtilMisc.toMap("productFeatureId", str1,
>> "productFeatureTypeId", str2, "description", str3, "featureCount", str4);
>>             featureCountList.add(map);
>>
>> I just extract the map field out of the *List*.add(...) method and it
>> works.
>>
>> After I did this modification I faced more compiling error classes like
>> that
>> involves UtliMisc.toMap(...) method calls:
>> InvoiceServices.java
>> OagisInventoryServices.java
>> .... (wip)
>>
>>
>> So I think there's is a bug in the OpenJDK1.6 stable package for Debian
>> (even with Sun JDK as Matt noted before) when a (static?) generic method
>> is
>> used as a parameter. This is just my guess...
>>
>> Hope it helps.
>>
>> On Thu, Jun 10, 2010 at 7:23 PM, Jonatan Soto<[hidden email]
>> >wrote:
>>
>>  Hi Matt,
>>>
>>> I am experiencing exactly the same issue. Have you found any solution?
>>>
>>> System: Debian Lenny stable
>>>
>>> Java version:
>>> java version "1.6.0_0"
>>> OpenJDK  Runtime Environment (build 1.6.0_0-b11)
>>> OpenJDK 64-Bit Server VM (build 1.6.0_0-b11, mixed mode)
>>>
>>> Ofbiz r952591
>>>
>>> ------
>>>
>>> I have also a working Ofbiz instance on my PC running a two months ago
>>> revision. The SO is Ubuntu Karmic and it's working fine.
>>>
>>> Regards,
>>>
>>>
>>>
>>>
>>>
>>> On Tue, May 18, 2010 at 6:03 PM, Matt Warnock<
>>> [hidden email]>  wrote:
>>>
>>>  I am compiling from the command line, using openjdk, "java -version"
>>>> gives the following:
>>>> java version "1.6.0_0"
>>>> OpenJDK  Runtime Environment (build 1.6.0_0-b11)
>>>> OpenJDK 64-Bit Server VM (build 1.6.0_0-b11, mixed mode)
>>>>
>>>> --
>>>> Matt Warnock<[hidden email]>
>>>> RidgeCrest Herbals, Inc.
>>>>
>>>>
>>>> On Tue, 2010-05-18 at 04:47 -0700, BJ Freeman wrote:
>>>>
>>>>> I just noticed in eclipse it gave me an error on that file about maps.
>>>>> that was because I had I assigned 1.4 to the project.
>>>>> when I changed the runtime 1.6_08 the errors went away.
>>>>> do a java -version to see what you are compiling with.
>>>>>
>>>>> =========================
>>>>> BJ Freeman
>>>>> http://bjfreeman.elance.com
>>>>> Strategic Power Office with Supplier Automation<
>>>>>
>>>> http://www.businessesnetwork.com/automation/viewforum.php?f=93>
>>>>
>>>>> Specialtymarket.com<http://www.specialtymarket.com/>
>>>>>
>>>>> Systems Integrator-- Glad to Assist
>>>>>
>>>>> Chat  Y! messenger: bjfr33man
>>>>> Linkedin
>>>>> <
>>>>>
>>>>
>>>> http://www.linkedin.com/profile?viewProfile=&key=1237480&locale=en_US&trk=tab_pro
>>>>
>>>>>
>>>>>
>>>>>
>>>>> BJ Freeman sent the following on 5/18/2010 4:33 AM:
>>>>>
>>>>>> Just compiled latest rev successfully.
>>>>>> strange it would stop on that file since map is used in the framework
>>>>>> which compiled fine.
>>>>>>
>>>>>> how about memory on the machine?
>>>>>> I have seen strange compile errors when the compiler runs out of
>>>>>>
>>>>> memory.
>>>>
>>>>>
>>>>>>
>>>>>> =========================
>>>>>> BJ Freeman
>>>>>> http://bjfreeman.elance.com
>>>>>> Strategic Power Office with Supplier Automation<
>>>>>>
>>>>> http://www.businessesnetwork.com/automation/viewforum.php?f=93>
>>>>
>>>>> Specialtymarket.com<http://www.specialtymarket.com/>
>>>>>>
>>>>>> Systems Integrator-- Glad to Assist
>>>>>>
>>>>>> Chat  Y! messenger: bjfr33man
>>>>>> Linkedin
>>>>>> <
>>>>>>
>>>>>
>>>> http://www.linkedin.com/profile?viewProfile=&key=1237480&locale=en_US&trk=tab_pro
>>>>
>>>>>
>>>>>
>>>>>>
>>>>>> BJ Freeman sent the following on 5/18/2010 4:03 AM:
>>>>>>
>>>>>>> what the error says in that it can not find a certain class in the
>>>>>>> classpath. my guess is the map method which would be in the JDK
>>>>>>>
>>>>>> runtime.
>>>>
>>>>>
>>>>>>> as far as debian Adam Health is the one that puts Debian specific
>>>>>>>
>>>>>> items
>>>>
>>>>> in.  Not sure he reads the user mailing list. Might give him a shout
>>>>>>>
>>>>>> on
>>>>
>>>>> the dev ML.
>>>>>>>
>>>>>>> I have not run 10;.04 on my centos which as Open JDK, but I doubt it
>>>>>>>
>>>>>> is
>>>>
>>>>> the same distro as debian.
>>>>>>> I am downloading through eclipse on to my dev machine it is slow.
>>>>>>> so will let you know if it compiles, later this day.
>>>>>>>
>>>>>>>
>>>>>>> =========================
>>>>>>> BJ Freeman
>>>>>>> http://bjfreeman.elance.com
>>>>>>> Strategic Power Office with Supplier Automation<
>>>>>>>
>>>>>> http://www.businessesnetwork.com/automation/viewforum.php?f=93>
>>>>
>>>>> Specialtymarket.com<http://www.specialtymarket.com/>
>>>>>>>
>>>>>>> Systems Integrator-- Glad to Assist
>>>>>>>
>>>>>>> Chat  Y! messenger: bjfr33man
>>>>>>> Linkedin
>>>>>>> <
>>>>>>>
>>>>>>
>>>> http://www.linkedin.com/profile?viewProfile=&key=1237480&locale=en_US&trk=tab_pro
>>>>
>>>>>
>>>>>
>>>>>>>
>>>>>>> Matt Warnock sent the following on 5/17/2010 11:59 PM:
>>>>>>>
>>>>>>>> Have tried it with and without "ant clean" before, usually running
>>>>>>>>
>>>>>>> "ant
>>>>
>>>>> run-install", but also various other "ant" and "./ant" targets. Not
>>>>>>>>
>>>>>>> sure
>>>>
>>>>> I understand the difference between ./ant and the system ant.
>>>>>>>>
>>>>>>>> Wish I understood the error messages better.
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>
>>>>
>>>
>>
>
Reply | Threaded
Open this post in threaded view
|

Re: compile error on trunk and 10.04, revision 945444

BJ Freeman
remember java i byte code.
if it the interpreter you need to worry about 16 or 64 bit and cpu.
once compiled an application in java will run on any java interpreter.


http://ci.apache.org/waterfall?show=ofbiz-trunk

Jonatan Soto sent the following on 6/10/2010 3:54 PM:

> Very clever. Thanks BJ.
>
> BTW, which platform is used to make the snapshots? i386?
>
>
>
> On Thu, Jun 10, 2010 at 10:03 PM, BJ Freeman<[hidden email]>  wrote:
>
>> yes so I just do
>> wget http://ci.apache.org/projects/ofbiz/snapshots/ofbiz-trunk-current.zip
>> since it is compiled
>>
>>
>> =========================
>> BJ Freeman
>> http://bjfreeman.elance.com
>> Strategic Power Office with Supplier Automation<
>> http://www.businessesnetwork.com/automation/viewforum.php?f=52>
>>
>> Specialtymarket.com<http://www.specialtymarket.com/>
>>
>> Systems Integrator-- Glad to Assist
>>
>> Chat  Y! messenger: bjfr33man
>> Linkedin<
>> http://www.linkedin.com/profile?viewProfile=&key=1237480&locale=en_US&trk=tab_pro
>>>
>>
>>
>> Jonatan Soto sent the following on 6/10/2010 11:52 AM:
>>
>>   I found a very silly workaround that momentarily solves the issue.
>>>
>>> ProductSearchSession.java (line 1231):
>>>
>>> String str1 = (String) searchResult.get("pfacProductFeatureId");
>>>              String str2 = (String)
>>> searchResult.get("pfcProductFeatureTypeId");
>>>              String str3 = (String) searchResult.get("pfcDescription");
>>>              String str4 = Long.toString((Long)
>>> searchResult.get("featureCount"));
>>>              Map map = UtilMisc.toMap("productFeatureId", str1,
>>> "productFeatureTypeId", str2, "description", str3, "featureCount", str4);
>>>              featureCountList.add(map);
>>>
>>> I just extract the map field out of the *List*.add(...) method and it
>>> works.
>>>
>>> After I did this modification I faced more compiling error classes like
>>> that
>>> involves UtliMisc.toMap(...) method calls:
>>> InvoiceServices.java
>>> OagisInventoryServices.java
>>> .... (wip)
>>>
>>>
>>> So I think there's is a bug in the OpenJDK1.6 stable package for Debian
>>> (even with Sun JDK as Matt noted before) when a (static?) generic method
>>> is
>>> used as a parameter. This is just my guess...
>>>
>>> Hope it helps.
>>>
>>> On Thu, Jun 10, 2010 at 7:23 PM, Jonatan Soto<[hidden email]
>>>> wrote:
>>>
>>>   Hi Matt,
>>>>
>>>> I am experiencing exactly the same issue. Have you found any solution?
>>>>
>>>> System: Debian Lenny stable
>>>>
>>>> Java version:
>>>> java version "1.6.0_0"
>>>> OpenJDK  Runtime Environment (build 1.6.0_0-b11)
>>>> OpenJDK 64-Bit Server VM (build 1.6.0_0-b11, mixed mode)
>>>>
>>>> Ofbiz r952591
>>>>
>>>> ------
>>>>
>>>> I have also a working Ofbiz instance on my PC running a two months ago
>>>> revision. The SO is Ubuntu Karmic and it's working fine.
>>>>
>>>> Regards,
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> On Tue, May 18, 2010 at 6:03 PM, Matt Warnock<
>>>> [hidden email]>   wrote:
>>>>
>>>>   I am compiling from the command line, using openjdk, "java -version"
>>>>> gives the following:
>>>>> java version "1.6.0_0"
>>>>> OpenJDK  Runtime Environment (build 1.6.0_0-b11)
>>>>> OpenJDK 64-Bit Server VM (build 1.6.0_0-b11, mixed mode)
>>>>>
>>>>> --
>>>>> Matt Warnock<[hidden email]>
>>>>> RidgeCrest Herbals, Inc.
>>>>>
>>>>>
>>>>> On Tue, 2010-05-18 at 04:47 -0700, BJ Freeman wrote:
>>>>>
>>>>>> I just noticed in eclipse it gave me an error on that file about maps.
>>>>>> that was because I had I assigned 1.4 to the project.
>>>>>> when I changed the runtime 1.6_08 the errors went away.
>>>>>> do a java -version to see what you are compiling with.
>>>>>>
>>>>>> =========================
>>>>>> BJ Freeman
>>>>>> http://bjfreeman.elance.com
>>>>>> Strategic Power Office with Supplier Automation<
>>>>>>
>>>>> http://www.businessesnetwork.com/automation/viewforum.php?f=93>
>>>>>
>>>>>> Specialtymarket.com<http://www.specialtymarket.com/>
>>>>>>
>>>>>> Systems Integrator-- Glad to Assist
>>>>>>
>>>>>> Chat  Y! messenger: bjfr33man
>>>>>> Linkedin
>>>>>> <
>>>>>>
>>>>>
>>>>> http://www.linkedin.com/profile?viewProfile=&key=1237480&locale=en_US&trk=tab_pro
>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> BJ Freeman sent the following on 5/18/2010 4:33 AM:
>>>>>>
>>>>>>> Just compiled latest rev successfully.
>>>>>>> strange it would stop on that file since map is used in the framework
>>>>>>> which compiled fine.
>>>>>>>
>>>>>>> how about memory on the machine?
>>>>>>> I have seen strange compile errors when the compiler runs out of
>>>>>>>
>>>>>> memory.
>>>>>
>>>>>>
>>>>>>>
>>>>>>> =========================
>>>>>>> BJ Freeman
>>>>>>> http://bjfreeman.elance.com
>>>>>>> Strategic Power Office with Supplier Automation<
>>>>>>>
>>>>>> http://www.businessesnetwork.com/automation/viewforum.php?f=93>
>>>>>
>>>>>> Specialtymarket.com<http://www.specialtymarket.com/>
>>>>>>>
>>>>>>> Systems Integrator-- Glad to Assist
>>>>>>>
>>>>>>> Chat  Y! messenger: bjfr33man
>>>>>>> Linkedin
>>>>>>> <
>>>>>>>
>>>>>>
>>>>> http://www.linkedin.com/profile?viewProfile=&key=1237480&locale=en_US&trk=tab_pro
>>>>>
>>>>>>
>>>>>>
>>>>>>>
>>>>>>> BJ Freeman sent the following on 5/18/2010 4:03 AM:
>>>>>>>
>>>>>>>> what the error says in that it can not find a certain class in the
>>>>>>>> classpath. my guess is the map method which would be in the JDK
>>>>>>>>
>>>>>>> runtime.
>>>>>
>>>>>>
>>>>>>>> as far as debian Adam Health is the one that puts Debian specific
>>>>>>>>
>>>>>>> items
>>>>>
>>>>>> in.  Not sure he reads the user mailing list. Might give him a shout
>>>>>>>>
>>>>>>> on
>>>>>
>>>>>> the dev ML.
>>>>>>>>
>>>>>>>> I have not run 10;.04 on my centos which as Open JDK, but I doubt it
>>>>>>>>
>>>>>>> is
>>>>>
>>>>>> the same distro as debian.
>>>>>>>> I am downloading through eclipse on to my dev machine it is slow.
>>>>>>>> so will let you know if it compiles, later this day.
>>>>>>>>
>>>>>>>>
>>>>>>>> =========================
>>>>>>>> BJ Freeman
>>>>>>>> http://bjfreeman.elance.com
>>>>>>>> Strategic Power Office with Supplier Automation<
>>>>>>>>
>>>>>>> http://www.businessesnetwork.com/automation/viewforum.php?f=93>
>>>>>
>>>>>> Specialtymarket.com<http://www.specialtymarket.com/>
>>>>>>>>
>>>>>>>> Systems Integrator-- Glad to Assist
>>>>>>>>
>>>>>>>> Chat  Y! messenger: bjfr33man
>>>>>>>> Linkedin
>>>>>>>> <
>>>>>>>>
>>>>>>>
>>>>> http://www.linkedin.com/profile?viewProfile=&key=1237480&locale=en_US&trk=tab_pro
>>>>>
>>>>>>
>>>>>>
>>>>>>>>
>>>>>>>> Matt Warnock sent the following on 5/17/2010 11:59 PM:
>>>>>>>>
>>>>>>>>> Have tried it with and without "ant clean" before, usually running
>>>>>>>>>
>>>>>>>> "ant
>>>>>
>>>>>> run-install", but also various other "ant" and "./ant" targets. Not
>>>>>>>>>
>>>>>>>> sure
>>>>>
>>>>>> I understand the difference between ./ant and the system ant.
>>>>>>>>>
>>>>>>>>> Wish I understood the error messages better.
>>>>>>>>>
>>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>
>>>
>>
>
Reply | Threaded
Open this post in threaded view
|

Re: compile error on trunk and 10.04, revision 945444

jonatan soto
You are absolutely right. Forget my last question, it makes no sense :-)

On Fri, Jun 11, 2010 at 1:13 AM, BJ Freeman <[hidden email]> wrote:

> remember java i byte code.
> if it the interpreter you need to worry about 16 or 64 bit and cpu.
> once compiled an application in java will run on any java interpreter.
>
>
>
> http://ci.apache.org/waterfall?show=ofbiz-trunk
>
> Jonatan Soto sent the following on 6/10/2010 3:54 PM:
>
>  Very clever. Thanks BJ.
>>
>> BTW, which platform is used to make the snapshots? i386?
>>
>>
>>
>> On Thu, Jun 10, 2010 at 10:03 PM, BJ Freeman<[hidden email]>  wrote:
>>
>>  yes so I just do
>>> wget
>>> http://ci.apache.org/projects/ofbiz/snapshots/ofbiz-trunk-current.zip
>>> since it is compiled
>>>
>>>
>>> =========================
>>> BJ Freeman
>>> http://bjfreeman.elance.com
>>> Strategic Power Office with Supplier Automation<
>>> http://www.businessesnetwork.com/automation/viewforum.php?f=52>
>>>
>>> Specialtymarket.com<http://www.specialtymarket.com/>
>>>
>>> Systems Integrator-- Glad to Assist
>>>
>>> Chat  Y! messenger: bjfr33man
>>> Linkedin<
>>>
>>> http://www.linkedin.com/profile?viewProfile=&key=1237480&locale=en_US&trk=tab_pro
>>>
>>>>
>>>>
>>>
>>> Jonatan Soto sent the following on 6/10/2010 11:52 AM:
>>>
>>>  I found a very silly workaround that momentarily solves the issue.
>>>
>>>>
>>>> ProductSearchSession.java (line 1231):
>>>>
>>>> String str1 = (String) searchResult.get("pfacProductFeatureId");
>>>>             String str2 = (String)
>>>> searchResult.get("pfcProductFeatureTypeId");
>>>>             String str3 = (String) searchResult.get("pfcDescription");
>>>>             String str4 = Long.toString((Long)
>>>> searchResult.get("featureCount"));
>>>>             Map map = UtilMisc.toMap("productFeatureId", str1,
>>>> "productFeatureTypeId", str2, "description", str3, "featureCount",
>>>> str4);
>>>>             featureCountList.add(map);
>>>>
>>>> I just extract the map field out of the *List*.add(...) method and it
>>>> works.
>>>>
>>>> After I did this modification I faced more compiling error classes like
>>>> that
>>>> involves UtliMisc.toMap(...) method calls:
>>>> InvoiceServices.java
>>>> OagisInventoryServices.java
>>>> .... (wip)
>>>>
>>>>
>>>> So I think there's is a bug in the OpenJDK1.6 stable package for Debian
>>>> (even with Sun JDK as Matt noted before) when a (static?) generic method
>>>> is
>>>> used as a parameter. This is just my guess...
>>>>
>>>> Hope it helps.
>>>>
>>>> On Thu, Jun 10, 2010 at 7:23 PM, Jonatan Soto<[hidden email]
>>>>
>>>>> wrote:
>>>>>
>>>>
>>>>  Hi Matt,
>>>>
>>>>>
>>>>> I am experiencing exactly the same issue. Have you found any solution?
>>>>>
>>>>> System: Debian Lenny stable
>>>>>
>>>>> Java version:
>>>>> java version "1.6.0_0"
>>>>> OpenJDK  Runtime Environment (build 1.6.0_0-b11)
>>>>> OpenJDK 64-Bit Server VM (build 1.6.0_0-b11, mixed mode)
>>>>>
>>>>> Ofbiz r952591
>>>>>
>>>>> ------
>>>>>
>>>>> I have also a working Ofbiz instance on my PC running a two months ago
>>>>> revision. The SO is Ubuntu Karmic and it's working fine.
>>>>>
>>>>> Regards,
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> On Tue, May 18, 2010 at 6:03 PM, Matt Warnock<
>>>>> [hidden email]>   wrote:
>>>>>
>>>>>  I am compiling from the command line, using openjdk, "java -version"
>>>>>
>>>>>> gives the following:
>>>>>> java version "1.6.0_0"
>>>>>> OpenJDK  Runtime Environment (build 1.6.0_0-b11)
>>>>>> OpenJDK 64-Bit Server VM (build 1.6.0_0-b11, mixed mode)
>>>>>>
>>>>>> --
>>>>>> Matt Warnock<[hidden email]>
>>>>>> RidgeCrest Herbals, Inc.
>>>>>>
>>>>>>
>>>>>> On Tue, 2010-05-18 at 04:47 -0700, BJ Freeman wrote:
>>>>>>
>>>>>>  I just noticed in eclipse it gave me an error on that file about
>>>>>>> maps.
>>>>>>> that was because I had I assigned 1.4 to the project.
>>>>>>> when I changed the runtime 1.6_08 the errors went away.
>>>>>>> do a java -version to see what you are compiling with.
>>>>>>>
>>>>>>> =========================
>>>>>>> BJ Freeman
>>>>>>> http://bjfreeman.elance.com
>>>>>>> Strategic Power Office with Supplier Automation<
>>>>>>>
>>>>>>>  http://www.businessesnetwork.com/automation/viewforum.php?f=93>
>>>>>>
>>>>>>  Specialtymarket.com<http://www.specialtymarket.com/>
>>>>>>>
>>>>>>> Systems Integrator-- Glad to Assist
>>>>>>>
>>>>>>> Chat  Y! messenger: bjfr33man
>>>>>>> Linkedin
>>>>>>> <
>>>>>>>
>>>>>>>
>>>>>>
>>>>>> http://www.linkedin.com/profile?viewProfile=&key=1237480&locale=en_US&trk=tab_pro
>>>>>>
>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> BJ Freeman sent the following on 5/18/2010 4:33 AM:
>>>>>>>
>>>>>>>  Just compiled latest rev successfully.
>>>>>>>> strange it would stop on that file since map is used in the
>>>>>>>> framework
>>>>>>>> which compiled fine.
>>>>>>>>
>>>>>>>> how about memory on the machine?
>>>>>>>> I have seen strange compile errors when the compiler runs out of
>>>>>>>>
>>>>>>>>  memory.
>>>>>>>
>>>>>>
>>>>>>
>>>>>>>
>>>>>>>> =========================
>>>>>>>> BJ Freeman
>>>>>>>> http://bjfreeman.elance.com
>>>>>>>> Strategic Power Office with Supplier Automation<
>>>>>>>>
>>>>>>>>  http://www.businessesnetwork.com/automation/viewforum.php?f=93>
>>>>>>>
>>>>>>
>>>>>>  Specialtymarket.com<http://www.specialtymarket.com/>
>>>>>>>
>>>>>>>>
>>>>>>>> Systems Integrator-- Glad to Assist
>>>>>>>>
>>>>>>>> Chat  Y! messenger: bjfr33man
>>>>>>>> Linkedin
>>>>>>>> <
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>> http://www.linkedin.com/profile?viewProfile=&key=1237480&locale=en_US&trk=tab_pro
>>>>>>
>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>> BJ Freeman sent the following on 5/18/2010 4:03 AM:
>>>>>>>>
>>>>>>>>  what the error says in that it can not find a certain class in the
>>>>>>>>> classpath. my guess is the map method which would be in the JDK
>>>>>>>>>
>>>>>>>>>  runtime.
>>>>>>>>
>>>>>>>
>>>>>>
>>>>>>>  as far as debian Adam Health is the one that puts Debian specific
>>>>>>>>>
>>>>>>>>>  items
>>>>>>>>
>>>>>>>
>>>>>>  in.  Not sure he reads the user mailing list. Might give him a shout
>>>>>>>
>>>>>>>>
>>>>>>>>>  on
>>>>>>>>
>>>>>>>
>>>>>>  the dev ML.
>>>>>>>
>>>>>>>>
>>>>>>>>> I have not run 10;.04 on my centos which as Open JDK, but I doubt
>>>>>>>>> it
>>>>>>>>>
>>>>>>>>>  is
>>>>>>>>
>>>>>>>
>>>>>>  the same distro as debian.
>>>>>>>
>>>>>>>> I am downloading through eclipse on to my dev machine it is slow.
>>>>>>>>> so will let you know if it compiles, later this day.
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> =========================
>>>>>>>>> BJ Freeman
>>>>>>>>> http://bjfreeman.elance.com
>>>>>>>>> Strategic Power Office with Supplier Automation<
>>>>>>>>>
>>>>>>>>>  http://www.businessesnetwork.com/automation/viewforum.php?f=93>
>>>>>>>>
>>>>>>>
>>>>>>  Specialtymarket.com<http://www.specialtymarket.com/>
>>>>>>>
>>>>>>>>
>>>>>>>>> Systems Integrator-- Glad to Assist
>>>>>>>>>
>>>>>>>>> Chat  Y! messenger: bjfr33man
>>>>>>>>> Linkedin
>>>>>>>>> <
>>>>>>>>>
>>>>>>>>>
>>>>>>>>
>>>>>> http://www.linkedin.com/profile?viewProfile=&key=1237480&locale=en_US&trk=tab_pro
>>>>>>
>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>>> Matt Warnock sent the following on 5/17/2010 11:59 PM:
>>>>>>>>>
>>>>>>>>>  Have tried it with and without "ant clean" before, usually running
>>>>>>>>>>
>>>>>>>>>>  "ant
>>>>>>>>>
>>>>>>>>
>>>>>>  run-install", but also various other "ant" and "./ant" targets. Not
>>>>>>>
>>>>>>>>
>>>>>>>>>>  sure
>>>>>>>>>
>>>>>>>>
>>>>>>  I understand the difference between ./ant and the system ant.
>>>>>>>
>>>>>>>>
>>>>>>>>>> Wish I understood the error messages better.
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>
>>>
>>
Reply | Threaded
Open this post in threaded view
|

Re: compile error on trunk and 10.04, revision 945444

BJ Freeman

no problem many times I ask questions that I later wish I could retract.

=========================
BJ Freeman
http://bjfreeman.elance.com
Strategic Power Office with Supplier Automation  <http://www.businessesnetwork.com/automation/viewforum.php?f=52>
Specialtymarket.com  <http://www.specialtymarket.com/>

Systems Integrator-- Glad to Assist

Chat  Y! messenger: bjfr33man
Linkedin
<http://www.linkedin.com/profile?viewProfile=&key=1237480&locale=en_US&trk=tab_pro>


Jonatan Soto sent the following on 6/10/2010 4:44 PM:

> You are absolutely right. Forget my last question, it makes no sense :-)
>
> On Fri, Jun 11, 2010 at 1:13 AM, BJ Freeman<[hidden email]>  wrote:
>
>> remember java i byte code.
>> if it the interpreter you need to worry about 16 or 64 bit and cpu.
>> once compiled an application in java will run on any java interpreter.
>>
>>
>>
>> http://ci.apache.org/waterfall?show=ofbiz-trunk
>>
>> Jonatan Soto sent the following on 6/10/2010 3:54 PM:
>>
>>   Very clever. Thanks BJ.
>>>
>>> BTW, which platform is used to make the snapshots? i386?
>>>
>>>
>>>
>>> On Thu, Jun 10, 2010 at 10:03 PM, BJ Freeman<[hidden email]>   wrote:
>>>
>>>   yes so I just do
>>>> wget
>>>> http://ci.apache.org/projects/ofbiz/snapshots/ofbiz-trunk-current.zip
>>>> since it is compiled
>>>>
>>>>
>>>> =========================
>>>> BJ Freeman
>>>> http://bjfreeman.elance.com
>>>> Strategic Power Office with Supplier Automation<
>>>> http://www.businessesnetwork.com/automation/viewforum.php?f=52>
>>>>
>>>> Specialtymarket.com<http://www.specialtymarket.com/>
>>>>
>>>> Systems Integrator-- Glad to Assist
>>>>
>>>> Chat  Y! messenger: bjfr33man
>>>> Linkedin<
>>>>
>>>> http://www.linkedin.com/profile?viewProfile=&key=1237480&locale=en_US&trk=tab_pro
>>>>
>>>>>
>>>>>
>>>>
>>>> Jonatan Soto sent the following on 6/10/2010 11:52 AM:
>>>>
>>>>   I found a very silly workaround that momentarily solves the issue.
>>>>
>>>>>
>>>>> ProductSearchSession.java (line 1231):
>>>>>
>>>>> String str1 = (String) searchResult.get("pfacProductFeatureId");
>>>>>              String str2 = (String)
>>>>> searchResult.get("pfcProductFeatureTypeId");
>>>>>              String str3 = (String) searchResult.get("pfcDescription");
>>>>>              String str4 = Long.toString((Long)
>>>>> searchResult.get("featureCount"));
>>>>>              Map map = UtilMisc.toMap("productFeatureId", str1,
>>>>> "productFeatureTypeId", str2, "description", str3, "featureCount",
>>>>> str4);
>>>>>              featureCountList.add(map);
>>>>>
>>>>> I just extract the map field out of the *List*.add(...) method and it
>>>>> works.
>>>>>
>>>>> After I did this modification I faced more compiling error classes like
>>>>> that
>>>>> involves UtliMisc.toMap(...) method calls:
>>>>> InvoiceServices.java
>>>>> OagisInventoryServices.java
>>>>> .... (wip)
>>>>>
>>>>>
>>>>> So I think there's is a bug in the OpenJDK1.6 stable package for Debian
>>>>> (even with Sun JDK as Matt noted before) when a (static?) generic method
>>>>> is
>>>>> used as a parameter. This is just my guess...
>>>>>
>>>>> Hope it helps.
>>>>>
>>>>> On Thu, Jun 10, 2010 at 7:23 PM, Jonatan Soto<[hidden email]
>>>>>
>>>>>> wrote:
>>>>>>
>>>>>
>>>>>   Hi Matt,
>>>>>
>>>>>>
>>>>>> I am experiencing exactly the same issue. Have you found any solution?
>>>>>>
>>>>>> System: Debian Lenny stable
>>>>>>
>>>>>> Java version:
>>>>>> java version "1.6.0_0"
>>>>>> OpenJDK  Runtime Environment (build 1.6.0_0-b11)
>>>>>> OpenJDK 64-Bit Server VM (build 1.6.0_0-b11, mixed mode)
>>>>>>
>>>>>> Ofbiz r952591
>>>>>>
>>>>>> ------
>>>>>>
>>>>>> I have also a working Ofbiz instance on my PC running a two months ago
>>>>>> revision. The SO is Ubuntu Karmic and it's working fine.
>>>>>>
>>>>>> Regards,
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> On Tue, May 18, 2010 at 6:03 PM, Matt Warnock<
>>>>>> [hidden email]>    wrote:
>>>>>>
>>>>>>   I am compiling from the command line, using openjdk, "java -version"
>>>>>>
>>>>>>> gives the following:
>>>>>>> java version "1.6.0_0"
>>>>>>> OpenJDK  Runtime Environment (build 1.6.0_0-b11)
>>>>>>> OpenJDK 64-Bit Server VM (build 1.6.0_0-b11, mixed mode)
>>>>>>>
>>>>>>> --
>>>>>>> Matt Warnock<[hidden email]>
>>>>>>> RidgeCrest Herbals, Inc.
>>>>>>>
>>>>>>>
>>>>>>> On Tue, 2010-05-18 at 04:47 -0700, BJ Freeman wrote:
>>>>>>>
>>>>>>>   I just noticed in eclipse it gave me an error on that file about
>>>>>>>> maps.
>>>>>>>> that was because I had I assigned 1.4 to the project.
>>>>>>>> when I changed the runtime 1.6_08 the errors went away.
>>>>>>>> do a java -version to see what you are compiling with.
>>>>>>>>
>>>>>>>> =========================
>>>>>>>> BJ Freeman
>>>>>>>> http://bjfreeman.elance.com
>>>>>>>> Strategic Power Office with Supplier Automation<
>>>>>>>>
>>>>>>>>   http://www.businessesnetwork.com/automation/viewforum.php?f=93>
>>>>>>>
>>>>>>>   Specialtymarket.com<http://www.specialtymarket.com/>
>>>>>>>>
>>>>>>>> Systems Integrator-- Glad to Assist
>>>>>>>>
>>>>>>>> Chat  Y! messenger: bjfr33man
>>>>>>>> Linkedin
>>>>>>>> <
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>> http://www.linkedin.com/profile?viewProfile=&key=1237480&locale=en_US&trk=tab_pro
>>>>>>>
>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> BJ Freeman sent the following on 5/18/2010 4:33 AM:
>>>>>>>>
>>>>>>>>   Just compiled latest rev successfully.
>>>>>>>>> strange it would stop on that file since map is used in the
>>>>>>>>> framework
>>>>>>>>> which compiled fine.
>>>>>>>>>
>>>>>>>>> how about memory on the machine?
>>>>>>>>> I have seen strange compile errors when the compiler runs out of
>>>>>>>>>
>>>>>>>>>   memory.
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>>
>>>>>>>>> =========================
>>>>>>>>> BJ Freeman
>>>>>>>>> http://bjfreeman.elance.com
>>>>>>>>> Strategic Power Office with Supplier Automation<
>>>>>>>>>
>>>>>>>>>   http://www.businessesnetwork.com/automation/viewforum.php?f=93>
>>>>>>>>
>>>>>>>
>>>>>>>   Specialtymarket.com<http://www.specialtymarket.com/>
>>>>>>>>
>>>>>>>>>
>>>>>>>>> Systems Integrator-- Glad to Assist
>>>>>>>>>
>>>>>>>>> Chat  Y! messenger: bjfr33man
>>>>>>>>> Linkedin
>>>>>>>>> <
>>>>>>>>>
>>>>>>>>>
>>>>>>>>
>>>>>>> http://www.linkedin.com/profile?viewProfile=&key=1237480&locale=en_US&trk=tab_pro
>>>>>>>
>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>> BJ Freeman sent the following on 5/18/2010 4:03 AM:
>>>>>>>>>
>>>>>>>>>   what the error says in that it can not find a certain class in the
>>>>>>>>>> classpath. my guess is the map method which would be in the JDK
>>>>>>>>>>
>>>>>>>>>>   runtime.
>>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>>>   as far as debian Adam Health is the one that puts Debian specific
>>>>>>>>>>
>>>>>>>>>>   items
>>>>>>>>>
>>>>>>>>
>>>>>>>   in.  Not sure he reads the user mailing list. Might give him a shout
>>>>>>>>
>>>>>>>>>
>>>>>>>>>>   on
>>>>>>>>>
>>>>>>>>
>>>>>>>   the dev ML.
>>>>>>>>
>>>>>>>>>
>>>>>>>>>> I have not run 10;.04 on my centos which as Open JDK, but I doubt
>>>>>>>>>> it
>>>>>>>>>>
>>>>>>>>>>   is
>>>>>>>>>
>>>>>>>>
>>>>>>>   the same distro as debian.
>>>>>>>>
>>>>>>>>> I am downloading through eclipse on to my dev machine it is slow.
>>>>>>>>>> so will let you know if it compiles, later this day.
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> =========================
>>>>>>>>>> BJ Freeman
>>>>>>>>>> http://bjfreeman.elance.com
>>>>>>>>>> Strategic Power Office with Supplier Automation<
>>>>>>>>>>
>>>>>>>>>>   http://www.businessesnetwork.com/automation/viewforum.php?f=93>
>>>>>>>>>
>>>>>>>>
>>>>>>>   Specialtymarket.com<http://www.specialtymarket.com/>
>>>>>>>>
>>>>>>>>>
>>>>>>>>>> Systems Integrator-- Glad to Assist
>>>>>>>>>>
>>>>>>>>>> Chat  Y! messenger: bjfr33man
>>>>>>>>>> Linkedin
>>>>>>>>>> <
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>
>>>>>>> http://www.linkedin.com/profile?viewProfile=&key=1237480&locale=en_US&trk=tab_pro
>>>>>>>
>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>>> Matt Warnock sent the following on 5/17/2010 11:59 PM:
>>>>>>>>>>
>>>>>>>>>>   Have tried it with and without "ant clean" before, usually running
>>>>>>>>>>>
>>>>>>>>>>>   "ant
>>>>>>>>>>
>>>>>>>>>
>>>>>>>   run-install", but also various other "ant" and "./ant" targets. Not
>>>>>>>>
>>>>>>>>>
>>>>>>>>>>>   sure
>>>>>>>>>>
>>>>>>>>>
>>>>>>>   I understand the difference between ./ant and the system ant.
>>>>>>>>
>>>>>>>>>
>>>>>>>>>>> Wish I understood the error messages better.
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>
>>>>>
>>>>
>>>
>

123