Skip to content

Instantly share code, notes, and snippets.

View bleathem's full-sized avatar

Brian Leathem bleathem

View GitHub Profile
@bleathem
bleathem / ldapBindTest.java
Created January 27, 2011 19:03
A unit test to try binding to your ldap
package ca.triumf.mis.ldap;
import java.util.Hashtable;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.naming.Context;
import javax.naming.NamingException;
import javax.naming.directory.DirContext;
import javax.naming.directory.InitialDirContext;
import junit.framework.Assert;
package org.jboss.seam.security.examples.simple;
import javax.inject.Inject;
import org.jboss.seam.security.Authenticator;
import org.jboss.seam.security.BaseAuthenticator;
import org.jboss.seam.security.Credentials;
import org.picketlink.idm.impl.api.PasswordCredential;
import org.picketlink.idm.impl.api.model.SimpleUser;
@bleathem
bleathem / gist:1076299
Created July 11, 2011 17:11
Arquillina stacktrace
-------------------------------------------------------------------------------
Test set: org.jboss.seam.faces.BasicJsfUnitTest
-------------------------------------------------------------------------------
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 43.794 sec <<< FAILURE!
checkComponentRenderAfterSuccess(org.jboss.seam.faces.BasicJsfUnitTest) Time elapsed: 1.081 sec <<< ERROR!
org.jboss.arquillian.spi.ArquillianProxyException: java.lang.AssertionError : [Proxied because : Could not find suitable constructor]
at org.junit.Assert.fail(Assert.java:91)
at org.junit.Assert.assertTrue(Assert.java:43)
at org.junit.Assert.assertTrue(Assert.java:54)
at org.jboss.seam.faces.BasicJsfUnitTest.checkComponentRenderAfterSuccess(BasicJsfUnitTest.java:67)
2011-07-11 14:23:52,500 DEBUG [org.jboss.weld.JSF] (http-localhost%2F127.0.0.1-8080-2) WELD-000504 Resuming conversation with id null
2011-07-11 14:23:52,510 WARNING [javax.enterprise.resource.webcontainer.jsf.lifecycle] (http-localhost%2F127.0.0.1-8080-2) Context is already active: javax.faces.FacesException: Context is already active
at com.sun.faces.context.ExceptionHandlerImpl.handle(ExceptionHandlerImpl.java:136) [:2.0.3-]
at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:115) [:2.0.3-]
at com.sun.faces.lifecycle.RestoreViewPhase.doPhase(RestoreViewPhase.java:107) [:2.0.3-]
at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:114) [:2.0.3-]
at org.jboss.seam.faces.component.UIViewAction.broadcast(UIViewAction.java:389) [:]
at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:781) [:2.0.3-]
at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:1246) [:2.0.3-]
at com.sun.faces.lifecycle.InvokeAp
@bleathem
bleathem / gist:1078369
Created July 12, 2011 16:34
s:viewAction navigation failure
2011-07-12 09:23:20,116 DEBUG [org.jboss.seam.faces.event.PhaseEventBridge] (http-localhost%2F127.0.0.1-8080-2) Fired event [javax.faces.event.PhaseEvent[source=com.sun.faces.lifecycle.LifecycleImpl@46ffcd87]] with qualifiers [[Ljava.lang.annotation.Annotation;@38b9d37b]
2011-07-12 09:23:20,117 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/a6c419-34e7-45b1-bc37-e751a70a57c6].[FacesServlet]] (http-localhost%2F127.0.0.1-8080-2) Servlet.service() for servlet FacesServlet threw exception: java.lang.IllegalStateException: Context is already active
at org.jboss.weld.context.AbstractConversationContext.activate(AbstractConversationContext.java:301) [:6.0.0.Final]
at org.jboss.weld.jsf.WeldPhaseListener.activateConversations(WeldPhaseListener.java:110) [:6.0.0.Final]
at org.jboss.weld.jsf.WeldPhaseListener.beforePhase(WeldPhaseListener.java:84) [:6.0.0.Final]
at com.sun.faces.lifecycle.Phase.handleBeforePhase(Phase.java:224) [:2.0.3-]
at com.sun.faces.
[showcase (feature/mobile)⚡]> ls -1 target/richfaces-showcase/WEB-INF/lib/
atmosphere-compat-jbossweb-0.7.1.jar
atmosphere-compat-tomcat-0.7.1.jar
atmosphere-compat-weblogic-0.7.1.jar
atmosphere-runtime-0.7.1.jar
cssparser-0.9.5.jar
ehcache-1.6.0.jar
guava-r08.jar
jboss-as-build-config-7.0.0.CR1.jar
21:19:35,697 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/showcase].[Faces Servlet]] (http--0%3A0%3A0%3A0%3A0%3A0%3A0%3A0-8080-2) Servlet.service() for servlet Faces Servlet threw exception: java.lang.NullPointerException: Argument Error: Parameter value is null
at com.sun.faces.renderkit.html_basic.HtmlResponseWriter.writeURIAttribute(HtmlResponseWriter.java:983) [jsf-impl-2.1.3-b02-jbossorg-2.jar:2.1.3-SNAPSHOT]
at com.sun.faces.renderkit.html_basic.StylesheetRenderer.encodeEnd(StylesheetRenderer.java:108) [jsf-impl-2.1.3-b02-jbossorg-2.jar:2.1.3-SNAPSHOT]
at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:875) [jboss-jsf-api_2.1_spec-2.0.0.Beta1.jar:2.0.0.Beta1]
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1763) [jboss-jsf-api_2.1_spec-2.0.0.Beta1.jar:2.0.0.Beta1]
at com.sun.faces.renderkit.html_basic.HeadRenderer.encodeHeadResources(HeadRenderer.java:105) [jsf-impl-2.1.3-b02-jbossorg-2.jar:2.1.3-SNAPSHOT]
at com.sun.faces.renderki
java.lang.NullPointerException: Argument Error: Parameter value is null
at com.sun.faces.renderkit.html_basic.HtmlResponseWriter.writeURIAttribute(HtmlResponseWriter.java:983)
at com.sun.faces.renderkit.html_basic.StylesheetRenderer.encodeEnd(StylesheetRenderer.java:108)
at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:875)
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1763)
at com.sun.faces.renderkit.html_basic.HeadRenderer.encodeHeadResources(HeadRenderer.java:105)
at com.sun.faces.renderkit.html_basic.HeadRenderer.encodeEnd(HeadRenderer.java:92)
at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:875)
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1763)
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1759)
08:15:15,036 ERROR [stderr] (RegisterTopicThread) Exception in thread "RegisterTopicThread" at com.google.common.collect.ComputingConcurrentHashMap$ComputingSegment.compute(ComputingConcurrentHashMap.java:167)
08:15:15,036 ERROR [stderr] (RegisterTopicThread) at com.google.common.collect.ComputingConcurrentHashMap$ComputingSegment.compute(ComputingConcurrentHashMap.java:116)
08:15:15,036 ERROR [stderr] (RegisterTopicThread) at com.google.common.collect.ComputingConcurrentHashMap.apply(ComputingConcurrentHashMap.java:67)
08:15:15,036 ERROR [stderr] (RegisterTopicThread) at com.google.common.collect.MapMaker$ComputingMapAdapter.get(MapMaker.java:623)
08:15:15,037 ERROR [stderr] (RegisterTopicThread) at org.richfaces.application.push.impl.jms.JMSTopicsContextImpl.createTopic(JMSTopicsContextImpl.java:281)
08:15:15,037 ERROR [stderr] (RegisterTopicThread) at org.richfaces.application.push.TopicsContext.getOrCreateTopic(TopicsContext.java:44)
08:15:15,037 ERROR [stderr] (RegisterTopicThread) at org.richface
[crm (master)]> git pull && mvn clean package -U
Already up-to-date.
[INFO] Scanning for projects...
Downloading: http://repository.primefaces.org/org/richfaces/richfaces-bom/4.1.0-SNAPSHOT/maven-metadata.xml
Downloading: http://repository.jboss.org/nexus/content/groups/public/org/richfaces/richfaces-bom/4.1.0-SNAPSHOT/maven-metadata.xml
Downloaded: http://repository.jboss.org/nexus/content/groups/public/org/richfaces/richfaces-bom/4.1.0-SNAPSHOT/maven-metadata.xml (605 B at 0.5 KB/sec)
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Clearfly OSS EE6 Edition 1.0.0
[INFO] ------------------------------------------------------------------------