how to run pos in eclipse
-------------------------- Key: OFBIZ-1204 URL: https://issues.apache.org/jira/browse/OFBIZ-1204 Project: OFBiz Issue Type: Task Environment: eclipse 3.2 ofbiz 1.0 jdk 1.5 Reporter: Jimmy.Cao Dear all: I want to use eclipse to debug pos module in ofbiz (I set the argument "-pos") but it does not work . I can debug other module in ofbiz except pos. And I can run pos by cmd command (java -Duser.language=en -Duser.country=US -jar ofbiz.jar -pos) . I don't know why.... Can you help me? I appreciate for all of your help. Thanks Jimmy -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. |
[ https://issues.apache.org/jira/browse/OFBIZ-1204?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12519640 ] mike commented on OFBIZ-1204: ----------------------------- Eclipse allows to define all required properties that you need Open you debug configuration and put "pos" program argument into Program argument field in Arguments tab Issue should be closed > how to run pos in eclipse > -------------------------- > > Key: OFBIZ-1204 > URL: https://issues.apache.org/jira/browse/OFBIZ-1204 > Project: OFBiz > Issue Type: Task > Environment: eclipse 3.2 > ofbiz 1.0 > jdk 1.5 > Reporter: Jimmy.Cao > > Dear all: > I want to use eclipse to debug pos module in ofbiz > (I set the argument "-pos") but it does not work . I can debug other module in ofbiz except pos. And I can run pos by cmd command > (java -Duser.language=en -Duser.country=US -jar ofbiz.jar -pos) . I don't know why.... > Can you help me? > I appreciate for all of your help. > Thanks Jimmy -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. |
In reply to this post by Nicolas Malin (Jira)
[ https://issues.apache.org/jira/browse/OFBIZ-1204?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12519826 ] Jimmy.Cao commented on OFBIZ-1204: ---------------------------------- Dear mike , i have try this ,but it still can not run . Follow is the error message in Eclipse : 2007-08-14 17:17:13,147 (main) [ ContainerLoader.java:77 :INFO ] [Startup] Starting containers... 2007-08-14 17:17:17,004 (main) [ DeviceLoader.java:65 :ERROR] ---- exception report ---------------------------------------------------------- JPOS Exception Exception: jpos.JposException Message: Service does not exist in loaded JCL registry ---- stack trace --------------------------------------------------------------- jpos.JposException: Service does not exist in loaded JCL registry jpos.loader.simple.SimpleServiceManager.createConnection(Unknown Source) jpos.loader.JposServiceLoader.findService(Unknown Source) jpos.BaseJposControl.open(Unknown Source) org.ofbiz.pos.device.GenericDevice.open(GenericDevice.java:47) org.ofbiz.pos.device.DeviceLoader.load(DeviceLoader.java:63) org.ofbiz.pos.container.JposDeviceContainer.start(JposDeviceContainer.java:53) org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:83) org.ofbiz.base.start.Start.startStartLoaders(Start.java:266) org.ofbiz.base.start.Start.startServer(Start.java:317) org.ofbiz.base.start.Start.start(Start.java:321) org.ofbiz.base.start.Start.main(Start.java:407) -------------------------------------------------------------------------------- 2007-08-14 17:17:17,004 (main) [JposDeviceContainer.java:55 :INFO ] ****************************************************** 2007-08-14 17:17:17,004 (main) [JposDeviceContainer.java:56 :INFO ] Please verify that your receipt printer is connected ! 2007-08-14 17:17:17,020 (main) [JposDeviceContainer.java:57 :INFO ] ****************************************************** org.ofbiz.base.start.StartupException: Cannot start() org.ofbiz.pos.container.JposDeviceContainer (null) at org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:85) at org.ofbiz.base.start.Start.startStartLoaders(Start.java:266) at org.ofbiz.base.start.Start.startServer(Start.java:317) at org.ofbiz.base.start.Start.start(Start.java:321) at org.ofbiz.base.start.Start.main(Start.java:407) org.ofbiz.base.container.ContainerException at org.ofbiz.pos.container.JposDeviceContainer.start(JposDeviceContainer.java:58) at org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:83) at org.ofbiz.base.start.Start.startStartLoaders(Start.java:266) at org.ofbiz.base.start.Start.startServer(Start.java:317) at org.ofbiz.base.start.Start.start(Start.java:321) at org.ofbiz.base.start.Start.main(Start.java:407) org.ofbiz.base.util.GeneralException at org.ofbiz.pos.device.DeviceLoader.load(DeviceLoader.java:66) at org.ofbiz.pos.container.JposDeviceContainer.start(JposDeviceContainer.java:53) at org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:83) at org.ofbiz.base.start.Start.startStartLoaders(Start.java:266) at org.ofbiz.base.start.Start.startServer(Start.java:317) at org.ofbiz.base.start.Start.start(Start.java:321) at org.ofbiz.base.start.Start.main(Start.java:407) org.ofbiz.base.container.ContainerException at org.ofbiz.pos.container.JposDeviceContainer.start(JposDeviceContainer.java:58) at org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:83) at org.ofbiz.base.start.Start.startStartLoaders(Start.java:266) at org.ofbiz.base.start.Start.startServer(Start.java:317) at org.ofbiz.base.start.Start.start(Start.java:321) at org.ofbiz.base.start.Start.main(Start.java:407) org.ofbiz.base.util.GeneralException at org.ofbiz.pos.device.DeviceLoader.load(DeviceLoader.java:66) at org.ofbiz.pos.container.JposDeviceContainer.start(JposDeviceContainer.java:53) at org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:83) at org.ofbiz.base.start.Start.startStartLoaders(Start.java:266) at org.ofbiz.base.start.Start.startServer(Start.java:317) at org.ofbiz.base.start.Start.start(Start.java:321) at org.ofbiz.base.start.Start.main(Start.java:407) org.ofbiz.base.util.GeneralException at org.ofbiz.pos.device.DeviceLoader.load(DeviceLoader.java:66) at org.ofbiz.pos.container.JposDeviceContainer.start(JposDeviceContainer.java:53) at org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:83) at org.ofbiz.base.start.Start.startStartLoaders(Start.java:266) at org.ofbiz.base.start.Start.startServer(Start.java:317) at org.ofbiz.base.start.Start.start(Start.java:321) at org.ofbiz.base.start.Start.main(Start.java:407) 2007-08-14 17:17:17,098 (OFBiz_Shutdown_Hook) [ ContainerLoader.java:96 :INFO ] Shutting down containers 2007-08-14 17:17:17,098 (OFBiz_Shutdown_Hook) [ DeviceLoader.java:244:ERROR] ---- exception report ---------------------------------------------------------- JPOS Exception Exception: jpos.JposException Message: Control not opened ---- stack trace --------------------------------------------------------------- jpos.JposException: Control not opened jpos.BaseJposControl.release(Unknown Source) org.ofbiz.pos.device.GenericDevice.close(GenericDevice.java:58) org.ofbiz.pos.device.DeviceLoader.stop(DeviceLoader.java:211) org.ofbiz.pos.container.JposDeviceContainer.stop(JposDeviceContainer.java:66) org.ofbiz.base.container.ContainerLoader.unload(ContainerLoader.java:102) org.ofbiz.base.start.Start.shutdownServer(Start.java:303) org.ofbiz.base.start.Start.access$0(Start.java:297) org.ofbiz.base.start.Start$1.run(Start.java:280) -------------------------------------------------------------------------------- 2007-08-14 17:17:17,098 (OFBiz_Shutdown_Hook) [JposDeviceContainer.java:69 :ERROR] ---- exception report ---------------------------------------------------------- Exception: org.ofbiz.base.util.GeneralException Message: null ---- stack trace --------------------------------------------------------------- org.ofbiz.base.util.GeneralException org.ofbiz.pos.device.DeviceLoader.stop(DeviceLoader.java:245) org.ofbiz.pos.container.JposDeviceContainer.stop(JposDeviceContainer.java:66) org.ofbiz.base.container.ContainerLoader.unload(ContainerLoader.java:102) org.ofbiz.base.start.Start.shutdownServer(Start.java:303) org.ofbiz.base.start.Start.access$0(Start.java:297) org.ofbiz.base.start.Start$1.run(Start.java:280) -------------------------------------------------------------------------------- 2007-08-14 17:17:17,098 (OFBiz_Shutdown_Hook) [JposDeviceContainer.java:71 :INFO ] JPOS Devices released and closed > how to run pos in eclipse > -------------------------- > > Key: OFBIZ-1204 > URL: https://issues.apache.org/jira/browse/OFBIZ-1204 > Project: OFBiz > Issue Type: Task > Environment: eclipse 3.2 > ofbiz 1.0 > jdk 1.5 > Reporter: Jimmy.Cao > > Dear all: > I want to use eclipse to debug pos module in ofbiz > (I set the argument "-pos") but it does not work . I can debug other module in ofbiz except pos. And I can run pos by cmd command > (java -Duser.language=en -Duser.country=US -jar ofbiz.jar -pos) . I don't know why.... > Can you help me? > I appreciate for all of your help. > Thanks Jimmy -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. |
In reply to this post by Nicolas Malin (Jira)
[ https://issues.apache.org/jira/browse/OFBIZ-1204?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12519847 ] Jimmy.Cao commented on OFBIZ-1204: ---------------------------------- this is the right log which is run by cmd command :(can be compared with error log ) 2007-08-15 11:31:23,116 (main) [ ContainerLoader.java:77 :INFO ] [Startup] Starting containers... 2007-08-15 11:31:23,725 (main) [ Keyboard.java:52 :INFO ] Keyboard [Keyboard] Claimed : true 2007-08-15 11:31:23,819 (main) [ Scanner.java:48 :INFO ] Scanner [KybScanner] Claimed : true 2007-08-15 11:31:23,913 (main) [ Msr.java:49 :INFO ] MSR [TestMsr] Claimed : true 2007-08-15 11:31:24,006 (main) [ Receipt.java:87 :INFO ] Receipt [NullPOSPrinter] Claimed : true 2007-08-15 11:31:24,069 (main) [ CashDrawer.java:48 :INFO ] CashDrawer [NullPOSPrinter] Claimed : true 2007-08-15 11:31:24,116 (main) [ GenericDelegator.java:116:INFO ] Creating new delegator [default] (main) ***************************************************************************************** i think the issue is caused by the 'devices set up in eclipse' i have track the program ,it throw out the error follow : public static void load(Map devices) throws GeneralException { // load the keyboard if (devices.get("Keyboard") != null) { String keyboardDevice = ((ContainerConfig.Container.Property) devices.get("Keyboard")).value; if (UtilValidate.isNotEmpty(keyboardDevice) && !"[NOT IMPLEMENTED]".equals(keyboardDevice)) { keyboard = new Keyboard(keyboardDevice, -1); try { //************** here throw the error ***********// keyboard.open(); //************** here throw the error ***********// } catch (jpos.JposException jpe) { Debug.logError(jpe, "JPOS Exception", module); throw new GeneralException(jpe.getOrigException()); } } } // other code .... // } // **** this is the open() method ** // public void open() throws JposException { if (deviceName != null && control != null) { if (!"[NOT IMPLEMENTED]".equals(deviceName) && !"[DISABLED]".equals(deviceName)) { //************** here throw the error ***********// control.open(deviceName); //the deviceName is " GenericKeyboard " //************** here throw the error ***********// control.claim(timeout); this.enable(true); this.initialize(); } } else { Debug.logWarning("No device named [" + deviceName + "] available", module); } } so what is the different between two ways to run pos? > how to run pos in eclipse > -------------------------- > > Key: OFBIZ-1204 > URL: https://issues.apache.org/jira/browse/OFBIZ-1204 > Project: OFBiz > Issue Type: Task > Environment: eclipse 3.2 > ofbiz 1.0 > jdk 1.5 > Reporter: Jimmy.Cao > > Dear all: > I want to use eclipse to debug pos module in ofbiz > (I set the argument "-pos") but it does not work . I can debug other module in ofbiz except pos. And I can run pos by cmd command > (java -Duser.language=en -Duser.country=US -jar ofbiz.jar -pos) . I don't know why.... > Can you help me? > I appreciate for all of your help. > Thanks Jimmy -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. |
In reply to this post by Nicolas Malin (Jira)
[ https://issues.apache.org/jira/browse/OFBIZ-1204?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12519940 ] Jacques Le Roux commented on OFBIZ-1204: ---------------------------------------- On which OS are you running ? Have you modified any OOTB OFBiz files ? An last but not least which version of OFBiz are you using ? (Opentaps is version 1.0 not OFBiz...) > how to run pos in eclipse > -------------------------- > > Key: OFBIZ-1204 > URL: https://issues.apache.org/jira/browse/OFBIZ-1204 > Project: OFBiz > Issue Type: Task > Environment: eclipse 3.2 > ofbiz 1.0 > jdk 1.5 > Reporter: Jimmy.Cao > > Dear all: > I want to use eclipse to debug pos module in ofbiz > (I set the argument "-pos") but it does not work . I can debug other module in ofbiz except pos. And I can run pos by cmd command > (java -Duser.language=en -Duser.country=US -jar ofbiz.jar -pos) . I don't know why.... > Can you help me? > I appreciate for all of your help. > Thanks Jimmy -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. |
In reply to this post by Nicolas Malin (Jira)
[ https://issues.apache.org/jira/browse/OFBIZ-1204?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12519941 ] Jacques Le Roux commented on OFBIZ-1204: ---------------------------------------- Also verify that you are using jdk 1.5 into Ecipse... > how to run pos in eclipse > -------------------------- > > Key: OFBIZ-1204 > URL: https://issues.apache.org/jira/browse/OFBIZ-1204 > Project: OFBiz > Issue Type: Task > Environment: eclipse 3.2 > ofbiz 1.0 > jdk 1.5 > Reporter: Jimmy.Cao > > Dear all: > I want to use eclipse to debug pos module in ofbiz > (I set the argument "-pos") but it does not work . I can debug other module in ofbiz except pos. And I can run pos by cmd command > (java -Duser.language=en -Duser.country=US -jar ofbiz.jar -pos) . I don't know why.... > Can you help me? > I appreciate for all of your help. > Thanks Jimmy -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. |
In reply to this post by Nicolas Malin (Jira)
[ https://issues.apache.org/jira/browse/OFBIZ-1204?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jacques Le Roux closed OFBIZ-1204. ---------------------------------- Resolution: Cannot Reproduce Assignee: Jacques Le Roux > how to run pos in eclipse > -------------------------- > > Key: OFBIZ-1204 > URL: https://issues.apache.org/jira/browse/OFBIZ-1204 > Project: OFBiz > Issue Type: Task > Environment: eclipse 3.2 > ofbiz 1.0 > jdk 1.5 > Reporter: Jimmy.Cao > Assignee: Jacques Le Roux > > Dear all: > I want to use eclipse to debug pos module in ofbiz > (I set the argument "-pos") but it does not work . I can debug other module in ofbiz except pos. And I can run pos by cmd command > (java -Duser.language=en -Duser.country=US -jar ofbiz.jar -pos) . I don't know why.... > Can you help me? > I appreciate for all of your help. > Thanks Jimmy -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. |
In reply to this post by Nicolas Malin (Jira)
[ https://issues.apache.org/jira/browse/OFBIZ-1204?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12520886 ] Jacques Le Roux commented on OFBIZ-1204: ---------------------------------------- This is not an issue, please user ML for such topic, thanks. > how to run pos in eclipse > -------------------------- > > Key: OFBIZ-1204 > URL: https://issues.apache.org/jira/browse/OFBIZ-1204 > Project: OFBiz > Issue Type: Task > Environment: eclipse 3.2 > ofbiz 1.0 > jdk 1.5 > Reporter: Jimmy.Cao > Assignee: Jacques Le Roux > > Dear all: > I want to use eclipse to debug pos module in ofbiz > (I set the argument "-pos") but it does not work . I can debug other module in ofbiz except pos. And I can run pos by cmd command > (java -Duser.language=en -Duser.country=US -jar ofbiz.jar -pos) . I don't know why.... > Can you help me? > I appreciate for all of your help. > Thanks Jimmy -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. |
Free forum by Nabble | Edit this page |