[JBoss AOP] - Eclipse Error when I use the AOP plugin / Aspect Manager. Ne
by mondenkind
I use the AOP plugin that comes with the JBoss IDE.
I don't have the newest IDE version, but use the newest aop plugin files (org.jboss.ide.eclipse.jdt.aop.core_1.2.0.Beta2, org.jboss.ide.eclipse.jdt.aop.ui_1.2.0.Beta2)
The AOP code I wrote works fine, but when I use the Aspect Manager view in Eclipse and click on any file, I get this error message, which is quite annoying:
| Message:
| Problems occurred when invoking code from plug-in: "org.eclipse.ui.workbench".
|
| Exception Stack Trace:
| java.lang.NoSuchMethodError: org.eclipse.jdt.internal.ui.JavaPlugin.getWorkingCopyManager()Lorg/eclipse/jdt/internal/ui/javaeditor/WorkingCopyManager;
| at org.jboss.ide.eclipse.jdt.aop.ui.editors.AopJavaEditorUtils$AopEditorListener.getCompilationUnit(AopJavaEditorUtils.java:174)
| at org.jboss.ide.eclipse.jdt.aop.ui.editors.AopJavaEditorUtils$AopEditorListener.refreshAdvisedMembers(AopJavaEditorUtils.java:143)
| at org.jboss.ide.eclipse.jdt.aop.ui.editors.AopJavaEditorUtils$AopEditorListener.partActivated(AopJavaEditorUtils.java:138)
| at org.eclipse.ui.internal.PartListenerList2$1.run(PartListenerList2.java:68)
| at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:1044)
| at org.eclipse.core.runtime.Platform.run(Platform.java:783)
| at org.eclipse.ui.internal.PartListenerList2.fireEvent(PartListenerList2.java:54)
| at org.eclipse.ui.internal.PartListenerList2.firePartActivated(PartListenerList2.java:66)
| at org.eclipse.ui.internal.PartService.firePartActivated(PartService.java:77)
| at org.eclipse.ui.internal.PartService.setActivePart(PartService.java:171)
| at org.eclipse.ui.internal.WorkbenchPagePartList.fireActivePartChanged(WorkbenchPagePartList.java:56)
| at org.eclipse.ui.internal.PartList.setActivePart(PartList.java:117)
| at org.eclipse.ui.internal.WorkbenchPage.setActivePart(WorkbenchPage.java:2910)
| at org.eclipse.ui.internal.WorkbenchPage.requestActivation(WorkbenchPage.java:2512)
| at org.eclipse.ui.internal.PartPane.requestActivation(PartPane.java:249)
| at org.eclipse.ui.internal.EditorPane.requestActivation(EditorPane.java:88)
| at org.eclipse.ui.internal.PartPane.setFocus(PartPane.java:295)
| at org.eclipse.ui.internal.EditorPane.setFocus(EditorPane.java:116)
| at org.eclipse.ui.internal.PartStack.presentationSelectionChanged(PartStack.java:788)
| at org.eclipse.ui.internal.PartStack.access$0(PartStack.java:771)
| at org.eclipse.ui.internal.PartStack$1.selectPart(PartStack.java:119)
| at org.eclipse.ui.internal.presentations.util.TabbedStackPresentation$1.handleEvent(TabbedStackPresentation.java:126)
| at org.eclipse.ui.internal.presentations.util.AbstractTabFolder.fireEvent(AbstractTabFolder.java:267)
| at org.eclipse.ui.internal.presentations.util.AbstractTabFolder.fireEvent(AbstractTabFolder.java:276)
| at org.eclipse.ui.internal.presentations.defaultpresentation.DefaultTabFolder.access$1(DefaultTabFolder.java:1)
| at org.eclipse.ui.internal.presentations.defaultpresentation.DefaultTabFolder$2.handleEvent(DefaultTabFolder.java:84)
| at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
| at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:843)
| at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:867)
| at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:852)
| at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:660)
| at org.eclipse.swt.custom.CTabFolder.setSelection(CTabFolder.java:3138)
| at org.eclipse.swt.custom.CTabFolder.onMouse(CTabFolder.java:1922)
| at org.eclipse.swt.custom.CTabFolder$1.handleEvent(CTabFolder.java:288)
| at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
| at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:843)
| at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3125)
| at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2758)
| at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1699)
| at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1663)
| at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:367)
| at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:143)
| at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:103)
| at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:226)
| at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:376)
| at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:163)
| 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.eclipse.core.launcher.Main.invokeFramework(Main.java:334)
| at org.eclipse.core.launcher.Main.basicRun(Main.java:278)
| at org.eclipse.core.launcher.Main.run(Main.java:973)
| at org.eclipse.core.launcher.Main.main(Main.java:948)
|
Does anybody know that problem? What can I do to solve it?
Thanks for your help!!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4005196#4005196
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4005196
19 years, 3 months
[Persistence, JBoss/CMP, Hibernate, Database] - SessionException: session closed after very large native que
by jantzen
Hi All,
I've got a PostgreSQL 8.1 database that I'm performing a series of large queries on under JBoss 4.0.5, and the EntityManager is closing after each query such that the next fails. The queries are native SQL, and return in excess of 250,000 rows.
The datasource is defined as non-transactional to avoid transaction timeouts:
| <no-tx-datasource>
| <jndi-name>MyDB</jndi-name>
| <connection-url>jdbc:postgresql://localhost:5432/MyDB</connection-url>
| <driver-class>org.postgresql.Driver</driver-class>
| <user-name>...</user-name>
| <password>...</password>
| </no-tx-datasource>
|
And a suspect persistence unit:
| <persistence-unit name="MyDB">
| <provider>org.hibernate.ejb.HibernatePersistence</provider>
| <jta-data-source>java:/MyDB</jta-data-source>
| <properties>
| <property name="hibernate.dialect" value="org.hibernate.dialect.PostgreSQLDialect"/>
| <property name="hibernate.show_sql" value="false" />
| </properties>
| </persistence-unit>
|
The thing that's suspect here is the jta-data-source element, when I need this datasource not to be transactional, and I should be using non-jta-data-source. Unfortunately, there's a bug that prevents me from doing that (http://jira.jboss.com/jira/browse/EJBTHREE-433)
The EntityManager is injected by JBoss using PersistenceContext, and what I find is that the first query to run will succeed, and get through all of the expected data, but the next query to run will generate a SessionException because the EntityManager is getting shutdown somewhere.
So, has anyone else encountered this kind of behavior? Is it likely due to the jta-data-source declaration?
Thanks.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4005183#4005183
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4005183
19 years, 3 months