[JBoss OSGi Development] - Re: tests log4j.xml
by thomas.diesler@jboss.com
This actually works for me very well
1) I set -Dlog4j.output.dir=${workspace_loc:jboss-osgi-runtime-microcontainer/target} in eclipse
2) Not sure what you mean. I always have target/test.log that contains all the logging
3) for me that's quite the opposite. I can grep test.log or have it open in gedit where I can search
I prefer a console output like this
| -------------------------------------------------------
| T E S T S
| -------------------------------------------------------
| Running org.jboss.test.osgi.service.test.ServiceRegistrationUnitTestCase
| Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.326 sec
| Running org.jboss.test.osgi.bundle.test.BundleContextUnitTestCase
| Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.817 sec
| Running org.jboss.test.osgi.smoke.test.OSGiSmokeTestCase
| Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.726 sec
| Running org.jboss.test.bundle.metadata.VersionRangeTestCase
| Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.022 sec
| Running org.jboss.test.osgi.launch.FrameworkLaunchTestCase
| Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.195 sec
| Running org.jboss.test.osgi.integration.simple.SimpleLogServiceTestCase
| FIXME [JBOSGI-136] Cannot resolve dependency against unstarted bundle
| FIXME [JBOSGI-135] Cannot handle package beeing imported and exported by the same bundle
| Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.172 sec
| Running org.jboss.test.osgi.classloader.test.ExportImportPackageUnitTestCase
| Tests run: 12, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 3.579 sec <<< FAILURE!
| Running org.jboss.test.osgi.classloader.test.RequireBundleUnitTestCase
| Tests run: 10, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 6.962 sec
| Running org.jboss.test.osgi.integration.simple.SimpleBundleTestCase
| Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.384 sec
| Running org.jboss.test.osgi.bundle.test.BundleEntriesUnitTestCase
| Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.374 sec
| Running org.jboss.test.osgi.filter.test.FrameworkUtilFilterUnitTestCase
| FIXME [JBOSGI-129] - Invalid (*=b)
| FIXME [JBOSGI-129] - NoMatch (a=)
| FIXME [JBOSGI-129] - NoMatch (a<= 2)
| FIXME [JBOSGI-129] - NoMatch (a<=2 )
| FIXME [JBOSGI-129] - NoMatch (a<= )
| FIXME [JBOSGI-129] - NoMatch (a>= 0)
| FIXME [JBOSGI-129] - NoMatch (a>=0 )
| FIXME [JBOSGI-129] - NoMatch (a>= )
| Tests run: 11, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.362 sec
| Running org.jboss.test.osgi.filter.test.BundleContextFilterUnitTestCase
| FIXME [JBOSGI-129] - Invalid (*=b)
| FIXME [JBOSGI-129] - NoMatch (a=)
| FIXME [JBOSGI-129] - NoMatch (a<= 2)
| FIXME [JBOSGI-129] - NoMatch (a<=2 )
| FIXME [JBOSGI-129] - NoMatch (a<= )
| FIXME [JBOSGI-129] - NoMatch (a>= 0)
| FIXME [JBOSGI-129] - NoMatch (a>=0 )
| FIXME [JBOSGI-129] - NoMatch (a>= )
| Tests run: 11, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.441 sec
| Running org.jboss.test.osgi.service.test.GetServiceReferencesUnitTestCase
| Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.062 sec
| Running org.jboss.test.bundle.metadata.HeaderValuesTestCase
| Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.068 sec
| Running org.jboss.test.osgi.bundle.test.SystemBundleUnitTestCase
| Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.272 sec
| Running org.jboss.test.osgi.service.test.RegisterServiceUnitTestCase
| Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.15 sec
| Running org.jboss.test.osgi.service.test.GetUnGetServiceUnitTestCase
| Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.276 sec
| Running org.jboss.test.osgi.bundle.test.BundleUnitTestCase
| Tests run: 17, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.193 sec
| Running org.jboss.test.osgi.service.test.ServiceReferenceUnitTestCase
| Tests run: 10, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.487 sec
|
| Results :
|
| Failed tests:
| testVersionImportPackageFails(org.jboss.test.osgi.classloader.test.ExportImportPackageUnitTestCase)
|
Anyway, I put log4j.xml in svn:ignore so you won't see it if you don't want to.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4251631#4251631
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4251631
15 years, 5 months
[JBoss Portal QA] - org.jboss.util.NESTEDSQLException
by xptobr
Hi there,
We are using AIX 5.3 + JBOSS 4 + JBOSS Portal 2.6.5.
Our application is JAVA in AIX 5.3 and access a DB2 database by JDBC Driver IBM (DB2 V9).
We have the following problem:
ATSSDPRF.COM_NUM=0000001 AND TRM_ROLCOD=00048) OPTIMIZE FOR 1 ROW
[I]-2009.07.30 15:12:42,183 :Connection:Closed:true
[E]-2009.07.30 15:12:42,187 org.jboss.util.NestedSQLException:
Error; - nested throwable:
(java.lang.StringIndexOutOfBoundsException)-:-Error; - nested
throwable: (java.lang.StringIndexOutOfBoundsException)
stack trace:
2009-07-30 15:31:03,124 WARN [org.jboss.resource.connectionmanager.TxConnectionManager] Connection error occured: org.jboss.resource.connectionmanager.TxConnectionManager$TxConnectionEventListener@1a261a26[state=NORMAL mc=org.jboss.resource.adapter.jdbc.local.LocalManagedConnection@19d219d2 handles=1 lastUse=1248964262835 permit=true trackByTx=false mcp=org.jboss.resource.connectionmanager.JBossManagedConnectionPool$OnePool@65ca65ca context=org.jboss.resource.connectionmanager.InternalManagedConnectionPool@1f571f57 xaResource=org.jboss.resource.connectionmanager.TxConnectionManager$LocalXAResource@1a1e1a1e txSync=null]
java.lang.StringIndexOutOfBoundsException
at java.lang.String.substring(String.java:1088)
at com.ibm.db2.jcc.a.fm.zb(fm.java:3988)
at com.ibm.db2.jcc.a.fm.xb(fm.java:3959)
at com.ibm.db2.jcc.a.fm.a(fm.java:2668)
at com.ibm.db2.jcc.a.fm.a(fm.java:604)
at com.ibm.db2.jcc.a.fm.executeQuery(fm.java:588)
at org.jboss.resource.adapter.jdbc.WrappedStatement.executeQuery(WrappedStatement.java:171)
at sibs.deswin.lib.dba.DbaConnect.execQuery(DbaConnect.java:295)
at sibs.deswin.lib.dba.SqlSelect.exec(SqlSelect.java:258)
at sibs.ddssd.pss.core.portlet.NaviPage.getPflIItvCom(NaviPage.java:478)
at sibs.ddssd.pss.core.portlet.NaviPage.findResources(NaviPage.java:259)
at sibs.ddssd.pss.core.portlet.NaviPage.doView(NaviPage.java:149)
at javax.portlet.GenericPortlet.doDispatch(GenericPortlet.java:133)
at javax.portlet.GenericPortlet.render(GenericPortlet.java:306)
at org.jboss.portal.portlet.impl.jsr168.PortletContainerImpl.invokeRender(PortletContainerImpl.java:483)
at org.jboss.portal.portlet.impl.jsr168.PortletContainerImpl.dispatch(PortletContainerImpl.java:405)
at org.jboss.portal.portlet.container.PortletContainerInvoker$1.invoke(PortletContainerInvoker.java:86)
at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:131)
at org.jboss.portal.core.aspects.portlet.TransactionInterceptor.org$jboss$portal$core$aspects$portlet$TransactionInterceptor$invokeNotSupported$aop(TransactionInterceptor.java:86)
at org.jboss.portal.core.aspects.portlet.TransactionInterceptor$invokeNotSupported_N4547270787964792031.invokeNext(TransactionInterceptor$invokeNotSupported_N4547270787964792031.java)
at org.jboss.aspects.tx.TxPolicy.invokeInNoTx(TxPolicy.java:66)
How to do a trace in JBOSS?
Thanks in advanced.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4251620#4251620
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4251620
15 years, 5 months
[JBoss OSGi Development] - Re: Performance problem
by adrian@jboss.org
"alesj" wrote : "adrian(a)jboss.org" wrote : I should also mention that most of these tests are using the AssembledDirectory
| | so I can (re-)use the test support classes directly without having to do a packaging step.
| |
| | Maybe the issue is there?
| As you already know, Assembled stuff is pretty slow - I remember your comments when we first used it in Deployers tests.
| If you just recently changed this (applying its usage), than this is definitely the culprit.
| If you used this before, then I'm out of ideas. :-)
But that was building the stuff since the api required you to scan
the whole file system with a filter instead of being able to say exactly what you
wanted to include.
e.g. if I want to include classes in classes/org/foo/bar I has to pass "classes"
with a filter "org/foo/bar/*" which scans everything in classes.
The runtime stuff shouldn't be slow, i.e. just looking at the constructed tree
for the indirections.
P.S. The AssembledDirectory also needs some remove() or clear() methods.
There is one on AssembledDirectoryHandler but that is a private api.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4251612#4251612
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4251612
15 years, 5 months