Skip to content

Instantly share code, notes, and snippets.

View splatch's full-sized avatar

Łukasz Dywicki splatch

View GitHub Profile
@splatch
splatch / main.xml
Created April 12, 2011 09:03
New assembly packaging of Karaf
<component xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/component/1.1.2"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="
http://maven.apache.org/plugins/maven-assembly-plugin/component/1.1.2
http://maven.apache.org/xsd/component-1.1.2.xsd
">
<fileSets>
<!-- Copy over everything that needs to get unix line endings -->
<fileSet>
@splatch
splatch / jquery.http.js
Created April 14, 2011 16:17
Extra http methods for jQuery based on X-HTTP-Method-Override header.
function _ajax_request(url, data, callback, type, method) {
if (jQuery.isFunction(data)) {
callback = data;
data = {};
}
return jQuery.ajax({
type: "POST",
url: url,
data: data,
21:21:10,468 | ERROR | qtp893036286-68 | Objects | 219 - org.ops4j.pax.wicket.pax-wicket-service - 0.7.2 | Error serializing object class org.apache.karaf.webconsole.core.DashboardPage [object=[Page class = org.apache.karaf.webconsole.core.DashboardPage, id = 0, version = 0]]
org.apache.wicket.util.io.SerializableChecker$WicketNotSerializableException: Unable to serialize class: org.apache.felix.framework.BundleContextImpl
Field hierarchy is:
0 [class=org.apache.karaf.webconsole.core.DashboardPage, path=0]
private java.lang.Object org.apache.wicket.MarkupContainer.children [class=[Ljava.lang.Object;]
java.lang.Object org.apache.wicket.Component.data[1] [class=org.apache.karaf.webconsole.core.BasePage$1, path=0:tabs]
java.lang.Object org.apache.wicket.Component.data [class=org.apache.wicket.model.util.WildcardListModel]
private java.lang.Object org.apache.wicket.model.util.GenericBaseModel.object [class=org.ops4j.pax.wicket.util.proxy.$Proxy87]
package org.code_house.webconsole.monitor.jmx;
import org.joda.time.DateTime;
import org.rrd4j.ConsolFun;
import org.rrd4j.core.FetchData;
import org.rrd4j.core.FetchRequest;
import org.rrd4j.core.RrdDb;
import org.rrd4j.core.Util;
public class Fetch {
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>${code-house.plugin.javadoc.version}</version>
<configuration>
<stylesheetfile>javadoc-${division}.css</stylesheetfile>
<docencoding>${project.build.sourceEncoding}</docencoding>
<doclet>org.umlgraph.doclet.UmlGraphDoc</doclet>
<docletArtifact>
<groupId>org.umlgraph</groupId>
<?xml version="1.0" encoding="UTF-8"?>
<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="
http://www.osgi.org/xmlns/blueprint/v1.0.0
http://www.osgi.org/xmlns/blueprint/v1.0.0
http://camel.apache.org/schema/blueprint
http://camel.apache.org/schema/blueprint/camel-blueprint.xsd
">
<?xml version="1.0" encoding="UTF-8"?>
<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="
http://www.osgi.org/xmlns/blueprint/v1.0.0
http://www.osgi.org/xmlns/blueprint/v1.0.0
http://camel.apache.org/schema/blueprint
http://camel.apache.org/schema/blueprint/camel-blueprint.xsd
">
diff --git a/service/src/main/java/org/ops4j/pax/wicket/internal/PaxWicketApplicationFactory.java b/service/src/main/java/org/ops4j/pax/wicket/internal/PaxWicketApplicationFactory.java
index 050d57a..7f12abc 100644
--- a/service/src/main/java/org/ops4j/pax/wicket/internal/PaxWicketApplicationFactory.java
+++ b/service/src/main/java/org/ops4j/pax/wicket/internal/PaxWicketApplicationFactory.java
@@ -17,6 +17,7 @@ package org.ops4j.pax.wicket.internal;
import java.io.File;
import java.lang.reflect.Method;
+import java.util.Arrays;
import java.util.Map;
ERROR: Bundle org.ops4j.pax.wicket.service [72] EventDispatcher: Error during dispatch. (org.apache.wicket.WicketRuntimeException: There is no application attached to current thread Karaf Shell Console Thread)
org.apache.wicket.WicketRuntimeException: There is no application attached to current thread Karaf Shell Console Thread
at org.apache.wicket.Application.get(Application.java:230)
at org.apache.wicket.request.mapper.AbstractComponentMapper.getContext(AbstractComponentMapper.java:46)
at org.apache.wicket.request.mapper.PageInstanceMapper.matches(PageInstanceMapper.java:163)
at org.apache.wicket.request.mapper.PageInstanceMapper.mapRequest(PageInstanceMapper.java:62)
at org.apache.wicket.request.mapper.CompoundRequestMapper.unmount(CompoundRequestMapper.java:194)
at org.apache.wicket.protocol.http.WebApplication.unmount(WebApplication.java:377)
at org.ops4j.pax.wicket.internal.PageMounterTracker.removedService(PageMounterTracker.java:91)
at org.osgi.util.tracker.ServiceTracker$Tracked.customizerRem
Unexpected RuntimeException
Last cause: Parameter clazz must be an instance of org.apache.karaf.webconsole.osgi.framework.internal.FrameworkPage, but is a org.apache.karaf.webconsole.osgi.framework.OsgiPage
WicketMessage: bundle://121.0:1/org/apache/karaf/webconsole/osgi/framework/internal/FrameworkPage.html: Error while reading the markup: Parameter clazz must be an instance of org.apache.karaf.webconsole.osgi.framework.internal.FrameworkPage, but is a org.apache.karaf.webconsole.osgi.framework.OsgiPage
Stacktrace
Root cause:
java.lang.IllegalArgumentException: Parameter clazz must be an instance of org.apache.karaf.webconsole.osgi.framework.internal.FrameworkPage, but is a org.apache.karaf.webconsole.osgi.framework.OsgiPage