Bug#619140: freemind: fails to start: Checking Java Version... forever

2011-05-08 Thread Karl Voit
Current situation (reviewed):

I removed ~/.freemind and started freemind (without any argument) and get:

,
| vk@gary ~2d % freemind
| Checking Java Version...
| java.io.FileNotFoundException: /home/vk/.freemind/auto.properties (No such 
file or directory)
| at java.io.FileInputStream.open(Native Method)
| at java.io.FileInputStream.init(FileInputStream.java:137)
| at 
freemind.main.FreeMindStarter.readUsersPreferences(FreeMindStarter.java:136)
| at freemind.main.FreeMindStarter.main(FreeMindStarter.java:56)
| Panic! Error while loading default properties.
`

Freemind starts and I have no problem(!) to open mindmap files at all.

Then I quit and try it once again. This time, the java.io.FileNotFoundException
from above does not show up and the usual behavior (freemind shows spashscreen
forever doing nothing) happenes again.

Using:
openjdk-6-jdk
openjdk-6-jre
openjdk-6-jre-headless
openjdk-6-jre-lib
freemind
freemind-browser
freemind-doc
freemind-plugins-help
freemind-plugins-script
freemind-plugins-svg

Stefan Denker (ste...@dn-kr.de) wrote:

 I am trying to reproduce this Bug... 

 Just one quick question: You're using OpenJDK, right? And if you do,
 does switching to the Sun-JDK fix it for you? 

,[ removing old openjdk ]
| root@gary ~ # apt-get remove openjdk-6-jdk openjdk-6-jre 
openjdk-6-jre-headless openjdk-6-jre-lib
| Reading package lists... Done
| Building dependency tree
| Reading state information... Done
| The following packages were automatically installed and are no longer 
required:
|   jarwrapper libjericho-html-java fastjar binfmt-support
| Use 'apt-get autoremove' to remove them.
| The following packages will be REMOVED:
|   default-jre default-jre-headless ditaa icedtea-6-jre-cacao openjdk-6-jdk 
openjdk-6-jre openjdk-6-jre-headless openjdk-6-jre-lib
| 0 upgraded, 0 newly installed, 8 to remove and 0 not upgraded.
| After this operation, 125 MB disk space will be freed.
| Do you want to continue [Y/n]?
| [...]
`

,[ installing sun-java6-jdk (and loosing ditaa) ]
| root@gary ~ # agi sun-java6-jdk sun-java6-jre
| sun-java6-jre is already the newest version.
| The following packages were automatically installed and are no longer 
required:
|   jarwrapper libjericho-html-java fastjar binfmt-support
| Use 'apt-get autoremove' to remove them.
| Suggested packages:
|   sun-java6-demo openjdk-6-doc sun-java6-source
| The following NEW packages will be installed:
|   sun-java6-jdk
| 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
| Need to get 20.2 MB of archives.
| After this operation, 62.8 MB of additional disk space will be used.
| Do you want to continue [Y/n]?
`

 This worked for me, I've installed the JDK from Sun and modified
 /usr/bin/freemind: 
 
 --- /usr/bin/freemind 2011-05-07 13:21:55.0 +0200
 +++ /tmp/freemind-old 2011-05-07 13:21:30.0 +0200
 @@ -144,7 +144,7 @@
  if [ -r /usr/lib/java-wrappers/java-wrappers.sh ]
  then # the Debian method
   . /usr/lib/java-wrappers/java-wrappers.sh
 - require_java_runtime openjdk sun 
 + require_java_runtime sun 
  else
   findjava
   if [ $? -ne 0 ]

I applied this patch to my /usr/bin/freemind as well.

,[ re-test scenario ]
| vk@gary ~ % rm -rf ~/.freemind
| vk@gary ~ % freemind
| Checking Java Version...
| java.io.FileNotFoundException: /home/vk/.freemind/auto.properties (No such 
file or directory)
| at java.io.FileInputStream.open(Native Method)
| at java.io.FileInputStream.init(FileInputStream.java:106)
| at 
freemind.main.FreeMindStarter.readUsersPreferences(FreeMindStarter.java:136)
| at freemind.main.FreeMindStarter.main(FreeMindStarter.java:56)
| Panic! Error while loading default properties.
| freemind  8.62s user 0.61s system 39% cpu 23.320 total
| vk@gary ~ % freemind
| Checking Java Version...
| freemind  8.58s user 0.48s system 32% cpu 28.218 total
| vk@gary ~ % freemind
| Checking Java Version...
| freemind  6.57s user 0.44s system 82% cpu 8.528 total
| vk@gary ~ %
`

Once again: only the first start (without ~/.freemind) gives the
java.io.FileNotFoundException - well I guess that is on purpose :-)

But this time: each following start of freemind works(!) and I can open (old)
mindmaps without problems. 

 This may just be a Bug in OpenJDK we're dealing with. 

Seems so. At least with SUN JDK it works.

-- 
Karl VOIT



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#619140: freemind: fails to start: Checking Java Version... forever

2011-05-07 Thread Stefan Denker
I am trying to reproduce this Bug... 

Just one quick question: You're using OpenJDK, right? And if you do,
does switching to the Sun-JDK fix it for you? 

This worked for me, I've installed the JDK from Sun and modified
/usr/bin/freemind: 

--- /usr/bin/freemind   2011-05-07 13:21:55.0 +0200
+++ /tmp/freemind-old   2011-05-07 13:21:30.0 +0200
@@ -144,7 +144,7 @@
 if [ -r /usr/lib/java-wrappers/java-wrappers.sh ]
 then # the Debian method
. /usr/lib/java-wrappers/java-wrappers.sh
-   require_java_runtime openjdk sun 
+   require_java_runtime sun 
 else
findjava
if [ $? -ne 0 ]


This may just be a Bug in OpenJDK we're dealing with. 

Stefan

-- 
Nichts kann rueckgaengig gemacht werden, was einmal gedacht wurde.
 Friedrich Duerrenmatt, Die Physiker



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#619140: freemind: fails to start: Checking Java Version... forever

2011-03-22 Thread Eric Lavarde

Hi,

On 21/03/11 17:19, Karl Voit wrote:

Hilko Bengen (ben...@debian.org) wrote:


So freemind asks for converting old config file format and asks for
converting my last opened mindmap but then does not start at all.


Uh, this is bad. :-(

It is even worse, FreeMind 0.9.0 (final version) doesn't work better.


I removed ~/.freemind completely and tried to open one of my former
mindmaps. So clean config, probably old mm-file-format.
Yes, 0.8.1 format, that's the problem, and that sounds definitely like 
an upstream bug.



Interesting fact: freemind asks for converting the document format *after* the
panic message was written to stdout.
Ignore the panic message, it's not the problem, I also get it if I call 
FreeMind without any file.




I also attached my test mm file.

Thanks, very helpful.

If I call FreeMind without any file, and then open the file from the 
GUI, I get a more explicit error (see attached file).


OK, 2 things:
1. I will try to ping upstream.
2. I guess the problem is caused originally by
java.lang.RuntimeException: Use of the extension function 
'xalan://freemind.main.HtmlTools:replaceSpacesToNonbreakableSpaces' is 
not allowed when the secure processing feature is set to true.
Does someone know what it actually means? What is 'secure processing 
feature'? Is it something of the program, or something of the 
(Java/Xalan) environment?


Cheers, Eric


log.0.gz
Description: GNU Zip compressed data


Bug#619140: freemind: fails to start: Checking Java Version... forever

2011-03-21 Thread Karl Voit
Package: freemind
Version: 0.9.0~rc7+dfsg-1
Severity: grave
Tags: upstream
Justification: renders package unusable


Debian Squeeze - most current updates done.

,[ strace freemind ]
| [...]
| stat64(/lib/freemind.jar, 0xbf8916a0) = -1 ENOENT (No such file or
| directory)
| stat64(/usr/share/freemind/lib/freemind.jar, {st_mode=S_IFREG|0644,
| st_size=2342212, ...}) = 0
| stat64(/home/vk/.freemind/patterns.xml, {st_mode=S_IFREG|0644,
| st_size=2801, ...}) = 0
| clone(child_stack=0,
| flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD,
| child_tidptr=0xb75c2938) = 27971
| wait4(-1, [{WIFEXITED(s)  WEXITSTATUS(s) == 1}], 0, NULL) = 27971
| --- SIGCHLD (Child exited) @ 0 (0) ---
| clone(child_stack=0,
| flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD,
| child_tidptr=0xb75c2938) = 27974
| wait4(-1, Checking Java Version...
`

So freemind asks for converting old config file format and asks for
converting my last opened mindmap but then does not start at all.


-- System Information:
Debian Release: 6.0.1
  APT prefers stable
  APT policy: (996, 'stable')
Architecture: i386 (i686)

Kernel: Linux 2.6.32-5-686 (SMP w/2 CPU cores)
Locale: LANG=de_AT.utf8, LC_CTYPE=de_AT.utf8 (charmap=UTF-8) (ignored: LC_ALL 
set to en_US.utf8)
Shell: /bin/sh linked to /bin/dash

Versions of packages freemind depends on:
ii  libcommons-lang-java2.4-4Extension of the java.lang package
ii  libjgoodies-forms-java  1.3.0-1  Framework to lay out and implement
ii  libjibx1.1-java 1.1.6a-1 Framework for binding XML data to 
ii  openjdk-6-jre   6b18-1.8.3-2 OpenJDK Java runtime, using Hotspo
ii  simplyhtml  0.13.1-1 Java word processor based on HTML 

Versions of packages freemind recommends:
ii  freemind-doc 0.9.0~rc7+dfsg-1Documentation for FreeMind
ii  java-wrappers0.1.16  wrappers for java executables
ii  xdg-utils1.0.2+cvs20100307-2 desktop integration utilities from

Versions of packages freemind suggests:
ii  freemind-browser0.9.0~rc7+dfsg-1 Java Applet for publishing Mindmap
ii  freemind-plugins-help   0.9.0~rc7+dfsg-1 Java Plugin for FreeMind to show a
ii  freemind-plugins-script 0.9.0~rc7+dfsg-1 Java Plugin for FreeMind to add sc
ii  freemind-plugins-svg0.9.0~rc7+dfsg-1 Java Plugin for FreeMind to export

-- no debconf information



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/2011-03-21t16-17...@devnull.karl-voit.at



Bug#619140: freemind: fails to start: Checking Java Version... forever

2011-03-21 Thread Karl Voit
Hilko Bengen (ben...@debian.org) wrote:

  So freemind asks for converting old config file format and asks for
  converting my last opened mindmap but then does not start at all.
 
 Uh, this is bad. :-(
 
 Is the bug reproducable using only the old config file and without the
 contents of the last opened mindmap?

While your email was written, I submitted further information too
:-)

Here is additional analysis:

I removed ~/.freemind completely and tried to open one of my former
mindmaps. So clean config, probably old mm-file-format.

Then I get:

,
| vk@gary ~2d % freemind test.mm
| Checking Java Version...
| java.io.FileNotFoundException: /home/vk/.freemind/auto.properties (No such 
file or directory)
| at java.io.FileInputStream.open(Native Method)
| at java.io.FileInputStream.init(FileInputStream.java:137)
| at 
freemind.main.FreeMindStarter.readUsersPreferences(FreeMindStarter.java:136)
| at freemind.main.FreeMindStarter.main(FreeMindStarter.java:56)
| Panic! Error while loading default properties.
| [and freemind loads forever]
`

Interesting fact: freemind asks for converting the document format *after* the
panic message was written to stdout.

I also attached my test mm file.

-- 
Karl VOIT


test.mm
Description: application/freemind


Bug#619140: freemind: fails to start: Checking Java Version... forever

2011-03-21 Thread Hilko Bengen
tag 619140 +moreinfo
thank you

 So freemind asks for converting old config file format and asks for
 converting my last opened mindmap but then does not start at all.

Uh, this is bad. :-(

Is the bug reproducable using only the old config file and without the
contents of the last opened mindmap?

Cheers,
-Hilko



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org