[JBoss Seam] - Another h:selectOneMenu and valueChangeListener problem...
by ElNino
Hello,
I am relatively new with JBoss technologies; I spent a lot of time reading books and posts but I spent several days on a very simple thing; others people have already explain the same problem on the forum but the proposed solutions are not working for me.
My post is quite long cause I prefer giving you a complete presentation of my problem.
I'am using
jBoss Seam 2.0.0.CR2
with jboss-4.2.1.GA
I will take a simple example :
I have:
- a continent entity
- a country entity
Of course, continent contains serveral countries and a country is attached to a continent :
| @Entity
| @Name("continent")
| @Table(name = "Continents")
| public class Continent extends PersistentEntity implements Serializable {
|
| private static final long serialVersionUID = 1L;
| private long id;
| private Set<Country> countries;
| private String name;
|
| public Continent() { }
|
| public Continent(String name) {
| this.name = name;
| }
|
| @Id
| @GeneratedValue
| public long getId() {
| return id;
| }
|
| public void setId(long id) {
| this.id = id;
| }
|
| public String getName() {
| return name;
| }
|
| public void setName(String name) {
| this.name = name;
| }
|
| @OneToMany
| public Set<Country> getCountries() {
| return countries;
| }
|
| public void setCountries(Set<Country> countries) {
| this.countries = countries;
| }
|
| @Entity
| @Name("country")
| @Table(name="Countries")
| public class Country extends Location implements Serializable {
|
| private static final long serialVersionUID = 1L;
| private long id;
| private Continent continent;
| private Set<Region> regions;
|
| @Id
| @GeneratedValue
| public long getId() {
| return id;
| }
|
| public void setId(long id) {
| this.id = id;
| }
|
| @OneToMany
| public Set<Region> getRegions() {
| return regions;
| }
|
| public void setRegions(Set<Region> regions) {
| this.regions = regions;
| }
|
| @ManyToOne
| public Continent getContinent() {
| return continent;
| }
|
| public void setContinent(Continent continent) {
| this.continent = continent;
| }
|
Now I have a XHTML page with <h:selectOneMenu items.
The first list all the continents, and on the selection of a continent, I would like to enable the country select box and refreshing it with the countries located in the selected continent.
I read a lot of documents but I can't manage to get a response on value selection.
I have the xHTML form :
| <h:form id="creationForm">
| <h:outputText value="Continent: " />
| <h:outputText value="No continent"
| rendered="#{creationAction.getNumberOfPossibleContinents()==0}" />
|
| <h:selectOneMenu value="#{creationAction.selectedContinent}"
| valueChangeListener="#{creationAction.continentChangeEvent}"
| onchange="this.form.submit()"
| rendered="#{creationAction.getNumberOfPossibleContinents()>0}">
|
| <s:selectItems
| value="#{creationAction.getPossibleContinentsList()}"
| var="selectedContinent" noSelectionLabel="Please Select..." />
| <s:convertEntity />
| </h:selectOneMenu>
| </h:form>
|
creationAction is defines like this
| @Stateful
| @Name("creationAction")
| @Scope(ScopeType.SESSION)
| public class creationAction implements ICreation {
|
| private Continent selectedContinent;
| private List<Continent> possibleContinentsList;
|
| @PersistenceContext(type = EXTENDED)
| private EntityManager entityManager;
|
| public void cancelCreation() {
| }
|
| @Remove
| @End
| public void confirmCreation() {
| System.out.println("CONFIRM");
| }
|
| @SuppressWarnings("unchecked")
| public List<Continent> getPossibleContinentsList() {
| possibleContinentsList = entityManager
| .createQuery("from Continent row").getResultList();
|
| return possibleContinentsList;
| }
|
| public void addContinent(Continent continent) {
| }
|
| public Continent getSelectedContinent() {
| return null;
| }
|
| public void setSelectedContinent(Continent continent) {
| System.out.println("Set...");
| }
|
| public int getNumberOfPossibleContinents() {
| int result = 0;
|
| if (possibleContinentsList != null) {
| result = possibleContinentsList.size();
| } else {
| result = getPossibleContinentsList().size();
| }
|
| return result;
| }
|
| public void continentChangeEvent(ValueChangeEvent event) {
| System.out.println("Event : " + event);
| System.out.println("New value : " + event.getNewValue());
| }
|
With the interface :
| @Local
| public interface ICreation {
|
| public void confirmCreation();
|
| public void cancelCreation();
|
| public List<Continent> getPossibleContinentsList();
|
| public void addContinent(Continent continent);
|
| public Continent getSelectedContinent();
|
| public void setSelectedContinent(Continent continent);
|
| public int getNumberOfPossibleContinents();
|
| public void continentChangeEvent(ValueChangeEvent event);
|
The continent list is displayed but continentChangeEvent method is never called !
In the debug console (when I select a continent ...) :
13:52:22,098 INFO [lifecycle] WARNING: FacesMessage(s) have been enqueued, but may not have been displayed.
sourceId=creationForm:j_id19[severity=(ERROR 2), summary=(value is not valid), detail=(value is not valid)]
Any ideas ?
I'am of course free for answer to all your questions ?
Thanks for your help !
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4101577#4101577
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4101577
18 years, 5 months
[JBoss Seam] - Another h:selectOneMenu and valueChangeListener problem...
by ElNino
Hello,
I am relatively new with JBoss technologies; I spent a lot of time reading books and posts but I spent several days on a very simple thing; others people have already explain the same problem on the forum but the proposed solutions are not working for me.
My post is quite long cause I prefer giving you a complete presentation of my problem.
I'am using
jBoss Seam 2.0.0.CR2
with jboss-4.2.1.GA
I will take a simple example :
I have:
- a continent entity
- a country entity
Of course, continent contains serveral countries and a country is attached to a continent :
| @Entity
| @Name("continent")
| @Table(name = "Continents")
| public class Continent extends PersistentEntity implements Serializable {
|
| private static final long serialVersionUID = 1L;
| private long id;
| private Set<Country> countries;
| private String name;
|
| public Continent() { }
|
| public Continent(String name) {
| this.name = name;
| }
|
| @Id
| @GeneratedValue
| public long getId() {
| return id;
| }
|
| public void setId(long id) {
| this.id = id;
| }
|
| public String getName() {
| return name;
| }
|
| public void setName(String name) {
| this.name = name;
| }
|
| @OneToMany
| public Set<Country> getCountries() {
| return countries;
| }
|
| public void setCountries(Set<Country> countries) {
| this.countries = countries;
| }
|
| @Entity
| @Name("country")
| @Table(name="Countries")
| public class Country extends Location implements Serializable {
|
| private static final long serialVersionUID = 1L;
| private long id;
| private Continent continent;
| private Set<Region> regions;
|
| @Id
| @GeneratedValue
| public long getId() {
| return id;
| }
|
| public void setId(long id) {
| this.id = id;
| }
|
| @OneToMany
| public Set<Region> getRegions() {
| return regions;
| }
|
| public void setRegions(Set<Region> regions) {
| this.regions = regions;
| }
|
| @ManyToOne
| public Continent getContinent() {
| return continent;
| }
|
| public void setContinent(Continent continent) {
| this.continent = continent;
| }
|
Now I have a XHTML page with <h:selectOneMenu items.
The first list all the continents, and on the selection of a continent, I would like to enable the country select box and refreshing it with the countries located in the selected continent.
I read a lot of documents but I can't manage to get a response on value selection.
I have the xHTML form :
| <h:form id="creationForm">
| <h:outputText value="Continent: " />
| <h:outputText value="No continent"
| rendered="#{creationAction.getNumberOfPossibleContinents()==0}" />
|
| <h:selectOneMenu value="#{creationAction.selectedContinent}"
| valueChangeListener="#{creationAction.continentChangeEvent}"
| onchange="this.form.submit()"
| rendered="#{creationAction.getNumberOfPossibleContinents()>0}">
|
| <s:selectItems
| value="#{creationAction.getPossibleContinentsList()}"
| var="selectedContinent" noSelectionLabel="Please Select..." />
| <s:convertEntity />
| </h:selectOneMenu>
| </h:form>
|
creationAction is defines like this
| @Stateful
| @Name("creationAction")
| @Scope(ScopeType.SESSION)
| public class creationAction implements ICreation {
|
| private Continent selectedContinent;
| private List<Continent> possibleContinentsList;
|
| @PersistenceContext(type = EXTENDED)
| private EntityManager entityManager;
|
| public void cancelCreation() {
| }
|
| @Remove
| @End
| public void confirmCreation() {
| System.out.println("CONFIRM");
| }
|
| @SuppressWarnings("unchecked")
| public List<Continent> getPossibleContinentsList() {
| possibleContinentsList = entityManager
| .createQuery("from Continent row").getResultList();
|
| return possibleContinentsList;
| }
|
| public void addContinent(Continent continent) {
| }
|
| public Continent getSelectedContinent() {
| return null;
| }
|
| public void setSelectedContinent(Continent continent) {
| System.out.println("Set...");
| }
|
| public int getNumberOfPossibleContinents() {
| int result = 0;
|
| if (possibleContinentsList != null) {
| result = possibleContinentsList.size();
| } else {
| result = getPossibleContinentsList().size();
| }
|
| return result;
| }
|
| public void continentChangeEvent(ValueChangeEvent event) {
| System.out.println("Event : " + event);
| System.out.println("New value : " + event.getNewValue());
| }
|
With the interface :
| @Local
| public interface ICreation {
|
| public void confirmCreation();
|
| public void cancelCreation();
|
| public List<Continent> getPossibleContinentsList();
|
| public void addContinent(Continent continent);
|
| public Continent getSelectedContinent();
|
| public void setSelectedContinent(Continent continent);
|
| public int getNumberOfPossibleContinents();
|
| public void continentChangeEvent(ValueChangeEvent event);
|
The continent list is displayed but continentChangeEvent method is never called !
In the debug console (when I select a continent ...) :
13:52:22,098 INFO [lifecycle] WARNING: FacesMessage(s) have been enqueued, but may not have been displayed.
sourceId=creationForm:j_id19[severity=(ERROR 2), summary=(value is not valid), detail=(value is not valid)]
Any ideas ?
I'am of course free for answer to all your questions ?
Thanks for your help !
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4101576#4101576
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4101576
18 years, 5 months
[JBoss Seam] - Another h:selectOneMenu and valueChangeListener problem...
by ElNino
Hello,
I am relatively new with JBoss technologies; I spent a lot of time reading books and posts but I spent several days on a very simple thing; others people have already explain the same problem on the forum but the proposed solutions are not working for me.
My post is quite long cause I prefer giving you a complete presentation of my problem.
I'am using
jBoss Seam 2.0.0.CR2
with jboss-4.2.1.GA
I will take a simple example :
I have:
- a continent entity
- a country entity
Of course, continent contains serveral countries and a country is attached to a continent :
| @Entity
| @Name("continent")
| @Table(name = "Continents")
| public class Continent extends PersistentEntity implements Serializable {
|
| private static final long serialVersionUID = 1L;
| private long id;
| private Set<Country> countries;
| private String name;
|
| public Continent() { }
|
| public Continent(String name) {
| this.name = name;
| }
|
| @Id
| @GeneratedValue
| public long getId() {
| return id;
| }
|
| public void setId(long id) {
| this.id = id;
| }
|
| public String getName() {
| return name;
| }
|
| public void setName(String name) {
| this.name = name;
| }
|
| @OneToMany
| public Set<Country> getCountries() {
| return countries;
| }
|
| public void setCountries(Set<Country> countries) {
| this.countries = countries;
| }
|
| @Entity
| @Name("country")
| @Table(name="Countries")
| public class Country extends Location implements Serializable {
|
| private static final long serialVersionUID = 1L;
| private long id;
| private Continent continent;
| private Set<Region> regions;
|
| @Id
| @GeneratedValue
| public long getId() {
| return id;
| }
|
| public void setId(long id) {
| this.id = id;
| }
|
| @OneToMany
| public Set<Region> getRegions() {
| return regions;
| }
|
| public void setRegions(Set<Region> regions) {
| this.regions = regions;
| }
|
| @ManyToOne
| public Continent getContinent() {
| return continent;
| }
|
| public void setContinent(Continent continent) {
| this.continent = continent;
| }
|
Now I have a XHTML page with <h:selectOneMenu items.
The first list all the continents, and on the selection of a continent, I would like to enable the country select box and refreshing it with the countries located in the selected continent.
I read a lot of documents but I can't manage to get a response on value selection.
I have the xHTML form :
| <h:form id="creationForm">
| <h:outputText value="Continent: " />
| <h:outputText value="No continent"
| rendered="#{creationAction.getNumberOfPossibleContinents()==0}" />
|
| <h:selectOneMenu value="#{creationAction.selectedContinent}"
| valueChangeListener="#{creationAction.continentChangeEvent}"
| onchange="this.form.submit()"
| rendered="#{creationAction.getNumberOfPossibleContinents()>0}">
|
| <s:selectItems
| value="#{creationAction.getPossibleContinentsList()}"
| var="selectedContinent" noSelectionLabel="Please Select..." />
| <s:convertEntity />
| </h:selectOneMenu>
| </h:form>
|
creationAction is defines like this
| @Stateful
| @Name("creationAction")
| @Scope(ScopeType.SESSION)
| public class creationAction implements ICreation {
|
| private Continent selectedContinent;
| private List<Continent> possibleContinentsList;
|
| @PersistenceContext(type = EXTENDED)
| private EntityManager entityManager;
|
| public void cancelCreation() {
| }
|
| @Remove
| @End
| public void confirmCreation() {
| System.out.println("CONFIRM");
| }
|
| @SuppressWarnings("unchecked")
| public List<Continent> getPossibleContinentsList() {
| possibleContinentsList = entityManager
| .createQuery("from Continent row").getResultList();
|
| return possibleContinentsList;
| }
|
| public void addContinent(Continent continent) {
| }
|
| public Continent getSelectedContinent() {
| return null;
| }
|
| public void setSelectedContinent(Continent continent) {
| System.out.println("Set...");
| }
|
| public int getNumberOfPossibleContinents() {
| int result = 0;
|
| if (possibleContinentsList != null) {
| result = possibleContinentsList.size();
| } else {
| result = getPossibleContinentsList().size();
| }
|
| return result;
| }
|
| public void continentChangeEvent(ValueChangeEvent event) {
| System.out.println("Event : " + event);
| System.out.println("New value : " + event.getNewValue());
| }
|
With the interface :
| @Local
| public interface ICreation {
|
| public void confirmCreation();
|
| public void cancelCreation();
|
| public List<Continent> getPossibleContinentsList();
|
| public void addContinent(Continent continent);
|
| public Continent getSelectedContinent();
|
| public void setSelectedContinent(Continent continent);
|
| public int getNumberOfPossibleContinents();
|
| public void continentChangeEvent(ValueChangeEvent event);
|
The continent list is displayed but continentChangeEvent method is never called !
In the debug console (when I select a continent ...) :
13:52:22,098 INFO [lifecycle] WARNING: FacesMessage(s) have been enqueued, but may not have been displayed.
sourceId=creationForm:j_id19[severity=(ERROR 2), summary=(value is not valid), detail=(value is not valid)]
Any ideas ?
I'am of course free for answer to all your questions ?
Thanks for your help !
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4101575#4101575
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4101575
18 years, 5 months
[JBoss Seam] - Another h:selectOneMenu and valueChangeListener problem...
by ElNino
Hello,
I am relatively new with JBoss technologies; I spent a lot of time reading books and posts but I spent several days on a very simple thing; others people have already explain the same problem on the forum but the proposed solutions are not working for me.
My post is quite long cause I prefer giving you a complete presentation of my problem.
I'am using
jBoss Seam 2.0.0.CR2
with jboss-4.2.1.GA
I will take a simple example :
I have:
- a continent entity
- a country entity
Of course, continent contains serveral countries and a country is attached to a continent :
| @Entity
| @Name("continent")
| @Table(name = "Continents")
| public class Continent extends PersistentEntity implements Serializable {
|
| private static final long serialVersionUID = 1L;
| private long id;
| private Set<Country> countries;
| private String name;
|
| public Continent() { }
|
| public Continent(String name) {
| this.name = name;
| }
|
| @Id
| @GeneratedValue
| public long getId() {
| return id;
| }
|
| public void setId(long id) {
| this.id = id;
| }
|
| public String getName() {
| return name;
| }
|
| public void setName(String name) {
| this.name = name;
| }
|
| @OneToMany
| public Set<Country> getCountries() {
| return countries;
| }
|
| public void setCountries(Set<Country> countries) {
| this.countries = countries;
| }
|
| @Entity
| @Name("country")
| @Table(name="Countries")
| public class Country extends Location implements Serializable {
|
| private static final long serialVersionUID = 1L;
| private long id;
| private Continent continent;
| private Set<Region> regions;
|
| @Id
| @GeneratedValue
| public long getId() {
| return id;
| }
|
| public void setId(long id) {
| this.id = id;
| }
|
| @OneToMany
| public Set<Region> getRegions() {
| return regions;
| }
|
| public void setRegions(Set<Region> regions) {
| this.regions = regions;
| }
|
| @ManyToOne
| public Continent getContinent() {
| return continent;
| }
|
| public void setContinent(Continent continent) {
| this.continent = continent;
| }
|
Now I have a XHTML page with <h:selectOneMenu items.
The first list all the continents, and on the selection of a continent, I would like to enable the country select box and refreshing it with the countries located in the selected continent.
I read a lot of documents but I can't manage to get a response on value selection.
I have the xHTML form :
| <h:form id="creationForm">
| <h:outputText value="Continent: " />
| <h:outputText value="No continent"
| rendered="#{creationAction.getNumberOfPossibleContinents()==0}" />
|
| <h:selectOneMenu value="#{creationAction.selectedContinent}"
| valueChangeListener="#{creationAction.continentChangeEvent}"
| onchange="this.form.submit()"
| rendered="#{creationAction.getNumberOfPossibleContinents()>0}">
|
| <s:selectItems
| value="#{creationAction.getPossibleContinentsList()}"
| var="selectedContinent" noSelectionLabel="Please Select..." />
| <s:convertEntity />
| </h:selectOneMenu>
| </h:form>
|
creationAction is defines like this
| @Stateful
| @Name("creationAction")
| @Scope(ScopeType.SESSION)
| public class creationAction implements ICreation {
|
| private Continent selectedContinent;
| private List<Continent> possibleContinentsList;
|
| @PersistenceContext(type = EXTENDED)
| private EntityManager entityManager;
|
| public void cancelCreation() {
| }
|
| @Remove
| @End
| public void confirmCreation() {
| System.out.println("CONFIRM");
| }
|
| @SuppressWarnings("unchecked")
| public List<Continent> getPossibleContinentsList() {
| possibleContinentsList = entityManager
| .createQuery("from Continent row").getResultList();
|
| return possibleContinentsList;
| }
|
| public void addContinent(Continent continent) {
| }
|
| public Continent getSelectedContinent() {
| return null;
| }
|
| public void setSelectedContinent(Continent continent) {
| System.out.println("Set...");
| }
|
| public int getNumberOfPossibleContinents() {
| int result = 0;
|
| if (possibleContinentsList != null) {
| result = possibleContinentsList.size();
| } else {
| result = getPossibleContinentsList().size();
| }
|
| return result;
| }
|
| public void continentChangeEvent(ValueChangeEvent event) {
| System.out.println("Event : " + event);
| System.out.println("New value : " + event.getNewValue());
| }
|
With the interface :
| @Local
| public interface ICreation {
|
| public void confirmCreation();
|
| public void cancelCreation();
|
| public List<Continent> getPossibleContinentsList();
|
| public void addContinent(Continent continent);
|
| public Continent getSelectedContinent();
|
| public void setSelectedContinent(Continent continent);
|
| public int getNumberOfPossibleContinents();
|
| public void continentChangeEvent(ValueChangeEvent event);
|
The continent list is displayed but continentChangeEvent method is never called !
In the debug console (when I select a continent ...) :
13:52:22,098 INFO [lifecycle] WARNING: FacesMessage(s) have been enqueued, but may not have been displayed.
sourceId=creationForm:j_id19[severity=(ERROR 2), summary=(value is not valid), detail=(value is not valid)]
Any ideas ?
I'am of course free for answer to all your questions ?
Thanks for your help !
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4101574#4101574
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4101574
18 years, 5 months
[JBoss Tools (users)] - Creating Webservices
by baz
I got the task to introduce web services to people with only little experience with java EE.
What i need, is an easy procedure in the IDE to create web services and web service clients. (with JaxWS, Jboss tools seems to only support axis, when i am right)
Config files, ant etc. are to complicated for the desired audience. So i do need a good gui for it.
At end of november i do need this easy procedure. The only possibility for me seems to use netbeans. This tool implements the understandable procedure for creating webservices.
I do not expect the answer that it will be implemeted in the next two weeks, or that it is already implemented and i have overlooked it.
But some guidance in this task, instead of using netbeans, will be very helpful.
Ciao,
Carsten
FYI: i am using eclipse and exadel for more than 2 years. And i will use the exadel based jboss tools suite, as well. And i do know how to create an web service based upon seam. Some useful information is in the seambay example.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4101572#4101572
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4101572
18 years, 5 months
[JBoss Seam] - Re: Batch Index using Hibernate Search and Seam
by mat
Hi Pete,
When calling
| EntityManager em = (EntityManager) Component.getInstance("entityManager");
|
I get the following Exception:
| 07:55:26,593 ERROR [STDERR] org.hibernate.HibernateException: Filter [accessCompanyFilter] parameter [currentAccessCompany] value not set
| at org.hibernate.impl.FilterImpl.validate(FilterImpl.java:145)
| at org.jboss.seam.persistence.HibernatePersistenceProvider.enableFilter(HibernatePersistenceProvider.java:151)
| at org.jboss.seam.persistence.ManagedPersistenceContext.initEntityManager(ManagedPersistenceContext.java:88)
| at org.jboss.seam.persistence.ManagedPersistenceContext.getEntityManager(ManagedPersistenceContext.java:108)
| at sun.reflect.GeneratedMethodAccessor288.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:597)
| at org.jboss.seam.util.Reflections.invoke(Reflections.java:21)
| at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:125)
| at org.jboss.seam.Component.callComponentMethod(Component.java:2083)
| at org.jboss.seam.Component.unwrap(Component.java:2109)
| at org.jboss.seam.Component.getInstance(Component.java:1888)
| at org.jboss.seam.Component.getInstance(Component.java:1841)
| at org.jboss.seam.Component.getInstance(Component.java:1835)
| at com.cheetah.seam.modules.admin.IndexManagerBean.buildIndex(IndexManagerBean.java:248)
| 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.jboss.seam.util.Reflections.invoke(Reflections.java:21)
| at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:31)
| at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:56)
| at org.jboss.seam.transaction.RollbackInterceptor.aroundInvoke(RollbackInterceptor.java:31)
| at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
| at org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:42)
| at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
| at org.jboss.seam.async.AsynchronousInterceptor.aroundInvoke(AsynchronousInterceptor.java:42)
| at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
| at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:106)
| at org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:155)
| at org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:91)
| at com.cheetah.seam.modules.admin.IndexManagerBean_$$_javassist_7.buildIndex(IndexManagerBean_$$_javassist_7.jav
| a)
| 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.jboss.seam.util.Reflections.invoke(Reflections.java:21)
| at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:125)
| at org.jboss.seam.async.AsynchronousInvocation.call(AsynchronousInvocation.java:52)
| at org.jboss.seam.async.Asynchronous.executeInContexts(Asynchronous.java:76)
| at org.jboss.seam.async.Asynchronous.execute(Asynchronous.java:45)
| at org.jboss.seam.async.ThreadPoolDispatcher$RunnableAsynchronous.run(ThreadPoolDispatcher.java:114)
| at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
| at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
| at java.util.concurrent.FutureTask.run(FutureTask.java:138)
| at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.j
| ava:98)
| at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:207
| )
| at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
| at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
| at java.lang.Thread.run(Thread.java:619)
|
|
|
|
| The "currentAccessCompany" is set to int values corresponding to companyId in the AuthenticatorAction bean:
| @Name("authenticator")
| public class AuthenticatorActionBean
| {
| ...
| Contexts.getSessionContext().set("currentAccessCompany", companyId);
| ...
|
| }
|
For some reason the "value not set" error occurs due to the @Asynchronous;
Thank you and appreciate your feedback;
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4101568#4101568
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4101568
18 years, 5 months