simpleserviceengine exception, not loading

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

simpleserviceengine exception, not loading

nachi19-2
Hi all,

           I am to call the one of the simple service from the epos at the time of adding the product to cart to ensure the inventory, but my simpleserviceengine class is not loading at all but java is loading and working fine. I have added a quick drop down of list of products to added to the cart if i enter  the particular id in the text area of the pos it adds the product to cart, if i try to add from the list of products it raises an exception of simple service engine. The log looks as below.I think in the GenericEngineFactory class at the getGenericEngine()  method the classloader is not loading the simpleserviceengine class.... can any one tellme where i am going wrong...

2009-09-30 06:48:37,000 (AWT-EventQueue-0) [   ShoppingCartItem.java:904:ERROR]

---- exception report ----------------------------------------------------------
Fatal error calling inventory checking services: org.ofbiz.service.GenericServiceException: org.ofbiz.minilang.SimpleServiceEngine (org.ofbiz.minilang.SimpleServiceEngine)
Exception: org.ofbiz.service.GenericServiceException
Message: org.ofbiz.minilang.SimpleServiceEngine (org.ofbiz.minilang.SimpleServiceEngine)
---- stack trace ---------------------------------------------------------------
org.ofbiz.service.GenericServiceException: org.ofbiz.minilang.SimpleServiceEngine (org.ofbiz.minilang.SimpleServiceEngine)
org.ofbiz.service.engine.GenericEngineFactory.getGenericEngine(GenericEngineFactory.java:89)
org.ofbiz.service.ServiceDispatcher.getGenericEngine(ServiceDispatcher.java:650)
org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:270)
org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:218)
org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:136)
org.ofbiz.order.shoppingcart.ShoppingCartItem.isInventoryAvailableOrNotRequired(ShoppingCartItem.java:893)
org.ofbiz.order.shoppingcart.ShoppingCartItem.setQuantity(ShoppingCartItem.java:925)
org.ofbiz.order.shoppingcart.ShoppingCartItem.makeItem(ShoppingCartItem.java:517)
org.ofbiz.order.shoppingcart.ShoppingCartItem.makeItem(ShoppingCartItem.java:322)
org.ofbiz.order.shoppingcart.ShoppingCart.addOrIncreaseItem(ShoppingCart.java:480)
org.ofbiz.pos.PosTransaction.addItem(PosTransaction.java:779)
org.ofbiz.pos.event.MenuEvents.addItemFromList(MenuEvents.java:469)
org.ofbiz.pos.screen.FilterHistoryJList$2.actionPerformed(FilterHistoryJList.java:406)
javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
java.awt.Component.processMouseEvent(Component.java:6263)
javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
java.awt.Component.processEvent(Component.java:6028)
java.awt.Container.processEvent(Container.java:2041)
java.awt.Component.dispatchEventImpl(Component.java:4630)
java.awt.Container.dispatchEventImpl(Container.java:2099)
java.awt.Component.dispatchEvent(Component.java:4460)
java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4574)
java.awt.LightweightDispatcher.processMouseEvent(Container.java:4238)
java.awt.LightweightDispatcher.dispatchEvent(Container.java:4168)
java.awt.Container.dispatchEventImpl(Container.java:2085)
java.awt.Window.dispatchEventImpl(Window.java:2475)
java.awt.Component.dispatchEvent(Component.java:4460)
java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
java.lang.ClassNotFoundException: org.ofbiz.minilang.SimpleServiceEngine
java.net.URLClassLoader$1.run(URLClassLoader.java:200)
java.security.AccessController.doPrivileged(Native Method)
java.net.URLClassLoader.findClass(URLClassLoader.java:188)
java.lang.ClassLoader.loadClass(ClassLoader.java:307)
java.lang.ClassLoader.loadClass(ClassLoader.java:252)
org.ofbiz.service.engine.GenericEngineFactory.getGenericEngine(GenericEngineFactory.java:82)
org.ofbiz.service.ServiceDispatcher.getGenericEngine(ServiceDispatcher.java:650)
org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:270)
org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:218)
org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:136)
org.ofbiz.order.shoppingcart.ShoppingCartItem.isInventoryAvailableOrNotRequired(ShoppingCartItem.java:893)
org.ofbiz.order.shoppingcart.ShoppingCartItem.setQuantity(ShoppingCartItem.java:925)
org.ofbiz.order.shoppingcart.ShoppingCartItem.makeItem(ShoppingCartItem.java:517)
org.ofbiz.order.shoppingcart.ShoppingCartItem.makeItem(ShoppingCartItem.java:322)
org.ofbiz.order.shoppingcart.ShoppingCart.addOrIncreaseItem(ShoppingCart.java:480)
org.ofbiz.pos.PosTransaction.addItem(PosTransaction.java:779)
org.ofbiz.pos.event.MenuEvents.addItemFromList(MenuEvents.java:469)
org.ofbiz.pos.screen.FilterHistoryJList$2.actionPerformed(FilterHistoryJList.java:406)
javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
java.awt.Component.processMouseEvent(Component.java:6263)
javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
java.awt.Component.processEvent(Component.java:6028)
java.awt.Container.processEvent(Container.java:2041)
java.awt.Component.dispatchEventImpl(Component.java:4630)
java.awt.Container.dispatchEventImpl(Container.java:2099)
java.awt.Component.dispatchEvent(Component.java:4460)
java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4574)
java.awt.LightweightDispatcher.processMouseEvent(Container.java:4238)
java.awt.LightweightDispatcher.dispatchEvent(Container.java:4168)
java.awt.Container.dispatchEventImpl(Container.java:2085)
java.awt.Window.dispatchEventImpl(Window.java:2475)
java.awt.Component.dispatchEvent(Component.java:4460)
java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
--------------------------------------------------------------------------------


2009-09-30 06:48:37,000 (AWT-EventQueue-0) [         MenuEvents.java:474:ERROR] Fatal error calling inventory checking services: org.ofbiz.service.GenericServiceException: org.ofbiz.minilang.SimpleServiceEngine (org.ofbiz.minilang.SimpleServiceEngine)

2009-09-30 06:55:32,703 (Thread-1533) [            UtilXml.java:649:ERROR] XmlFileLoader: File file:/E:/Ritecart%20Tribu/applications/emartcatalog/script/org/ofbiz/product/store/ProductStoreServices.xml process error. Line: 602. Error message: cvc-complex-type.2.4.a: Invalid content was found starting with element 'log'. One of '{error-prefix, error-suffix, success-prefix, success-suffix, message-prefix, message-suffix, default-message, results-to-map, result-to-field, result-to-request, result-to-session, result-to-result}' is expected.



Reply | Threaded
Open this post in threaded view
|

Re: simpleserviceengine exception, not loading

Jacques Le Roux
Administrator
Hi,

Do you intend to share this work ? Then I may help ...

Jacques

From: "nachi19" <[hidden email]>

>
> Hi all,
>
>           I am to call the one of the simple service from the epos at the
> time of adding the product to cart to ensure the inventory, but my
> simpleserviceengine class is not loading at all but java is loading and
> working fine. I have added a quick drop down of list of products to added to
> the cart if i enter  the particular id in the text area of the pos it adds
> the product to cart, if i try to add from the list of products it raises an
> exception of simple service engine. The log looks as below.I think in the
> GenericEngineFactory class at the getGenericEngine()  method the classloader
> is not loading the simpleserviceengine class.... can any one tellme where i
> am going wrong...
>
> 2009-09-30 06:48:37,000 (AWT-EventQueue-0) [  
> ShoppingCartItem.java:904:ERROR]
>
> ---- exception report
> ----------------------------------------------------------
> Fatal error calling inventory checking services:
> org.ofbiz.service.GenericServiceException:
> org.ofbiz.minilang.SimpleServiceEngine
> (org.ofbiz.minilang.SimpleServiceEngine)
> Exception: org.ofbiz.service.GenericServiceException
> Message: org.ofbiz.minilang.SimpleServiceEngine
> (org.ofbiz.minilang.SimpleServiceEngine)
> ---- stack trace
> ---------------------------------------------------------------
> org.ofbiz.service.GenericServiceException:
> org.ofbiz.minilang.SimpleServiceEngine
> (org.ofbiz.minilang.SimpleServiceEngine)
> org.ofbiz.service.engine.GenericEngineFactory.getGenericEngine(GenericEngineFactory.java:89)
> org.ofbiz.service.ServiceDispatcher.getGenericEngine(ServiceDispatcher.java:650)
> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:270)
> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:218)
> org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:136)
> org.ofbiz.order.shoppingcart.ShoppingCartItem.isInventoryAvailableOrNotRequired(ShoppingCartItem.java:893)
> org.ofbiz.order.shoppingcart.ShoppingCartItem.setQuantity(ShoppingCartItem.java:925)
> org.ofbiz.order.shoppingcart.ShoppingCartItem.makeItem(ShoppingCartItem.java:517)
> org.ofbiz.order.shoppingcart.ShoppingCartItem.makeItem(ShoppingCartItem.java:322)
> org.ofbiz.order.shoppingcart.ShoppingCart.addOrIncreaseItem(ShoppingCart.java:480)
> org.ofbiz.pos.PosTransaction.addItem(PosTransaction.java:779)
> org.ofbiz.pos.event.MenuEvents.addItemFromList(MenuEvents.java:469)
> org.ofbiz.pos.screen.FilterHistoryJList$2.actionPerformed(FilterHistoryJList.java:406)
> javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
> javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
> javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
> javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
> javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
> java.awt.Component.processMouseEvent(Component.java:6263)
> javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
> java.awt.Component.processEvent(Component.java:6028)
> java.awt.Container.processEvent(Container.java:2041)
> java.awt.Component.dispatchEventImpl(Component.java:4630)
> java.awt.Container.dispatchEventImpl(Container.java:2099)
> java.awt.Component.dispatchEvent(Component.java:4460)
> java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4574)
> java.awt.LightweightDispatcher.processMouseEvent(Container.java:4238)
> java.awt.LightweightDispatcher.dispatchEvent(Container.java:4168)
> java.awt.Container.dispatchEventImpl(Container.java:2085)
> java.awt.Window.dispatchEventImpl(Window.java:2475)
> java.awt.Component.dispatchEvent(Component.java:4460)
> java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
> java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
> java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
> java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
> java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
> java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
> java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
> java.lang.ClassNotFoundException: org.ofbiz.minilang.SimpleServiceEngine
> java.net.URLClassLoader$1.run(URLClassLoader.java:200)
> java.security.AccessController.doPrivileged(Native Method)
> java.net.URLClassLoader.findClass(URLClassLoader.java:188)
> java.lang.ClassLoader.loadClass(ClassLoader.java:307)
> java.lang.ClassLoader.loadClass(ClassLoader.java:252)
> org.ofbiz.service.engine.GenericEngineFactory.getGenericEngine(GenericEngineFactory.java:82)
> org.ofbiz.service.ServiceDispatcher.getGenericEngine(ServiceDispatcher.java:650)
> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:270)
> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:218)
> org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:136)
> org.ofbiz.order.shoppingcart.ShoppingCartItem.isInventoryAvailableOrNotRequired(ShoppingCartItem.java:893)
> org.ofbiz.order.shoppingcart.ShoppingCartItem.setQuantity(ShoppingCartItem.java:925)
> org.ofbiz.order.shoppingcart.ShoppingCartItem.makeItem(ShoppingCartItem.java:517)
> org.ofbiz.order.shoppingcart.ShoppingCartItem.makeItem(ShoppingCartItem.java:322)
> org.ofbiz.order.shoppingcart.ShoppingCart.addOrIncreaseItem(ShoppingCart.java:480)
> org.ofbiz.pos.PosTransaction.addItem(PosTransaction.java:779)
> org.ofbiz.pos.event.MenuEvents.addItemFromList(MenuEvents.java:469)
> org.ofbiz.pos.screen.FilterHistoryJList$2.actionPerformed(FilterHistoryJList.java:406)
> javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
> javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
> javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
> javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
> javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
> java.awt.Component.processMouseEvent(Component.java:6263)
> javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
> java.awt.Component.processEvent(Component.java:6028)
> java.awt.Container.processEvent(Container.java:2041)
> java.awt.Component.dispatchEventImpl(Component.java:4630)
> java.awt.Container.dispatchEventImpl(Container.java:2099)
> java.awt.Component.dispatchEvent(Component.java:4460)
> java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4574)
> java.awt.LightweightDispatcher.processMouseEvent(Container.java:4238)
> java.awt.LightweightDispatcher.dispatchEvent(Container.java:4168)
> java.awt.Container.dispatchEventImpl(Container.java:2085)
> java.awt.Window.dispatchEventImpl(Window.java:2475)
> java.awt.Component.dispatchEvent(Component.java:4460)
> java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
> java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
> java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
> java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
> java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
> java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
> java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
> --------------------------------------------------------------------------------
>
>
> 2009-09-30 06:48:37,000 (AWT-EventQueue-0) [        
> MenuEvents.java:474:ERROR] Fatal error calling inventory checking services:
> org.ofbiz.service.GenericServiceException:
> org.ofbiz.minilang.SimpleServiceEngine
> (org.ofbiz.minilang.SimpleServiceEngine)
>
> 2009-09-30 06:55:32,703 (Thread-1533) [            UtilXml.java:649:ERROR]
> XmlFileLoader: File
> file:/E:/Ritecart%20Tribu/applications/emartcatalog/script/org/ofbiz/product/store/ProductStoreServices.xml
> process error. Line: 602. Error message: cvc-complex-type.2.4.a: Invalid
> content was found starting with element 'log'. One of '{error-prefix,
> error-suffix, success-prefix, success-suffix, message-prefix,
> message-suffix, default-message, results-to-map, result-to-field,
> result-to-request, result-to-session, result-to-result}' is expected.
>
>
>
>
> --
> View this message in context: http://www.nabble.com/simpleserviceengine-exception%2C-not-loading-tp25673909p25673909.html
> Sent from the OFBiz - User mailing list archive at Nabble.com.
>