title: netbeans, EJB, glassfish, e-commerce tutorial issues
body: <p>I’ve been following the e-commerce tutorial located here: <a href="http://netbeans.org/kb/docs/javaee/ecommerce/intro.html" rel="nofollow">http://netbeans.org/kb/docs/javaee/ecommerce/intro.html</a></p>
  
  <p>Code repo of project <a href="http://code.google.com/p/nb-ecom-tut/" rel="nofollow">here</a>.</p>
  
  <p>I have ran into a few problems that I believe are related:</p>
  
  <p>1: Trying to view the customers’ orders on the Admin page results in: </p>
  
  <pre><code>**WARNING**: EJB5184:A system exception occurred during an invocation on EJB OrderManager, method: public java.util.Map session.OrderManager.getOrderDetails(int)
  
  **WARNING**: javax.ejb.EJBTransactionRolledbackException
  
  **WARNING**: EJB5184:A system exception occurred during an invocation on EJB OrderedproductFacade, method: public java.util.List session.OrderedproductFacade.findByOrderId(java.lang.Object)
  
  **WARNING**: javax.ejb.TransactionRolledbackLocalException: Exception thrown from bean
  Caused by: java.lang.IllegalArgumentException: You have attempted to set a parameter value using a name of customerOrderId that does not exist in the query string SELECT o FROM Orderedproduct o WHERE o.orderedproductPK.custOrderid = :custOrderid.
  </code></pre>
  
  <p>2: Trying to view details for a particular order in the admin page results in:</p>
  
  <pre><code>WARNING: StandardWrapperValve[AdminServlet]: PWC1406: Servlet.service() for servlet AdminServlet threw exception
  Caused by: java.lang.IllegalArgumentException: You have attempted to set a parameter value using a name of customerOrderId that does not exist in the query string SELECT o FROM Orderedproduct o WHERE o.orderedproductPK.custOrderid = :custOrderid.
  </code></pre>
  
  <p>Both problems have the ‘<strong>findByOrderId</strong>’ method in common and I am at a loss as to what is wrong with it.</p>
  
  <p>The offending method is located in the following directory: src/jsf_crud/src/java/session/OrderedProductFacade.java</p>
  
  <p>(I would link it as a hyperlink but spam prevention measures prevent me)</p>
  
  <p>Not sure what the best course of action is, any recommendations?</p>