MHL3060 / bentux

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

image uploader #53

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I seem to get problem when uploading an image.

1. go to http://localhost:8080/imageform.html
2. enter the required info.
3. submit
4. crashes

not sure if you have the same problem. please confirm?

[tux] DEBUG [btpool0-12] ImageFormController.processFormSubmission(266) | No 
errors -> 
processing submit
2010-05-28 18:48:39.799::WARN:  Nested in javax.servlet.ServletException: 
org.springframework.web.util.NestedServletException: Handler processing failed; 
nested 
exception is java.lang.UnsupportedClassVersionError: Bad version number in 
.class file:
org.springframework.web.util.NestedServletException: Handler processing failed; 
nested 
exception is java.lang.UnsupportedClassVersionError: Bad version number in 
.class file

Original issue reported on code.google.com by lhkh...@gmail.com on 28 May 2010 at 10:51

GoogleCodeExporter commented 9 years ago
The exception indicates your java classes are higher version than the jvm.

Do the following

clean up the class
mvn clean or use eclipse to clean your project
mvn jetty:run or run the project again inside of eclipse

Original comment by benli3...@gmail.com on 28 May 2010 at 3:15

GoogleCodeExporter commented 9 years ago
Hi,  I did the mvn clean, and ran the project (run:new, not skipping test) 
again. The app failed to run property. I have attached the terminal log, 
could you please let me know if I have done something wrong. And also, i ran 
the skip test, even i can run the app but the admin password and 
everything seems to get screwed up not sure what happened. Thanks

[INFO] Compiling 1 source file to 
/Users/lhkhome/Desktop/WebDev/app/target/test-classes
[ERROR] 

Mojo: 

    org.apache.maven.plugins:maven-compiler-plugin:2.0.2:testCompile

FAILED for project: 

    local.tux:app:war:1.0-SNAPSHOT

Reason:

/Users/lhkhome/Desktop/WebDev/app/src/test/java/local/tux/AppTest.java:[8,38] 
cannot find symbol
symbol  : method getHello()
location: class local.tux.AppUtils

[INFO] ------------------------------------------------------------------------
[INFO] For more information, run with the -e flag
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILED
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 20 seconds
[INFO] Finished at: Sun May 30 16:09:55 GMT+08:00 2010
[INFO] Final Memory: 8M/46M
[INFO] ------------------------------------------------------------------------

Original comment by lhkh...@gmail.com on 30 May 2010 at 8:25

Attachments:

GoogleCodeExporter commented 9 years ago
delete this file

/src/test/java/local/tux/AppTest.java

we don't use this file at all

Original comment by benli3...@gmail.com on 30 May 2010 at 4:56

GoogleCodeExporter commented 9 years ago
works now thanks Ben 

see update: http://code.google.com/p/bentux/source/detail?r=287

Original comment by lhkh...@gmail.com on 30 May 2010 at 5:11