[JBoss JIRA] (JBIDE-10475) AS7 examples from JBoss Central such as helloworld do not have a targeted runtime after import
by Rob Stryker (Created) (JIRA)
AS7 examples from JBoss Central such as helloworld do not have a targeted runtime after import
----------------------------------------------------------------------------------------------
Key: JBIDE-10475
URL: https://issues.jboss.org/browse/JBIDE-10475
Project: Tools (JBoss Tools)
Issue Type: Bug
Components: project-examples
Affects Versions: 3.3.0.M5
Reporter: Rob Stryker
Assignee: Snjezana Peco
Fix For: 3.3.0.Beta1
As described by Martin:
When I try to create one of the examples with AS 7.1 installed, it doesn't complain about anything and simply creates the project. But when you go to "Project -> Properties -> Targeted runtimes" no runtime is checked. The 7.1 runtime should be automatically checked, right?
---
I did some digging and found that none of the fixes in project examples add the facet runtime as a primary runtime object to the project. In my environment, after importing the hello-world example via JBoss Central, the only "fix" that is != null is WTPRuntimeFix. This fix, however, seems heavily targeted to ESB fixes, and not to generic projects such as hello-world.
What I'm noting is that on line 94, the project has no primary runtime set yet. Therefore, it slips into the correcting of the esb section, where it does nothing.
I'm attaching a patch which attempts to fix this logic. It isolates the code to check for whether esb is required. Then it ensures that the proper facet-runtime is added regardless of whether one exists on the project already.
The patch is not 100%, though, because I commented out two lines, calling fixNonFacetedEsbProject. I commented these lines out because by this point in the code, we have already guaranteed the project IS faceted. I am confident this code is correct, but I admit I do not know all the usecases and so cannot guarantee it. A test on your part would prove very helpful
--
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, 2 months
[JBoss JIRA] (JBDS-1985) Synchronizing a VDB takes too long in 7.4.2
by Max Rydahl Andersen (JIRA)
[ https://issues.jboss.org/browse/JBDS-1985?page=com.atlassian.jira.plugin.... ]
Max Rydahl Andersen updated JBDS-1985:
--------------------------------------
Fix Version/s: 4.1.2.GA
(was: 4.1.x)
> Synchronizing a VDB takes too long in 7.4.2
> -------------------------------------------
>
> Key: JBDS-1985
> URL: https://issues.jboss.org/browse/JBDS-1985
> Project: Developer Studio (JBoss Developer Studio)
> Issue Type: Support Patch
> Security Level: Public(Everyone can see)
> Components: teiid
> Affects Versions: 4.1.1.GA
> Reporter: Johnathon Lee
> Assignee: Barry LaFond
> Fix For: 4.1.2.GA
>
> Attachments: JBDS1985.upversion.patch.txt, org.teiid.designer.core.patch, org.teiid.designer.dqp.patch, org.teiid.designer.vdb.patch, org.teiid.designer.vdb.test.patch, org.teiid.designer.vdb.ui.patch, TEIIDDES-1200-7.4.2-Patch-A.zip, TEIIDDES_1200.zip, UdfManager.java.patch, UdfUiPlugin.java.patch, VdbUtil.java.patch
>
>
> Synchronizing a big VDB in version 7.4.2 (JBDS 4.1.1) takes 30 minutes versus 2 minutes in 7.1.1 (JBDS 4.1.0)
> Investigating/debug noted 2 areas.
> 1) New UdfManager is not caching a FunctionLibrary and each SQL validation is creating a new instance. (needs a fix)
> 2) Synchronizing a VDB is hammering the ChecksumUtil.computeChecksum() during the VDB's resource build processing
> 3) PreviewManager is using a new Vdb() object to determine if "preview = true" and version #. However, it's heavy weight and currently the Vdb() is registering for events, but is not being Unregistered.
--
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, 2 months
[JBoss JIRA] (JBIDE-10572) NullPointerException in ClassHyperlink
by Viacheslav Kabanovich (Created) (JIRA)
NullPointerException in ClassHyperlink
--------------------------------------
Key: JBIDE-10572
URL: https://issues.jboss.org/browse/JBIDE-10572
Project: Tools (JBoss Tools)
Issue Type: Bug
Components: common/jst/core
Affects Versions: 3.3.0.M5
Reporter: Viacheslav Kabanovich
Assignee: Alexey Kazakov
Fix For: 3.3.0.Beta1
Attachments: NPE.txt
Now the exception can be obtained only in struts-config.xml, but faults in our code make it probable to appear more generally.
EXECUTE: Create Struts KickStart project and open struts-config.xml
EXECUTE: Create global exception
{code}
<exception className="/pages/greeting.jsp" key="a" path="/greeting.do" type="b"/>
{code}
where 'className' is deliberately assigned to an existing page path instead of a class name.
EXECUTE: Call open-on options over word 'greeting'
ASSERT: Two options appear:
1) open class 'greeting.jsp'
2) Open '/struts/WebContent/pages/greeting.jsp' with JBoss Tools JSP Editor
EXECUTE: Call open-on options over symbol '/'
FAILURE: null pointer exception; two options may still appear:
1) empty label
2) Open '/struts/WebContent/pages/greeting.jsp' with JBoss Tools JSP Editor
I see the cause of the exception in difference of algorithm computing class name region in classes XMLClassHyperlinkPartitioner and ClassHyperlink. Partitioner returns attribute value with trimmed white spaces ant quote symbols. So, even if open-on is invoked over '/', partitioner creates instance of ClassHyperlink. But ClassHyperlink computes region more strictly, so that text contains only qualified Java name symbols. When open-on is invoked over '/', ClassHyperlink sets region to open to null. If there is no other hyperlink option, that may pass, but when several hyperlinks are detected, MultipleHyperlinkPresenter requests each for hyperlink text, and ClassHyperlink fails. In this case the other option is WST's WorkspaceFileHyperlink, it detects in any attribute values resource paths; if it starts to detect them in text nodes (and why not?), this issue will take place in faces-config.xml and web.xml, where class names are assigned as text nodes.
This issue cannot be fixed just by preventing NPE, because open-on option with empty label may appear all the same. Solution is to let partitioner create instance of hyperlink only when hyperlink is capable to do its job.
--
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, 2 months