how to run binary editor in ADL

Data formats, HDF5, XML profiles, etc.
Post Reply
lucy liu
Posts: 54
Joined: Tue Oct 18, 2011 11:02 am

how to run binary editor in ADL

Post by lucy liu »

Could any one tell me how to run the binary editor tool in ADL?
I tried to build the binary editor in ADL following the reference document but it failed.
I wonder if I need to rebuild the tool or I can directly use the executable file for binary editor. But I do not know how to run the tool.

Buildfile: /home/ADL_3.0/ADL/java/build.xml
Warning: 'file:properties.xml' in /home/ADL_3.0/ADL/java/build.xml should be expressed simply as 'properties.xml' for compliance with other XML tools
proSrc:
dfcbSrc:
src:
[javac] /home/ADL_3.0/ADL/java/build.xml:75: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
BUILD FAILED
/home/ADL_3.0/ADL/java/build.xml:82: /home/ADL_3.0/ADL/java/dist/ProXmlClasses.jar is read-only.
Total time: 0 seconds

Any clues?

Thanks.
kbisanz
Posts: 280
Joined: Wed Jan 05, 2011 7:02 pm
Location: Omaha NE

Re: how to run binary editor in ADL

Post by kbisanz »

In the directory $ADL_HOME/java/, try doing an "ant clean" and then run "ant" to rebuild the java tools (the binary editor and XML editor).

The ProXmlClasses.jar file is something that's created during the build process. An "ant clean" should remove the entire dist directory. I don't know why it would be read only. Perhaps someone else built it?

Once it builds, you can start the binary editor by using $ADL_HOME/script/bined. Through a GUI you'll have to provide an XML file and a binary file. I'd encourage you to read the binary editor user manual if you have not.
Kevin Bisanz
Raytheon Company
lucy liu
Posts: 54
Joined: Tue Oct 18, 2011 11:02 am

Re: how to run binary editor in ADL

Post by lucy liu »

That is very helpful. I tried to rebuild ant following your suggestion. The build shows successful.
But there are errors when I execute the xmled and bined under script. 

For bined, the GUI does not show up. it shows
log4j configuration failed: Unable to create log file.

For xmled, the GUI does show up though it has following errors

log4j:ERROR setFile(null,false) call failed.
java.io.FileNotFoundException: xml_editor.log (Permission denied)
at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.<init>(FileOutputStream.java:194)
at java.io.FileOutputStream.<init>(FileOutputStream.java:116)
at org.apache.log4j.FileAppender.setFile(FileAppender.java:294)
at org.apache.log4j.FileAppender.activateOptions(FileAppender.java:165)
at org.apache.log4j.DailyRollingFileAppender.activateOptions(DailyRollingFileAppender.java:223)
at org.apache.log4j.config.PropertySetter.activate(PropertySetter.java:3 07)
at org.apache.log4j.xml.DOMConfigurator.parseAppender(DOMConfigurator.ja va:295)
at org.apache.log4j.xml.DOMConfigurator.findAppenderByName(DOMConfigurat or.java:176)
at org.apache.log4j.xml.DOMConfigurator.findAppenderByReference(DOMConfi gurator.java:191)
at org.apache.log4j.xml.DOMConfigurator.parseChildrenOfLoggerElement(DOM Configurator.java:523)
at org.apache.log4j.xml.DOMConfigurator.parseRoot(DOMConfigurator.java:4 92)
at org.apache.log4j.xml.DOMConfigurator.parse(DOMConfigurator.java:1001)
at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java :867)
at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java :773)
at org.apache.log4j.helpers.OptionConverter.selectAndConfigure(OptionCon verter.java:483)
at org.apache.log4j.LogManager.<clinit>(LogManager.java:127)
at org.apache.log4j.Logger.getLogger(Logger.java:104)
at pro.cat3.xml.viewer.ProXmlJTreeFrame.main(Unknown Source)
log4j:ERROR Either File or DatePattern options are not set for appender [FILE].

Any clues?

Thanks.
kbisanz
Posts: 280
Joined: Wed Jan 05, 2011 7:02 pm
Location: Omaha NE

Re: how to run binary editor in ADL

Post by kbisanz »

Are you able to do this? :
touch $ADL_HOME/log/xml_editor.log
Kevin Bisanz
Raytheon Company
lucy liu
Posts: 54
Joined: Tue Oct 18, 2011 11:02 am

Re: how to run binary editor in ADL

Post by lucy liu »

Yes, I can. I do have permission for log folder.
But this problem might be related to script folder. I found no permission for that folder.
The problem has been fixed, thank you for your help.
Post Reply