order of import statements
by Jeff Mesnil
Hi,
Is there an agreement on the order of import statements in our codebase?
I'm using eclipse which, by default, organize imports in the following order:
static
java
javax
org
com
but we have some files with a different order *cough*intellij*cough* :)
That makes for some noise in the commits when I modify a class and eclipse changes the imports order.
If we agree with this default order, I can add a checkstyle rule[1] for this.
wdyt?
jeff
[1] http://checkstyle.sourceforge.net/config_imports.html#ImportOrder
--
Jeff Mesnil
JBoss, a division of Red Hat
http://jmesnil.net/
12 years, 2 months
as7-master-testsuite-ip6 - Build # 4820 - Failure!
by ci-builds@redhat.com
as7-master-testsuite-ip6 - Build # 4820 - Failure:
Check console output at to view the results.
Public: http://hudson.jboss.org/hudson/job/as7-master-testsuite-ip6/4820
Internal: http://lightning.mw.lab.eng.bos.redhat.com/jenkins/job/as7-master-testsui...
Test summary:
6 tests failed.
FAILED: org.jboss.as.arquillian.container.managed.InjectJndiContextTestCase.org.jboss.as.arquillian.container.managed.InjectJndiContextTestCase
Error Message:
Arquillian has previously been attempted initialized, but failed. See cause for previous exception
FAILED: org.jboss.as.arquillian.container.managed.InjectManagementClientTestCase.org.jboss.as.arquillian.container.managed.InjectManagementClientTestCase
Error Message:
Arquillian has previously been attempted initialized, but failed. See cause for previous exception
FAILED: org.jboss.as.arquillian.container.managed.IntegrationTestCase.org.jboss.as.arquillian.container.managed.IntegrationTestCase
Error Message:
Arquillian has previously been attempted initialized, but failed. See cause for previous exception
FAILED: org.jboss.as.arquillian.container.managed.ManagedAsClientEnterpriseArchiveServletTestCase.org.jboss.as.arquillian.container.managed.ManagedAsClientEnterpriseArchiveServletTestCase
Error Message:
Arquillian has previously been attempted initialized, but failed. See cause for previous exception
FAILED: org.jboss.as.arquillian.container.managed.ManagedAsClientWebArchiveServletTestCase.org.jboss.as.arquillian.container.managed.ManagedAsClientWebArchiveServletTestCase
Error Message:
Arquillian has previously been attempted initialized, but failed. See cause for previous exception
FAILED: org.jboss.as.arquillian.container.managed.ManagedInContainerTestCase.org.jboss.as.arquillian.container.managed.ManagedInContainerTestCase
Error Message:
Could not start container
12 years, 2 months
Feedback requested on multi-JSF design
by ssilvert@redhat.com
In case you are wondering, multi-JSF means multiple JSF implementations
on the same AS7 instance.
I've done a short write-up on this:
https://community.jboss.org/wiki/DesignOfAS7Multi-JSFFeature
I'd especially like feedback from the guys working on patching and
layered products. For users installing the "extra" JSF impls, I make
use of AS7 features that are already available. If there are features
that you are working on that might make this smoother/better then please
let me know.
Thanks in advance,
Stan
12 years, 2 months
Relaxing password requirements for add-user script?
by Jaikiran Pai
I think it's been a while since I used the add-user script to add
application users. Turns out the password for the new user is now
checked for strength and the rules are a bit annoying [1], at least for
me. As a developer, I just want to test a scenario for EJB invocations.
I tried using "test" as a password and it failed with "too few
characters". Then I tried "test12345" failed again with "your password
should have combination of upper case, lower case, ...". I never have
understood this specific requirement of passwords being forced to be of
certain type (many sites do it). So, would it be possible to somehow
relax this requirement?
I'm not a security expert, but is this "your password has to have upper
case, lower case, digit, special char" requirement really worth it in a
real application?
[1]
https://issues.jboss.org/browse/AS7-2756?focusedCommentId=12653165&page=c...
-Jaikiran
12 years, 2 months
NPE in Sun/Oracle JRE, NIO code
by Jaikiran Pai
Just saw this exception when a Jenkins job was running on lightning for
a PR (the exception isn't caused by the PR):
03:33:45,211 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-4) MSC00001: Failed to start service jboss.remoting.endpoint.management: org.jboss.msc.service.StartException in service jboss.remoting.endpoint.management: Failed to start service
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1767) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_29]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_29]
at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_29]
Caused by: java.lang.NullPointerException
at sun.nio.ch.Util.atBugLevel(Util.java:448) [rt.jar:1.6.0_29]
at sun.nio.ch.SelectorImpl.<init>(SelectorImpl.java:40) [rt.jar:1.6.0_29]
at sun.nio.ch.EPollSelectorImpl.<init>(EPollSelectorImpl.java:47) [rt.jar:1.6.0_29]
at sun.nio.ch.EPollSelectorProvider.openSelector(EPollSelectorProvider.java:18) [rt.jar:1.6.0_29]
at java.nio.channels.Selector.open(Selector.java:209) [rt.jar:1.6.0_29]
at org.xnio.nio.NioXnioWorker.<init>(NioXnioWorker.java:112)
at org.xnio.nio.NioXnio.createWorker(NioXnio.java:126)
at org.jboss.remoting3.EndpointImpl.construct(EndpointImpl.java:137)
at org.jboss.remoting3.Remoting.createEndpoint(Remoting.java:60)
at org.jboss.remoting3.Remoting.createEndpoint(Remoting.java:73)
at org.jboss.as.remoting.EndpointService.start(EndpointService.java:71)
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
... 3 more
Looks like an already reported bug against Sun/Oracle JRE http://bugs.sun.com/view_bug.do?bug_id=6427854
-Jaikiran
12 years, 2 months
as7-master-testsuite-ip6 - Build # 4711 - Failure!
by ci-builds@redhat.com
as7-master-testsuite-ip6 - Build # 4711 - Failure:
Check console output at to view the results.
Public: http://hudson.jboss.org/hudson/job/as7-master-testsuite-ip6/4711
Internal: http://lightning.mw.lab.eng.bos.redhat.com/jenkins/job/as7-master-testsui...
Test summary:
1 tests failed.
REGRESSION: org.jboss.as.test.integration.osgi.webapp.WebAppTestCase.testBundleWithWebContextPath
Error Message:
java.util.concurrent.ExecutionException: java.io.IOException: <html><head><title>JBoss Web/7.2.0.Alpha2 - JBWEB000064: Error report</title><style><!--H1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A {color : black;}A.name {color : black;}HR {color : #525D76;}--></style> </head><body><h1>JBWEB000065: HTTP Status 500 - No resources</h1><HR size="1" noshade="noshade"><p><b>JBWEB000309: type</b> JBWEB000066: Exception report</p><p><b>JBWEB000068: message</b> <u>No resources</u></p><p><b>JBWEB000069: description</b> <u>JBWEB000145: The server encountered an internal error that prevented it from fulfilling this request.</u></p><p><b>JBWEB000070: exception</b> <pre>javax.servlet.ServletException: No resources org.apache.catalina.servlets.DefaultServlet.init(DefaultServlet.java:278) javax.servlet.GenericServlet.init(GenericServlet.java:242) org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:165) org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:97) org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:336) org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856) org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:652) org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:919) java.lang.Thread.run(Thread.java:662) </pre></p><p><b>JBWEB000071: root cause</b> <pre>javax.naming.NameNotFoundException: comp/Resources -- service jboss.naming.context.java.comp.Resources org.jboss.as.naming.ServiceBasedNamingStore.lookup(ServiceBasedNamingStore.java:103) org.jboss.as.naming.NamingContext.lookup(NamingContext.java:193) org.jboss.as.naming.InitialContext.lookup(InitialContext.java:120) org.jboss.as.naming.NamingContext.lookup(NamingContext.java:182) org.jboss.as.naming.NamingContext.lookup(NamingContext.java:178) javax.naming.InitialContext.lookup(InitialContext.java:392) org.apache.catalina.servlets.DefaultServlet.init(DefaultServlet.java:273) javax.servlet.GenericServlet.init(GenericServlet.java:242) org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:165) org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:97) org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:336) org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856) org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:652) org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:919) java.lang.Thread.run(Thread.java:662) </pre></p><p><b>JBWEB000072: note</b> <u>JBWEB000073: The full stack trace of the root cause is available in the JBoss Web/7.2.0.Alpha2 logs.</u></p><HR size="1" noshade="noshade"><h3>JBoss Web/7.2.0.Alpha2</h3></body></html>
12 years, 2 months
as7-master-testsuite-ip6 - Build # 4709 - Failure!
by ci-builds@redhat.com
as7-master-testsuite-ip6 - Build # 4709 - Failure:
Check console output at to view the results.
Public: http://hudson.jboss.org/hudson/job/as7-master-testsuite-ip6/4709
Internal: http://lightning.mw.lab.eng.bos.redhat.com/jenkins/job/as7-master-testsui...
Test summary:
47 tests failed.
FAILED: org.jboss.as.test.integration.ee.injection.resource.basic.ResourceInjectionTestCase.org.jboss.as.test.integration.ee.injection.resource.basic.ResourceInjectionTestCase
Error Message:
Cannot deploy: resource-injection-test.war
FAILED: org.jboss.as.test.integration.ee.injection.resource.enventry.EnvEntryTestCase.org.jboss.as.test.integration.ee.injection.resource.enventry.EnvEntryTestCase
Error Message:
Cannot deploy: env-entry-test.jar
FAILED: org.jboss.as.test.integration.ee.injection.resource.resourceref.ResourceRefTestCase.org.jboss.as.test.integration.ee.injection.resource.resourceref.ResourceRefTestCase
Error Message:
Cannot deploy: resourcerref.ear
REGRESSION: org.jboss.as.test.integration.ee.remotelookup.LookupTestCase.testClientRemoteLookup
Error Message:
Could not lookup value for field private javax.naming.Context org.jboss.as.test.integration.ee.remotelookup.LookupTestCase.remoteContext
FAILED: org.jboss.as.test.integration.ejb.entity.cmp.commerce.CommerceCascadeDeleteTestCase.org.jboss.as.test.integration.ejb.entity.cmp.commerce.CommerceCascadeDeleteTestCase
Error Message:
Cannot deploy: cmp-commerce.jar
FAILED: org.jboss.as.test.integration.ejb.entity.cmp.commerce.CommerceTestCase.org.jboss.as.test.integration.ejb.entity.cmp.commerce.CommerceTestCase
Error Message:
Cannot deploy: cmp-commerce.jar
FAILED: org.jboss.as.test.integration.ejb.entity.cmp.commerce.LazyResultSetLoadingTestCase.org.jboss.as.test.integration.ejb.entity.cmp.commerce.LazyResultSetLoadingTestCase
Error Message:
Cannot deploy: cmp-commerce.jar
FAILED: org.jboss.as.test.integration.ejb.entity.cmp.commerce.ManyToManyBiTestCase.org.jboss.as.test.integration.ejb.entity.cmp.commerce.ManyToManyBiTestCase
Error Message:
Cannot deploy: cmp-commerce.jar
FAILED: org.jboss.as.test.integration.ejb.entity.cmp.commerce.ManyToOneUniTestCase.org.jboss.as.test.integration.ejb.entity.cmp.commerce.ManyToOneUniTestCase
Error Message:
Cannot deploy: cmp-commerce.jar
FAILED: org.jboss.as.test.integration.ejb.entity.cmp.commerce.OneToManyBiTestCase.org.jboss.as.test.integration.ejb.entity.cmp.commerce.OneToManyBiTestCase
Error Message:
Cannot deploy: cmp-commerce.jar
FAILED: org.jboss.as.test.integration.ejb.entity.cmp.commerce.OneToOneUnitTestCase.org.jboss.as.test.integration.ejb.entity.cmp.commerce.OneToOneUnitTestCase
Error Message:
Cannot deploy: cmp-commerce.jar
FAILED: org.jboss.as.test.integration.ejb.entity.cmp.commerce.OrderByQueryTestCase.org.jboss.as.test.integration.ejb.entity.cmp.commerce.OrderByQueryTestCase
Error Message:
Cannot deploy: cmp-commerce.jar
FAILED: org.jboss.as.test.integration.ejb.entity.cmp.commerce.TxTesterTestCase.org.jboss.as.test.integration.ejb.entity.cmp.commerce.TxTesterTestCase
Error Message:
Cannot deploy: cmp-commerce.jar
FAILED: org.jboss.as.test.integration.ejb.entity.cmp.commerce.UserLocalTestCase.org.jboss.as.test.integration.ejb.entity.cmp.commerce.UserLocalTestCase
Error Message:
Cannot deploy: cmp-commerce.jar
FAILED: org.jboss.as.test.integration.ejb.entity.cmp.postcreate.PostCreateTestCase.org.jboss.as.test.integration.ejb.entity.cmp.postcreate.PostCreateTestCase
Error Message:
Cannot deploy: post-create.ear
FAILED: org.jboss.as.test.integration.ejb.iiop.naming.IIOPNamingInContainerTestCase.org.jboss.as.test.integration.ejb.iiop.naming.IIOPNamingInContainerTestCase
Error Message:
Cannot deploy: test.jar
FAILED: org.jboss.as.test.integration.ejb.iiop.naming.IIOPNamingTestCase.org.jboss.as.test.integration.ejb.iiop.naming.IIOPNamingTestCase
Error Message:
Cannot deploy: test.jar
FAILED: org.jboss.as.test.integration.ejb.management.deployments.EjbInvocationStatisticsTestCase.org.jboss.as.test.integration.ejb.management.deployments.EjbInvocationStatisticsTestCase
Error Message:
Cannot deploy: ejb-management.jar
FAILED: org.jboss.as.test.integration.ejb.management.deployments.EjbJarInEarRuntimeResourcesTestCase.org.jboss.as.test.integration.ejb.management.deployments.EjbJarInEarRuntimeResourcesTestCase
Error Message:
Cannot deploy: ejb-management.ear
FAILED: org.jboss.as.test.integration.ejb.management.deployments.EjbJarRuntimeResourcesTestCase.org.jboss.as.test.integration.ejb.management.deployments.EjbJarRuntimeResourcesTestCase
Error Message:
Cannot deploy: ejb-management.jar
FAILED: org.jboss.as.test.integration.ejb.mdb.containerstart.SendMessagesTestCase.org.jboss.as.test.integration.ejb.mdb.containerstart.SendMessagesTestCase
Error Message:
Cannot deploy: single-containerstart.jar
FAILED: org.jboss.as.test.integration.ejb.remote.entity.cmp.commerce.CascadeDeleteTestCase.org.jboss.as.test.integration.ejb.remote.entity.cmp.commerce.CascadeDeleteTestCase
Error Message:
Cannot deploy: cmp-commerce.ear
FAILED: org.jboss.as.test.integration.ejb.remote.entity.cmp.commerce.CommerceTestCase.org.jboss.as.test.integration.ejb.remote.entity.cmp.commerce.CommerceTestCase
Error Message:
Cannot deploy: cmp-commerce.ear
FAILED: org.jboss.as.test.integration.ejb.remote.entity.cmp.commerce.LazyResultSetLoadingTestCase.org.jboss.as.test.integration.ejb.remote.entity.cmp.commerce.LazyResultSetLoadingTestCase
Error Message:
Cannot deploy: cmp-commerce.ear
FAILED: org.jboss.as.test.integration.ejb.remote.entity.cmp.commerce.UserTestCase.org.jboss.as.test.integration.ejb.remote.entity.cmp.commerce.UserTestCase
Error Message:
Cannot deploy: cmp-commerce.ear
FAILED: org.jboss.as.test.integration.ejb.security.AnnotationAuthorizationTestCase.org.jboss.as.test.integration.ejb.security.AnnotationAuthorizationTestCase
Error Message:
Cannot deploy: ejb3security.war
FAILED: org.jboss.as.test.integration.ejb.security.EJBSecurityTestCase.org.jboss.as.test.integration.ejb.security.EJBSecurityTestCase
Error Message:
Cannot deploy: ejb-security-test.jar
FAILED: org.jboss.as.test.integration.ejb.security.InherritanceAnnSFSBTestCase.org.jboss.as.test.integration.ejb.security.InherritanceAnnSFSBTestCase
Error Message:
Cannot deploy: inherritanceAnnOnlySFSB.jar
FAILED: org.jboss.as.test.integration.ejb.security.InherritanceAnnSLSBTestCase.org.jboss.as.test.integration.ejb.security.InherritanceAnnSLSBTestCase
Error Message:
Cannot deploy: inherritanceAnnOnlySLSB.jar
FAILED: org.jboss.as.test.integration.ejb.security.InjectionAnnSFSBtoSFSBTestCase.org.jboss.as.test.integration.ejb.security.InjectionAnnSFSBtoSFSBTestCase
Error Message:
Cannot deploy: injectionAnnOnlySFSBtoSFSB.jar
FAILED: org.jboss.as.test.integration.ejb.security.InjectionAnnSFSBtoSLSBTestCase.org.jboss.as.test.integration.ejb.security.InjectionAnnSFSBtoSLSBTestCase
Error Message:
Cannot deploy: injectionAnnOnlySFSBtoSLSB.jar
FAILED: org.jboss.as.test.integration.ejb.security.InjectionAnnSLSBtoSFSBTestCase.org.jboss.as.test.integration.ejb.security.InjectionAnnSLSBtoSFSBTestCase
Error Message:
Cannot deploy: injectionAnnOnlySLSBtoSFSB.jar
FAILED: org.jboss.as.test.integration.ejb.security.InjectionAnnSLSBtoSLSBTestCase.org.jboss.as.test.integration.ejb.security.InjectionAnnSLSBtoSLSBTestCase
Error Message:
Cannot deploy: injectionAnnOnlySLSBtoSLSB.jar
FAILED: org.jboss.as.test.integration.ejb.security.RunAsPrincipalTestCase.org.jboss.as.test.integration.ejb.security.RunAsPrincipalTestCase
Error Message:
Cannot deploy: runasprincipal-test.war
FAILED: org.jboss.as.test.integration.ejb.security.SingleMethodsAnnSFSBTestCase.org.jboss.as.test.integration.ejb.security.SingleMethodsAnnSFSBTestCase
Error Message:
Cannot deploy: singleMethodsAnnOnlySFSB.jar
FAILED: org.jboss.as.test.integration.ejb.security.SingleMethodsAnnSLSBTestCase.org.jboss.as.test.integration.ejb.security.SingleMethodsAnnSLSBTestCase
Error Message:
Cannot deploy: singleMethodsAnnOnlySLSB.jar
FAILED: org.jboss.as.test.integration.ejb.security.asynchronous.AsynchronousSecurityTestCase.org.jboss.as.test.integration.ejb.security.asynchronous.AsynchronousSecurityTestCase
Error Message:
Cannot deploy: AsyncSecurityTestCase.jar
FAILED: org.jboss.as.test.integration.ejb.security.callerprincipal.GetCallerPrincipalTestCase.org.jboss.as.test.integration.ejb.security.callerprincipal.GetCallerPrincipalTestCase
Error Message:
Cannot deploy: single.jar
FAILED: org.jboss.as.test.integration.ejb.security.callerprincipal.GetCallerPrincipalWithNoDefaultSecurityDomainTestCase.org.jboss.as.test.integration.ejb.security.callerprincipal.GetCallerPrincipalWithNoDefaultSecurityDomainTestCase
Error Message:
Cannot deploy: callerprincipal-without-default-security-domain.jar
FAILED: org.jboss.as.test.integration.ejb.security.jbossappxml.JBossAppXMLSecurityTestCase.org.jboss.as.test.integration.ejb.security.jbossappxml.JBossAppXMLSecurityTestCase
Error Message:
Cannot deploy: myapp.ear
FAILED: org.jboss.as.test.integration.ejb.security.runas.RunAsTestCase.org.jboss.as.test.integration.ejb.security.runas.RunAsTestCase
Error Message:
Cannot deploy: ejb3security.war
FAILED: org.jboss.as.test.integration.ejb.security.runas.mdb.RunAsMDBUnitTestCase.org.jboss.as.test.integration.ejb.security.runas.mdb.RunAsMDBUnitTestCase
Error Message:
Cannot deploy: runas-mdb.jar
FAILED: org.jboss.as.test.integration.ejb.security.singleton.SingletonSecurityTestCase.org.jboss.as.test.integration.ejb.security.singleton.SingletonSecurityTestCase
Error Message:
Cannot deploy: ejb3-singleton-security.jar
FAILED: org.jboss.as.test.integration.naming.remote.ejb.RemoteNamingEjbTestCase.org.jboss.as.test.integration.naming.remote.ejb.RemoteNamingEjbTestCase
Error Message:
Cannot deploy: test.jar
REGRESSION: org.jboss.as.test.integration.naming.remote.simple.RemoteNamingTestCase.testRemoteLookup
Error Message:
java.lang.IllegalStateException: standard-sockets -> remoting -> bound-port is undefined
REGRESSION: org.jboss.as.test.integration.naming.remote.simple.RemoteNamingTestCase.testRemoteContextLookup
Error Message:
java.lang.IllegalStateException: standard-sockets -> remoting -> bound-port is undefined
REGRESSION: org.jboss.as.test.integration.naming.remote.simple.RemoteNamingTestCase.testNestedLookup
Error Message:
java.lang.IllegalStateException: standard-sockets -> remoting -> bound-port is undefined
12 years, 2 months