Target Unreachable Problem using Business Process
gewuerzgurke Apr 23, 2009 3:12 PMHi everyone,
I've got a strange problem developing a business process with seam and jbpm. The process ittself works fine but I'm getting a strange exception when trying to access a objects that has BUSINESS PROCESS Scope.
Here is me stateful bean:
@Stateful
@Name("selling")
public class SellingAction implements Selling, Serializable {
private static final long serialVersionUID = -9068069239659899723L;
@Out(scope=ScopeType.BUSINESS_PROCESS, required=false)
Customer currentCustomer;
The Customer Type looks as follows:
@Entity
public class Customer implements Serializable {
/**
*
*/
private static final long serialVersionUID = -6572416442740922887L;
private Integer id;
private String salution;
private String surName;
private String lastName;
private Address address;
private Shop shop;
private List<Article> articles;
@Id
@GeneratedValue(strategy=GenerationType.AUTO)
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
... getter and setter
So the .xhtml file that accesses the customer object does some validation. When I'm leaving a inputText Field that uses currentCustomer I'm getting the seams debug page:
Relevant Part of view
<h:form id="newCustomer">
<s:validateAll>
<h:panelGrid columns="2">
<h:outputText value="Anrede" />
<s:decorate id="salution">
<h:inputText value="#{currentCustomer.salution}">
<a4j:support event="onblur" />
</h:inputText>
</s:decorate>
The Exception is
Exception during request processing:
Caused by javax.servlet.ServletException with message: "/customer/newCustomer.xhtml @32,56 value="#{currentCustomer.salution}": Target Unreachable, identifier 'currentCustomer' resolved to null"
javax.faces.webapp.FacesServlet.service(FacesServlet.java:277)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)
Any one got a solution, I'm struggling around for three days :(
Thanks in advance