compile error in trunk

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

compile error in trunk

jonatan soto
Hi,

I'm getting a compile error on org.ofbiz.entity.sql.SQLUtil. It seems to be
missing the import of Parser and ParserException class.
When I try to organize imports from eclipse I see a lot of options, but I
can't see anything related to SQL. Perhaps a library missing too?
Should I report it on Jira?

The steps I've done:

- Update the last version of trunk
- run ant-install
- Execute ofbiz

Just in case I am using a wrong svn ofbiz trunk url, this is what I'm using:
http://svn.apache.org/repos/asf/ofbiz/trunk

Thanks.

--
Jonatan Soto Aguilera
C/ Comte Borrell, 328 3º4ª
08029 Barcelona
Telf: +34935350010
Móvil: +34669908135
www.japanflavour.com
Reply | Threaded
Open this post in threaded view
|

Re: compile error in trunk

Adrian Crum-2
Try ant clean, then ant run-install.

-Adrian

--- On Sun, 11/15/09, jonatan soto <[hidden email]> wrote:

> From: jonatan soto <[hidden email]>
> Subject: compile error in trunk
> To: [hidden email]
> Date: Sunday, November 15, 2009, 10:03 AM
> Hi,
>
> I'm getting a compile error on
> org.ofbiz.entity.sql.SQLUtil. It seems to be
> missing the import of Parser and ParserException class.
> When I try to organize imports from eclipse I see a lot of
> options, but I
> can't see anything related to SQL. Perhaps a library
> missing too?
> Should I report it on Jira?
>
> The steps I've done:
>
> - Update the last version of trunk
> - run ant-install
> - Execute ofbiz
>
> Just in case I am using a wrong svn ofbiz trunk url, this
> is what I'm using:
> http://svn.apache.org/repos/asf/ofbiz/trunk
>
> Thanks.
>
> --
> Jonatan Soto Aguilera
> C/ Comte Borrell, 328 3º4ª
> 08029 Barcelona
> Telf: +34935350010
> Móvil: +34669908135
> www.japanflavour.com
>



Reply | Threaded
Open this post in threaded view
|

Re: compile error in trunk

jonatan soto
Hi Adrian,

The problem persists.

I found Parser.java and ParserException.java in
/ofbiz-trunk/framework/entity/build/gen-src/javacc/org/ofbiz/entity/sql/.
It's problably a source path entry missing? Are those classes automatically
generated?

Thanks a lot.

On Sun, Nov 15, 2009 at 7:16 PM, Adrian Crum <[hidden email]> wrote:

> Try ant clean, then ant run-install.
>
> -Adrian
>
> --- On Sun, 11/15/09, jonatan soto <[hidden email]> wrote:
>
> > From: jonatan soto <[hidden email]>
> > Subject: compile error in trunk
> > To: [hidden email]
> > Date: Sunday, November 15, 2009, 10:03 AM
> > Hi,
> >
> > I'm getting a compile error on
> > org.ofbiz.entity.sql.SQLUtil. It seems to be
> > missing the import of Parser and ParserException class.
> > When I try to organize imports from eclipse I see a lot of
> > options, but I
> > can't see anything related to SQL. Perhaps a library
> > missing too?
> > Should I report it on Jira?
> >
> > The steps I've done:
> >
> > - Update the last version of trunk
> > - run ant-install
> > - Execute ofbiz
> >
> > Just in case I am using a wrong svn ofbiz trunk url, this
> > is what I'm using:
> > http://svn.apache.org/repos/asf/ofbiz/trunk
> >
> > Thanks.
> >
> > --
> > Jonatan Soto Aguilera
> > C/ Comte Borrell, 328 3º4ª
> > 08029 Barcelona
> > Telf: +34935350010
> > Móvil: +34669908135
> > www.japanflavour.com
> >
>
>
>
>


--
Jonatan Soto Aguilera
C/ Comte Borrell, 328 3º4ª
08029 Barcelona
Telf: +34935350010
Móvil: +34669908135
www.japanflavour.com
Reply | Threaded
Open this post in threaded view
|

Re: compile error in trunk

Jacques Le Roux
Administrator
No problems here with r836395

Jacques

From: "jonatan soto" <[hidden email]>
Hi Adrian,

The problem persists.

I found Parser.java and ParserException.java in
/ofbiz-trunk/framework/entity/build/gen-src/javacc/org/ofbiz/entity/sql/.
It's problably a source path entry missing? Are those classes automatically
generated?

Thanks a lot.

On Sun, Nov 15, 2009 at 7:16 PM, Adrian Crum <[hidden email]> wrote:

> Try ant clean, then ant run-install.
>
> -Adrian
>
> --- On Sun, 11/15/09, jonatan soto <[hidden email]> wrote:
>
> > From: jonatan soto <[hidden email]>
> > Subject: compile error in trunk
> > To: [hidden email]
> > Date: Sunday, November 15, 2009, 10:03 AM
> > Hi,
> >
> > I'm getting a compile error on
> > org.ofbiz.entity.sql.SQLUtil. It seems to be
> > missing the import of Parser and ParserException class.
> > When I try to organize imports from eclipse I see a lot of
> > options, but I
> > can't see anything related to SQL. Perhaps a library
> > missing too?
> > Should I report it on Jira?
> >
> > The steps I've done:
> >
> > - Update the last version of trunk
> > - run ant-install
> > - Execute ofbiz
> >
> > Just in case I am using a wrong svn ofbiz trunk url, this
> > is what I'm using:
> > http://svn.apache.org/repos/asf/ofbiz/trunk
> >
> > Thanks.
> >
> > --
> > Jonatan Soto Aguilera
> > C/ Comte Borrell, 328 3º4ª
> > 08029 Barcelona
> > Telf: +34935350010
> > Móvil: +34669908135
> > www.japanflavour.com
> >
>
>
>
>


--
Jonatan Soto Aguilera
C/ Comte Borrell, 328 3º4ª
08029 Barcelona
Telf: +34935350010
Móvil: +34669908135
www.japanflavour.com


Reply | Threaded
Open this post in threaded view
|

Re: compile error in trunk

jonatan soto
Well that should be the problem, I'm using r836246. I don't understand I
updated ofbiz four times from svn and when I synch with repository there's
no new version. Am I using the right trunk url?

I forgot to say this is only an eclipse (ganymede) compilation error with
jdk 1.5. When I execute run-install and then start ofbiz, works fine.


On Sun, Nov 15, 2009 at 8:24 PM, Jacques Le Roux <
[hidden email]> wrote:

> No problems here with r836395
>
> Jacques
>
>
> From: "jonatan soto" <[hidden email]>
> Hi Adrian,
>
> The problem persists.
>
> I found Parser.java and ParserException.java in
> /ofbiz-trunk/framework/entity/build/gen-src/javacc/org/ofbiz/entity/sql/.
> It's problably a source path entry missing? Are those classes automatically
> generated?
>
> Thanks a lot.
>
> On Sun, Nov 15, 2009 at 7:16 PM, Adrian Crum <[hidden email]>
> wrote:
>
>  Try ant clean, then ant run-install.
>>
>> -Adrian
>>
>> --- On Sun, 11/15/09, jonatan soto <[hidden email]> wrote:
>>
>> > From: jonatan soto <[hidden email]>
>> > Subject: compile error in trunk
>> > To: [hidden email]
>> > Date: Sunday, November 15, 2009, 10:03 AM
>> > Hi,
>> >
>> > I'm getting a compile error on
>> > org.ofbiz.entity.sql.SQLUtil. It seems to be
>> > missing the import of Parser and ParserException class.
>> > When I try to organize imports from eclipse I see a lot of
>> > options, but I
>> > can't see anything related to SQL. Perhaps a library
>> > missing too?
>> > Should I report it on Jira?
>> >
>> > The steps I've done:
>> >
>> > - Update the last version of trunk
>> > - run ant-install
>> > - Execute ofbiz
>> >
>> > Just in case I am using a wrong svn ofbiz trunk url, this
>> > is what I'm using:
>> > http://svn.apache.org/repos/asf/ofbiz/trunk
>> >
>> > Thanks.
>> >
>> > --
>> > Jonatan Soto Aguilera
>> > C/ Comte Borrell, 328 3º4ª
>> > 08029 Barcelona
>> > Telf: +34935350010
>> > Móvil: +34669908135
>> > www.japanflavour.com
>> >
>>
>>
>>
>>
>>
>
> --
> Jonatan Soto Aguilera
> C/ Comte Borrell, 328 3º4ª
> 08029 Barcelona
> Telf: +34935350010
> Móvil: +34669908135
> www.japanflavour.com
>
>
>


--
Jonatan Soto Aguilera
C/ Comte Borrell, 328 3º4ª
08029 Barcelona
Telf: +34935350010
Móvil: +34669908135
www.japanflavour.com
Reply | Threaded
Open this post in threaded view
|

Re: compile error in trunk

jonatan soto
Wow, succesfully updated to r836376 forcing an update of the whole project
(eclipse team synch doesn't show any change). But it doesn't match your
version Jacques... May be a problem with subclipse?

Here is a screenshot:
http://img17.imageshack.us/img17/2316/ofbizcompilationerror.jpg

Thanks.

On Sun, Nov 15, 2009 at 8:43 PM, jonatan soto <[hidden email]>wrote:

>
> Well that should be the problem, I'm using r836246. I don't understand I
> updated ofbiz four times from svn and when I synch with repository there's
> no new version. Am I using the right trunk url?
>
> I forgot to say this is only an eclipse (ganymede) compilation error with
> jdk 1.5. When I execute run-install and then start ofbiz, works fine.
>
>
>
> On Sun, Nov 15, 2009 at 8:24 PM, Jacques Le Roux <
> [hidden email]> wrote:
>
>> No problems here with r836395
>>
>> Jacques
>>
>>
>> From: "jonatan soto" <[hidden email]>
>> Hi Adrian,
>>
>> The problem persists.
>>
>> I found Parser.java and ParserException.java in
>> /ofbiz-trunk/framework/entity/build/gen-src/javacc/org/ofbiz/entity/sql/.
>> It's problably a source path entry missing? Are those classes
>> automatically
>> generated?
>>
>> Thanks a lot.
>>
>> On Sun, Nov 15, 2009 at 7:16 PM, Adrian Crum <[hidden email]>
>> wrote:
>>
>>  Try ant clean, then ant run-install.
>>>
>>> -Adrian
>>>
>>> --- On Sun, 11/15/09, jonatan soto <[hidden email]> wrote:
>>>
>>> > From: jonatan soto <[hidden email]>
>>> > Subject: compile error in trunk
>>> > To: [hidden email]
>>> > Date: Sunday, November 15, 2009, 10:03 AM
>>> > Hi,
>>> >
>>> > I'm getting a compile error on
>>> > org.ofbiz.entity.sql.SQLUtil. It seems to be
>>> > missing the import of Parser and ParserException class.
>>> > When I try to organize imports from eclipse I see a lot of
>>> > options, but I
>>> > can't see anything related to SQL. Perhaps a library
>>> > missing too?
>>> > Should I report it on Jira?
>>> >
>>> > The steps I've done:
>>> >
>>> > - Update the last version of trunk
>>> > - run ant-install
>>> > - Execute ofbiz
>>> >
>>> > Just in case I am using a wrong svn ofbiz trunk url, this
>>> > is what I'm using:
>>> > http://svn.apache.org/repos/asf/ofbiz/trunk
>>> >
>>> > Thanks.
>>> >
>>> > --
>>> > Jonatan Soto Aguilera
>>> > C/ Comte Borrell, 328 3º4ª
>>> > 08029 Barcelona
>>> > Telf: +34935350010
>>> > Móvil: +34669908135
>>> > www.japanflavour.com
>>> >
>>>
>>>
>>>
>>>
>>>
>>
>> --
>> Jonatan Soto Aguilera
>> C/ Comte Borrell, 328 3º4ª
>> 08029 Barcelona
>> Telf: +34935350010
>> Móvil: +34669908135
>> www.japanflavour.com
>>
>>
>>
>
>
> --
> Jonatan Soto Aguilera
> C/ Comte Borrell, 328 3º4ª
> 08029 Barcelona
> Telf: +34935350010
> Móvil: +34669908135
> www.japanflavour.com
>



--
Jonatan Soto Aguilera
C/ Comte Borrell, 328 3º4ª
08029 Barcelona
Telf: +34935350010
Móvil: +34669908135
www.japanflavour.com
Reply | Threaded
Open this post in threaded view
|

Re: compile error in trunk

jonatan soto
sorry, current rev is 836400. I was looking on 'Last changed revision'...

On Sun, Nov 15, 2009 at 9:05 PM, jonatan soto <[hidden email]>wrote:

> Wow, succesfully updated to r836376 forcing an update of the whole project
> (eclipse team synch doesn't show any change). But it doesn't match your
> version Jacques... May be a problem with subclipse?
>
> Here is a screenshot:
> http://img17.imageshack.us/img17/2316/ofbizcompilationerror.jpg
>
> Thanks.
>
>
> On Sun, Nov 15, 2009 at 8:43 PM, jonatan soto <[hidden email]>wrote:
>
>>
>> Well that should be the problem, I'm using r836246. I don't understand I
>> updated ofbiz four times from svn and when I synch with repository there's
>> no new version. Am I using the right trunk url?
>>
>> I forgot to say this is only an eclipse (ganymede) compilation error with
>> jdk 1.5. When I execute run-install and then start ofbiz, works fine.
>>
>>
>>
>> On Sun, Nov 15, 2009 at 8:24 PM, Jacques Le Roux <
>> [hidden email]> wrote:
>>
>>> No problems here with r836395
>>>
>>> Jacques
>>>
>>>
>>> From: "jonatan soto" <[hidden email]>
>>> Hi Adrian,
>>>
>>> The problem persists.
>>>
>>> I found Parser.java and ParserException.java in
>>> /ofbiz-trunk/framework/entity/build/gen-src/javacc/org/ofbiz/entity/sql/.
>>> It's problably a source path entry missing? Are those classes
>>> automatically
>>> generated?
>>>
>>> Thanks a lot.
>>>
>>> On Sun, Nov 15, 2009 at 7:16 PM, Adrian Crum <[hidden email]>
>>> wrote:
>>>
>>>  Try ant clean, then ant run-install.
>>>>
>>>> -Adrian
>>>>
>>>> --- On Sun, 11/15/09, jonatan soto <[hidden email]> wrote:
>>>>
>>>> > From: jonatan soto <[hidden email]>
>>>> > Subject: compile error in trunk
>>>> > To: [hidden email]
>>>> > Date: Sunday, November 15, 2009, 10:03 AM
>>>> > Hi,
>>>> >
>>>> > I'm getting a compile error on
>>>> > org.ofbiz.entity.sql.SQLUtil. It seems to be
>>>> > missing the import of Parser and ParserException class.
>>>> > When I try to organize imports from eclipse I see a lot of
>>>> > options, but I
>>>> > can't see anything related to SQL. Perhaps a library
>>>> > missing too?
>>>> > Should I report it on Jira?
>>>> >
>>>> > The steps I've done:
>>>> >
>>>> > - Update the last version of trunk
>>>> > - run ant-install
>>>> > - Execute ofbiz
>>>> >
>>>> > Just in case I am using a wrong svn ofbiz trunk url, this
>>>> > is what I'm using:
>>>> > http://svn.apache.org/repos/asf/ofbiz/trunk
>>>> >
>>>> > Thanks.
>>>> >
>>>> > --
>>>> > Jonatan Soto Aguilera
>>>> > C/ Comte Borrell, 328 3º4ª
>>>> > 08029 Barcelona
>>>> > Telf: +34935350010
>>>> > Móvil: +34669908135
>>>> > www.japanflavour.com
>>>> >
>>>>
>>>>
>>>>
>>>>
>>>>
>>>
>>> --
>>> Jonatan Soto Aguilera
>>> C/ Comte Borrell, 328 3º4ª
>>> 08029 Barcelona
>>> Telf: +34935350010
>>> Móvil: +34669908135
>>> www.japanflavour.com
>>>
>>>
>>>
>>
>>
>> --
>> Jonatan Soto Aguilera
>> C/ Comte Borrell, 328 3º4ª
>> 08029 Barcelona
>> Telf: +34935350010
>> Móvil: +34669908135
>> www.japanflavour.com
>>
>
>
>
> --
> Jonatan Soto Aguilera
> C/ Comte Borrell, 328 3º4ª
> 08029 Barcelona
> Telf: +34935350010
> Móvil: +34669908135
> www.japanflavour.com
>



--
Jonatan Soto Aguilera
C/ Comte Borrell, 328 3º4ª
08029 Barcelona
Telf: +34935350010
Móvil: +34669908135
www.japanflavour.com
Reply | Threaded
Open this post in threaded view
|

Re: compile error in trunk

Jacques Le Roux
Administrator
OK, some points
We are not able to update for some hours(?) http://twitter.com/infrabot/statuses/5745621781 (Subversion is now in Apache
incubator...)
What displays JAVA_HOME on the cmd line ? Is it the same jdk than the one you use in Eclipse ?
I normally use jdk 1.6 (more efficient), even in Eclipse (3.4.2) but I just tried with 1.5 and I have no problems at all (1.6 is
also OK). After an ant clean of course...
I see the same errors than on you image, but when I built in framework\entity\build\gen-src\javacc\org\ofbiz\entity\sql, I get

Buildfile: D:\workspace\ofbiz.pos\framework\entity\build.xml
prepare:
    [mkdir] Created dir: D:\workspace\ofbiz.pos\framework\entity\build\classes
    [mkdir] Created dir: D:\workspace\ofbiz.pos\framework\entity\build\lib
gen-src:
    [mkdir] Created dir: D:\workspace\ofbiz.pos\framework\entity\build\gen-src\javacc\org\ofbiz\entity\sql
   [javacc] Java Compiler Compiler Version 4.1 (Parser Generator)
   [javacc] (type "javacc" with no arguments for help)
   [javacc] Reading from file D:\workspace\ofbiz.pos\framework\entity\src\org\ofbiz\entity\sql\Parser.jj . . .
   [javacc] File "TokenMgrError.java" does not exist.  Will create one.
   [javacc] File "ParseException.java" does not exist.  Will create one.
   [javacc] File "Token.java" does not exist.  Will create one.
   [javacc] File "SimpleCharStream.java" does not exist.  Will create one.
   [javacc] Parser generated successfully.
classes:
  [javac15] Compiling 130 source files to D:\workspace\ofbiz.pos\framework\entity\build\classes
  [javac15] Note: Some input files use unchecked or unsafe operations.
  [javac15] Note: Recompile with -Xlint:unchecked for details.
_src-available:
jar:
      [jar] Building jar: D:\workspace\ofbiz.pos\framework\entity\build\lib\ofbiz-entity.jar
BUILD SUCCESSFUL
Total time: 5 seconds

SQLUtil seems not to be used in OFBiz at r836395.

Conclusion : I will wait svn to be available and then update...

Jacques

From: "jonatan soto" <[hidden email]>
sorry, current rev is 836400. I was looking on 'Last changed revision'...

On Sun, Nov 15, 2009 at 9:05 PM, jonatan soto <[hidden email]>wrote:

> Wow, succesfully updated to r836376 forcing an update of the whole project
> (eclipse team synch doesn't show any change). But it doesn't match your
> version Jacques... May be a problem with subclipse?
>
> Here is a screenshot:
> http://img17.imageshack.us/img17/2316/ofbizcompilationerror.jpg
>
> Thanks.
>
>
> On Sun, Nov 15, 2009 at 8:43 PM, jonatan soto <[hidden email]>wrote:
>
>>
>> Well that should be the problem, I'm using r836246. I don't understand I
>> updated ofbiz four times from svn and when I synch with repository there's
>> no new version. Am I using the right trunk url?
>>
>> I forgot to say this is only an eclipse (ganymede) compilation error with
>> jdk 1.5. When I execute run-install and then start ofbiz, works fine.
>>
>>
>>
>> On Sun, Nov 15, 2009 at 8:24 PM, Jacques Le Roux <
>> [hidden email]> wrote:
>>
>>> No problems here with r836395
>>>
>>> Jacques
>>>
>>>
>>> From: "jonatan soto" <[hidden email]>
>>> Hi Adrian,
>>>
>>> The problem persists.
>>>
>>> I found Parser.java and ParserException.java in
>>> /ofbiz-trunk/framework/entity/build/gen-src/javacc/org/ofbiz/entity/sql/.
>>> It's problably a source path entry missing? Are those classes
>>> automatically
>>> generated?
>>>
>>> Thanks a lot.
>>>
>>> On Sun, Nov 15, 2009 at 7:16 PM, Adrian Crum <[hidden email]>
>>> wrote:
>>>
>>>  Try ant clean, then ant run-install.
>>>>
>>>> -Adrian
>>>>
>>>> --- On Sun, 11/15/09, jonatan soto <[hidden email]> wrote:
>>>>
>>>> > From: jonatan soto <[hidden email]>
>>>> > Subject: compile error in trunk
>>>> > To: [hidden email]
>>>> > Date: Sunday, November 15, 2009, 10:03 AM
>>>> > Hi,
>>>> >
>>>> > I'm getting a compile error on
>>>> > org.ofbiz.entity.sql.SQLUtil. It seems to be
>>>> > missing the import of Parser and ParserException class.
>>>> > When I try to organize imports from eclipse I see a lot of
>>>> > options, but I
>>>> > can't see anything related to SQL. Perhaps a library
>>>> > missing too?
>>>> > Should I report it on Jira?
>>>> >
>>>> > The steps I've done:
>>>> >
>>>> > - Update the last version of trunk
>>>> > - run ant-install
>>>> > - Execute ofbiz
>>>> >
>>>> > Just in case I am using a wrong svn ofbiz trunk url, this
>>>> > is what I'm using:
>>>> > http://svn.apache.org/repos/asf/ofbiz/trunk
>>>> >
>>>> > Thanks.
>>>> >
>>>> > --
>>>> > Jonatan Soto Aguilera
>>>> > C/ Comte Borrell, 328 3º4ª
>>>> > 08029 Barcelona
>>>> > Telf: +34935350010
>>>> > Móvil: +34669908135
>>>> > www.japanflavour.com
>>>> >
>>>>
>>>>
>>>>
>>>>
>>>>
>>>
>>> --
>>> Jonatan Soto Aguilera
>>> C/ Comte Borrell, 328 3º4ª
>>> 08029 Barcelona
>>> Telf: +34935350010
>>> Móvil: +34669908135
>>> www.japanflavour.com
>>>
>>>
>>>
>>
>>
>> --
>> Jonatan Soto Aguilera
>> C/ Comte Borrell, 328 3º4ª
>> 08029 Barcelona
>> Telf: +34935350010
>> Móvil: +34669908135
>> www.japanflavour.com
>>
>
>
>
> --
> Jonatan Soto Aguilera
> C/ Comte Borrell, 328 3º4ª
> 08029 Barcelona
> Telf: +34935350010
> Móvil: +34669908135
> www.japanflavour.com
>



--
Jonatan Soto Aguilera
C/ Comte Borrell, 328 3º4ª
08029 Barcelona
Telf: +34935350010
Móvil: +34669908135
www.japanflavour.com


Reply | Threaded
Open this post in threaded view
|

Re: compile error in trunk

jonatan soto
Updated to r880647. Still having the same compilation errors. But nevermind,
as you said, it seems to not be used in Ofbiz.

gen-src:
    [mkdir] Created dir:
C:\projectsJsoto\workspace\ofbiz-trunk\framework\entity\build\gen-src\javacc\org\ofbiz\entity\sql
   [javacc] Java Compiler Compiler Version 4.1 (Parser Generator)
   [javacc] (type "javacc" with no arguments for help)
   [javacc] Reading from file
C:\projectsJsoto\workspace\ofbiz-trunk\framework\entity\src\org\ofbiz\entity\sql\Parser.jj
. . .
   [javacc] File "TokenMgrError.java" does not exist.  Will create one.
   [javacc] File "ParseException.java" does not exist.  Will create one.
   [javacc] File "Token.java" does not exist.  Will create one.
   [javacc] File "SimpleCharStream.java" does not exist.  Will create one.
   [javacc] Parser generated successfully.

Yep, I'm using the same JDK for everything (1.5)

Thanks.

On Sun, Nov 15, 2009 at 11:18 PM, Jacques Le Roux <
[hidden email]> wrote:

> OK, some points
> We are not able to update for some hours(?)
> http://twitter.com/infrabot/statuses/5745621781 (Subversion is now in
> Apache
> incubator...)
> What displays JAVA_HOME on the cmd line ? Is it the same jdk than the one
> you use in Eclipse ?
> I normally use jdk 1.6 (more efficient), even in Eclipse (3.4.2) but I just
> tried with 1.5 and I have no problems at all (1.6 is
> also OK). After an ant clean of course...
> I see the same errors than on you image, but when I built in
> framework\entity\build\gen-src\javacc\org\ofbiz\entity\sql, I get
>
> Buildfile: D:\workspace\ofbiz.pos\framework\entity\build.xml
> prepare:
>   [mkdir] Created dir:
> D:\workspace\ofbiz.pos\framework\entity\build\classes
>   [mkdir] Created dir: D:\workspace\ofbiz.pos\framework\entity\build\lib
> gen-src:
>   [mkdir] Created dir:
> D:\workspace\ofbiz.pos\framework\entity\build\gen-src\javacc\org\ofbiz\entity\sql
>  [javacc] Java Compiler Compiler Version 4.1 (Parser Generator)
>  [javacc] (type "javacc" with no arguments for help)
>  [javacc] Reading from file
> D:\workspace\ofbiz.pos\framework\entity\src\org\ofbiz\entity\sql\Parser.jj .
> . .
>  [javacc] File "TokenMgrError.java" does not exist.  Will create one.
>  [javacc] File "ParseException.java" does not exist.  Will create one.
>  [javacc] File "Token.java" does not exist.  Will create one.
>  [javacc] File "SimpleCharStream.java" does not exist.  Will create one.
>  [javacc] Parser generated successfully.
> classes:
>  [javac15] Compiling 130 source files to
> D:\workspace\ofbiz.pos\framework\entity\build\classes
>  [javac15] Note: Some input files use unchecked or unsafe operations.
>  [javac15] Note: Recompile with -Xlint:unchecked for details.
> _src-available:
> jar:
>     [jar] Building jar:
> D:\workspace\ofbiz.pos\framework\entity\build\lib\ofbiz-entity.jar
> BUILD SUCCESSFUL
> Total time: 5 seconds
>
> SQLUtil seems not to be used in OFBiz at r836395.
>
> Conclusion : I will wait svn to be available and then update...
>
>
> Jacques
>
> From: "jonatan soto" <[hidden email]>
> sorry, current rev is 836400. I was looking on 'Last changed revision'...
>
> On Sun, Nov 15, 2009 at 9:05 PM, jonatan soto <[hidden email]
> >wrote:
>
>  Wow, succesfully updated to r836376 forcing an update of the whole project
>> (eclipse team synch doesn't show any change). But it doesn't match your
>> version Jacques... May be a problem with subclipse?
>>
>> Here is a screenshot:
>> http://img17.imageshack.us/img17/2316/ofbizcompilationerror.jpg
>>
>> Thanks.
>>
>>
>> On Sun, Nov 15, 2009 at 8:43 PM, jonatan soto <[hidden email]
>> >wrote:
>>
>>
>>> Well that should be the problem, I'm using r836246. I don't understand I
>>> updated ofbiz four times from svn and when I synch with repository
>>> there's
>>> no new version. Am I using the right trunk url?
>>>
>>> I forgot to say this is only an eclipse (ganymede) compilation error with
>>> jdk 1.5. When I execute run-install and then start ofbiz, works fine.
>>>
>>>
>>>
>>> On Sun, Nov 15, 2009 at 8:24 PM, Jacques Le Roux <
>>> [hidden email]> wrote:
>>>
>>>  No problems here with r836395
>>>>
>>>> Jacques
>>>>
>>>>
>>>> From: "jonatan soto" <[hidden email]>
>>>> Hi Adrian,
>>>>
>>>> The problem persists.
>>>>
>>>> I found Parser.java and ParserException.java in
>>>>
>>>> /ofbiz-trunk/framework/entity/build/gen-src/javacc/org/ofbiz/entity/sql/.
>>>> It's problably a source path entry missing? Are those classes
>>>> automatically
>>>> generated?
>>>>
>>>> Thanks a lot.
>>>>
>>>> On Sun, Nov 15, 2009 at 7:16 PM, Adrian Crum <[hidden email]>
>>>> wrote:
>>>>
>>>>  Try ant clean, then ant run-install.
>>>>
>>>>>
>>>>> -Adrian
>>>>>
>>>>> --- On Sun, 11/15/09, jonatan soto <[hidden email]> wrote:
>>>>>
>>>>> > From: jonatan soto <[hidden email]>
>>>>> > Subject: compile error in trunk
>>>>> > To: [hidden email]
>>>>> > Date: Sunday, November 15, 2009, 10:03 AM
>>>>> > Hi,
>>>>> >
>>>>> > I'm getting a compile error on
>>>>> > org.ofbiz.entity.sql.SQLUtil. It seems to be
>>>>> > missing the import of Parser and ParserException class.
>>>>> > When I try to organize imports from eclipse I see a lot of
>>>>> > options, but I
>>>>> > can't see anything related to SQL. Perhaps a library
>>>>> > missing too?
>>>>> > Should I report it on Jira?
>>>>> >
>>>>> > The steps I've done:
>>>>> >
>>>>> > - Update the last version of trunk
>>>>> > - run ant-install
>>>>> > - Execute ofbiz
>>>>> >
>>>>> > Just in case I am using a wrong svn ofbiz trunk url, this
>>>>> > is what I'm using:
>>>>> > http://svn.apache.org/repos/asf/ofbiz/trunk
>>>>> >
>>>>> > Thanks.
>>>>> >
>>>>> > --
>>>>> > Jonatan Soto Aguilera
>>>>> > C/ Comte Borrell, 328 3º4ª
>>>>> > 08029 Barcelona
>>>>> > Telf: +34935350010
>>>>> > Móvil: +34669908135
>>>>> > www.japanflavour.com
>>>>> >
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>> --
>>>> Jonatan Soto Aguilera
>>>> C/ Comte Borrell, 328 3º4ª
>>>> 08029 Barcelona
>>>> Telf: +34935350010
>>>> Móvil: +34669908135
>>>> www.japanflavour.com
>>>>
>>>>
>>>>
>>>>
>>>
>>> --
>>> Jonatan Soto Aguilera
>>> C/ Comte Borrell, 328 3º4ª
>>> 08029 Barcelona
>>> Telf: +34935350010
>>> Móvil: +34669908135
>>> www.japanflavour.com
>>>
>>>
>>
>>
>> --
>> Jonatan Soto Aguilera
>> C/ Comte Borrell, 328 3º4ª
>> 08029 Barcelona
>> Telf: +34935350010
>> Móvil: +34669908135
>> www.japanflavour.com
>>
>>
>
>
> --
> Jonatan Soto Aguilera
> C/ Comte Borrell, 328 3º4ª
> 08029 Barcelona
> Telf: +34935350010
> Móvil: +34669908135
> www.japanflavour.com
>
>
>


--
Jonatan Soto Aguilera
C/ Comte Borrell, 328 3º4ª
08029 Barcelona
Telf: +34935350010
Móvil: +34669908135
www.japanflavour.com
Reply | Threaded
Open this post in threaded view
|

Re: compile error in trunk

BJ Freeman
In reply to this post by Jacques Le Roux
I don't find sql\Parser.jj in the Trunk version
I am not familiar with the jj extensions in ofbiz.

jonatan soto sent the following on 11/16/2009 12:19 AM:

> Updated to r880647. Still having the same compilation errors. But nevermind,
> as you said, it seems to not be used in Ofbiz.
>
> gen-src:
>     [mkdir] Created dir:
> C:\projectsJsoto\workspace\ofbiz-trunk\framework\entity\build\gen-src\javacc\org\ofbiz\entity\sql
>    [javacc] Java Compiler Compiler Version 4.1 (Parser Generator)
>    [javacc] (type "javacc" with no arguments for help)
>    [javacc] Reading from file
> C:\projectsJsoto\workspace\ofbiz-trunk\framework\entity\src\org\ofbiz\entity\sql\Parser.jj
> . . .
>    [javacc] File "TokenMgrError.java" does not exist.  Will create one.
>    [javacc] File "ParseException.java" does not exist.  Will create one.
>    [javacc] File "Token.java" does not exist.  Will create one.
>    [javacc] File "SimpleCharStream.java" does not exist.  Will create one.
>    [javacc] Parser generated successfully.
>
> Yep, I'm using the same JDK for everything (1.5)
>
> Thanks.
>
> On Sun, Nov 15, 2009 at 11:18 PM, Jacques Le Roux <
> [hidden email]> wrote:
>
>> OK, some points
>> We are not able to update for some hours(?)
>> http://twitter.com/infrabot/statuses/5745621781 (Subversion is now in
>> Apache
>> incubator...)
>> What displays JAVA_HOME on the cmd line ? Is it the same jdk than the one
>> you use in Eclipse ?
>> I normally use jdk 1.6 (more efficient), even in Eclipse (3.4.2) but I just
>> tried with 1.5 and I have no problems at all (1.6 is
>> also OK). After an ant clean of course...
>> I see the same errors than on you image, but when I built in
>> framework\entity\build\gen-src\javacc\org\ofbiz\entity\sql, I get
>>
>> Buildfile: D:\workspace\ofbiz.pos\framework\entity\build.xml
>> prepare:
>>   [mkdir] Created dir:
>> D:\workspace\ofbiz.pos\framework\entity\build\classes
>>   [mkdir] Created dir: D:\workspace\ofbiz.pos\framework\entity\build\lib
>> gen-src:
>>   [mkdir] Created dir:
>> D:\workspace\ofbiz.pos\framework\entity\build\gen-src\javacc\org\ofbiz\entity\sql
>>  [javacc] Java Compiler Compiler Version 4.1 (Parser Generator)
>>  [javacc] (type "javacc" with no arguments for help)
>>  [javacc] Reading from file
>> D:\workspace\ofbiz.pos\framework\entity\src\org\ofbiz\entity\sql\Parser.jj .
>> . .
>>  [javacc] File "TokenMgrError.java" does not exist.  Will create one.
>>  [javacc] File "ParseException.java" does not exist.  Will create one.
>>  [javacc] File "Token.java" does not exist.  Will create one.
>>  [javacc] File "SimpleCharStream.java" does not exist.  Will create one.
>>  [javacc] Parser generated successfully.
>> classes:
>>  [javac15] Compiling 130 source files to
>> D:\workspace\ofbiz.pos\framework\entity\build\classes
>>  [javac15] Note: Some input files use unchecked or unsafe operations.
>>  [javac15] Note: Recompile with -Xlint:unchecked for details.
>> _src-available:
>> jar:
>>     [jar] Building jar:
>> D:\workspace\ofbiz.pos\framework\entity\build\lib\ofbiz-entity.jar
>> BUILD SUCCESSFUL
>> Total time: 5 seconds
>>
>> SQLUtil seems not to be used in OFBiz at r836395.
>>
>> Conclusion : I will wait svn to be available and then update...
>>
>>
>> Jacques
>>
>> From: "jonatan soto" <[hidden email]>
>> sorry, current rev is 836400. I was looking on 'Last changed revision'...
>>
>> On Sun, Nov 15, 2009 at 9:05 PM, jonatan soto <[hidden email]
>>> wrote:
>>  Wow, succesfully updated to r836376 forcing an update of the whole project
>>> (eclipse team synch doesn't show any change). But it doesn't match your
>>> version Jacques... May be a problem with subclipse?
>>>
>>> Here is a screenshot:
>>> http://img17.imageshack.us/img17/2316/ofbizcompilationerror.jpg
>>>
>>> Thanks.
>>>
>>>
>>> On Sun, Nov 15, 2009 at 8:43 PM, jonatan soto <[hidden email]
>>>> wrote:
>>>
>>>> Well that should be the problem, I'm using r836246. I don't understand I
>>>> updated ofbiz four times from svn and when I synch with repository
>>>> there's
>>>> no new version. Am I using the right trunk url?
>>>>
>>>> I forgot to say this is only an eclipse (ganymede) compilation error with
>>>> jdk 1.5. When I execute run-install and then start ofbiz, works fine.
>>>>
>>>>
>>>>
>>>> On Sun, Nov 15, 2009 at 8:24 PM, Jacques Le Roux <
>>>> [hidden email]> wrote:
>>>>
>>>>  No problems here with r836395
>>>>> Jacques
>>>>>
>>>>>
>>>>> From: "jonatan soto" <[hidden email]>
>>>>> Hi Adrian,
>>>>>
>>>>> The problem persists.
>>>>>
>>>>> I found Parser.java and ParserException.java in
>>>>>
>>>>> /ofbiz-trunk/framework/entity/build/gen-src/javacc/org/ofbiz/entity/sql/.
>>>>> It's problably a source path entry missing? Are those classes
>>>>> automatically
>>>>> generated?
>>>>>
>>>>> Thanks a lot.
>>>>>
>>>>> On Sun, Nov 15, 2009 at 7:16 PM, Adrian Crum <[hidden email]>
>>>>> wrote:
>>>>>
>>>>>  Try ant clean, then ant run-install.
>>>>>
>>>>>> -Adrian
>>>>>>
>>>>>> --- On Sun, 11/15/09, jonatan soto <[hidden email]> wrote:
>>>>>>
>>>>>>> From: jonatan soto <[hidden email]>
>>>>>>> Subject: compile error in trunk
>>>>>>> To: [hidden email]
>>>>>>> Date: Sunday, November 15, 2009, 10:03 AM
>>>>>>> Hi,
>>>>>>>
>>>>>>> I'm getting a compile error on
>>>>>>> org.ofbiz.entity.sql.SQLUtil. It seems to be
>>>>>>> missing the import of Parser and ParserException class.
>>>>>>> When I try to organize imports from eclipse I see a lot of
>>>>>>> options, but I
>>>>>>> can't see anything related to SQL. Perhaps a library
>>>>>>> missing too?
>>>>>>> Should I report it on Jira?
>>>>>>>
>>>>>>> The steps I've done:
>>>>>>>
>>>>>>> - Update the last version of trunk
>>>>>>> - run ant-install
>>>>>>> - Execute ofbiz
>>>>>>>
>>>>>>> Just in case I am using a wrong svn ofbiz trunk url, this
>>>>>>> is what I'm using:
>>>>>>> http://svn.apache.org/repos/asf/ofbiz/trunk
>>>>>>>
>>>>>>> Thanks.
>>>>>>>
>>>>>>> --
>>>>>>> Jonatan Soto Aguilera
>>>>>>> C/ Comte Borrell, 328 3º4ª
>>>>>>> 08029 Barcelona
>>>>>>> Telf: +34935350010
>>>>>>> Móvil: +34669908135
>>>>>>> www.japanflavour.com
>>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>> --
>>>>> Jonatan Soto Aguilera
>>>>> C/ Comte Borrell, 328 3º4ª
>>>>> 08029 Barcelona
>>>>> Telf: +34935350010
>>>>> Móvil: +34669908135
>>>>> www.japanflavour.com
>>>>>
>>>>>
>>>>>
>>>>>
>>>> --
>>>> Jonatan Soto Aguilera
>>>> C/ Comte Borrell, 328 3º4ª
>>>> 08029 Barcelona
>>>> Telf: +34935350010
>>>> Móvil: +34669908135
>>>> www.japanflavour.com
>>>>
>>>>
>>>
>>> --
>>> Jonatan Soto Aguilera
>>> C/ Comte Borrell, 328 3º4ª
>>> 08029 Barcelona
>>> Telf: +34935350010
>>> Móvil: +34669908135
>>> www.japanflavour.com
>>>
>>>
>>
>> --
>> Jonatan Soto Aguilera
>> C/ Comte Borrell, 328 3º4ª
>> 08029 Barcelona
>> Telf: +34935350010
>> Móvil: +34669908135
>> www.japanflavour.com
>>
>>
>>
>
>

--
BJ Freeman
http://www.businessesnetwork.com/automation
http://bjfreeman.elance.com
http://www.linkedin.com/profile?viewProfile=&key=1237480&locale=en_US&trk=tab_pro
Systems Integrator.