Discussion:
[ltk-d] Compile issues: Velocity Template ?
Vikram Seshadri
2011-05-12 05:56:18 UTC
Permalink
Hi,
downloaded the LLRP toolkit, trying to compile it in Eclose - and am stuck
in one essential place. At one stage in the build process, it gives a number
lines that go like:

[java] 3 [main] ERROR java.lang.Class - Exception while generating code:
Lexical error, Encountered: "i" (105), after : "" at
src/main/resources/templates/javaEnumerationTemplate.vm[line 104, column 75]
caused by null

- nearly 20 of these lines, all the same. After that, it ends up not
creating some of the "enumeration" generated classes, which then cascades
down, and I can't build this project. Any help on how to resolve this issue
would be greatly appreciated.

thanks,
V.
Basil Gasser
2011-05-12 15:15:25 UTC
Permalink
hi Vikram,

Have you tried to compile it from the command line? I had issues compiling
it from eclipse.

greets Basil

On Thu, May 12, 2011 at 7:56 AM, Vikram Seshadri <
Post by Vikram Seshadri
Hi,
downloaded the LLRP toolkit, trying to compile it in Eclose - and am stuck
in one essential place. At one stage in the build process, it gives a number
[java] 3 [main] ERROR java.lang.Class - Exception while generating
code: Lexical error, Encountered: "i" (105), after : "" at
src/main/resources/templates/javaEnumerationTemplate.vm[line 104, column 75]
caused by null
- nearly 20 of these lines, all the same. After that, it ends up not
creating some of the "enumeration" generated classes, which then cascades
down, and I can't build this project. Any help on how to resolve this issue
would be greatly appreciated.
thanks,
V.
------------------------------------------------------------------------------
Achieve unprecedented app performance and reliability
What every C/C++ and Fortran developer should know.
Learn how Intel has extended the reach of its next-generation tools
to help boost performance applications - inlcuding clusters.
http://p.sf.net/sfu/intel-dev2devmay
_______________________________________________
llrp-toolkit-devel mailing list
https://lists.sourceforge.net/lists/listinfo/llrp-toolkit-devel
Vikram Seshadri
2011-05-12 15:51:09 UTC
Permalink
Hi Basil,
yes, tried on the command line with "ant generate" - and Sun JDK (v6) - same
problem.. Maybe a particular version of velocity ?

regards,
V.
Post by Basil Gasser
hi Vikram,
Have you tried to compile it from the command line? I had issues compiling
it from eclipse.
greets Basil
On Thu, May 12, 2011 at 7:56 AM, Vikram Seshadri <
Post by Vikram Seshadri
Hi,
downloaded the LLRP toolkit, trying to compile it in Eclose - and am stuck
in one essential place. At one stage in the build process, it gives a number
[java] 3 [main] ERROR java.lang.Class - Exception while generating
code: Lexical error, Encountered: "i" (105), after : "" at
src/main/resources/templates/javaEnumerationTemplate.vm[line 104, column 75]
caused by null
- nearly 20 of these lines, all the same. After that, it ends up not
creating some of the "enumeration" generated classes, which then cascades
down, and I can't build this project. Any help on how to resolve this issue
would be greatly appreciated.
thanks,
V.
------------------------------------------------------------------------------
Achieve unprecedented app performance and reliability
What every C/C++ and Fortran developer should know.
Learn how Intel has extended the reach of its next-generation tools
to help boost performance applications - inlcuding clusters.
http://p.sf.net/sfu/intel-dev2devmay
_______________________________________________
llrp-toolkit-devel mailing list
https://lists.sourceforge.net/lists/listinfo/llrp-toolkit-devel
------------------------------------------------------------------------------
Achieve unprecedented app performance and reliability
What every C/C++ and Fortran developer should know.
Learn how Intel has extended the reach of its next-generation tools
to help boost performance applications - inlcuding clusters.
http://p.sf.net/sfu/intel-dev2devmay
_______________________________________________
llrp-toolkit-devel mailing list
https://lists.sourceforge.net/lists/listinfo/llrp-toolkit-devel
Basil Gasser
2011-05-12 16:16:52 UTC
Permalink
I would assume it is a velocity issue. Which version are you using? Have you
changed anything in the templates?


On Thu, May 12, 2011 at 5:51 PM, Vikram Seshadri <
Post by Vikram Seshadri
Hi Basil,
yes, tried on the command line with "ant generate" - and Sun JDK (v6) -
same problem.. Maybe a particular version of velocity ?
regards,
V.
Post by Basil Gasser
hi Vikram,
Have you tried to compile it from the command line? I had issues compiling
it from eclipse.
greets Basil
On Thu, May 12, 2011 at 7:56 AM, Vikram Seshadri <
Post by Vikram Seshadri
Hi,
downloaded the LLRP toolkit, trying to compile it in Eclose - and am
stuck in one essential place. At one stage in the build process, it gives a
[java] 3 [main] ERROR java.lang.Class - Exception while generating
code: Lexical error, Encountered: "i" (105), after : "" at
src/main/resources/templates/javaEnumerationTemplate.vm[line 104, column 75]
caused by null
- nearly 20 of these lines, all the same. After that, it ends up not
creating some of the "enumeration" generated classes, which then cascades
down, and I can't build this project. Any help on how to resolve this issue
would be greatly appreciated.
thanks,
V.
------------------------------------------------------------------------------
Achieve unprecedented app performance and reliability
What every C/C++ and Fortran developer should know.
Learn how Intel has extended the reach of its next-generation tools
to help boost performance applications - inlcuding clusters.
http://p.sf.net/sfu/intel-dev2devmay
_______________________________________________
llrp-toolkit-devel mailing list
https://lists.sourceforge.net/lists/listinfo/llrp-toolkit-devel
------------------------------------------------------------------------------
Achieve unprecedented app performance and reliability
What every C/C++ and Fortran developer should know.
Learn how Intel has extended the reach of its next-generation tools
to help boost performance applications - inlcuding clusters.
http://p.sf.net/sfu/intel-dev2devmay
_______________________________________________
llrp-toolkit-devel mailing list
https://lists.sourceforge.net/lists/listinfo/llrp-toolkit-devel
------------------------------------------------------------------------------
Achieve unprecedented app performance and reliability
What every C/C++ and Fortran developer should know.
Learn how Intel has extended the reach of its next-generation tools
to help boost performance applications - inlcuding clusters.
http://p.sf.net/sfu/intel-dev2devmay
_______________________________________________
llrp-toolkit-devel mailing list
https://lists.sourceforge.net/lists/listinfo/llrp-toolkit-devel
Vikram Seshadri
2011-05-13 02:18:30 UTC
Permalink
1.7 was the version that was giving problems. Changed to 1.5 as recommended,
and the problem disappeared. Now have a problem with the "format" target -
but will look into it.

The entire build seems to be delicate enough with respect to version(s) of
supporting libraries, that I'm wondering if the "lib" (with all associated
jars) should not be made part of the CVS ?
Post by Basil Gasser
I would assume it is a velocity issue. Which version are you using? Have
you changed anything in the templates?
On Thu, May 12, 2011 at 5:51 PM, Vikram Seshadri <
Post by Vikram Seshadri
Hi Basil,
yes, tried on the command line with "ant generate" - and Sun JDK (v6) -
same problem.. Maybe a particular version of velocity ?
regards,
V.
Post by Basil Gasser
hi Vikram,
Have you tried to compile it from the command line? I had issues
compiling it from eclipse.
greets Basil
On Thu, May 12, 2011 at 7:56 AM, Vikram Seshadri <
Post by Vikram Seshadri
Hi,
downloaded the LLRP toolkit, trying to compile it in Eclose - and am
stuck in one essential place. At one stage in the build process, it gives a
[java] 3 [main] ERROR java.lang.Class - Exception while generating
code: Lexical error, Encountered: "i" (105), after : "" at
src/main/resources/templates/javaEnumerationTemplate.vm[line 104, column 75]
caused by null
- nearly 20 of these lines, all the same. After that, it ends up not
creating some of the "enumeration" generated classes, which then cascades
down, and I can't build this project. Any help on how to resolve this issue
would be greatly appreciated.
thanks,
V.
------------------------------------------------------------------------------
Achieve unprecedented app performance and reliability
What every C/C++ and Fortran developer should know.
Learn how Intel has extended the reach of its next-generation tools
to help boost performance applications - inlcuding clusters.
http://p.sf.net/sfu/intel-dev2devmay
_______________________________________________
llrp-toolkit-devel mailing list
https://lists.sourceforge.net/lists/listinfo/llrp-toolkit-devel
------------------------------------------------------------------------------
Achieve unprecedented app performance and reliability
What every C/C++ and Fortran developer should know.
Learn how Intel has extended the reach of its next-generation tools
to help boost performance applications - inlcuding clusters.
http://p.sf.net/sfu/intel-dev2devmay
_______________________________________________
llrp-toolkit-devel mailing list
https://lists.sourceforge.net/lists/listinfo/llrp-toolkit-devel
------------------------------------------------------------------------------
Achieve unprecedented app performance and reliability
What every C/C++ and Fortran developer should know.
Learn how Intel has extended the reach of its next-generation tools
to help boost performance applications - inlcuding clusters.
http://p.sf.net/sfu/intel-dev2devmay
_______________________________________________
llrp-toolkit-devel mailing list
https://lists.sourceforge.net/lists/listinfo/llrp-toolkit-devel
------------------------------------------------------------------------------
Achieve unprecedented app performance and reliability
What every C/C++ and Fortran developer should know.
Learn how Intel has extended the reach of its next-generation tools
to help boost performance applications - inlcuding clusters.
http://p.sf.net/sfu/intel-dev2devmay
_______________________________________________
llrp-toolkit-devel mailing list
https://lists.sourceforge.net/lists/listinfo/llrp-toolkit-devel
Vikram Seshadri
2011-05-13 02:30:48 UTC
Permalink
Now having problems with generated classes, where I'm getting stuff like :
System.out.println("Processing " +
***@67148603);

in org/llrp/ltk/generated/enumerations/AirProtocolsArray.java

The tasks till "generate" run clean - let me know if you have some idea of
what the problem could be.


On Thu, May 12, 2011 at 10:18 PM, Vikram Seshadri <
Post by Vikram Seshadri
1.7 was the version that was giving problems. Changed to 1.5 as
recommended, and the problem disappeared. Now have a problem with the
"format" target - but will look into it.
The entire build seems to be delicate enough with respect to version(s) of
supporting libraries, that I'm wondering if the "lib" (with all associated
jars) should not be made part of the CVS ?
Post by Basil Gasser
I would assume it is a velocity issue. Which version are you using? Have
you changed anything in the templates?
On Thu, May 12, 2011 at 5:51 PM, Vikram Seshadri <
Post by Vikram Seshadri
Hi Basil,
yes, tried on the command line with "ant generate" - and Sun JDK (v6) -
same problem.. Maybe a particular version of velocity ?
regards,
V.
Post by Basil Gasser
hi Vikram,
Have you tried to compile it from the command line? I had issues
compiling it from eclipse.
greets Basil
On Thu, May 12, 2011 at 7:56 AM, Vikram Seshadri <
Post by Vikram Seshadri
Hi,
downloaded the LLRP toolkit, trying to compile it in Eclose - and am
stuck in one essential place. At one stage in the build process, it gives a
[java] 3 [main] ERROR java.lang.Class - Exception while generating
code: Lexical error, Encountered: "i" (105), after : "" at
src/main/resources/templates/javaEnumerationTemplate.vm[line 104, column 75]
caused by null
- nearly 20 of these lines, all the same. After that, it ends up not
creating some of the "enumeration" generated classes, which then cascades
down, and I can't build this project. Any help on how to resolve this issue
would be greatly appreciated.
thanks,
V.
------------------------------------------------------------------------------
Achieve unprecedented app performance and reliability
What every C/C++ and Fortran developer should know.
Learn how Intel has extended the reach of its next-generation tools
to help boost performance applications - inlcuding clusters.
http://p.sf.net/sfu/intel-dev2devmay
_______________________________________________
llrp-toolkit-devel mailing list
https://lists.sourceforge.net/lists/listinfo/llrp-toolkit-devel
------------------------------------------------------------------------------
Achieve unprecedented app performance and reliability
What every C/C++ and Fortran developer should know.
Learn how Intel has extended the reach of its next-generation tools
to help boost performance applications - inlcuding clusters.
http://p.sf.net/sfu/intel-dev2devmay
_______________________________________________
llrp-toolkit-devel mailing list
https://lists.sourceforge.net/lists/listinfo/llrp-toolkit-devel
------------------------------------------------------------------------------
Achieve unprecedented app performance and reliability
What every C/C++ and Fortran developer should know.
Learn how Intel has extended the reach of its next-generation tools
to help boost performance applications - inlcuding clusters.
http://p.sf.net/sfu/intel-dev2devmay
_______________________________________________
llrp-toolkit-devel mailing list
https://lists.sourceforge.net/lists/listinfo/llrp-toolkit-devel
------------------------------------------------------------------------------
Achieve unprecedented app performance and reliability
What every C/C++ and Fortran developer should know.
Learn how Intel has extended the reach of its next-generation tools
to help boost performance applications - inlcuding clusters.
http://p.sf.net/sfu/intel-dev2devmay
_______________________________________________
llrp-toolkit-devel mailing list
https://lists.sourceforge.net/lists/listinfo/llrp-toolkit-devel
Vikram Seshadri
2011-05-13 20:04:15 UTC
Permalink
Apologies - this was a terrible overlook from me..

But this new problem that I'm up against is fairly strange - I have the
sample program "HelloJavaLtkMain" that runs perfectly when linked against
the old ltkjava-1.0.0.6-with-dependencies.jar, but I get a problem that
goes:

An error occurred: org.apache.mina.filter.codec.ProtocolDecoderException

when linked with the following jars:
ltkjava-1.0.0.7-SNAPSHOT.jar, mina-core--1.1.7.jar, log4j-1.2.9.jar,
slf4j-api-1.6.1.jar

Let me know if any additional jars need to be included with the jar that is
created by the ltkjava project when we compile with "ant jar".


On Thu, May 12, 2011 at 10:30 PM, Vikram Seshadri <
Post by Vikram Seshadri
System.out.println("Processing " +
in org/llrp/ltk/generated/enumerations/AirProtocolsArray.java
The tasks till "generate" run clean - let me know if you have some idea of
what the problem could be.
On Thu, May 12, 2011 at 10:18 PM, Vikram Seshadri <
Post by Vikram Seshadri
1.7 was the version that was giving problems. Changed to 1.5 as
recommended, and the problem disappeared. Now have a problem with the
"format" target - but will look into it.
The entire build seems to be delicate enough with respect to version(s) of
supporting libraries, that I'm wondering if the "lib" (with all associated
jars) should not be made part of the CVS ?
Post by Basil Gasser
I would assume it is a velocity issue. Which version are you using? Have
you changed anything in the templates?
On Thu, May 12, 2011 at 5:51 PM, Vikram Seshadri <
Post by Vikram Seshadri
Hi Basil,
yes, tried on the command line with "ant generate" - and Sun JDK (v6) -
same problem.. Maybe a particular version of velocity ?
regards,
V.
Post by Basil Gasser
hi Vikram,
Have you tried to compile it from the command line? I had issues
compiling it from eclipse.
greets Basil
On Thu, May 12, 2011 at 7:56 AM, Vikram Seshadri <
Post by Vikram Seshadri
Hi,
downloaded the LLRP toolkit, trying to compile it in Eclose - and am
stuck in one essential place. At one stage in the build process, it gives a
[java] 3 [main] ERROR java.lang.Class - Exception while generating
code: Lexical error, Encountered: "i" (105), after : "" at
src/main/resources/templates/javaEnumerationTemplate.vm[line 104, column 75]
caused by null
- nearly 20 of these lines, all the same. After that, it ends up not
creating some of the "enumeration" generated classes, which then cascades
down, and I can't build this project. Any help on how to resolve this issue
would be greatly appreciated.
thanks,
V.
------------------------------------------------------------------------------
Achieve unprecedented app performance and reliability
What every C/C++ and Fortran developer should know.
Learn how Intel has extended the reach of its next-generation tools
to help boost performance applications - inlcuding clusters.
http://p.sf.net/sfu/intel-dev2devmay
_______________________________________________
llrp-toolkit-devel mailing list
https://lists.sourceforge.net/lists/listinfo/llrp-toolkit-devel
------------------------------------------------------------------------------
Achieve unprecedented app performance and reliability
What every C/C++ and Fortran developer should know.
Learn how Intel has extended the reach of its next-generation tools
to help boost performance applications - inlcuding clusters.
http://p.sf.net/sfu/intel-dev2devmay
_______________________________________________
llrp-toolkit-devel mailing list
https://lists.sourceforge.net/lists/listinfo/llrp-toolkit-devel
------------------------------------------------------------------------------
Achieve unprecedented app performance and reliability
What every C/C++ and Fortran developer should know.
Learn how Intel has extended the reach of its next-generation tools
to help boost performance applications - inlcuding clusters.
http://p.sf.net/sfu/intel-dev2devmay
_______________________________________________
llrp-toolkit-devel mailing list
https://lists.sourceforge.net/lists/listinfo/llrp-toolkit-devel
------------------------------------------------------------------------------
Achieve unprecedented app performance and reliability
What every C/C++ and Fortran developer should know.
Learn how Intel has extended the reach of its next-generation tools
to help boost performance applications - inlcuding clusters.
http://p.sf.net/sfu/intel-dev2devmay
_______________________________________________
llrp-toolkit-devel mailing list
https://lists.sourceforge.net/lists/listinfo/llrp-toolkit-devel
Loading...