dkulagin / babiloo

Automatically exported from code.google.com/p/babiloo
0 stars 0 forks source link

sun-java6-jre installed but get error "Exception in thread "main" java..." #5

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. on Ubuntu 7.04, 
     $ dpkg -L sun-java6-jre
     [cut]
     /usr/lib/jvm/java-6-sun-1.6.0.00
     [cut]
2. download babiloo.jar
3. java -jar babiloo.jar

What is the expected output? What do you see instead?
Expected working babiloo.  Got these errors:
madm@vice-h0:~/bin$ java -jar babiloo.jar 
Exception in thread "main" java.lang.UnsupportedClassVersionError: Bad
version number in .class file
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
        at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
        at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
        at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)

What version of the product are you using? On what operating system?
that available from this site's download link, with no version shown, at
AD.2007.Oct.04.Thu.09h00.ICT

Please provide any additional information below.
Lucked out while writing this.  Nautilus' right-click drop-down for the
babiloo.jar lists two versions of Sun JRE, 5.0 and 6.0.  ($ls -l
/etc/alternatives/java shows 5.0 is still the default.)  

Running 6.0 from nautilus works.  $ps aux shows babiloo running as:
  /usr/lib/jvm/java-6-sun-1.6.0.00/bin/java -jar /home/madm/bin/babiloo.jar

That implies that command line can be used to run babiloo.jar -- which
suggests /etc/alternatives/java might be best updated, somehow.

Original issue reported on code.google.com by admarsh...@gmail.com on 4 Oct 2007 at 2:38

GoogleCodeExporter commented 8 years ago
What next?

Upon trying to load vi_en.zip, got an uncopiable(!) error window suggesting i 
send
this file to capiscuas@gmail.com: 
~/.jalingo/log/jalingo-error-20071004-094038.log.  

That file contains this:

JaLingo Internal Error Log
==========================
Version  : 0.6.0
Exception: ...
java.lang.IndexOutOfBoundsException
        at java.nio.Buffer.checkBounds(Buffer.java:530)
        at java.nio.ByteBuffer.get(ByteBuffer.java:649)
        at java.nio.DirectByteBuffer.get(DirectByteBuffer.java:233)
        at ja.centre.util.io.linereader.LineReader.readLine(LineReader.java:122)
        at
ja.lingo.engine.reader.util.ObservableLineReader.readLine(ObservableLineReader.j
ava:55)
        at ja.lingo.readers.dsl.DslParser.buildIndexFromCustomFormat(DslParser.java:68)
        at ja.lingo.readers.dsl.DslParser.access$0(DslParser.java:59)
        at ja.lingo.readers.dsl.DslParser$1.buildIndexFromCustomFormat(DslParser.java:55)
        at ja.lingo.engine.reader.util.TextualHelper.buildIndex(TextualHelper.java:64)
        at ja.lingo.readers.dsl.DslParser.buildIndex(DslParser.java:53)
        at ja.lingo.engine.Engine.buildIndex(Engine.java:410)
        at ja.lingo.engine.Engine.addDictionary(Engine.java:167)
        at
ja.lingo.application.gui.main.settings.dictionaries.add.AddPanel$2.run(AddPanel.
java:314)
        at java.lang.Thread.run(Thread.java:619)

Original comment by admarsh...@gmail.com on 4 Oct 2007 at 2:46

GoogleCodeExporter commented 8 years ago
Tried the alternative suggestion, reboot babiloo.  Did so from the command line 
and
got the following, which is followed by the contents of the error log file 
generated
when vi_en.zip loading was again attempted.

madm@vice-h0:~/bin$ /usr/lib/jvm/java-6-sun-1.6.0.00/bin/java -jar
/home/madm/bin/babiloo.jar
I:[concurrent.TaskSequence            ] Running task "show splash"
I:[concurrent.TaskSequence            ] Running task "initialize skeleton"
I:[model.Skeleton                     ] Initializing engine...
I:[util.EngineFiles                   ] Cleaning temp directory
"/home/madm/.jalingo/temp"
I:[engine.EngineModelManager          ] Validating indexes...
I:[engine.EngineModelManager          ] Invalidating: there are no dictionaries
I:[engine.EngineModelManager          ] Validating indexes: 0 removed, 0 dirty.
I:[engine.EngineModelManager          ] Validating indexes: done within 0.0040 
seconds
I:[engine.Engine                      ] Compiling ...
I:[engine.Engine                      ] Closing not needed indexes...
I:[engine.Engine                      ] Reading merged index...
I:[nio.MappedByteBufferWrapper        ] Opening
"/home/madm/.jalingo/cache/merged.index"...
I:[engine.Engine                      ] Reading merged index: done within 0.082 
seconds
I:[engine.Engine                      ] Reading search index...
I:[nio.MappedByteBufferWrapper        ] Opening
"/home/madm/.jalingo/cache/search.index"...
I:[searchindex.SearchIndex            ] Count of memory nodes: 1 (within deep 
of 3)
I:[searchindex.SearchIndex            ] Count of lazy-loading nodes: 0
I:[engine.Engine                      ] Reading search index: done within 0.014 
seconds
I:[engine.Engine                      ] Compiling: done
I:[model.Skeleton                     ] Initializing engine: done within 0.751 
seconds
I:[model.Skeleton                     ] Initializing UI: model and history...
I:[model.Skeleton                     ] Initializing UI...
I:[model.Skeleton                     ] Initializing UI: actions...
I:[model.Skeleton                     ] Initializing UI: drop handler...
I:[model.Skeleton                     ] Initializing UI: main...
I:[model.Skeleton                     ] Initializing UI: settings...
I:[model.Skeleton                     ] Initializing UI: other...
I:[model.Skeleton                     ] Initializing UI: done within 3.58 
seconds
I:[model.Skeleton                     ] Updating UI...
I:[model.Skeleton                     ] Updating UI: done within 0.0040 seconds
I:[concurrent.TaskSequence            ] Running task "hide splash, show 
skeleton"
I:[application.JaLingo                ] Started within 14.109 seconds
I:[engine.Engine                      ] Adding 
"/home/madm/public_html/dls/vi_en.zip"...
I:[nio.MappedByteBufferWrapper        ] Opening 
"/home/madm/public_html/dls/vi_en.zip"...
I:[builder.BuilderFormat              ] Builder format closed
I:[nio.MappedByteBufferWrapper        ] Closing 
"/home/madm/public_html/dls/vi_en.zip"...
S:[add.AddPanel$2                     ] Throwable caught while parsing
java.lang.IndexOutOfBoundsException
        at java.nio.Buffer.checkBounds(Buffer.java:530)
        at java.nio.ByteBuffer.get(ByteBuffer.java:649)
        at java.nio.DirectByteBuffer.get(DirectByteBuffer.java:233)
        at ja.centre.util.io.linereader.LineReader.readLine(LineReader.java:122)
        at
ja.lingo.engine.reader.util.ObservableLineReader.readLine(ObservableLineReader.j
ava:55)
        at ja.lingo.readers.dsl.DslParser.buildIndexFromCustomFormat(DslParser.java:68)
        at ja.lingo.readers.dsl.DslParser.access$0(DslParser.java:59)
        at ja.lingo.readers.dsl.DslParser$1.buildIndexFromCustomFormat(DslParser.java:55)
        at ja.lingo.engine.reader.util.TextualHelper.buildIndex(TextualHelper.java:64)
        at ja.lingo.readers.dsl.DslParser.buildIndex(DslParser.java:53)
        at ja.lingo.engine.Engine.buildIndex(Engine.java:410)
        at ja.lingo.engine.Engine.addDictionary(Engine.java:167)
        at
ja.lingo.application.gui.main.settings.dictionaries.add.AddPanel$2.run(AddPanel.
java:314)
        at java.lang.Thread.run(Thread.java:619)
S:[messages.ErrorDumper               ] Internal error occured
java.lang.IndexOutOfBoundsException
        at java.nio.Buffer.checkBounds(Buffer.java:530)
        at java.nio.ByteBuffer.get(ByteBuffer.java:649)
        at java.nio.DirectByteBuffer.get(DirectByteBuffer.java:233)
        at ja.centre.util.io.linereader.LineReader.readLine(LineReader.java:122)
        at
ja.lingo.engine.reader.util.ObservableLineReader.readLine(ObservableLineReader.j
ava:55)
        at ja.lingo.readers.dsl.DslParser.buildIndexFromCustomFormat(DslParser.java:68)
        at ja.lingo.readers.dsl.DslParser.access$0(DslParser.java:59)
        at ja.lingo.readers.dsl.DslParser$1.buildIndexFromCustomFormat(DslParser.java:55)
        at ja.lingo.engine.reader.util.TextualHelper.buildIndex(TextualHelper.java:64)
        at ja.lingo.readers.dsl.DslParser.buildIndex(DslParser.java:53)
        at ja.lingo.engine.Engine.buildIndex(Engine.java:410)
        at ja.lingo.engine.Engine.addDictionary(Engine.java:167)
        at
ja.lingo.application.gui.main.settings.dictionaries.add.AddPanel$2.run(AddPanel.
java:314)
        at java.lang.Thread.run(Thread.java:619)
I:[searchindex.BaseSearchIndex        ] Looking for:
"/home/madm/public_html/dls/vi_en.zip"
Exception in thread "AWT-EventQueue-0" 
java.lang.reflect.UndeclaredThrowableException
        at $Proxy9.insertUpdate(Unknown Source)
        at javax.swing.text.AbstractDocument.fireInsertUpdate(AbstractDocument.java:185)
        at
javax.swing.text.AbstractDocument.handleInsertString(AbstractDocument.java:734)
        at javax.swing.text.AbstractDocument.insertString(AbstractDocument.java:693)
        at javax.swing.text.PlainDocument.insertString(PlainDocument.java:114)
        at javax.swing.text.AbstractDocument.replace(AbstractDocument.java:655)
        at javax.swing.text.JTextComponent.setText(JTextComponent.java:1693)
        at ja.lingo.application.util.Components$2.setText(Components.java:134)
        at
ja.lingo.application.gui.main.navigator.NavigatorGui.setSearchText(NavigatorGui.
java:255)
        at
ja.lingo.application.gui.main.navigator.NavigatorGui.navigate(NavigatorGui.java:
304)
        at
ja.lingo.application.gui.main.navigator.NavigatorGui.navigateAndTranslate(Naviga
torGui.java:308)
        at
ja.lingo.application.gui.main.navigator.NavigatorGui.access$4(NavigatorGui.java:
307)
        at
ja.lingo.application.gui.main.navigator.NavigatorGui$2.navigateAndTranslate(Navi
gatorGui.java:121)
        at ja.lingo.application.model.Model.navigateAndTranslate(Model.java:170)
        at
ja.lingo.application.gui.actions.PasteAndTranslateAction.actionPerformed(PasteAn
dTranslateAction.java:51)
        at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
        at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
        at
javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
        at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
        at
javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.jav
a:236)
        at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:272)
        at java.awt.Component.processMouseEvent(Component.java:6038)
        at javax.swing.JComponent.processMouseEvent(JComponent.java:3260)
        at java.awt.Component.processEvent(Component.java:5803)
        at java.awt.Container.processEvent(Container.java:2058)
        at java.awt.Component.dispatchEventImpl(Component.java:4410)
        at java.awt.Container.dispatchEventImpl(Container.java:2116)
        at java.awt.Component.dispatchEvent(Component.java:4240)
        at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4322)
        at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3986)
        at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3916)
        at java.awt.Container.dispatchEventImpl(Container.java:2102)
        at java.awt.Window.dispatchEventImpl(Window.java:2429)
        at java.awt.Component.dispatchEvent(Component.java:4240)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
        at
java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273
)
        at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
        at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173
)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)
Caused by: ja.centre.gui.actionbinder.InvokerException: Calling method
"onDocumentChanged"(...) of instance of class
"ja.lingo.application.gui.main.navigator.NavigatorGui"
        at
ja.centre.gui.actionbinder.Invokers$ActionMethodInvoker.invoke(Invokers.java:64)
        at
ja.centre.gui.actionbinder.Builder$MutableInvocationHandler.invoke(Builder.java:
99)
        ... 41 more
Caused by: java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.jav
a:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at
ja.centre.gui.actionbinder.Invokers$ActionMethodInvoker.invoke(Invokers.java:60)
        ... 42 more
Caused by: java.lang.IndexOutOfBoundsException
        at java.nio.Buffer.checkIndex(Buffer.java:514)
        at java.nio.DirectIntBufferS.get(DirectIntBufferS.java:209)
        at ja.centre.util.io.intio.IntBufferIntReader.get(IntBufferIntReader.java:37)
        at
ja.lingo.engine.mergedindex.ChannelMergedIndex.getArticleTitle(ChannelMergedInde
x.java:120)
        at ja.lingo.engine.Finder.getArticleTitle(Finder.java:71)
        at ja.lingo.engine.Finder.indexOfFirstLike(Finder.java:86)
        at
ja.lingo.application.gui.main.navigator.NavigatorGui.onDocumentChanged(Navigator
Gui.java:168)
        ... 47 more
I:[model.Model                        ] Saving preferences...
I:[model.Model                        ] Closng dictionary engine...
I:[mergedindex.ChannelMergedIndex     ] Closing
"/home/madm/.jalingo/cache/merged.index"...
I:[nio.MappedByteBufferWrapper        ] Closing
"/home/madm/.jalingo/cache/merged.index"...
I:[nio.MappedByteBufferWrapper        ] Closing
"/home/madm/.jalingo/cache/search.index"...
I:[engine.Engine                      ] Closing indexes...
I:[util.EngineFiles                   ] Cleaning temp directory
"/home/madm/.jalingo/temp"
I:[model.Model                        ] Disposal completed
madm@vice-h0:~/bin$ 

madm@vice-h0:~/bin$ ls -ltr ~/.jalingo/log/
total 12
-rw-r--r-- 1 madm madm 1068 2007-10-04 09:40 jalingo-error-20071004-094038.log
-rw-r--r-- 1 madm madm 1068 2007-10-04 10:03 jalingo-error-20071004-100355.log
-rw-r--r-- 1 madm madm 1068 2007-10-04 10:04 jalingo-error-20071004-100441.log
madm@vice-h0:~/bin$ 

Attempted to load vi_en.zip.

madm@vice-h0:~/bin$ cat ~/.jalingo/log/jalingo-error-20071004-100441.log
JaLingo Internal Error Log
==========================
Version  : 0.6.0
Exception: ...
java.lang.IndexOutOfBoundsException
        at java.nio.Buffer.checkBounds(Buffer.java:530)
        at java.nio.ByteBuffer.get(ByteBuffer.java:649)
        at java.nio.DirectByteBuffer.get(DirectByteBuffer.java:233)
        at ja.centre.util.io.linereader.LineReader.readLine(LineReader.java:122)
        at
ja.lingo.engine.reader.util.ObservableLineReader.readLine(ObservableLineReader.j
ava:55)
        at ja.lingo.readers.dsl.DslParser.buildIndexFromCustomFormat(DslParser.java:68)
        at ja.lingo.readers.dsl.DslParser.access$0(DslParser.java:59)
        at ja.lingo.readers.dsl.DslParser$1.buildIndexFromCustomFormat(DslParser.java:55)
        at ja.lingo.engine.reader.util.TextualHelper.buildIndex(TextualHelper.java:64)
        at ja.lingo.readers.dsl.DslParser.buildIndex(DslParser.java:53)
        at ja.lingo.engine.Engine.buildIndex(Engine.java:410)
        at ja.lingo.engine.Engine.addDictionary(Engine.java:167)
        at
ja.lingo.application.gui.main.settings.dictionaries.add.AddPanel$2.run(AddPanel.
java:314)
        at java.lang.Thread.run(Thread.java:619)
madm@vice-h0:~/bin$ cat ~/.jalingo/log/jalingo-error-20071004-100355.log
JaLingo Internal Error Log
==========================
Version  : 0.6.0
Exception: ...
java.lang.IndexOutOfBoundsException
        at java.nio.Buffer.checkBounds(Buffer.java:530)
        at java.nio.ByteBuffer.get(ByteBuffer.java:649)
        at java.nio.DirectByteBuffer.get(DirectByteBuffer.java:233)
        at ja.centre.util.io.linereader.LineReader.readLine(LineReader.java:122)
        at
ja.lingo.engine.reader.util.ObservableLineReader.readLine(ObservableLineReader.j
ava:55)
        at ja.lingo.readers.dsl.DslParser.buildIndexFromCustomFormat(DslParser.java:68)
        at ja.lingo.readers.dsl.DslParser.access$0(DslParser.java:59)
        at ja.lingo.readers.dsl.DslParser$1.buildIndexFromCustomFormat(DslParser.java:55)
        at ja.lingo.engine.reader.util.TextualHelper.buildIndex(TextualHelper.java:64)
        at ja.lingo.readers.dsl.DslParser.buildIndex(DslParser.java:53)
        at ja.lingo.engine.Engine.buildIndex(Engine.java:410)
        at ja.lingo.engine.Engine.addDictionary(Engine.java:167)
        at
ja.lingo.application.gui.main.settings.dictionaries.add.AddPanel$2.run(AddPanel.
java:314)
        at java.lang.Thread.run(Thread.java:619)
madm@vice-h0:~/bin$ 

Original comment by admarsh...@gmail.com on 4 Oct 2007 at 3:09

GoogleCodeExporter commented 8 years ago
I used JDK 6.0 to compile that .jar, maybe that's the reason you got problems 
running
with your JRE 5.0. I'll try to compile with 5.0 and create also some Native 
Code so
people don't need to install the JAVA JRE anymore.

Original comment by capiscuas@gmail.com on 4 Oct 2007 at 3:16

GoogleCodeExporter commented 8 years ago
That's not problem anymore, Ivan, at least not for me. The problem is now with
loading the vi_en.zip dictionary. 

As mentioned earlier, above, i've got both java5 and java6 installed. The 
initial
problem was that java5 was being used by default, as set in /etc/alternatives. 
Specifically running java6 from the command-line apparently fixed that. 

But, once babiloo's gui successfully loaded, i couldn't load the vi_en.zip 
file.  The
last "JaLingo Internal Error Log" files immediately above were output during an
attempt to load vi_en.zip via the babiloo gui. 

Original comment by admarsh...@gmail.com on 5 Oct 2007 at 2:53

GoogleCodeExporter commented 8 years ago
The solution was simply this: one has to EXTRACT the dct file from the zip 
archive
it's downloaded in before trying add it to baliboo. 

I mindlessly followed the installation instructions step-by-steap as written  
and
simply downloaded the dictionaries then tried to add them without unzipping 
them first.  

Once unzipped, there was a bit of trouble choosing which file type to use for 
the
import as the default is not dct, but selecting "All files" and double clicking 
did
the trick. 

What a hassle missing such a simple step can make!

Original comment by admarsh...@gmail.com on 14 Oct 2007 at 4:34