Re: [jboss-user] [jBPM Development] - AttachmentTest failure
by Huisheng Xu
Huisheng Xu [http://community.jboss.org/people/rebody] replied to the discussion
"AttachmentTest failure"
To view the discussion, visit: http://community.jboss.org/message/539411#539411
--------------------------------------------------------------
Hi Maciej,
I had checked jdk-1.5.0_15 and jdk-1.5.0_22. There is no javax.activation package in both of them. The reason of this error is caused by activation-1.1 didn't handle byte[]. The activation-1.1.1 will check the data type, if there is a byte[], activation-1.1.1 will not find additional ContentDataHandler.
I can't find either activation-1.1.1 or ContentDataHandler configuration for image/gif. If you have time, could you add javax.activation.level=FINEST in the logging.properties and run AttachmentTest again, and show me the content of target/surefire-reports/org.jbpm.test.activity.mail.AttachmentTest-output.txt. It will help me to find what I missed. Furthermore could you show me your the result of 'java -version' and 'mvn depedency:tree'? Thank you very much.
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/539411#539411]
Start a new discussion in jBPM Development at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
16 years
[Javassist] - JVM advice needed
by Stuart Douglas
Stuart Douglas [http://community.jboss.org/people/swd847] created the discussion
"JVM advice needed"
To view the discussion, visit: http://community.jboss.org/message/539410#539410
--------------------------------------------------------------
I am using javassist on an open source project that aims to bring run time class reloading to java, without discarding the classloader.
It aims to expand on the hotswap capabilities of the JVM, by recompiling the classes as they are loaded to allow the schema to be changed.
For instance an Object[] field is added to all classes as they are loaded, if the user then adds a field all gets/puts to this field are re-written to be array access to this array. The reflection API is also instrumented so it appears the new field behaves as expected with regard to reflection, and the fields/methods added at load time do not show up. This instrumentation also allows for annotations to be modified.
I similar approach is taken with static methods, a general purpose method is added at compile time:
static public Object FAKEREPALCE_ADDED_METHOD(int mno, Object[] args)
and the bytecode from the added method is placed in the method body of this method inside a conditional based on the method number.
This approach works quite well, mostly because you know that no existing code references the new field or method. However with virtual methods this is not the case as the user can add a new method that overrides a superclass method, so existing code will not be aware of the added method and the superclass method will continue to be called.
The only way i can see to get around this is to add overriden methods to all classes as they are loaded that call the corresponding superclass method, e.g.:
public String toString()
{
return super.toString();
}
Obviously this will result in a lot of extra methods being generated, and may result in quite a significant performance degradation.
I was wondering if anyone can think of a better / less invasive way to accomplish this?
If anyone is interested the project is here: http://code.google.com/p/fakereplace/ http://code.google.com/p/fakereplace/
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/539410#539410]
Start a new discussion in Javassist at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
16 years
Re: [jboss-user] [jBPM Development] - Insert user information for process instance
by Maciej Swiderski
Maciej Swiderski [http://community.jboss.org/people/swiderski.maciej] replied to the discussion
"Insert user information for process instance"
To view the discussion, visit: http://community.jboss.org/message/539402#539402
--------------------------------------------------------------
Hi,
yes, you are right. My intention was to provide a simple yet quite usable way of getting hold of user information while starting/signaling process instance.
What you described is much wider in scope and touches authorization. I meant just to give a possibility to process designers to decide if they are interested in having user information not storing it automatically, at least not at this point.
In addition, any other request information could be provided together with user info, such as additional request parameters, remote host information, headers, etc.
Cheers,
Maciej
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/539402#539402]
Start a new discussion in jBPM Development at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
16 years
[JBoss Tools] - why am i getting these errors with hibernate tools????
by Elhanan Maayan
Elhanan Maayan [http://community.jboss.org/people/Elhanan] created the discussion
"why am i getting these errors with hibernate tools????"
To view the discussion, visit: http://community.jboss.org/message/539396#539396
--------------------------------------------------------------
java.lang.NoClassDefFoundError: Could not initialize class org.jboss.tools.common.model.options.PreferenceModelUtilities$PreferenceModelHolder
at org.jboss.tools.common.model.options.PreferenceModelUtilities.getPreferenceModel(PreferenceModelUtilities.java:43)
at org.jboss.tools.common.editor.ObjectMultiPageEditor.loadSelectedTab(ObjectMultiPageEditor.java:151)
at org.jboss.tools.common.editor.ObjectMultiPageEditor.createPages(ObjectMultiPageEditor.java:239)
at org.eclipse.ui.part.MultiPageEditorPart.createPartControl(MultiPageEditorPart.java:357)
at org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:662)
at org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:462)
at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:595)
at org.eclipse.ui.internal.EditorReference.getEditor(EditorReference.java:286)
at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(WorkbenchPage.java:2857)
at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2762)
at org.eclipse.ui.internal.WorkbenchPage.access$11(WorkbenchPage.java:2754)
at org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.java:2705)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2701)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2685)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2676)
at org.eclipse.ui.ide.IDE.openEditor(IDE.java:651)
at org.eclipse.ui.ide.IDE.openEditor(IDE.java:610)
at org.eclipse.ui.internal.ide.handlers.OpenResourceHandler.execute(OpenResourceHandler.java:129)
at org.eclipse.ui.internal.ide.handlers.OpenResourceHandler.run(OpenResourceHandler.java:181)
at org.eclipse.ui.internal.handlers.ActionDelegateHandlerProxy.execute(ActionDelegateHandlerProxy.java:289)
at org.eclipse.core.commands.Command.executeWithChecks(Command.java:476)
at org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:508)
at org.eclipse.ui.internal.handlers.HandlerService.executeCommand(HandlerService.java:169)
at org.eclipse.ui.internal.keys.WorkbenchKeyboard.executeCommand(WorkbenchKeyboard.java:470)
at org.eclipse.ui.internal.keys.WorkbenchKeyboard.press(WorkbenchKeyboard.java:824)
at org.eclipse.ui.internal.keys.WorkbenchKeyboard.processKeyEvent(WorkbenchKeyboard.java:880)
at org.eclipse.ui.internal.keys.WorkbenchKeyboard.filterKeySequenceBindings(WorkbenchKeyboard.java:569)
at org.eclipse.ui.internal.keys.WorkbenchKeyboard.access$3(WorkbenchKeyboard.java:510)
at org.eclipse.ui.internal.keys.WorkbenchKeyboard$KeyDownFilter.handleEvent(WorkbenchKeyboard.java:125)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Display.filterEvent(Display.java:1208)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1002)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1027)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1012)
at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1040)
at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1036)
at org.eclipse.swt.widgets.Widget.wmChar(Widget.java:1368)
at org.eclipse.swt.widgets.Control.WM_CHAR(Control.java:4053)
at org.eclipse.swt.widgets.Canvas.WM_CHAR(Canvas.java:346)
at org.eclipse.swt.widgets.Control.windowProc(Control.java:3946)
at org.eclipse.swt.widgets.Canvas.windowProc(Canvas.java:342)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:4619)
at org.eclipse.swt.internal.win32.OS.CallWindowProcW(Native Method)
at org.eclipse.swt.internal.win32.OS.CallWindowProc(OS.java:2314)
at org.eclipse.swt.internal.BidiUtil.windowProc(BidiUtil.java:639)
at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:2411)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3501)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2405)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2369)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2221)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:500)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:493)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:113)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:194)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:368)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:559)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/539396#539396]
Start a new discussion in JBoss Tools at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
16 years