More SEQUENCE posts
September 16, 2003
New version of SEQUENCE
An initial version of a new release that supports an alternative syntax for defining sequence diagrams. The sequence.jar file can be executed by typing java -jar sequence.jar. The sequence_src.jar file contains the source code. The parser for the new syntax is implemented using javacc.
Comments
First, congratulations on the outstanding tool. Really awesome.
How about extending the syntax to support async messages? This would be really handy, specially if jAdvise makes use of it. For example, it could be extended to recognized special calls like Thread.start() as making an async call.
Or you could assume (or make configurable) method calls are async by default, and use the presence of a return value as a hint that it is actually a sync call.
Thanks,
Nascif
Posted by: Async calls on November 20, 2003 02:54 PM
Another idea: you could make available an Ant task or some other form of command-line version to allow this tool to be called from a build system like Ant or Make.
One use of that would be to make the sequence diagrams part of the JavaDoc documentation; the .png files would be automatically generated from the diagram "script" (any idea for a standard extension?) and the script would be kept under source control with the rest of the code.
Regards,
Nascif
Posted by: Nascif on November 20, 2003 03:37 PM
By the way, when I launch SEQUENCE (java -jar sequence.jar) I get the following error message:
log4j:ERROR setFile(null,true) call failed.
java.io.FileNotFoundException: logs/debug.log (No such file or directory)
at java.io.FileOutputStream.openAppend(Native Method)
at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:602)
at org.apache.log4j.helpers.OptionConverter.selectAndConfigure(OptionConverter.java:460)
at org.apache.log4j.LogManager.(LogManager.java:113)
at org.apache.log4j.Logger.getLogger(Logger.java:94)
at com.zanthan.sequence.Main.(Main.java:32)
Any ideas?
Posted by: Nascif on November 21, 2003 10:59 AM
Nascif, thanks for your comments. I hope to get round to making the changes you suggest fairly soon. I've actually fixed the problem you mention in your last comment. Log4j by default will only create the log files you want to log to, not the directories those files should be in. Simple to fix by a little overriding though so I've done so.
Posted by: Alex on November 25, 2003 08:02 PM
Hi Alex,
Good work. Recently I was thinking of writing such a tool and decided either XML(Complicated) or a tabbed format will be my input for my tool. And I stumbled onto your stuff. I made few changes and got a tabbed format working very well. *it was easy and speaks to how you have done the coding*.
Today, I noticed that the code is vastly different, a) headless support b) additional parser (similar to what I had implemented, but yours is bit more complicated). I have again incorporated my changes again to the 0.6 code. I want to give it back to you. Are you interested? Let me know. I can send it to you. Thanks.
r_sudharsan#at#yahoo#dot#com
Posted by: Sudhan on December 18, 2003 12:56 AM
log4j:ERROR setFile(null,true) call failed.
java.io.FileNotFoundException: ..\logs\RISBackend.log (The system cannot find the path specified)
at java.io.FileOutputStream.openAppend(Native Method)
at java.io.FileOutputStream.(FileOutputStream.java:177)
at java.io.FileOutputStream.(FileOutputStream.java:102)
at org.apache.log4j.FileAppender.setFile(FileAppender.java:272)
at org.apache.log4j.RollingFileAppender.setFile(RollingFileAppender.java:156)
at org.apache.log4j.FileAppender.activateOptions(FileAppender.java:151)
at org.apache.log4j.config.PropertySetter.activate(PropertySetter.java:247)
at org.apache.log4j.xml.DOMConfigurator.parseAppender(DOMConfigurator.java:210)
at org.apache.log4j.xml.DOMConfigurator.findAppenderByName(DOMConfigurator.java:140)
at org.apache.log4j.xml.DOMConfigurator.findAppenderByReference(DOMConfigurator.java:153)
at org.apache.log4j.xml.DOMConfigurator.parseChildrenOfLoggerElement(DOMConfigurator.java:415)
at org.apache.log4j.xml.DOMConfigurator.parseCategory(DOMConfigurator.java:335)
at org.apache.log4j.xml.DOMConfigurator.parse(DOMConfigurator.java:781)
at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:666)
at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:616)
at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:602)
at org.apache.log4j.helpers.OptionConverter.selectAndConfigure(OptionConverter.java:460)
at org.apache.log4j.LogManager.(LogManager.java:113)
at org.apache.log4j.Category.getInstance(Category.java:514)
at com.rittenhouse.RIS.Main.startLogger(Main.java:1721)
at com.rittenhouse.RIS.Main.(Main.java:203)
at com.rittenhouse.RIS.Main.main(Main.java:216)
i need the solution as soon as possible..if any one has solution for this..plz help me
Posted by: ranj on July 31, 2006 02:34 AM
Hello,
I have the same problem with the following message error:
log4j:ERROR setFile(null,true) call failed. java.io.FileNotFoundException: logs/debug.log (No such file or directory)
How can I resolve it?
Thank you.
Posted by: aymen on November 15, 2006 02:27 AM
Post a comment