[jboss-user] [EJB/JBoss] - Re: Infinite loop Exception while passivating a SFSB

2008-08-06 Thread rapowder
Nevermind, that was really a stupid question... Anyway I found out where the stackoverflow occurs! Loading the hashmap as maximum as possible as I was trying to do was right, but I wasn't initializing internal collections of my complex objects before serialization. Once all collections of my ob

[jboss-user] [EJB/JBoss] - Re: InstantiationException: org.apache.log4j.Logger

2008-08-06 Thread rapowder
Declaring the Logger as static should also solve the problem View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4168897#4168897 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4168897 __

[jboss-user] [EJB/JBoss] - Re: Infinite loop Exception while passivating a SFSB

2008-08-05 Thread rapowder
Hi again, so I'm back from vacation, digging on the problem again. anonymous wrote : | A recursive write is okay, but if you keep adding circular references you won't have stack to process the recursive calls necessary here. | | Something like: | | Map.put(key, AnotherMap); | An

[jboss-user] [EJB/JBoss] - Re: Infinite loop Exception while passivating a SFSB

2008-07-17 Thread rapowder
anonymous wrote : This might be happening because of the excessive stack on the TreeMap. Well, it could be, but not sure that this TreeMap could get too big. I have to check if somewhere else in the code I have similar maps. Still, about my first question: if all SFSB are destroyed, when can se

[jboss-user] [EJB/JBoss] - Re: Infinite loop Exception while passivating a SFSB

2008-07-17 Thread rapowder
Thanks for your reply. anonymous wrote : This looks like a recursive write. Are you trying to use HashMaps as trees? Actually I do not have Maps of Maps if that's what you mean. The "candidate" for this Serialization problem seems the following map (which is the field of a SFSB): TreeMap> ma

[jboss-user] [EJB/JBoss] - Re: Infinite loop Exception while passivating a SFSB

2008-07-17 Thread rapowder
I am sorry I can't be more precise about this bug, nobody has ANY clue? Just some more precisions about environment. I am using Jboss Serialization 1.0.3.GA (included in JBoss Messaging 1.2.0.sp1) >From another log file on one of our servers I digged out the same exception >and noticed that the

[jboss-user] [EJB/JBoss] - Infinite loop Exception while passivating a SFSB

2008-07-11 Thread rapowder
Hello, I am developing an application in the following environment * Framework: Seam 1.2.GA (problem not related to Seam) * JBoss: 4.0.5.GA + EJB3 * VM: jdk 1.5.0_09-b03 * DB: postgres * O/S: Linux Debian I encountered an exception (see stacktrace) which loops infinitely and forces me to kill

[jboss-user] [JBossWS] - Re: problem with calling ssl web service

2008-04-17 Thread rapowder
The '1' is not a mistake, it was just an example to tell you that I have different webservices under different paths with the same root: /interfaces/InterfaceBean1 | /interfaces/InterfaceBean2 | etc. I am not sure whether this was clear, but that those are webservices listening to SOAP call

[jboss-user] [JBossWS] - Re: problem with calling ssl web service

2008-04-16 Thread rapowder
hugo_th02 how did you manage to configure an ssl webservice? I tried to edit the jboss-beans.xml file at the following lines ${jboss.bind.address} | true | 8443 | 8080 in any way, but my WSDL file always generates a sop:adress in http | | http://my_host_name:8080/MyWebServiceB

[jboss-user] [JBossWS] - Re: problem with calling ssl web service

2008-04-16 Thread rapowder
Thank you for your quick answer! However I am not sure to understand what to put in the url-pattern parameter. All my interfaces are accessible through: https://myserver.com:8443/interfaces/InterfaceBean I tried just to test with /interfaces/* and also specifically with /interfaces/Interfac

[jboss-user] [JBoss Seam] - Setting an explicit conversation id

2007-08-20 Thread rapowder
Hi, I am using seam 1.2.1.GA. The seam documentation sais that it is possible to set an explicit conversation id by parametrizing the begin annotation as following: | @Begin(id="edit-#{item.id}") | public void selectItem() { ... } | I tried it but it doesn't look like it works.. The i

[jboss-user] [JBoss Seam] - Check if conversations are active before session invalidatio

2007-07-31 Thread rapowder
I implemented a very simple script to call a logout action: | | | | [

[jboss-user] [JBoss Seam] - Re: character encoding problem

2007-07-19 Thread rapowder
pageHeader shouldn't be a page, but you have to define the content that replaces it in each page that uses your template: | | Why don't you put the charset declaration in the html head (which should be in your template file)? | | | .. | | View the original post : ht

[jboss-user] [JBoss Seam] - Re: Single EntityManager

2007-07-19 Thread rapowder
Gavin, isn't there anyway to trigger global events? I mean something like Events.instance().raiseEvent(EVENT_NAME) in the Application scope and capture it in the same way @Observer methods do? (I am using Seam 1.2.1.GA) Thank you! View the original post : http://www.jboss.com/index.html?modul

[jboss-user] [JBoss Seam] - Re: Cache level

2007-07-19 Thread rapowder
Anyone has other suggestions? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4065652#4065652 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4065652 ___ jboss-user mailing list j

[jboss-user] [JBoss Seam] - Re: Cache level

2007-07-17 Thread rapowder
I already do both. item = em.merge(item) is what I do after updating item properties and, since I do not end my conversation after saving an item, I execute em.flush() at the end of my "save" method, before rendering the item list. View the original post : http://www.jboss.com/index.html?modul

[jboss-user] [JBoss Seam] - Cache level

2007-07-17 Thread rapowder
Hi, I'm not sure whether this is the right place to post this question, but I'm not sure either if the problem I have comes from Hibernate or from Seam Conversations. I am using seam 1.2.1.GA and hibernate 3.2. In my application, data is updated quite frequently by many concurrent clients. Sc

[jboss-user] [JBoss Seam] - Re: conversations join/nest

2007-07-13 Thread rapowder
Thank you I will consider this option :) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4063944#4063944 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4063944 ___ jboss-user mai

[jboss-user] [JBoss Seam] - Re: conversations join/nest

2007-07-13 Thread rapowder
The @Factory("DatamodelName") method is called when the associated DataModel is null. Since I nullify my DataModel anytime I need to reload data the @Factory method gets called when I want. I read the Debug and conversation names are correctly set. If you annotate with @Unwrap a method that retu

[jboss-user] [JBoss Seam] - Re: conversations join/nest

2007-07-13 Thread rapowder
I've read that post, it is quite related but I am not working with seam 2.0, but my question is a bit more basic, since I'm not quite sure about the fact that conversations can be nested at more levels... Did you understand my scenario and do you have any alternatives to nested conversations? V

[jboss-user] [JBoss Seam] - Re: conversations join/nest

2007-07-13 Thread rapowder
Please, nobody has a solution? Thanks :) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4063826#4063826 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4063826 ___ jboss-user ma

[jboss-user] [JBoss Seam] - conversations join/nest

2007-07-12 Thread rapowder
Hi, In my application (Seam 1.2.1GA) I use 2 level of nested conversations to navigate across categories, subcategories and items of each subcategory. That's my scenario: Bean 1 (select a category) -> Root Conversation Bean 2 (select a subcategory) -> Nested inside the root Bean 3 (edit an ite

[jboss-user] [JBoss Seam] - Re: update DataModel values

2007-07-10 Thread rapowder
Ops, I didn't see your answer... To refresh the list I load again the page from a menu where I can select the type of item to show: | | | | where selectItemClass() is just a method that returns the item list page fr

[jboss-user] [JBoss Seam] - Re: update DataModel values

2007-07-10 Thread rapowder
One more thing: I actually noticed that if I do an em.refresh(item) on each item before showing the list it works, but I'd like to find another solution since this one is very expensive in time... View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4062331#4062331

[jboss-user] [JBoss Seam] - Re: update DataModel values

2007-07-10 Thread rapowder
Ok, I cleaned up the code to show you what is needed for this problem: Here is the bean that shows the item list: | @Name("itemList") | @Scope(ScopeType.CONVERSATION) | @Stateful | @LoggedIn | public class MItemListActionBean implements MItemListAction { | | @In(create = true,

[jboss-user] [JBoss Seam] - update DataModel values

2007-07-09 Thread rapowder
Hi, I have a page that shows a table built over a datamodel of items. each item contains a collection of property, each of which represents a column of my table. i.e. i.e. a line in my table looks like this: id_x | firstname_x | familyname_x items can be added/edited from another page. After s

[jboss-user] [JBoss Seam] - Re: Securing components

2007-07-04 Thread rapowder
I solved the problem, actually in my login page I was correctly calling id.authenticate() and id.addRole() right after authentication, but inside the delete() method I was checking the role with a misspelled String (stupid me). Thank you anyway :) View the original post : http://www.jboss

[jboss-user] [JBoss Seam] - Re: SSL Security in seam

2007-07-04 Thread rapowder
I already solved the problem! Thank you anyway :) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4060252#4060252 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4060252 ___ jbos

[jboss-user] [JBoss Seam] - SSL Security in seam

2007-07-03 Thread rapowder
Hallo, could anyone give me a starter about how to set up ssl security for a seam (1.2.1.GA) application? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4059858#4059858 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=405

[jboss-user] [JBoss Seam] - Re: Securing components

2007-07-03 Thread rapowder
Something else: if I call the method addRole() after id.authenticate() the role is actually added, but when I load the pages where I actually want to check if the user is ADMIN (see first post when i call delete()) the method still returns false. Some additional info: I declared the authenticat

[jboss-user] [JBoss Seam] - Re: Securing components

2007-07-03 Thread rapowder
Ok I moved my addRole() method to the autenticate method: public boolean authenticate() { | | Identity id = Identity.instance(); | User userReference = getUserFromDB(id.getUsername(), id.getPassword()); | | if(userReference == null) { |

[jboss-user] [JBoss Seam] - Securing components

2007-07-02 Thread rapowder
Hi I am trying to add user management to my seam application (v. 1.2.1GA) and I'm getting some problems when assigning specific method access to different roles. Precisely, when I call Identity.instance().hasRole("admin") I get false although I setted the correct user role at login. Here is my L

[jboss-user] [JBoss Seam] - Re: Seam Conversations - Best practices?

2007-06-22 Thread rapowder
sorry but what you mean by seam-gen up an application? could you give me a small example? ..I'm not yet an advanced user of seam, started a couple of months ago.. thank you! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4056965#4056965 Reply to the post : h

[jboss-user] [JBoss Seam] - Seam Conversations - Best practices?

2007-06-22 Thread rapowder
Hello, I am developing a webclient application using Seam 1.2.1, Hibernate and a Postgres DB on a Jboss 4.0.5.GA server. There is a tab menu that allows to select the category and list all items of this category. Each item can be clicked to edit its properties. So far, to handle the navigation