# Re-creating OEE Demo

**URL:** <https://forum.inductiveautomation.com/t/re-creating-oee-demo/8766>\
**Category:** 3rd Party Modules\
**Created:** [July 21, 2014, 11:30pm UTC](https://forum.inductiveautomation.com/t/re-creating-oee-demo/8766 "2014-07-21T23:30:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![miketob](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/miketob/32/5936_2.png) [@miketob](https://forum.inductiveautomation.com/u/miketob)\
**Post date:** [July 21, 2014, 11:30pm UTC](https://forum.inductiveautomation.com/t/re-creating-oee-demo/8766/1 "2014-07-21T23:30:32Z")

</div>

Hello,

I have two gateways, one with the OEE Demo working without any problems. On the other gateway I Installed the OEE DT Module, but not the demo. I am writing from scratch an OEE Demo having the original demo as my guide.

I was able to configure the plant model (areas-lines-cells), I reproduced the product codes configuration screen (using the three table-components: ProductCodeTable, ProductCodeLineTable and ProductCodePropertiesTable) without problems.

But when I try to reproduce the screen "WorkOrder" and "WorkOrderEntry" I get some errors:  
The "WorkOrderTable" is empty (I think it is OK since I have not yet entered any WO)  
when I try to add a new order in the "WorkOrderEntry" screen, the ProductCode list is empty, and thats incorrect because I know there are product codes in my DB, and since I can't select a Product Code, I cannot enter a new Work Order

When I look into the console logs I can see these errors:

> [@](#):
>
> 18:07:48 ScheduleGatewayHook Error reading work order list.
> 
> java.lang.NullPointerException  
> at com.sepasoft.schedule.common.ScheduleGatewayContext.getWorkOrderManager(ScheduleGatewayContext.java:36)  
> at com.sepasoft.schedule.gateway.ScheduleGatewayHook$ScheduleRPCHandler.getWorkOrderList(ScheduleGatewayHook.java:706)  
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)  
> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)  
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)  
> at java.lang.reflect.Method.invoke(Unknown Source)  
> at com.inductiveautomation.ignition.gateway.servlets.gateway.functions.ModuleInvoke.invoke(ModuleInvoke.java:123)  
> at com.inductiveautomation.ignition.gateway.servlets.Gateway.doPost(Gateway.java:376)  
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)  
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)  
> at com.inductiveautomation.ignition.gateway.bootstrap.MapServlet.service(MapServlet.java:85)  
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)  
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)  
> at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)  
> at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)  
> at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)  
> at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)  
> at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)  
> at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)  
> at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:861)  
> at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:606)  
> at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)  
> at java.lang.Thread.run(Unknown Source)

and this other:

> [@](#):
>
> ERROR ScheduleGatewayHook Exception in getAllEnabledProductCodes() : null

I tried re-starting the module, and the gateway but it's still not working.  
I thought that perhaps it needs at least one record in the WO table, so I entered one directly in the table but the WorkOrderTable is still empty.

Am I missing something?

---

<div class="post-metadata">

**Author:** ![james.hunt](https://avatars.discourse-cdn.com/v4/letter/j/fbc32d/32.png) [@james.hunt](https://forum.inductiveautomation.com/u/james.hunt)\
**Post date:** [July 23, 2014, 10:00pm UTC](https://forum.inductiveautomation.com/t/re-creating-oee-demo/8766/2 "2014-07-23T22:00:39Z")

</div>

For the product code selector are you choosing what line you want to select product codes from ? Also have the product codes in the database been linked to a particular line in the production model?

---

<div class="post-metadata">

**Author:** ![miketob](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/miketob/32/5936_2.png) [@miketob](https://forum.inductiveautomation.com/u/miketob)\
**Post date:** [July 23, 2014, 10:10pm UTC](https://forum.inductiveautomation.com/t/re-creating-oee-demo/8766/3 "2014-07-23T22:10:42Z")

</div>

Hi James,  
Thank you for your reply, Some hours ago I called to Tech-Support, and Luke Stone pointed me out that I was using the Track&trace module v.1.6.7 along with OEE Module v.1.6.6. and suggested me to upgrade OEE to v.1.6.7

I did that and now the problem is gone. All dropdowns and WO tables get populated correctly.

Thanks a lot for your help!
