[jbossseam-issues] [JBoss JIRA] Created: (JBSEAM-2904) org.jboss.seam.framework.EntityNotFoundException: entity not found issue
by Muthu Venkataraman (JIRA)
org.jboss.seam.framework.EntityNotFoundException: entity not found issue
------------------------------------------------------------------------
Key: JBSEAM-2904
URL: http://jira.jboss.com/jira/browse/JBSEAM-2904
Project: Seam
Issue Type: Bug
Components: Seam Text
Affects Versions: 2.1.0.A1, 2.0.2.CR1, 2.0.1.GA, 2.0.1.CR2, 2.0.1.CR1, 2.0.0.GA
Environment: Windows Platform, JBoss AS 4.2 GA
Reporter: Muthu Venkataraman
I am working on a demo project and played around with Seam quite a bit. During the process ran into the subject issue while trying to reverse engineer the application based on a database design using Seam-gen.
The above issue is easily reprocible when working with database tables with multiple primary key columns. Seam generates the code successfully and the Entity IDs seem to get created correctly as well. At run time when trying to create an object instance of the entity, Seam generates the subject error.
I tried working with different release versions of Seam Framework and all of them seem to exhibit the same problem which lead me to believe that this may be a problem with Hibernate itself. Not sure if this where to start with the troubleshooting.
I can provide more context if required.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
17 years, 11 months
[jbossseam-issues] [JBoss JIRA] Moved: (JBSEAM-2900) seam-gen does not ask for jboss configuration name
by Max Rydahl Andersen (JIRA)
[ http://jira.jboss.com/jira/browse/JBSEAM-2900?page=all ]
Max Rydahl Andersen moved JBIDE-2073 to JBSEAM-2900:
----------------------------------------------------
Project: Seam (was: Tools (JBoss Tools))
Key: JBSEAM-2900 (was: JBIDE-2073)
Issue Type: Feature Request (was: Bug)
Component/s: Tools
(was: Seam)
Workaround Description: (was: Rename directories under jboss/server directory appropriately before and after deployment.)
Affects Version/s: 2.1.0.A1
2.0.1.GA
(was: 2.0.1)
Workaround: (was: [Workaround Exists])
> seam-gen does not ask for jboss configuration name
> --------------------------------------------------
>
> Key: JBSEAM-2900
> URL: http://jira.jboss.com/jira/browse/JBSEAM-2900
> Project: Seam
> Issue Type: Feature Request
> Components: Tools
> Affects Versions: 2.1.0.A1, 2.0.1.GA
> Environment: Seam 2.0.1GA, JDK 1.5.0_11, ANT 1.7.0, JBoss 4.2.2, Windows XP
> Reporter: Ashish Kulkarni
>
> Hi there,
> seam-gen does not ask for the jboss configuration name. When we run seam explode/deploy, the deployment gets done to default configuration.
> Can this be modified so that seam-gen can deploy to a different configuration other than default?
> Best Regards,
> Ashish.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
17 years, 11 months
[jbossseam-issues] [JBoss JIRA] Created: (JBSEAM-2309) UserTransaction.commit() may throw a RollbackException(), in that case don't try to perform a UserTransaction.rollback()
by Denis Forveille (JIRA)
UserTransaction.commit() may throw a RollbackException(), in that case don't try to perform a UserTransaction.rollback()
------------------------------------------------------------------------------------------------------------------------
Key: JBSEAM-2309
URL: http://jira.jboss.com/jira/browse/JBSEAM-2309
Project: JBoss Seam
Issue Type: Bug
Components: Core
Affects Versions: 2.0.0.GA, 1.2.1.GA
Reporter: Denis Forveille
In the org.jboss.seam.util.Work class, the call to userTransaction.commit() is surrounded by a try/catch(Exception). In the catch block, if an exception occurs during the commit, a UserTransaction.rollback() is attempted. This may fail as the UserTransaction.commit() may throw a RollbackException, and in that case the UserTransaction ihas already been rollbacked. So an attempt to perform a rollback on the UserTransaction result in an illegalstate exception. This happens to us when something goes wrong in the beforeCommit() methods and hibernate throws a StaleObjectStateException()
We use seam 1.2.1 + POJO + WebSphere v61.0..13
The code could be something like this (Class Work.java):
try {
T result = work();
if (begin) {
log.debug("committing transaction");
userTransaction.commit();
}
return result;
} catch (Exception e) {
if (begin) {
log.debug("rolling back transaction");
if (userTransaction.getStatus() != STATUS_NO_TRANSACTION) {
userTransaction.rollback();
}
}
throw e;
}
Or the code could explicitely catch the RollbackException
This could be applied at any place in the code when a UserTransaction.commit() is called.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
17 years, 11 months
[jbossseam-issues] [JBoss JIRA] Created: (JBSEAM-2851) JChart does not work with ICEFaces project generated with seam-gen, java.lang.NoClassDefFoundError: org/krysalis/jcharts/Chart
by Nicolas Martignole (JIRA)
JChart does not work with ICEFaces project generated with seam-gen, java.lang.NoClassDefFoundError: org/krysalis/jcharts/Chart
------------------------------------------------------------------------------------------------------------------------------
Key: JBSEAM-2851
URL: http://jira.jboss.com/jira/browse/JBSEAM-2851
Project: JBoss Seam
Issue Type: Bug
Components: Tools
Affects Versions: 2.1.0.A1
Environment: JBoss-4.2.2 GA, JBoss Seam 2.1.0.A1, MacOS X
Reporter: Nicolas Martignole
Priority: Minor
I created a new project using seam-gen tools on a new project.
During the seam setup phase, I specified the latest version of ICEFaces.
Everything went well and the default pages generated with seam-gen works properly.
I tried to insert the JCharts component from ICEFaces to draw a simple 3D Pie Chart
with the following code in home.xhtml
<ice:form>
<ice:panelGrid columns="2" columnClasses="leftMenu, leftMenu" rendered="#{identity.loggedIn}">
<ice:outputChart type="pie3d"
chartTitle="Network Health"
labels="OK,WARN,ERROR,FATAL"
data="80,10,5,5"
colors="green,yellow,orange,red"
/>
</ice:panelGrid>
</ice:form>
I did a "seam restart" and I get the following exception in JBoss stack
Caused by: java.lang.NoClassDefFoundError: org/krysalis/jcharts/Chart
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Class.java:2395)
at java.lang.Class.getDeclaredMethods(Class.java:1763)
at java.beans.Introspector$1.run(Introspector.java:1265)
at java.security.AccessController.doPrivileged(Native Method)
at java.beans.Introspector.getPublicDeclaredMethods(Introspector.java:1263)
at java.beans.Introspector.getTargetMethodInfo(Introspector.java:1129)
at java.beans.Introspector.getBeanInfo(Introspector.java:387)
at java.beans.Introspector.getBeanInfo(Introspector.java:159)
at javax.faces.component.UIComponentBase.getPropertyDescriptors(UIComponentBase.java:167)
at javax.faces.component.UIComponentBase.populateDescriptorsMapIfNecessary(UIComponentBase.java:132)
at javax.faces.component.UIComponentBase.<init>(UIComponentBase.java:121)
at javax.faces.component.UICommand.<init>(UICommand.java:102)
at javax.faces.component.html.HtmlCommandButton.<init>(HtmlCommandButton.java:53)
at com.icesoft.faces.component.ext.HtmlCommandButton.<init>(HtmlCommandButton.java:93)
at com.icesoft.faces.component.outputchart.OutputChart.<init>(OutputChart.java:118)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
at java.lang.Class.newInstance0(Class.java:350)
at java.lang.Class.newInstance(Class.java:303)
at com.sun.faces.application.ApplicationImpl.newThing(ApplicationImpl.java:1014)
... 84 more
I managed to fix the issue by
- copying krysalis-jCharts-1.0.0-alpha-1.jar from ${icefaces.home}/lib to myproject/lib folder
- updating my build.xml in the EAR target, by adding an " <include name="lib/krysalis-jCharts-1.0.0-alpha-1.jar"/>"
in the EAR target in the fileset
I don't know very well seam-gen but it seems that it's a small bug
in one of the template build.xml defined in seam-gen folder.
Hope it will help someone
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
17 years, 11 months
[jbossseam-issues] [JBoss JIRA] Created: (JBSEAM-884) ICEFaces dataPaginator causes duplicate ID exception
by henrik lindberg (JIRA)
ICEFaces dataPaginator causes duplicate ID exception
----------------------------------------------------
Key: JBSEAM-884
URL: http://jira.jboss.com/jira/browse/JBSEAM-884
Project: JBoss Seam
Issue Type: Bug
Components: ICE Faces Integration
Affects Versions: 1.1.6.GA
Environment: Seam 1.1.6.GA, ICEFaces 1.5.3
Reporter: henrik lindberg
Assigned To: Gregory Dick
Priority: Critical
When using a data paginator with a data table duplicate ids are created for all paginator facets except the first added facet.
The attached code illustrates the problem. Use the facelet to add test data, a duplicate id exception is thrown when a new test data is added.
Refresh the page (using browser) to see that data was added, try to add another (refresh again).
Editing out all facets for the paginator except one makes the code work.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
17 years, 11 months