Skip to content

Instantly share code, notes, and snippets.

View davsclaus's full-sized avatar

Claus Ibsen davsclaus

View GitHub Profile
public class FooService {
private String fooEndpoint;
private String barEndpoint;
@Produce
private ProducerTemplate bar;
public String getFooEndpoint() {
return fooEndpoint;
}
2012-09-03 13:08:59,043 [IRM:0 ] - WARN PListTest - Job[0] caught exception: null
java.lang.NullPointerException
at org.apache.kahadb.util.LinkedNode.isTailNode(LinkedNode.java:68)
at org.apache.kahadb.util.LinkedNode.getNext(LinkedNode.java:48)
at org.apache.kahadb.index.ListNode$ListIterator.next(ListNode.java:184)
at org.apache.kahadb.index.ListNode$ListIterator.next(ListNode.java:129)
at org.apache.activemq.store.kahadb.plist.PList$PListIterator.next(PList.java:210)
at org.apache.activemq.store.kahadb.plist.PList$PListIterator.next(PList.java:192)
at org.apache.activemq.store.kahadb.plist.PListTest$Job.run(PListTest.java:578)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
/**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
-------------------------------------------------------------------------------
Test set: io.hawt.git.GitCloneTest
-------------------------------------------------------------------------------
Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 4.414 sec <<< FAILURE!
clonedRemoteRepo(io.hawt.git.GitCloneTest) Time elapsed: 4.332 sec <<< FAILURE!
java.lang.AssertionError: contents should contain text
at org.junit.Assert.fail(Assert.java:88)
at org.junit.Assert.assertTrue(Assert.java:41)
at org.junit.Assert.assertNotNull(Assert.java:621)
at io.hawt.git.GitFacadeTest.assertFileContents(GitFacadeTest.java:203)
2013-02-19 17:58:01,924 [main ] INFO GitFacade - hawtio using config directory: /var/folders/33/4s84_6hs4mx8jxlmy8xgp1100000gn/T/hawtio-1244942725024253510/config
2013-02-19 17:58:01,930 [main ] INFO GitFacade - Cloning git repo git@github.com:hawtio/hawtio-config.git
2013-02-19 17:58:05,237 [main ] ERROR GitFacade - Failed to clone remote repo git@github.com:hawtio/hawtio-config.git. Reason: org.eclipse.jgit.api.errors.TransportException: git@github.com:hawtio/hawtio-config.git: Auth fail
org.eclipse.jgit.api.errors.TransportException: git@github.com:hawtio/hawtio-config.git: Auth fail
at org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:137)
at org.eclipse.jgit.api.CloneCommand.fetch(CloneCommand.java:178)
at org.eclipse.jgit.api.CloneCommand.call(CloneCommand.java:125)
at io.hawt.git.GitFacade.initialiseGitRepo(GitFacade.java:462)
at io.hawt.git.GitFacade.init(GitFacade.java:80)
at io.hawt.git.GitCl
@davsclaus
davsclaus / gist:5220094
Created March 22, 2013 09:43
this is when i click javadoc http://localhost:8080/hawtio/javadoc/org.apache.camel:camel-core:2.10.4/
HTTP ERROR 500
Problem accessing /hawtio/javadoc/org.apache.camel:camel-core:2.10.4/. Reason:
java.net.MalformedURLException: invalid url: mvn:org.apache.camel/camel-core/2.10.4/jar/javadoc!/index.html (java.net.MalformedURLException: unknown protocol: mvn)
Caused by:
javax.management.MBeanException: java.net.MalformedURLException: invalid url: mvn:org.apache.camel/camel-core/2.10.4/jar/javadoc!/index.html (java.net.MalformedURLException: unknown protocol: mvn)
at com.sun.jmx.mbeanserver.MBeanIntrospector.unwrapInvocationTargetException(MBeanIntrospector.java:310)
at com.sun.jmx.mbeanserver.MBeanIntrospector.invokeM(MBeanIntrospector.java:237)
Mar 28, 2013 8:52:19 AM org.apache.catalina.core.ApplicationContext log
INFO: org.apache.webapp.balancer.BalancerFilter: init(): ruleChain: [org.apache.webapp.balancer.RuleChain: [org.apache.webapp.balancer.rules.URLStringMatchRule: Target string: News / Redirect URL: http://www.cnn.com], [org.apache.webapp.balancer.rules.RequestParameterRule: Target param name: paramName / Target param value: paramValue / Redirect URL: http://www.yahoo.com], [org.apache.webapp.balancer.rules.AcceptEverythingRule: Redirect URL: http://jakarta.apache.org]]
Mar 28, 2013 8:52:19 AM org.apache.catalina.core.StandardContext listenerStart
SEVERE: Exception sending context initialized event to listener instance of class io.hawt.git.GitContextListener
java.lang.RuntimeException: io.hawt.git.RuntimeIOException: java.io.IOException: No such file or directory
at io.hawt.git.GitContextListener.createServletException(GitContextListener.java:54)
at io.hawt.git.GitContextListener.contextInitialized(GitContextListener.java:36)
at org.apa
INFO: Loading Blueprint contexts [file:/opt/apache-tomcat-7.0.37/webapps/sample/WEB-INF/classes/META-INF/blueprint.xml, jar:file:/opt/apache-tomcat-7.0.37/webapps/sample/WEB-INF/lib/hawtio-git-1.1-SNAPSHOT.jar!/META-INF/blueprint.xml, jar:file:/opt/apache-tomcat-7.0.37/webapps/sample/WEB-INF/lib/hawtio-maven-indexer-1.1-SNAPSHOT.jar!/META-INF/blueprint.xml]
Apr 11, 2013 8:55:47 AM org.apache.catalina.core.ApplicationContext log
SEVERE: Failed to startup blueprint container. org.osgi.service.blueprint.container.ComponentDefinitionException: Unable to intialize bean gitFacade
org.osgi.service.blueprint.container.ComponentDefinitionException: Unable to intialize bean gitFacade
at org.apache.aries.blueprint.container.BeanRecipe.runBeanProcInit(BeanRecipe.java:708)
at org.apache.aries.blueprint.container.BeanRecipe.internalCreate2(BeanRecipe.java:825)
at org.apache.aries.blueprint.container.BeanRecipe.internalCreate(BeanRecipe.java:786)
at org.apache.aries.blueprint.di.AbstractRecipe$1.call(AbstractRecipe.jav
17:39:37,421 INFO [org.jboss.web] (MSC service thread 1-1) JBAS018210: Registering web context: /jolokia
17:39:38,408 INFO [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/hawtio]] (MSC service thread 1-7) Loading Blueprint contexts [vfs:/content/hawtio.war/WEB-INF/classes/OSGI-INF/blueprint/blueprint.xml, vfs:/content/hawtio.war/WEB-INF/lib/hawtio-core-1.1-SNAPSHOT.jar/OSGI-INF/blueprint/blueprint.xml, vfs:/content/hawtio.war/WEB-INF/lib/hawtio-git-1.1-SNAPSHOT.jar/OSGI-INF/blueprint/blueprint.xml, vfs:/content/hawtio.war/WEB-INF/lib/hawtio-json-schema-mbean-1.1-SNAPSHOT.jar/OSGI-INF/blueprint/blueprint.xml, vfs:/content/hawtio.war/WEB-INF/lib/hawtio-maven-indexer-1.1-SNAPSHOT.jar/OSGI-INF/blueprint/blueprint.xml]
17:39:38,784 INFO [stdout] (MSC service thread 1-7) Registering io.hawt.config:type=ConfigFacade as there is no bean registered yet with: io.hawt.config.ConfigFacade@2ad7edd0
17:39:38,796 INFO [io.hawt.git.GitFacade] (MSC service thread 1-7) hawtio using config directory: /U
/**
* Parses the username:password from a http basic auth URL, e.g.
* http://foo:bar@example.com
*/
hawtioPluginLoader.getCredentials = function(url) {
var uri = new Uri(url);
Uncaught ReferenceError: Uri is not defined
var credentials = uri.userInfo();
if (credentials.indexOf(':') > -1) {
return credentials.split(':');