antonleliuk / gwt-examples

Automatically exported from code.google.com/p/gwt-examples
0 stars 0 forks source link

SHA1 not working for long strings in gwt-hosted-mode #8

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. use gwt-hosted-mode
2. try to sha1 a string like: "abcdefgh"

What is the expected output? What do you see instead?
[ERROR] Uncaught exception escaped
java.lang.ArrayIndexOutOfBoundsException: 2
    at de.fraunhofer.fokus.inv.client.sha1.core_sha1(sha1.java:112)
    at de.fraunhofer.fokus.inv.client.sha1.hex_sha1(sha1.java:56)
    at de.fraunhofer.fokus.inv.client.Inventory$11.onClick(Inventory.java:425)
    at
com.google.gwt.user.client.ui.ClickListenerCollection.fireClick(ClickListenerCol
lection.java:34)
    at
com.google.gwt.user.client.ui.FocusWidget.onBrowserEvent(FocusWidget.java:102)
    at com.google.gwt.user.client.DOM.dispatchEventImpl(DOM.java:1308)
    at com.google.gwt.user.client.DOM.dispatchEventAndCatch(DOM.java:1287)
    at com.google.gwt.user.client.DOM.dispatchEvent(DOM.java:1255)
    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 com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
    at com.google.gwt.dev.shell.moz.MethodDispatch.invoke(MethodDispatch.java:80)
    at org.eclipse.swt.internal.gtk.OS._gtk_main_do_event(Native Method)
    at org.eclipse.swt.internal.gtk.OS.gtk_main_do_event(OS.java:5273)
    at org.eclipse.swt.widgets.Display.eventProc(Display.java:1135)
    at org.eclipse.swt.internal.gtk.OS._g_main_context_iteration(Native Method)
    [ERROR] Uncaught exception escaped
java.lang.ArrayIndexOutOfBoundsException: 2
    at de.fraunhofer.fokus.inv.client.sha1.core_sha1(sha1.java:112)
    at de.fraunhofer.fokus.inv.client.sha1.hex_sha1(sha1.java:56)
    at de.fraunhofer.fokus.inv.client.Inventory$11.onClick(Inventory.java:425)
    at
com.google.gwt.user.client.ui.ClickListenerCollection.fireClick(ClickListenerCol
lection.java:34)
    at
com.google.gwt.user.client.ui.FocusWidget.onBrowserEvent(FocusWidget.java:102)
    at com.google.gwt.user.client.DOM.dispatchEventImpl(DOM.java:1308)
    at com.google.gwt.user.client.DOM.dispatchEventAndCatch(DOM.java:1287)
    at com.google.gwt.user.client.DOM.dispatchEvent(DOM.java:1255)
    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 com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
    at com.google.gwt.dev.shell.moz.MethodDispatch.invoke(MethodDispatch.java:80)
    at org.eclipse.swt.internal.gtk.OS._gtk_main_do_event(Native Method)
    at org.eclipse.swt.internal.gtk.OS.gtk_main_do_event(OS.java:5273)
    at org.eclipse.swt.widgets.Display.eventProc(Display.java:1135)
    at org.eclipse.swt.internal.gtk.OS._g_main_context_iteration(Native Method)
    at org.eclipse.swt.internal.gtk.OS.g_main_context_iteration(OS.java:1428)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2840)
    at com.google.gwt.dev.GWTShell.pumpEventLoop(GWTShell.java:720)
    at com.google.gwt.dev.GWTShell.run(GWTShell.java:593)
    at com.google.gwt.dev.GWTShell.main(GWTShell.java:357)at
org.eclipse.swt.internal.gtk.OS.g_main_context_iteration(OS.java:1428)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2840)
    at com.google.gwt.dev.GWTShell.pumpEventLoop(GWTShell.java:720)
    at com.google.gwt.dev.GWTShell.run(GWTShell.java:593)
    at com.google.gwt.dev.GWTShell.main(GWTShell.java:357)

What version of the product are you using? On what operating system?
Seems to run fine on jetty/firefox3.0 ...

Original issue reported on code.google.com by noack.mi...@googlemail.com on 1 Apr 2009 at 6:03

GoogleCodeExporter commented 9 years ago
changing to googles login system

Original comment by branflak...@gmail.com on 16 Feb 2011 at 5:19