[JBoss JIRA] (JBIDE-10137) Close input and output stream in all places where it used
by Vitali Yemialyanchyk (Created) (JIRA)
Close input and output stream in all places where it used
---------------------------------------------------------
Key: JBIDE-10137
URL: https://issues.jboss.org/browse/JBIDE-10137
Project: Tools (JBoss Tools)
Issue Type: Enhancement
Components: common/jst/core, jsp/jsf/xml source editing
Affects Versions: 3.3.0.M4
Reporter: Vitali Yemialyanchyk
Assignee: Alexey Kazakov
Priority: Trivial
Unfortunately I've find a lot of places in JBossTools where InputStream & OutputStream are used and are not closed. Just make a search and inspect all over the code.
Here just list of places for org.jboss.tools.jsf plugin:
1) JSF2ComponentModelManager -> public static IDOMDocument getReadableDOMDocument(JarEntryFile file)
2) JSF2Util -> public static String readManifest(IProject project, String jarName) throws CoreException, IOException
3) JSF2TemplateManager -> public InputStream createStreamFromTemplate(String templateName)
4) JSF2ComponentsValidator -> protected boolean isValidate(IFile file)
5) XHTMLEntityResolver -> public static XMLInputSource _internalResolveEntity(... -> is.setByteStream(new LazyURLInputStream(physical));
6) XHTMLValidator -> stream = new FilteredInputStream(connect.getInputStream());
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
14 years
[JBoss JIRA] (JBIDE-10486) bpel editor 0.8 in JBT SOA Tooling continuous build comes from nightly or milestone sites @ eclipse.org, which is NEWER than version built in Jenkins and aggregated into JBT/JBDS
by Nick Boldt (Created) (JIRA)
bpel editor 0.8 in JBT SOA Tooling continuous build comes from nightly or milestone sites @ eclipse.org, which is NEWER than version built in Jenkins and aggregated into JBT/JBDS
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Key: JBIDE-10486
URL: https://issues.jboss.org/browse/JBIDE-10486
Project: Tools (JBoss Tools)
Issue Type: Bug
Components: BPEL, Build/Releng
Affects Versions: 3.3.0.Beta1
Reporter: Nick Boldt
Assignee: Nick Boldt
Fix For: 3.3.0.Beta1
JBT SOA Tooling [0, 1] includes the output of the BPEL component job [2, 3].
The JBDS SOA Tooling site is also pull bits from the same build of BPEL [4, 5].
[0] http://hudson.qa.jboss.com/hudson/job/jbosstools-3.3_stable_branch.soa-to...
[1] http://download.jboss.org/jbosstools/updates/nightly/soa-tooling/3.3.indigo/ BPEL from H98
[2] https://hudson.qa.jboss.com/hudson/job/jbosstools-3.3_stable_branch.compo...
[3] http://download.jboss.org/jbosstools/builds/staging/jbosstools-3.3_stable... BPEL from H98
http://hudson.qa.jboss.com/hudson/job/devstudio-5.0_stable_branch.soa-too...
http://www.qa.jboss.com/binaries/RHDS/builds/staging/devstudio-5.0_stable... BPEL from H98
---
However, the continuous build job is trying to pull from a newer version of BPEL:
http://hudson.qa.jboss.com/hudson/view/DevStudio/view/DevStudio_3.3.indig... BPEL from H101
---
Need to figure out why this build is pulling from the nightly/milestone sites, and the bpel component build - which uses the same pom.xml files - is not.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
14 years
[JBoss JIRA] (JBIDE-10570) Improve formatting of generated classes
by Dmitry Geraskov (Created) (JIRA)
Improve formatting of generated classes
---------------------------------------
Key: JBIDE-10570
URL: https://issues.jboss.org/browse/JBIDE-10570
Project: Tools (JBoss Tools)
Issue Type: Enhancement
Components: hibernate
Affects Versions: 3.3.0.M5
Reporter: Dmitry Geraskov
Assignee: Dmitry Geraskov
Fix For: 3.3.0.Beta1
This is related to hibernate-tools core.
Bad things which I have found:
1. @Table annotation - closing bracket on new line
2. @ManyToOne has no intend on the left
3. Class fields have 5 spaces indent on the left
4. Fields assignments in constructor have 3 spaces indentation
5. No empty line between constructors with arguments and 2 empty lines after default constructor
6. Redundant empty line before @Column
7. Redundant 2 empty lines before class close brace
8. 5 spaces before @Id
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
14 years
[JBoss JIRA] Created: (JBIDE-9360) NoSuchMethodError: org.jboss.logging.Logger.tracef
by Juergen Zimmermann (JIRA)
NoSuchMethodError: org.jboss.logging.Logger.tracef
--------------------------------------------------
Key: JBIDE-9360
URL: https://issues.jboss.org/browse/JBIDE-9360
Project: Tools (JBoss Tools)
Issue Type: Bug
Components: Hibernate
Affects Versions: 3.3.0.M2
Reporter: Juergen Zimmermann
Assignee: Max Rydahl Andersen
We are migrating from JBossAS 6 to 7, and also switched to JBoss Logging (from SLF4J). When submitting a JPA query there is a stacktrace (see below). The Eclipse project which provides the entity classes is a "Utility project" and its classpath contains %JBOSS_LOGGING%\modules\org\jboss\logging\main\jboss-logging-3.0.0.GA.jar.
I'll attach 2 screenshots:
* the error window
* the window showing the classpath (The user library "JBoss HSKA" contains jboss-logging-...jar)
The stacktrace:
java.lang.RuntimeException: java.lang.NoSuchMethodError: org.jboss.logging.Logger.tracef(Ljava/lang/String;Ljava/lang/Object;)V
at org.hibernate.ejb.event.BeanCallback.invoke(BeanCallback.java:45)
at org.hibernate.ejb.event.EntityCallbackHandler.callback(EntityCallbackHandler.java:94)
at org.hibernate.ejb.event.EntityCallbackHandler.postLoad(EntityCallbackHandler.java:87)
at org.hibernate.ejb.event.EJB3PostLoadEventListener.onPostLoad(EJB3PostLoadEventListener.java:47)
at org.hibernate.engine.TwoPhaseLoad.initializeEntity(TwoPhaseLoad.java:234)
at org.hibernate.loader.Loader.initializeEntitiesAndCollections(Loader.java:898)
at org.hibernate.loader.Loader.doQuery(Loader.java:773)
at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:270)
at org.hibernate.loader.Loader.doList(Loader.java:2449)
at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2192)
at org.hibernate.loader.Loader.list(Loader.java:2187)
at org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:452)
at org.hibernate.hql.ast.QueryTranslatorImpl.list(QueryTranslatorImpl.java:363)
at org.hibernate.engine.query.HQLQueryPlan.performList(HQLQueryPlan.java:196)
at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1258)
at org.hibernate.impl.QueryImpl.list(QueryImpl.java:102)
at org.hibernate.console.HQLQueryPage.getList(HQLQueryPage.java:50)
at org.hibernate.eclipse.console.views.QueryPageViewer$ContentProviderImpl.getElements(QueryPageViewer.java:120)
at org.eclipse.jface.viewers.StructuredViewer.getRawChildren(StructuredViewer.java:1010)
at org.eclipse.jface.viewers.ColumnViewer.getRawChildren(ColumnViewer.java:703)
at org.eclipse.jface.viewers.AbstractTableViewer.getRawChildren(AbstractTableViewer.java:1087)
at org.eclipse.jface.viewers.StructuredViewer.getFilteredChildren(StructuredViewer.java:917)
at org.eclipse.jface.viewers.StructuredViewer.getSortedChildren(StructuredViewer.java:1067)
at org.eclipse.jface.viewers.AbstractTableViewer.internalRefreshAll(AbstractTableViewer.java:701)
at org.eclipse.jface.viewers.AbstractTableViewer.internalRefresh(AbstractTableViewer.java:649)
at org.eclipse.jface.viewers.AbstractTableViewer.internalRefresh(AbstractTableViewer.java:636)
at org.eclipse.jface.viewers.AbstractTableViewer$2.run(AbstractTableViewer.java:592)
at org.eclipse.jface.viewers.StructuredViewer.preservingSelection(StructuredViewer.java:1443)
at org.eclipse.jface.viewers.StructuredViewer.preservingSelection(StructuredViewer.java:1404)
at org.eclipse.jface.viewers.AbstractTableViewer.inputChanged(AbstractTableViewer.java:590)
at org.eclipse.jface.viewers.ContentViewer.setInput(ContentViewer.java:280)
at org.eclipse.jface.viewers.StructuredViewer.setInput(StructuredViewer.java:1690)
at org.hibernate.eclipse.console.views.QueryPageViewer.createTable(QueryPageViewer.java:225)
at org.hibernate.eclipse.console.views.QueryPageViewer.createControl(QueryPageViewer.java:203)
at org.hibernate.eclipse.console.views.QueryPageViewer.<init>(QueryPageViewer.java:160)
at org.hibernate.eclipse.console.views.QueryPageTabView.rebuild(QueryPageTabView.java:109)
at org.hibernate.eclipse.console.views.QueryPageTabView$1.contentsChanged(QueryPageTabView.java:75)
at org.hibernate.eclipse.console.views.QueryPageTabView$1.intervalAdded(QueryPageTabView.java:85)
at javax.swing.AbstractListModel.fireIntervalAdded(AbstractListModel.java:130)
at org.hibernate.console.QueryPageModel.add(QueryPageModel.java:67)
at org.hibernate.console.KnownConfigurations$1.queryPageCreated(KnownConfigurations.java:88)
at org.hibernate.console.ConsoleConfiguration.fireQueryPageCreated(ConsoleConfiguration.java:312)
at org.hibernate.console.ConsoleConfiguration.access$4(ConsoleConfiguration.java:310)
at org.hibernate.console.ConsoleConfiguration$5.execute(ConsoleConfiguration.java:272)
at org.hibernate.console.execution.DefaultExecutionContext.execute(DefaultExecutionContext.java:63)
at org.hibernate.console.ConsoleConfiguration.execute(ConsoleConfiguration.java:72)
at org.hibernate.console.ConsoleConfiguration.executeHQLQuery(ConsoleConfiguration.java:265)
at org.hibernate.eclipse.hqleditor.HQLEditor.executeQuery(HQLEditor.java:449)
at org.hibernate.eclipse.console.actions.ExecuteQueryAction.execute(ExecuteQueryAction.java:84)
at org.hibernate.eclipse.console.actions.ExecuteQueryAction.run(ExecuteQueryAction.java:55)
at org.eclipse.jface.action.Action.runWithEvent(Action.java:498)
at org.hibernate.eclipse.console.actions.ExecuteQueryAction.runWithEvent(ExecuteQueryAction.java:59)
at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:584)
at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:501)
at org.eclipse.jface.action.ActionContributionItem$6.handleEvent(ActionContributionItem.java:452)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4165)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3754)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2696)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2660)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2494)
at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:674)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:667)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:123)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
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:344)
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:622)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)
at org.eclipse.equinox.launcher.Main.run(Main.java:1410)
Caused by: java.lang.NoSuchMethodError: org.jboss.logging.Logger.tracef(Ljava/lang/String;Ljava/lang/Object;)V
at de.swe.kundenverwaltung.domain.Privatkunde.postLoad(Privatkunde.java:124)
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.hibernate.ejb.event.BeanCallback.invoke(BeanCallback.java:37)
... 78 more
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
14 years