Skip to Navigation | Skip to Content

openEHR-Implementers mailing list archives

[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: Problem with ADL_parser


Hello Rong,

I did that you said and these are the results:

The source code of the adl parser(src,docs and res folders) is under 
ADL_parser folder, so I typed:

D:\Proyecto_fin_de_Carrera\ADL parser\Definitivo\ADL_parser>maven clear 
javacc test
__  __
|  \/  |__ _Apache__ ___
| |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
|_|  |_\__,_|\_/\___|_||_|  v. 1.1-beta-1

Intentando descargar openehr-kernel-1.2.3.jar.
íATENCION!: íImposible descargar openehr-kernel-1.2.3.jar!
íEl proceso no puede seguir! Falta la siguiente dependencia:
openehr-kernel-1.2.3.jar (try downloading from http://www.acode.se)

Total time   : 3 seconds
Finished at  : jueves 25 de agosto de 2005 20:21:25 CEST
The text is in spanish, but it mean:
"it's not possible to download openehr-kernel-1.2.3-jar
The process cannot continue. The next dependency is missing:
openehr-kernel-1.2.3.jar (try downloading from http://www.acode.se)"
If I try to run the parser from console the error message is the 
following:

D:\Proyecto_fin_de_Carrera\ADL parser\Definitivo>java -classpath 
openehr-kernel-1.2.4.jar;adl-parser-1.0.1.jar;commons-lang-2.1.jar;log4j-1.2.11.jar;commons-c
ollections-3.0.jar se.acode.openehr.parser.ADLParser 
adl-test-entry.most_minimal
.draft.adl
Exception in thread "main" java.lang.UnsupportedClassVersionError: 
se/acode/open
ehr/parser/ADLParser (Unsupported major.minor version 49.0)
       at java.lang.ClassLoader.defineClass0(Native Method)
       at java.lang.ClassLoader.defineClass(Unknown Source)
       at java.security.SecureClassLoader.defineClass(Unknown Source)
       at java.net.URLClassLoader.defineClass(Unknown Source)
       at java.net.URLClassLoader.access$100(Unknown Source)
       at java.net.URLClassLoader$1.run(Unknown Source)
       at java.security.AccessController.doPrivileged(Native Method)
       at java.net.URLClassLoader.findClass(Unknown Source)
       at java.lang.ClassLoader.loadClass(Unknown Source)
       at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
       at java.lang.ClassLoader.loadClass(Unknown Source)
       at java.lang.ClassLoader.loadClassInternal(Unknown Source)

I have all these libraries in ADL_parser folder.

Am I doing anything wrong?

Thanks and regards


From: Rong Chen <rong@acode.se>
Reply-To: rong@acode.se
To: Javier Viguera Muñoz <viguera79@hotmail.com>
CC: openehr-implementers@openehr.org
Subject: Re: Problem with ADL_parser
Date: Wed, 24 Aug 2005 22:11:30 +0200
Javier Viguera Muñoz wrote:
Hello Ron!!

I hadn't read the post of Tom, so following his advice, I send the post 
again but in the implementers list.

The error message is the following:

Parsing: dl-test-entry.most_minimal.draft.adl

log4j:WARN No appenders could be found for logger 
(org.openehr.am.archetype.Archetype).
log4j:WARN Please initialize the log4j system properly.
se.acode.openehr.parser.ParseException: Encountered "<EOF>" at line 16, 
column 1.
Was expecting:
<SYM_CONCEPT> ...

If I try to parse other adl file the result is the same. Any idea?
Not sure. It seems to be a platform specific issue, but it does work on 
my 
Win2K desktop.

Can you please confirm that all unit tests pass on your WinXP? Just cd 
to 
the top directory and type "maven clean javacc test".

You can also try to run the parser from console instead of Eclipse, 
just 
include commons-lang, commons-collections, log4j, openehr-kernel in 
your 
classpath and type "java se.acode.openehr.parser.ADLParser [adl_file]". 
If 
the parsing is successful, you should see a screen dump of the 
archetype 
object model.

Let me know how does it go.

Rong



Thanks





-
If you have any questions about using this list,
please send a message to d.lloyd@openehr.org