[JBoss Seam] - Re: problem passivation thread: ConcurrentModificationExcept
by lowecg2004
Finally realised what was going on with this.
I had a LoginAction:
@Stateful
| @Scope(ScopeType.EVENT)
| public class LoginAction implements Login, Serializable
| {
| @Out
| SessionTimeoutHander sessionTimeoutHander;
|
| ...
|
| public String login() {
| ...
|
| sessionTimeoutHander = Component.getInstance("sessionTimeoutHander");
|
| ...
| }
| }
If a user had made a successful login twice within the same HTTP session (e.g. login, hit back button, login again - surprisingly, this scenario shows up quite a lot in my access logs!), the call to getInstance() would introduce a duplicate object. When the SFSB destruction code ran, I got the ConcurrentModificationException.
The solution was to handle the creation of the sessionTimeoutHandler using a regular @In(create=true) against sessionTimeoutHandler and remove the call to getInstance(). I was assuming that my code above was equivalent to @In(create=true), but clearly it is not.
Although there was no apparent problem in my application, because of exception raised during the SFSB clean-up there may be a potential memory leak situation since EJB3 cannot successfully destroy objects. The exceptions were recurring which would suggest that the objects are being held onto which supports this theory.
Hope this helps,
Cheers,
Chris.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4016302#4016302
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4016302
19Â years, 2Â months
[JBoss Portal] - Building JBoss Portal 2.4.1 on SLES 10
by nils_kassube
Guten Tag.
I'm trying to build the souce release (fetched as tarball from SourceForge, not via CVS) on SuSE Linux Enterprise Server 10.
/bin/ant is refered (why?) somewhere in the build scripts, so let's ln -s /usr/bin/ant to /bin/ant. Then:
pentaho:~/jboss-portal-2.4.1-src/build # sh build.sh
: command not found2.4.1-src/tools/bin/common.shlib: line 7:
: command not found2.4.1-src/tools/bin/common.shlib: line 9:
'root/jboss-portal-2.4.1-src/tools/bin/common.shlib: line 11: syntax error near unexpected token `{
'root/jboss-portal-2.4.1-src/tools/bin/common.shlib: line 11: `{
xset: unable to open display ""
xset: unable to open display ""
/root/jboss-portal-2.4.1-src/tools/bin/build.sh: line 38: check_os: command not found
/root/jboss-portal-2.4.1-src/tools/bin/build.sh: line 40: convertpath: command not found
/root/jboss-portal-2.4.1-src/tools/bin/build.sh: line 41: convertpath: command not found
/root/jboss-portal-2.4.1-src/tools/bin/build.sh: line 42: debug: command not found
/root/jboss-portal-2.4.1-src/tools/bin/build.sh: line 43: debug: command not found
xset: unable to open display ""
xset: unable to open display ""
/root/jboss-portal-2.4.1-src/tools/bin/build.sh: line 53: convertpath: command not found
/root/jboss-portal-2.4.1-src/tools/bin/build.sh: line 54: debug: command not found
xset: unable to open display ""
/root/jboss-portal-2.4.1-src/tools/bin/build.sh: line 62: debug: command not found
/root/jboss-portal-2.4.1-src/tools/bin/build.sh: line 67: maybe_source: command not found
/root/jboss-portal-2.4.1-src/tools/bin/build.sh: line 70: [: =: unary operator expected
/root/jboss-portal-2.4.1-src/tools/bin/build.sh: line 94: debug: command not found
/root/jboss-portal-2.4.1-src/tools/bin/build.sh: line 107: die: command not found
xset: unable to open display ""
/root/jboss-portal-2.4.1-src/tools/bin/build.sh: line 120: debug: command not found
xset: unable to open display ""
/root/jboss-portal-2.4.1-src/tools/bin/build.sh: line 133: debug: command not found
/root/jboss-portal-2.4.1-src/tools/bin/build.sh: line 136: notice: command not found
Buildfile: build.xml does not exist!
Build failed
--cut--
Calling ant directly also doesn't work. The error message:
BUILD FAILED
/root/jboss-portal-2.4.1-src/tools/etc/buildfragments/buildmagic.ent:256: The following error occurred while executing this line:
/root/jboss-portal-2.4.1-src/tools/etc/buildfragments/buildmagic.ent:349: Could not create task or type of type: depend.
Ant could not find the task or a class this task relies upon.
Cheers,
Nils
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4016299#4016299
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4016299
19Â years, 2Â months
[JBoss jBPM] - Re: Choosing JBPM?
by angra81
Actually I'm just starting in using business processes, jbpm, and all this, and I'm exploring the solutions, so I'm sorry if I place stupid questions... :)
Well, I try to explain better.
Firstly, my "objects" are documents (application forms, motivation letters, CV, etc...)
Imagine a document to have to be validated by somebody. The validation is made, in my system, by a web service.
In my interface I want to see, e.g., the scenario of the web services, an icon (representing the service which has validated the document) which change color for a moment when the object document is validated, and some additional information (the name of the document, or the history of the services received in the scenario by the documents, etc...).
My interface will be a web interface, I repeat, and I want to see all this in an animation in a web page (made using flash, jsp, applet, ajax, etc).
I think that I can do it if you tell me that I can see (and use) the process variables, isn't it?
Thanks,
Dario
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4016295#4016295
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4016295
19Â years, 2Â months
[JBoss Eclipse IDE (users)] - JBoss Eclipse IDE Hibernate Code Generation
by grdzeli_kaci
hi all.
I have one problem.
I've installed Linux OS on my computer SUSE LINUX 10.1 (i586),
i know Ejb(Ejb3) and jsf wery vell, but I'm a beginner into Seam Framework, i like its ideas and i think to learn it.
first, i fount that jboss eclipse ide can generate such ejb3 anotations as standart jsp pages and seam templates.
i tryed to use it, but none of this eclipse and ide tool version did not work properly.
i tryed this versions:
eclipse Versions : 3.2.0, 3.2.1.
Eclipse Ide Versions 1.6.0.GA, 2.0 beta
but on windows os hibernate code generation can generate everything without seam template. if i checked seam template generation i got an error sach means here pos
seam skeleton templates does not support composite keys yet.
here is post about this problem :
http://www.jboss.com/index.html?module=bb&op=viewtopic&t=84938
but max said
anonymous wrote : yes, the seam app skeleton in hibernate tools has been discontinued and now part of seam it self as the tool called seam-gen (with alot of improvements)
can anybody give me eclipse and jboss ide url from i can download them, and it could be work correctly ?
i need these for SUSE LINUX 10.1 (i586), i've already download 10 versions of eclipse and some versions of jboss eclipse ide.
Regards,
Paata.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4016293#4016293
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4016293
19Â years, 2Â months