| Summary: | argouml 1.15.6 fails to run as regular user but works as root | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | ville <vzheiska> |
| Component: | Current packages | Assignee: | Java team <java> |
| Status: | RESOLVED FIXED | ||
| Severity: | critical | ||
| Priority: | High | ||
| Version: | unspecified | ||
| Hardware: | x86 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
The reason is that the argouml is being denied permissions of some sort to it's log file in /opt/argouml/argouml.log. Possibly argouml is trying to delete the log file before starting a new session? Seems strange because my user can directly access the log file fine. (Except deleting it) The lastest version 0.16 seems to work fine despite the log file errors. This argouml bug mentions it. http://argouml.tigris.org/servlets/ReadMsg?list=issues&msgNo=14560 You can also possibly configure the log4j logger. See http://logging.apache.org/log4j/docs/manual.html not that I could work out how to. After further investigation it looks as though the ebuild is incorrectly creating /opt/argouml/argouml.log when it really wants to create /opt/argouml/lib/argouml.log and then chmod 666 to this file. Do this as root and this should remove the annoying java exceptions cause by the failure to access the log file. If this solves your problem, feel free to close this bug. Issue resolved in new .16 ebuild |
If I run argouml as a regular user it fails to run while it works nicely when run as root. It fails with: log4j:ERROR setFile(null,true) call failed. java.io.FileNotFoundException: argouml.log (Permission denied) at java.io.FileOutputStream.openAppend(Native Method) at java.io.FileOutputStream.<init>(FileOutputStream.java:177) at java.io.FileOutputStream.<init>(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.config.PropertySetter.setProperties(PropertySetter.java:123) at org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:87) at org.apache.log4j.PropertyConfigurator.parseAppender(PropertyConfigurator.java:645) at org.apache.log4j.PropertyConfigurator.parseCategory(PropertyConfigurator.java:603) at org.apache.log4j.PropertyConfigurator.configureRootCategory(PropertyConfigurator.java:500) at org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:406) at org.apache.log4j.PropertyConfigurator.configure(PropertyConfigurator.java:340) at org.argouml.application.Main.<clinit>(Main.java:555) I do get to see a flashscreen saying: "ArgoUML 1.15.6" and some sort of paper hat and there's a progress bar at bottom saying: "Making Project Browser". Reproducible: Always Steps to Reproduce: 1. emerge argouml 2. as regular user in xterm run the application 3. ??? Actual Results: The program fails to run with the above Java stack trace. Expected Results: The program would work.