I finally found epsons 1.9 adk, followed directions found on a ofbiz
jira forum. However, because I'm using a cashdrawer that soley uses a signal from the printer, even commenting out the cashdrawer in pos-containers didn't work. I had to change PosTransaction.java and commented out the popDrawer function. It kept giving me a null exception because as far s the pos is concerned, there is no drawer. maybe a thought is to make that conditional for the drawers that don't actually rely on the pos instead getting the signal from the printer. Sorry for the grammer, this is comming from my phone. |
Administrator
|
From: "Branden Strickland" <[hidden email]>
>I finally found epsons 1.9 adk, followed directions found on a ofbiz > jira forum. However, because I'm using a cashdrawer that soley uses a > signal from the printer, even commenting out the cashdrawer in > pos-containers didn't work. I had to change PosTransaction.java and > commented out the popDrawer function. It kept giving me a null > exception because as far s the pos is concerned, there is no drawer. > maybe a thought is to make that conditional for the drawers that don't > actually rely on the pos instead getting the signal from the printer. > > Sorry for the grammer, this is comming from my phone. What kind of error do you get ? I have no cashdrawer and I get no errors using a TM-T88III with ADK 1.8 (just tested) Jacques |
This is what I got while trying to finish a transaction when I had nothing
in the quotes of the cashdrawer. Exception in thread "Thread-214" java.lang.NullPointerException at org.ofbiz.pos.PosTransaction.popDrawer(PosTransaction.java:152) at org.ofbiz.pos.PosTransaction$1.construct(PosTransaction.java:797) at net.xoetrope.xui.helper.SwingWorker$2.run(Unknown Source) at java.lang.Thread.run(Thread.java:619) and actually, I got this when I tried using the Null cashdrawer. JPOS Exception Exception: jpos.JposException Message: Could not connect to service with logicalName = NullCashDrawer: Exception.message=org.ofbiz.pos.jpos.factory.OfbizJposServiceFactory ---- stack trace --------------------------------------------------------------- jpos.JposException: Could not connect to service with logicalName = NullCashDrawer: Exception.message=org.ofbiz.pos.jpos.factory.OfbizJposServiceFactory jpos.loader.simple.SimpleServiceConnection.connect(Unknown Source) jpos.BaseJposControl.open(Unknown Source) org.ofbiz.pos.device.GenericDevice.open(GenericDevice.java:44) org.ofbiz.pos.device.DeviceLoader.load(DeviceLoader.java:165) org.ofbiz.pos.container.JposDeviceContainer.start(JposDeviceContainer.java:50) org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:79) org.ofbiz.base.start.Start.startStartLoaders(Start.java:261) org.ofbiz.base.start.Start.startServer(Start.java:310) org.ofbiz.base.start.Start.start(Start.java:314) org.ofbiz.base.start.Start.main(Start.java:397) On Mon, May 19, 2008 at 5:23 PM, Jacques Le Roux < [hidden email]> wrote: > From: "Branden Strickland" <[hidden email]> > > I finally found epsons 1.9 adk, followed directions found on a ofbiz >> jira forum. However, because I'm using a cashdrawer that soley uses a >> signal from the printer, even commenting out the cashdrawer in >> pos-containers didn't work. I had to change PosTransaction.java and >> commented out the popDrawer function. It kept giving me a null >> exception because as far s the pos is concerned, there is no drawer. >> maybe a thought is to make that conditional for the drawers that don't >> actually rely on the pos instead getting the signal from the printer. >> >> Sorry for the grammer, this is comming from my phone. >> > > What kind of error do you get ? I have no cashdrawer and I get no errors > using a TM-T88III with ADK 1.8 (just tested) > > Jacques > |
Administrator
|
I'm not sure of the reason (maybe it's in your code, or it depends of your driver ?) but I get any of these (nor with Null
cashdrawer) Jacques From: "Branden Strickland" <[hidden email]> > This is what I got while trying to finish a transaction when I had nothing > in the quotes of the cashdrawer. > > Exception in thread "Thread-214" java.lang.NullPointerException > at org.ofbiz.pos.PosTransaction.popDrawer(PosTransaction.java:152) > at org.ofbiz.pos.PosTransaction$1.construct(PosTransaction.java:797) > at net.xoetrope.xui.helper.SwingWorker$2.run(Unknown Source) > at java.lang.Thread.run(Thread.java:619) > > and actually, I got this when I tried using the Null cashdrawer. > > JPOS Exception > Exception: jpos.JposException > Message: Could not connect to service with logicalName = NullCashDrawer: > Exception.message=org.ofbiz.pos.jpos.factory.OfbizJposServiceFactory > ---- stack trace > --------------------------------------------------------------- > jpos.JposException: Could not connect to service with logicalName = > NullCashDrawer: > Exception.message=org.ofbiz.pos.jpos.factory.OfbizJposServiceFactory > jpos.loader.simple.SimpleServiceConnection.connect(Unknown Source) > jpos.BaseJposControl.open(Unknown Source) > org.ofbiz.pos.device.GenericDevice.open(GenericDevice.java:44) > org.ofbiz.pos.device.DeviceLoader.load(DeviceLoader.java:165) > org.ofbiz.pos.container.JposDeviceContainer.start(JposDeviceContainer.java:50) > org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:79) > org.ofbiz.base.start.Start.startStartLoaders(Start.java:261) > org.ofbiz.base.start.Start.startServer(Start.java:310) > org.ofbiz.base.start.Start.start(Start.java:314) > org.ofbiz.base.start.Start.main(Start.java:397) > > > On Mon, May 19, 2008 at 5:23 PM, Jacques Le Roux < > [hidden email]> wrote: > >> From: "Branden Strickland" <[hidden email]> >> >> I finally found epsons 1.9 adk, followed directions found on a ofbiz >>> jira forum. However, because I'm using a cashdrawer that soley uses a >>> signal from the printer, even commenting out the cashdrawer in >>> pos-containers didn't work. I had to change PosTransaction.java and >>> commented out the popDrawer function. It kept giving me a null >>> exception because as far s the pos is concerned, there is no drawer. >>> maybe a thought is to make that conditional for the drawers that don't >>> actually rely on the pos instead getting the signal from the printer. >>> >>> Sorry for the grammer, this is comming from my phone. >>> >> >> What kind of error do you get ? I have no cashdrawer and I get no errors >> using a TM-T88III with ADK 1.8 (just tested) >> >> Jacques >> > |
Interesting!
I'll try pulling down the newest build, and walking through it again (I gotta make sure I can get a printer working a second time anyway!) I'll post my finding. Thanks, On Tue, May 20, 2008 at 2:51 AM, Jacques Le Roux < [hidden email]> wrote: > I'm not sure of the reason (maybe it's in your code, or it depends of your > driver ?) but I get any of these (nor with Null cashdrawer) > > Jacques > > > From: "Branden Strickland" <[hidden email]> > >> This is what I got while trying to finish a transaction when I had nothing >> in the quotes of the cashdrawer. >> >> Exception in thread "Thread-214" java.lang.NullPointerException >> at org.ofbiz.pos.PosTransaction.popDrawer(PosTransaction.java:152) >> at org.ofbiz.pos.PosTransaction$1.construct(PosTransaction.java:797) >> at net.xoetrope.xui.helper.SwingWorker$2.run(Unknown Source) >> at java.lang.Thread.run(Thread.java:619) >> >> and actually, I got this when I tried using the Null cashdrawer. >> >> JPOS Exception >> Exception: jpos.JposException >> Message: Could not connect to service with logicalName = NullCashDrawer: >> Exception.message=org.ofbiz.pos.jpos.factory.OfbizJposServiceFactory >> ---- stack trace >> --------------------------------------------------------------- >> jpos.JposException: Could not connect to service with logicalName = >> NullCashDrawer: >> Exception.message=org.ofbiz.pos.jpos.factory.OfbizJposServiceFactory >> jpos.loader.simple.SimpleServiceConnection.connect(Unknown Source) >> jpos.BaseJposControl.open(Unknown Source) >> org.ofbiz.pos.device.GenericDevice.open(GenericDevice.java:44) >> org.ofbiz.pos.device.DeviceLoader.load(DeviceLoader.java:165) >> >> org.ofbiz.pos.container.JposDeviceContainer.start(JposDeviceContainer.java:50) >> org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:79) >> org.ofbiz.base.start.Start.startStartLoaders(Start.java:261) >> org.ofbiz.base.start.Start.startServer(Start.java:310) >> org.ofbiz.base.start.Start.start(Start.java:314) >> org.ofbiz.base.start.Start.main(Start.java:397) >> >> >> On Mon, May 19, 2008 at 5:23 PM, Jacques Le Roux < >> [hidden email]> wrote: >> >> From: "Branden Strickland" <[hidden email]> >>> >>> I finally found epsons 1.9 adk, followed directions found on a ofbiz >>> >>>> jira forum. However, because I'm using a cashdrawer that soley uses a >>>> signal from the printer, even commenting out the cashdrawer in >>>> pos-containers didn't work. I had to change PosTransaction.java and >>>> commented out the popDrawer function. It kept giving me a null >>>> exception because as far s the pos is concerned, there is no drawer. >>>> maybe a thought is to make that conditional for the drawers that don't >>>> actually rely on the pos instead getting the signal from the printer. >>>> >>>> Sorry for the grammer, this is comming from my phone. >>>> >>>> >>> What kind of error do you get ? I have no cashdrawer and I get no errors >>> using a TM-T88III with ADK 1.8 (just tested) >>> >>> Jacques >>> >>> >> > |
In reply to this post by Jacques Le Roux
Jacques,
I pulled down the newest release, and got everything up and working, but it seems that all of the "null" devices can't be found. Where exactly are those java files located? I'm guessing my drawer doesn't pop, becuase I've removed the pop.Drawer funtion in PosTranaction.java file. Is there something i can manually load into the classpath through the .classpath file to get those devices back? Thanks! On Tue, May 20, 2008 at 2:51 AM, Jacques Le Roux < [hidden email]> wrote: > I'm not sure of the reason (maybe it's in your code, or it depends of your > driver ?) but I get any of these (nor with Null cashdrawer) > > Jacques > > > From: "Branden Strickland" <[hidden email]> > >> This is what I got while trying to finish a transaction when I had nothing >> in the quotes of the cashdrawer. >> >> Exception in thread "Thread-214" java.lang.NullPointerException >> at org.ofbiz.pos.PosTransaction.popDrawer(PosTransaction.java:152) >> at org.ofbiz.pos.PosTransaction$1.construct(PosTransaction.java:797) >> at net.xoetrope.xui.helper.SwingWorker$2.run(Unknown Source) >> at java.lang.Thread.run(Thread.java:619) >> >> and actually, I got this when I tried using the Null cashdrawer. >> >> JPOS Exception >> Exception: jpos.JposException >> Message: Could not connect to service with logicalName = NullCashDrawer: >> Exception.message=org.ofbiz.pos.jpos.factory.OfbizJposServiceFactory >> ---- stack trace >> --------------------------------------------------------------- >> jpos.JposException: Could not connect to service with logicalName = >> NullCashDrawer: >> Exception.message=org.ofbiz.pos.jpos.factory.OfbizJposServiceFactory >> jpos.loader.simple.SimpleServiceConnection.connect(Unknown Source) >> jpos.BaseJposControl.open(Unknown Source) >> org.ofbiz.pos.device.GenericDevice.open(GenericDevice.java:44) >> org.ofbiz.pos.device.DeviceLoader.load(DeviceLoader.java:165) >> >> org.ofbiz.pos.container.JposDeviceContainer.start(JposDeviceContainer.java:50) >> org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:79) >> org.ofbiz.base.start.Start.startStartLoaders(Start.java:261) >> org.ofbiz.base.start.Start.startServer(Start.java:310) >> org.ofbiz.base.start.Start.start(Start.java:314) >> org.ofbiz.base.start.Start.main(Start.java:397) >> >> >> On Mon, May 19, 2008 at 5:23 PM, Jacques Le Roux < >> [hidden email]> wrote: >> >> From: "Branden Strickland" <[hidden email]> >>> >>> I finally found epsons 1.9 adk, followed directions found on a ofbiz >>> >>>> jira forum. However, because I'm using a cashdrawer that soley uses a >>>> signal from the printer, even commenting out the cashdrawer in >>>> pos-containers didn't work. I had to change PosTransaction.java and >>>> commented out the popDrawer function. It kept giving me a null >>>> exception because as far s the pos is concerned, there is no drawer. >>>> maybe a thought is to make that conditional for the drawers that don't >>>> actually rely on the pos instead getting the signal from the printer. >>>> >>>> Sorry for the grammer, this is comming from my phone. >>>> >>>> >>> What kind of error do you get ? I have no cashdrawer and I get no errors >>> using a TM-T88III with ADK 1.8 (just tested) >>> >>> Jacques >>> >>> >> > |
I did a quick clean download last night and just ran the pos app clean
and it worked fine and it uses all the Null devices by default as I wasn't plugged into anything. For testing the Null printer dumps to the log files and I got a nice little receipt for the order I placed. You'll find the Null devices in: specialpurpose/pos/src/org/ofbiz/pos/jpos/service Are you running in a non standard container? Or from within Eclipse or something that is missing the classpath values maybe? I'd certainly move back towards a clean version without mods like removing pop.Drawer until you find the real cause of the problem. Ray Branden Strickland wrote: > Jacques, > > I pulled down the newest release, and got everything up and working, but it > seems that all of the "null" devices can't be found. Where exactly are those > java files located? > > I'm guessing my drawer doesn't pop, becuase I've removed the pop.Drawer > funtion in PosTranaction.java file. > > Is there something i can manually load into the classpath through the > .classpath file to get those devices back? > > Thanks! > > On Tue, May 20, 2008 at 2:51 AM, Jacques Le Roux < > [hidden email]> wrote: > > >> I'm not sure of the reason (maybe it's in your code, or it depends of your >> driver ?) but I get any of these (nor with Null cashdrawer) >> >> Jacques >> >> >> From: "Branden Strickland" <[hidden email]> >> >> >>> This is what I got while trying to finish a transaction when I had nothing >>> in the quotes of the cashdrawer. >>> >>> Exception in thread "Thread-214" java.lang.NullPointerException >>> at org.ofbiz.pos.PosTransaction.popDrawer(PosTransaction.java:152) >>> at org.ofbiz.pos.PosTransaction$1.construct(PosTransaction.java:797) >>> at net.xoetrope.xui.helper.SwingWorker$2.run(Unknown Source) >>> at java.lang.Thread.run(Thread.java:619) >>> >>> and actually, I got this when I tried using the Null cashdrawer. >>> >>> JPOS Exception >>> Exception: jpos.JposException >>> Message: Could not connect to service with logicalName = NullCashDrawer: >>> Exception.message=org.ofbiz.pos.jpos.factory.OfbizJposServiceFactory >>> ---- stack trace >>> --------------------------------------------------------------- >>> jpos.JposException: Could not connect to service with logicalName = >>> NullCashDrawer: >>> Exception.message=org.ofbiz.pos.jpos.factory.OfbizJposServiceFactory >>> jpos.loader.simple.SimpleServiceConnection.connect(Unknown Source) >>> jpos.BaseJposControl.open(Unknown Source) >>> org.ofbiz.pos.device.GenericDevice.open(GenericDevice.java:44) >>> org.ofbiz.pos.device.DeviceLoader.load(DeviceLoader.java:165) >>> >>> org.ofbiz.pos.container.JposDeviceContainer.start(JposDeviceContainer.java:50) >>> org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:79) >>> org.ofbiz.base.start.Start.startStartLoaders(Start.java:261) >>> org.ofbiz.base.start.Start.startServer(Start.java:310) >>> org.ofbiz.base.start.Start.start(Start.java:314) >>> org.ofbiz.base.start.Start.main(Start.java:397) >>> >>> >>> On Mon, May 19, 2008 at 5:23 PM, Jacques Le Roux < >>> [hidden email]> wrote: >>> >>> From: "Branden Strickland" <[hidden email]> >>> >>>> I finally found epsons 1.9 adk, followed directions found on a ofbiz >>>> >>>> >>>>> jira forum. However, because I'm using a cashdrawer that soley uses a >>>>> signal from the printer, even commenting out the cashdrawer in >>>>> pos-containers didn't work. I had to change PosTransaction.java and >>>>> commented out the popDrawer function. It kept giving me a null >>>>> exception because as far s the pos is concerned, there is no drawer. >>>>> maybe a thought is to make that conditional for the drawers that don't >>>>> actually rely on the pos instead getting the signal from the printer. >>>>> >>>>> Sorry for the grammer, this is comming from my phone. >>>>> >>>>> >>>>> >>>> What kind of error do you get ? I have no cashdrawer and I get no errors >>>> using a TM-T88III with ADK 1.8 (just tested) >>>> >>>> Jacques >>>> >>>> >>>> > > |
No, but I notice it's after I install the Epson ADK 1.9 (or 1.8 or 1.11)
that all my null devices break. They work fine up until I run the EpsonADK19.bin from epson-pos.com Even if I don't move the jars from JAVA_HOME/jre/lib/ext to OFBIZ_HOME/spec../pos/lib The null devices still didn't work. It couldn't find the generickeyboard or scanner as well if that helps. nor the testmsr now that I think about it. I'm almost positive it has something to do with the epson ADK, as people on this list have mentioned before the paradoxes it does to the class_paths. Maybe just using the jar's from previous machines is a better idea so the bin installer doesn't futz with my paths? any Ideas? If I knew what jar file or java file the null devices were set in, I might be able to force it to the class path or something! Thanks for the responses guys! Branden- On Thu, May 22, 2008 at 3:59 AM, Ray Barlow <[hidden email]> wrote: > I did a quick clean download last night and just ran the pos app clean > and it worked fine and it uses all the Null devices by default as I > wasn't plugged into anything. For testing the Null printer dumps to the > log files and I got a nice little receipt for the order I placed. > > You'll find the Null devices in: > specialpurpose/pos/src/org/ofbiz/pos/jpos/service > > Are you running in a non standard container? Or from within Eclipse or > something that is missing the classpath values maybe? I'd certainly move > back towards a clean version without mods like removing pop.Drawer until > you find the real cause of the problem. > > Ray > > > Branden Strickland wrote: > > Jacques, > > > > I pulled down the newest release, and got everything up and working, but > it > > seems that all of the "null" devices can't be found. Where exactly are > those > > java files located? > > > > I'm guessing my drawer doesn't pop, becuase I've removed the pop.Drawer > > funtion in PosTranaction.java file. > > > > Is there something i can manually load into the classpath through the > > .classpath file to get those devices back? > > > > Thanks! > > > > On Tue, May 20, 2008 at 2:51 AM, Jacques Le Roux < > > [hidden email]> wrote: > > > > > >> I'm not sure of the reason (maybe it's in your code, or it depends of > your > >> driver ?) but I get any of these (nor with Null cashdrawer) > >> > >> Jacques > >> > >> > >> From: "Branden Strickland" <[hidden email]> > >> > >> > >>> This is what I got while trying to finish a transaction when I had > nothing > >>> in the quotes of the cashdrawer. > >>> > >>> Exception in thread "Thread-214" java.lang.NullPointerException > >>> at > org.ofbiz.pos.PosTransaction.popDrawer(PosTransaction.java:152) > >>> at > org.ofbiz.pos.PosTransaction$1.construct(PosTransaction.java:797) > >>> at net.xoetrope.xui.helper.SwingWorker$2.run(Unknown Source) > >>> at java.lang.Thread.run(Thread.java:619) > >>> > >>> and actually, I got this when I tried using the Null cashdrawer. > >>> > >>> JPOS Exception > >>> Exception: jpos.JposException > >>> Message: Could not connect to service with logicalName = > NullCashDrawer: > >>> Exception.message=org.ofbiz.pos.jpos.factory.OfbizJposServiceFactory > >>> ---- stack trace > >>> --------------------------------------------------------------- > >>> jpos.JposException: Could not connect to service with logicalName = > >>> NullCashDrawer: > >>> Exception.message=org.ofbiz.pos.jpos.factory.OfbizJposServiceFactory > >>> jpos.loader.simple.SimpleServiceConnection.connect(Unknown Source) > >>> jpos.BaseJposControl.open(Unknown Source) > >>> org.ofbiz.pos.device.GenericDevice.open(GenericDevice.java:44) > >>> org.ofbiz.pos.device.DeviceLoader.load(DeviceLoader.java:165) > >>> > >>> > org.ofbiz.pos.container.JposDeviceContainer.start(JposDeviceContainer.java:50) > >>> org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:79) > >>> org.ofbiz.base.start.Start.startStartLoaders(Start.java:261) > >>> org.ofbiz.base.start.Start.startServer(Start.java:310) > >>> org.ofbiz.base.start.Start.start(Start.java:314) > >>> org.ofbiz.base.start.Start.main(Start.java:397) > >>> > >>> > >>> On Mon, May 19, 2008 at 5:23 PM, Jacques Le Roux < > >>> [hidden email]> wrote: > >>> > >>> From: "Branden Strickland" <[hidden email]> > >>> > >>>> I finally found epsons 1.9 adk, followed directions found on a ofbiz > >>>> > >>>> > >>>>> jira forum. However, because I'm using a cashdrawer that soley uses > a > >>>>> signal from the printer, even commenting out the cashdrawer in > >>>>> pos-containers didn't work. I had to change PosTransaction.java and > >>>>> commented out the popDrawer function. It kept giving me a null > >>>>> exception because as far s the pos is concerned, there is no drawer. > >>>>> maybe a thought is to make that conditional for the drawers that > don't > >>>>> actually rely on the pos instead getting the signal from the printer. > >>>>> > >>>>> Sorry for the grammer, this is comming from my phone. > >>>>> > >>>>> > >>>>> > >>>> What kind of error do you get ? I have no cashdrawer and I get no > errors > >>>> using a TM-T88III with ADK 1.8 (just tested) > >>>> > >>>> Jacques > >>>> > >>>> > >>>> > > > > > |
Administrator
|
From: "Branden Strickland" <[hidden email]>
> No, but I notice it's after I install the Epson ADK 1.9 (or 1.8 or 1.11) > that all my null devices break. > > They work fine up until I run the EpsonADK19.bin from epson-pos.com > > Even if I don't move the jars from JAVA_HOME/jre/lib/ext to > OFBIZ_HOME/spec../pos/lib The null devices still didn't work. > It couldn't find the generickeyboard or scanner as well if that helps. nor > the testmsr now that I think about it. > > I'm almost positive it has something to do with the epson ADK, as people on > this list have mentioned before the paradoxes it does to the class_paths. > Maybe just using the jar's from previous machines is a better idea so the > bin installer doesn't futz with my paths? I have any problems using ADK 1.8 on Windows Xp Sp2 (I tried some time ago on Ubuntu 6.06 LTS as well) Jacques > any Ideas? If I knew what jar file or java file the null devices were set > in, I might be able to force it to the class path or something! > > Thanks for the responses guys! > > Branden- > > On Thu, May 22, 2008 at 3:59 AM, Ray Barlow <[hidden email]> > wrote: > >> I did a quick clean download last night and just ran the pos app clean >> and it worked fine and it uses all the Null devices by default as I >> wasn't plugged into anything. For testing the Null printer dumps to the >> log files and I got a nice little receipt for the order I placed. >> >> You'll find the Null devices in: >> specialpurpose/pos/src/org/ofbiz/pos/jpos/service >> >> Are you running in a non standard container? Or from within Eclipse or >> something that is missing the classpath values maybe? I'd certainly move >> back towards a clean version without mods like removing pop.Drawer until >> you find the real cause of the problem. >> >> Ray >> >> >> Branden Strickland wrote: >> > Jacques, >> > >> > I pulled down the newest release, and got everything up and working, but >> it >> > seems that all of the "null" devices can't be found. Where exactly are >> those >> > java files located? >> > >> > I'm guessing my drawer doesn't pop, becuase I've removed the pop.Drawer >> > funtion in PosTranaction.java file. >> > >> > Is there something i can manually load into the classpath through the >> > .classpath file to get those devices back? >> > >> > Thanks! >> > >> > On Tue, May 20, 2008 at 2:51 AM, Jacques Le Roux < >> > [hidden email]> wrote: >> > >> > >> >> I'm not sure of the reason (maybe it's in your code, or it depends of >> your >> >> driver ?) but I get any of these (nor with Null cashdrawer) >> >> >> >> Jacques >> >> >> >> >> >> From: "Branden Strickland" <[hidden email]> >> >> >> >> >> >>> This is what I got while trying to finish a transaction when I had >> nothing >> >>> in the quotes of the cashdrawer. >> >>> >> >>> Exception in thread "Thread-214" java.lang.NullPointerException >> >>> at >> org.ofbiz.pos.PosTransaction.popDrawer(PosTransaction.java:152) >> >>> at >> org.ofbiz.pos.PosTransaction$1.construct(PosTransaction.java:797) >> >>> at net.xoetrope.xui.helper.SwingWorker$2.run(Unknown Source) >> >>> at java.lang.Thread.run(Thread.java:619) >> >>> >> >>> and actually, I got this when I tried using the Null cashdrawer. >> >>> >> >>> JPOS Exception >> >>> Exception: jpos.JposException >> >>> Message: Could not connect to service with logicalName = >> NullCashDrawer: >> >>> Exception.message=org.ofbiz.pos.jpos.factory.OfbizJposServiceFactory >> >>> ---- stack trace >> >>> --------------------------------------------------------------- >> >>> jpos.JposException: Could not connect to service with logicalName = >> >>> NullCashDrawer: >> >>> Exception.message=org.ofbiz.pos.jpos.factory.OfbizJposServiceFactory >> >>> jpos.loader.simple.SimpleServiceConnection.connect(Unknown Source) >> >>> jpos.BaseJposControl.open(Unknown Source) >> >>> org.ofbiz.pos.device.GenericDevice.open(GenericDevice.java:44) >> >>> org.ofbiz.pos.device.DeviceLoader.load(DeviceLoader.java:165) >> >>> >> >>> >> org.ofbiz.pos.container.JposDeviceContainer.start(JposDeviceContainer.java:50) >> >>> org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:79) >> >>> org.ofbiz.base.start.Start.startStartLoaders(Start.java:261) >> >>> org.ofbiz.base.start.Start.startServer(Start.java:310) >> >>> org.ofbiz.base.start.Start.start(Start.java:314) >> >>> org.ofbiz.base.start.Start.main(Start.java:397) >> >>> >> >>> >> >>> On Mon, May 19, 2008 at 5:23 PM, Jacques Le Roux < >> >>> [hidden email]> wrote: >> >>> >> >>> From: "Branden Strickland" <[hidden email]> >> >>> >> >>>> I finally found epsons 1.9 adk, followed directions found on a ofbiz >> >>>> >> >>>> >> >>>>> jira forum. However, because I'm using a cashdrawer that soley uses >> a >> >>>>> signal from the printer, even commenting out the cashdrawer in >> >>>>> pos-containers didn't work. I had to change PosTransaction.java and >> >>>>> commented out the popDrawer function. It kept giving me a null >> >>>>> exception because as far s the pos is concerned, there is no drawer. >> >>>>> maybe a thought is to make that conditional for the drawers that >> don't >> >>>>> actually rely on the pos instead getting the signal from the printer. >> >>>>> >> >>>>> Sorry for the grammer, this is comming from my phone. >> >>>>> >> >>>>> >> >>>>> >> >>>> What kind of error do you get ? I have no cashdrawer and I get no >> errors >> >>>> using a TM-T88III with ADK 1.8 (just tested) >> >>>> >> >>>> Jacques >> >>>> >> >>>> >> >>>> >> > >> > >> > |
This is a ubuntu 7.10 with JDK 1.6.
I suppose maybe I'm missing something. I'll have a poke around and see if I can't find anything. If anyone knows where the null devices are located, It probably wouldn't hurt my cause. Thanks all! On Thu, May 22, 2008 at 1:18 PM, Jacques Le Roux < [hidden email]> wrote: > From: "Branden Strickland" <[hidden email]> > >> No, but I notice it's after I install the Epson ADK 1.9 (or 1.8 or 1.11) >> that all my null devices break. >> >> They work fine up until I run the EpsonADK19.bin from epson-pos.com >> >> Even if I don't move the jars from JAVA_HOME/jre/lib/ext to >> OFBIZ_HOME/spec../pos/lib The null devices still didn't work. >> It couldn't find the generickeyboard or scanner as well if that helps. nor >> the testmsr now that I think about it. >> >> I'm almost positive it has something to do with the epson ADK, as people >> on >> this list have mentioned before the paradoxes it does to the class_paths. >> Maybe just using the jar's from previous machines is a better idea so the >> bin installer doesn't futz with my paths? >> > > I have any problems using ADK 1.8 on Windows Xp Sp2 (I tried some time ago > on Ubuntu 6.06 LTS as well) > > Jacques > > > any Ideas? If I knew what jar file or java file the null devices were set >> in, I might be able to force it to the class path or something! >> >> Thanks for the responses guys! >> >> Branden- >> >> On Thu, May 22, 2008 at 3:59 AM, Ray Barlow < >> [hidden email]> >> wrote: >> >> I did a quick clean download last night and just ran the pos app clean >>> and it worked fine and it uses all the Null devices by default as I >>> wasn't plugged into anything. For testing the Null printer dumps to the >>> log files and I got a nice little receipt for the order I placed. >>> >>> You'll find the Null devices in: >>> specialpurpose/pos/src/org/ofbiz/pos/jpos/service >>> >>> Are you running in a non standard container? Or from within Eclipse or >>> something that is missing the classpath values maybe? I'd certainly move >>> back towards a clean version without mods like removing pop.Drawer until >>> you find the real cause of the problem. >>> >>> Ray >>> >>> >>> Branden Strickland wrote: >>> > Jacques, >>> > >>> > I pulled down the newest release, and got everything up and working, >>> but >>> it >>> > seems that all of the "null" devices can't be found. Where exactly are >>> those >>> > java files located? >>> > >>> > I'm guessing my drawer doesn't pop, becuase I've removed the pop.Drawer >>> > funtion in PosTranaction.java file. >>> > >>> > Is there something i can manually load into the classpath through the >>> > .classpath file to get those devices back? >>> > >>> > Thanks! >>> > >>> > On Tue, May 20, 2008 at 2:51 AM, Jacques Le Roux < >>> > [hidden email]> wrote: >>> > >>> > >>> >> I'm not sure of the reason (maybe it's in your code, or it depends of >>> your >>> >> driver ?) but I get any of these (nor with Null cashdrawer) >>> >> >>> >> Jacques >>> >> >>> >> >>> >> From: "Branden Strickland" <[hidden email]> >>> >> >>> >> >>> >>> This is what I got while trying to finish a transaction when I had >>> nothing >>> >>> in the quotes of the cashdrawer. >>> >>> >>> >>> Exception in thread "Thread-214" java.lang.NullPointerException >>> >>> at >>> org.ofbiz.pos.PosTransaction.popDrawer(PosTransaction.java:152) >>> >>> at >>> org.ofbiz.pos.PosTransaction$1.construct(PosTransaction.java:797) >>> >>> at net.xoetrope.xui.helper.SwingWorker$2.run(Unknown Source) >>> >>> at java.lang.Thread.run(Thread.java:619) >>> >>> >>> >>> and actually, I got this when I tried using the Null cashdrawer. >>> >>> >>> >>> JPOS Exception >>> >>> Exception: jpos.JposException >>> >>> Message: Could not connect to service with logicalName = >>> NullCashDrawer: >>> >>> Exception.message=org.ofbiz.pos.jpos.factory.OfbizJposServiceFactory >>> >>> ---- stack trace >>> >>> --------------------------------------------------------------- >>> >>> jpos.JposException: Could not connect to service with logicalName = >>> >>> NullCashDrawer: >>> >>> Exception.message=org.ofbiz.pos.jpos.factory.OfbizJposServiceFactory >>> >>> jpos.loader.simple.SimpleServiceConnection.connect(Unknown Source) >>> >>> jpos.BaseJposControl.open(Unknown Source) >>> >>> org.ofbiz.pos.device.GenericDevice.open(GenericDevice.java:44) >>> >>> org.ofbiz.pos.device.DeviceLoader.load(DeviceLoader.java:165) >>> >>> >>> >>> >>> >>> org.ofbiz.pos.container.JposDeviceContainer.start(JposDeviceContainer.java:50) >>> >>> >>> org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:79) >>> >>> org.ofbiz.base.start.Start.startStartLoaders(Start.java:261) >>> >>> org.ofbiz.base.start.Start.startServer(Start.java:310) >>> >>> org.ofbiz.base.start.Start.start(Start.java:314) >>> >>> org.ofbiz.base.start.Start.main(Start.java:397) >>> >>> >>> >>> >>> >>> On Mon, May 19, 2008 at 5:23 PM, Jacques Le Roux < >>> >>> [hidden email]> wrote: >>> >>> >>> >>> From: "Branden Strickland" <[hidden email]> >>> >>> >>> >>>> I finally found epsons 1.9 adk, followed directions found on a >>> ofbiz >>> >>>> >>> >>>> >>> >>>>> jira forum. However, because I'm using a cashdrawer that soley >>> uses >>> a >>> >>>>> signal from the printer, even commenting out the cashdrawer in >>> >>>>> pos-containers didn't work. I had to change PosTransaction.java >>> and >>> >>>>> commented out the popDrawer function. It kept giving me a null >>> >>>>> exception because as far s the pos is concerned, there is no >>> drawer. >>> >>>>> maybe a thought is to make that conditional for the drawers that >>> don't >>> >>>>> actually rely on the pos instead getting the signal from the >>> printer. >>> >>>>> >>> >>>>> Sorry for the grammer, this is comming from my phone. >>> >>>>> >>> >>>>> >>> >>>>> >>> >>>> What kind of error do you get ? I have no cashdrawer and I get no >>> errors >>> >>>> using a TM-T88III with ADK 1.8 (just tested) >>> >>>> >>> >>>> Jacques >>> >>>> >>> >>>> >>> >>>> >>> > >>> > >>> >>> >> |
FIXED!!
I was missing a very important part of epson configuration. Here were my steps for anyone else that was curious. First, I have to state that All Null devices are still "broke". After running the EpsonADK.bin (1.8 1.9 .1.11, doesn't matter) it seems to modify something that doesn't allow the POS to find the Null devices. I don't know why. All the .java files and .jar and .class files are located where they were, and are available, and the "path" (org.ofbiz.pos.....{something}.class) seems just fine. However, I suppose since I have hardware I don't really need them....so I digress! :P I followed the link that Jacques put in the POS section that links to the jira forum that explains the 1.9 installation. I followed that to the T (except I had to put the javax.comm.properties in the root directory IE either in Checkhealth (when checking the device before adding it to ofbiz...or to the ofbiz root... I believe adding this to the classpath will provide the same result. To fix the cashdrawer.... (I suppose it was never broke, so I didn't "fix it". I just...DUH added it to the Epson configuration through SetupPOS.) making sure to point it to the jpos.xml in pos/config/. (very important). I added the only cashdrawer that the program would let me. You initialy tell it it's on the TTYS0 (if it's attached to the printer...(this will point to whatever input your printer is...because the signal must pass through the printer.) Then it asks to select the printer it's attached too... Provides you the logical name to use in pos-containers. The rest is cake walk! Let me know if you have questions! thanks! Branden- On Thu, May 22, 2008 at 3:53 PM, Branden Strickland < [hidden email]> wrote: > This is a ubuntu 7.10 with JDK 1.6. > > I suppose maybe I'm missing something. I'll have a poke around and see if > I can't find anything. If anyone knows where the null devices are located, > It probably wouldn't hurt my cause. > > Thanks all! > > On Thu, May 22, 2008 at 1:18 PM, Jacques Le Roux < > [hidden email]> wrote: > >> From: "Branden Strickland" <[hidden email]> >> >>> No, but I notice it's after I install the Epson ADK 1.9 (or 1.8 or 1.11) >>> that all my null devices break. >>> >>> They work fine up until I run the EpsonADK19.bin from epson-pos.com >>> >>> Even if I don't move the jars from JAVA_HOME/jre/lib/ext to >>> OFBIZ_HOME/spec../pos/lib The null devices still didn't work. >>> It couldn't find the generickeyboard or scanner as well if that helps. >>> nor >>> the testmsr now that I think about it. >>> >>> I'm almost positive it has something to do with the epson ADK, as people >>> on >>> this list have mentioned before the paradoxes it does to the class_paths. >>> Maybe just using the jar's from previous machines is a better idea so the >>> bin installer doesn't futz with my paths? >>> >> >> I have any problems using ADK 1.8 on Windows Xp Sp2 (I tried some time ago >> on Ubuntu 6.06 LTS as well) >> >> Jacques >> >> >> any Ideas? If I knew what jar file or java file the null devices were >>> set >>> in, I might be able to force it to the class path or something! >>> >>> Thanks for the responses guys! >>> >>> Branden- >>> >>> On Thu, May 22, 2008 at 3:59 AM, Ray Barlow < >>> [hidden email]> >>> wrote: >>> >>> I did a quick clean download last night and just ran the pos app clean >>>> and it worked fine and it uses all the Null devices by default as I >>>> wasn't plugged into anything. For testing the Null printer dumps to the >>>> log files and I got a nice little receipt for the order I placed. >>>> >>>> You'll find the Null devices in: >>>> specialpurpose/pos/src/org/ofbiz/pos/jpos/service >>>> >>>> Are you running in a non standard container? Or from within Eclipse or >>>> something that is missing the classpath values maybe? I'd certainly move >>>> back towards a clean version without mods like removing pop.Drawer until >>>> you find the real cause of the problem. >>>> >>>> Ray >>>> >>>> >>>> Branden Strickland wrote: >>>> > Jacques, >>>> > >>>> > I pulled down the newest release, and got everything up and working, >>>> but >>>> it >>>> > seems that all of the "null" devices can't be found. Where exactly are >>>> those >>>> > java files located? >>>> > >>>> > I'm guessing my drawer doesn't pop, becuase I've removed the >>>> pop.Drawer >>>> > funtion in PosTranaction.java file. >>>> > >>>> > Is there something i can manually load into the classpath through the >>>> > .classpath file to get those devices back? >>>> > >>>> > Thanks! >>>> > >>>> > On Tue, May 20, 2008 at 2:51 AM, Jacques Le Roux < >>>> > [hidden email]> wrote: >>>> > >>>> > >>>> >> I'm not sure of the reason (maybe it's in your code, or it depends of >>>> your >>>> >> driver ?) but I get any of these (nor with Null cashdrawer) >>>> >> >>>> >> Jacques >>>> >> >>>> >> >>>> >> From: "Branden Strickland" <[hidden email]> >>>> >> >>>> >> >>>> >>> This is what I got while trying to finish a transaction when I had >>>> nothing >>>> >>> in the quotes of the cashdrawer. >>>> >>> >>>> >>> Exception in thread "Thread-214" java.lang.NullPointerException >>>> >>> at >>>> org.ofbiz.pos.PosTransaction.popDrawer(PosTransaction.java:152) >>>> >>> at >>>> org.ofbiz.pos.PosTransaction$1.construct(PosTransaction.java:797) >>>> >>> at net.xoetrope.xui.helper.SwingWorker$2.run(Unknown Source) >>>> >>> at java.lang.Thread.run(Thread.java:619) >>>> >>> >>>> >>> and actually, I got this when I tried using the Null cashdrawer. >>>> >>> >>>> >>> JPOS Exception >>>> >>> Exception: jpos.JposException >>>> >>> Message: Could not connect to service with logicalName = >>>> NullCashDrawer: >>>> >>> Exception.message=org.ofbiz.pos.jpos.factory.OfbizJposServiceFactory >>>> >>> ---- stack trace >>>> >>> --------------------------------------------------------------- >>>> >>> jpos.JposException: Could not connect to service with logicalName = >>>> >>> NullCashDrawer: >>>> >>> Exception.message=org.ofbiz.pos.jpos.factory.OfbizJposServiceFactory >>>> >>> jpos.loader.simple.SimpleServiceConnection.connect(Unknown Source) >>>> >>> jpos.BaseJposControl.open(Unknown Source) >>>> >>> org.ofbiz.pos.device.GenericDevice.open(GenericDevice.java:44) >>>> >>> org.ofbiz.pos.device.DeviceLoader.load(DeviceLoader.java:165) >>>> >>> >>>> >>> >>>> >>>> org.ofbiz.pos.container.JposDeviceContainer.start(JposDeviceContainer.java:50) >>>> >>> >>>> org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:79) >>>> >>> org.ofbiz.base.start.Start.startStartLoaders(Start.java:261) >>>> >>> org.ofbiz.base.start.Start.startServer(Start.java:310) >>>> >>> org.ofbiz.base.start.Start.start(Start.java:314) >>>> >>> org.ofbiz.base.start.Start.main(Start.java:397) >>>> >>> >>>> >>> >>>> >>> On Mon, May 19, 2008 at 5:23 PM, Jacques Le Roux < >>>> >>> [hidden email]> wrote: >>>> >>> >>>> >>> From: "Branden Strickland" <[hidden email]> >>>> >>> >>>> >>>> I finally found epsons 1.9 adk, followed directions found on a >>>> ofbiz >>>> >>>> >>>> >>>> >>>> >>>>> jira forum. However, because I'm using a cashdrawer that soley >>>> uses >>>> a >>>> >>>>> signal from the printer, even commenting out the cashdrawer in >>>> >>>>> pos-containers didn't work. I had to change PosTransaction.java >>>> and >>>> >>>>> commented out the popDrawer function. It kept giving me a null >>>> >>>>> exception because as far s the pos is concerned, there is no >>>> drawer. >>>> >>>>> maybe a thought is to make that conditional for the drawers that >>>> don't >>>> >>>>> actually rely on the pos instead getting the signal from the >>>> printer. >>>> >>>>> >>>> >>>>> Sorry for the grammer, this is comming from my phone. >>>> >>>>> >>>> >>>>> >>>> >>>>> >>>> >>>> What kind of error do you get ? I have no cashdrawer and I get no >>>> errors >>>> >>>> using a TM-T88III with ADK 1.8 (just tested) >>>> >>>> >>>> >>>> Jacques >>>> >>>> >>>> >>>> >>>> >>>> >>>> > >>>> > >>>> >>>> >>> > |
Free forum by Nabble | Edit this page |