[Design of Embedded JBoss] - Re: External Contribution to AS Embedded
by wolfc
"ALRubinger" wrote : "pgmjsd" wrote : * I'm not sure about the "package per jira issue" convention. But hey... if that's how you wanna roll.
|
| This is something we'd adopted with some success in EJB3. Basically the JIRA-issue namespace allows us to be very clear about which classes are used in which tests. For shared/common stuff, the ".jbbootXX" package isn't necessary, but in some cases its convenient to show the isolation. I'm not going to enforce any hard-and-fast rules here. So long as everything is tested in readable/obvious form, do what makes most sense to you.
The rules which apply and should be enforced are:
1. each test must clear state which function it's testing
We have a lot of tests which do some form of setup do get to the actual state in which a function can be tested. If a test doesn't clearly define its goal, then regression might happen because an unrelated function (which is used) is refactored.
2. each test is a guard against (backwards compatibility) regression
You not change a test because it's failing. That would break backwards compatibility by default. You should only change those bits of a test that are affected by a bug fix.
The two are very much intertwined, but as a rule the Jira issue stipulates the test goal and keeps track of which version is affected.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4238998#4238998
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4238998
16 years, 9 months
[Design of Messaging on JBoss (Messaging/JBoss)] - Problem with remote JBM access from applet running on conflu
by kweeboo
Hi,
I encountered problem in making remote JBM connection to jboss-5.0.0.GA from an applet client that is residing inside atlassian confluence 2.7.3. Somehow, the problem is related to MarshallerEditor.class.
Below is the Java Console's Log:
[aop-trace] org.jboss.util.propertyeditor.PropertyEditors Mapping properties for bean: SocketClientInvoker[9d8ab8, bisocket://192.168.2.118:4457]
[aop-trace] org.jboss.util.propertyeditor.PropertyEditors Property editor found for: pingFrequency, editor: java.beans.PropertyDescriptor@7ca65360, setter: public void org.jboss.remoting.transport.bisocket.BisocketClientInvoker.setPingFrequency(int)
[aop-trace] org.jboss.util.propertyeditor.PropertyEditors Property editor found for: numberOfCallRetries, editor: java.beans.PropertyDescriptor@60366bd6, setter: public void org.jboss.remoting.transport.socket.MicroSocketClientInvoker.setNumberOfCallRetries(int)
[aop-trace] org.jboss.util.propertyeditor.PropertyEditors Property editor found for: marshaller, editor: java.beans.PropertyDescriptor@78a439ee, setter: public void org.jboss.remoting.MicroRemoteClientInvoker.setMarshaller(org.jboss.remoting.marshal.Marshaller)
network: Cache entry not found [url: http://localhost:8090/download/resources/jbm.test.macro.JBMTestMacro:JBMT..., version: null]
network: Connecting http://localhost:8090/download/resources/jbm.test.macro.JBMTestMacro:JBMT... with proxy=DIRECT
network: Connecting http://localhost:8090/ with proxy=DIRECT
network: Connecting http://localhost:8090/download/resources/jbm.test.macro.JBMTestMacro:JBMT... with cookie "confluence.browse.space.cookie=space-attachments; JSESSIONID=979027F0B52002F1DAB41EACEB4446C5"
network: Cache entry not found [url: http://localhost:8090/download/resources/jbm.test.macro.JBMTestMacro:JBMT..., version: null]
network: Connecting http://localhost:8090/download/resources/jbm.test.macro.JBMTestMacro:JBMT... with proxy=DIRECT
network: Connecting http://localhost:8090/download/resources/jbm.test.macro.JBMTestMacro:JBMT... with cookie "confluence.browse.space.cookie=space-attachments; JSESSIONID=979027F0B52002F1DAB41EACEB4446C5"
network: Cache entry not found [url: http://localhost:8090/download/resources/jbm.test.macro.JBMTestMacro:JBMT..., version: null]
network: Connecting http://localhost:8090/download/resources/jbm.test.macro.JBMTestMacro:JBMT... with proxy=DIRECT
network: Connecting http://localhost:8090/download/resources/jbm.test.macro.JBMTestMacro:JBMT... with cookie "confluence.browse.space.cookie=space-attachments; JSESSIONID=979027F0B52002F1DAB41EACEB4446C5"
network: Cache entry not found [url: http://localhost:8090/download/resources/jbm.test.macro.JBMTestMacro:JBMT..., version: null]
network: Connecting http://localhost:8090/download/resources/jbm.test.macro.JBMTestMacro:JBMT... with proxy=DIRECT
network: Connecting http://localhost:8090/download/resources/jbm.test.macro.JBMTestMacro:JBMT... with cookie "confluence.browse.space.cookie=space-attachments; JSESSIONID=979027F0B52002F1DAB41EACEB4446C5"
network: Cache entry not found [url: http://localhost:8090/download/resources/jbm.test.macro.JBMTestMacro:JBMT..., version: null]
network: Connecting http://localhost:8090/download/resources/jbm.test.macro.JBMTestMacro:JBMT... with proxy=DIRECT
network: Connecting http://localhost:8090/download/resources/jbm.test.macro.JBMTestMacro:JBMT... with cookie "confluence.browse.space.cookie=space-attachments; JSESSIONID=979027F0B52002F1DAB41EACEB4446C5"
java.lang.RuntimeException: Failed to download and/or install client side AOP stack
at org.jboss.jms.client.JBossConnectionFactory.createConnectionInternal(JBossConnectionFactory.java:199)
at org.jboss.jms.client.JBossConnectionFactory.createConnection(JBossConnectionFactory.java:87)
at org.jboss.jms.client.JBossConnectionFactory.createConnection(JBossConnectionFactory.java:82)
at mytest.JBMTestApplet.invokeJMS(JBMTestApplet.java:77)
at mytest.JBMTestApplet$1.actionPerformed(JBMTestApplet.java:39)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
Caused by: org.jboss.jms.exception.MessagingNetworkFailureException: Failed to connect client
at org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate.createClient(ClientConnectionFactoryDelegate.java:313)
at org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate.org$jboss$jms$client$delegate$ClientConnectionFactoryDelegate$getClientAOPStack$aop(ClientConnectionFactoryDelegate.java:232)
at org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate.getClientAOPStack(ClientConnectionFactoryDelegate.java)
at org.jboss.jms.client.ClientAOPStackLoader.load(ClientAOPStackLoader.java:75)
at org.jboss.jms.client.JBossConnectionFactory.createConnectionInternal(JBossConnectionFactory.java:192)
... 28 more
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.jboss.remoting.InvokerRegistry.loadClientInvoker(InvokerRegistry.java:450)
at org.jboss.remoting.InvokerRegistry.createClientInvoker(InvokerRegistry.java:349)
at org.jboss.remoting.Client.connect(Client.java:495)
at org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate.createClient(ClientConnectionFactoryDelegate.java:309)
... 32 more
Caused by: java.lang.ClassFormatError: Truncated class file
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.beans.Introspector.instantiate(Unknown Source)
at java.beans.PropertyEditorManager.findEditor(Unknown Source)
at org.jboss.util.propertyeditor.PropertyEditors.mapJavaBeanProperties(PropertyEditors.java:369)
at org.jboss.remoting.util.SecurityUtility$29.run(SecurityUtility.java:819)
at java.security.AccessController.doPrivileged(Native Method)
at org.jboss.remoting.util.SecurityUtility.mapJavaBeanProperties(SecurityUtility.java:815)
at org.jboss.remoting.transport.socket.MicroSocketClientInvoker.setup(MicroSocketClientInvoker.java:491)
at org.jboss.remoting.transport.socket.MicroSocketClientInvoker.(MicroSocketClientInvoker.java:270)
at org.jboss.remoting.transport.socket.SocketClientInvoker.(SocketClientInvoker.java:75)
at org.jboss.remoting.transport.bisocket.BisocketClientInvoker.(BisocketClientInvoker.java:161)
at org.jboss.remoting.transport.bisocket.TransportClientFactory.createClientInvoker(TransportClientFactory.java:44)
... 40 more
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4238996#4238996
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4238996
16 years, 9 months
[Design of Embedded JBoss] - Re: External Contribution to AS Embedded
by ALRubinger
"pgmjsd" wrote : I wasn't sure what each module was for. I just looked for a test that started up 'bootstraps' inside a 'server'. Got it... impl-mc is for the MC specific stuff like parsing XML and whatnot, impl-base is for basic lifecycle sequence.
The Wiki documentation I'll be posting this week will very clearly delineate the purpose of each project, but yeah, that's about it. spi/impl-base defines a "Server" as "just some thing that has a simple lifecycle". spi-mc extends this to tie into the Microcontainer Kernel/Controller. And spi-as brings in all the AS-specific constructs/configuration. The goal is for many AS subprojects to use spi-mc directly to create their own slim/custom runtimes for testing, and then these may be consumed entirely by AS later.
"pgmjsd" wrote : Downloaded the patch, here's what I think:
| * I had to move the files in the patch because the patch was based on a subdirectory. I'll have to see if IDEA can make patches with a directory different from the base of the project. I'm using boostrap/trunk as the base.
patchBaseDir$>patch -p < /location/to/patch
...assuming you're on *nix. But in the future I'll base off "trunk", N/P.
"pgmjsd" wrote : * Now I understand what 'a Bootstrap' is, sort of. Partial understanding of the module structure.
Again, Wikis this week will take out a lot of the guesswork.
"pgmjsd" wrote : * I'm not sure about the "package per jira issue" convention. But hey... if that's how you wanna roll.
This is something we'd adopted with some success in EJB3. Basically the JIRA-issue namespace allows us to be very clear about which classes are used in which tests. For shared/common stuff, the ".jbbootXX" package isn't necessary, but in some cases its convenient to show the isolation. I'm not going to enforce any hard-and-fast rules here. So long as everything is tested in readable/obvious form, do what makes most sense to you.
"pgmjsd" wrote : I have eclipse, but I prefer IDEA. I've already made templates for the license and such for IDEA.
Great. Whatever IDE you prefer is your choice; I'm just best equipped to help you out on Eclipse.
"pgmjsd" wrote : I'm forum/wiki/JIRA enabled. But I haven't signed a contributor agreement in a while. I pre-date the shiny new contributor sign up web application. ;)
Let's get you logged into the new webapp; it'll make the .org team proud. :) Then I can expedite your application.
S,
ALR
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4238946#4238946
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4238946
16 years, 9 months