Skip to content

Instantly share code, notes, and snippets.

<html>
<head>
<!-- Bootstrap core CSS -->
<link href=".../styles/bootstrap.css" rel="stylesheet">
<!-- Custom styles for this template -->
<link href=".../styles/jumbotron.css" rel="stylesheet">
<link href=".../styles/signin.css" rel="stylesheet">
<script src=".../js/html5shiv.js"></script>
<script src=".../js/respond.min.js"></script>
</head>
@cortix
cortix / cmd
Created December 23, 2013 21:23
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
F:\Users\HasanCelik>cd "Desktop\wicket-bootstrap-bootstrap3\wicket-bootstrap-bootstrap3"
F:\Users\HasanCelik\Desktop\wicket-bootstrap-bootstrap3\wicket-bootstrap-bootstrap3>mvn clean package
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
@cortix
cortix / cmd_
Created January 15, 2014 14:36
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
F:\Users\HasanCelik>cd "\Users\HasanCelik\My_Projects_Java\wicket-bootstrap-bootstrap3 (2)\wicket-bootstrap-bootstrap3"\
F:\Users\HasanCelik\My_Projects_Java\wicket-bootstrap-bootstrap3 (2)\wicket-bootstrap-bootstrap3>mvn clean package
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] --- maven-surefire-plugin:2.11:test (default-test) @ wicket-bootstrap-core ---
[INFO] Surefire report directory: F:\Users\HasanCelik\My_Projects_Java\wicket-bootstrap-bootstrap3\wicket-bootstrap-bootstrap3\bootstrap-core\target\surefire-reports
[INFO] Using configured provider org.apache.maven.surefire.junitcore.JUnitCoreProvider
-------------------------------------------------------
T E S T S
-------------------------------------------------------
Concurrency config is parallel='none', perCoreThreadCount=true, threadCount=2, useUnlimitedThreads=false
Running de.agilecoders.wicket.core.markup.html.bootstrap.block.BadgeBehaviorTest
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
HTTP ERROR 500
Problem accessing /. Reason:
Server Error
Caused by:
java.lang.NoSuchMethodError: de.agilecoders.wicket.core.util.References.renderWithFilter(Lde/agilecoders/wicket/core/settings/IBootstrapSettings;Lorg/apache/wicket/markup/head/IHeaderResponse;Lorg/apache/wicket/markup/head/JavaScriptReferenceHeaderItem;)V
at de.agilecoders.wicket.core.markup.html.bootstrap.behavior.BootstrapJavascriptBehavior.renderHead(BootstrapJavascriptBehavior.java:34)
at de.agilecoders.wicket.core.markup.html.bootstrap.behavior.BootstrapResourcesBehavior.renderHead(BootstrapResourcesBehavior.java:35)
@SpringBean
User1Dao user1Dao;
private User1 user1 = new User1();
...
final FileUploadField fileUpload = new FileUploadField("fileUpload",new PropertyModel(user1, "photo"));
form.add(fileUpload);
...
Unexpected RuntimeException
Last cause: Could not convert value: [org.apache.wicket.markup.html.form.upload.FileUpload@5929cfd1] to type: [B. Could not find compatible converter.
WicketMessage: Method onRequest of interface org.apache.wicket.behavior.IBehaviorListener targeted at org.apache.wicket.ajax.markup.html.form.AjaxButton$1@7e251138 on component [AjaxButton [Component id = submit]] threw an exception
Stacktrace
Root cause:
org.apache.wicket.util.convert.ConversionException: Could not convert value: [org.apache.wicket.markup.html.form.upload.FileUpload@5929cfd1] to type: [B. Could not find compatible converter.
at org.apache.wicket.ConverterLocator$DefaultConverter.convertToObject(ConverterLocator.java:121)
at org.apache.wicket.core.util.lang.PropertyResolverConverter.convert(PropertyResolverConverter.java:95)
<div class="fileupload fileupload-new" data-provides="fileupload">
<div class="fileupload-new thumbnail" style="width: 140px; height: 140px;">
<img alt="Apache Wicket" src="https://googledrive.com/host/0BwZ-K9WC0XGBWjZQMW1oMWprUm8/fotograf140.png">
</div>
<div class="fileupload-preview fileupload-exists thumbnail" style="max-width: 140px; max-height: 140px;"></div>
<div>
<span class="btn btn-default btn-file"><span class="fileupload-new">Choose Photo</span><span class="fileupload-exists">change</span><input wicket:id="fileUpload" type="file"/></span>
<a href="#" class="btn btn-default fileupload-exists" data-dismiss="fileupload">Remove</a>
</div>
</div>
public class User1 extends DomainObject {
...
...
...
@Lob
private byte[] photo;
public byte[] getPhoto() {
return photo;
@cortix
cortix / cmd
Created December 13, 2014 23:15
login as: root
root@178.62.216.84's password:
Welcome to Ubuntu 14.04.1 LTS (GNU/Linux 3.13.0-37-generic x86_64)
* Documentation: https://help.ubuntu.com/
System information as of Sat Dec 13 16:55:22 EST 2014
System load: 0.0 Processes: 88
Usage of /: 10.8% of 19.56GB Users logged in: 1