OFBiz
  1. OFBiz
  2. OFBIZ-3913

Automated action triggered by event

    Details

    • Type: New Feature New Feature
    • Status: Patch Available
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: SVN trunk
    • Fix Version/s: None
    • Component/s: framework
    • Labels:
      None

      Description

      Following a thread on the dev list, related to a printer automated selection, by an user and an event, here is a first draft.
      I added a new entity, ExternalDevice, which list all devices OFBiz can reach (and the associated command). This entity is related to an ExternalDeviceType and each record has a status, so we know if the device is available, out of order, in maintenance, waiting, etc...
      Then I added another entity, ExternalDeviceUserAction, which defines a device for an user, and/or an action through Enumeration. Finally, I added a service which find the commnand to execute based on an action and/or an user.

      1. OFBIZ-3913.patch
        69 kB
        Jacques Le Roux
      2. OFBIZ-3913.patch
        77 kB
        Jacques Le Roux
      3. OFBIZ-3913.patch
        77 kB
        Jacques Le Roux
      4. OFBIZ-3913.patch
        68 kB
        Nicolas Malin
      5. ASF.LICENSE.NOT.GRANTED--What I did with PDFCreator.jpg
        172 kB
        Jacques Le Roux
      6. PDFCreator.png
        49 kB
        Jacques Le Roux
      7. OFBIZ-3913.patch
        68 kB
        Nicolas Malin
      8. OFBIZ-3913.ogv
        8.89 MB
        Nicolas Malin
      9. OFBIZ-3913.patch
        60 kB
        Nicolas Malin
      10. ExternalDevice.patch
        62 kB
        Nicolas Malin
      11. ExternalDevice.patch
        49 kB
        Nicolas Malin
      12. ExternalDevice.patch
        10 kB
        Nicolas Malin
      13. ExternalDevice.png
        56 kB
        Nicolas Malin

        Activity

        Hide
        BJ Freeman added a comment -

        some thoughts.
        there will be times that the admin will want to fix which printers a party (login) uses. so a screen to allow that. maybe linking to the loggin's PartPreference would possibly be a better way.

        the ExternalDevice should be updated before accessing the ExternalDeviceUserAction, since network failures can cause printer to be offline.

        is the ExternalDevice type to define like a HPlaser, if so then need a externalDevicejobtype for like Invoices, PO. and this needs to be one to many incase they use one printer for many tasks. t

        also need the info about how many pages are printed so a restart will pick up on the last page and continue.

        leave a hook for automatically switching printers if two of the same type Job type are defined, and the first goes offline.

        Show
        BJ Freeman added a comment - some thoughts. there will be times that the admin will want to fix which printers a party (login) uses. so a screen to allow that. maybe linking to the loggin's PartPreference would possibly be a better way. the ExternalDevice should be updated before accessing the ExternalDeviceUserAction, since network failures can cause printer to be offline. is the ExternalDevice type to define like a HPlaser, if so then need a externalDevicejobtype for like Invoices, PO. and this needs to be one to many incase they use one printer for many tasks. t also need the info about how many pages are printed so a restart will pick up on the last page and continue. leave a hook for automatically switching printers if two of the same type Job type are defined, and the first goes offline.
        Hide
        Nicolas Malin added a comment -

        It's possible to add edit screen, but at this time I work more on the engine .

        The idea to use PartyPreference, what preference ? WebUserPreference, PartyAcctgPreference. My first analyse is associate a user to a device by administrator. In second way, I improve the model with Bruno suggest that a user can by set his default choice.

        For ExternalDeviceJobType I understand the idea but as ProductPrice entity, Is better to use a ExternalDevicePurpose ?

        Nicolas

        Show
        Nicolas Malin added a comment - It's possible to add edit screen, but at this time I work more on the engine . The idea to use PartyPreference, what preference ? WebUserPreference, PartyAcctgPreference. My first analyse is associate a user to a device by administrator. In second way, I improve the model with Bruno suggest that a user can by set his default choice. For ExternalDeviceJobType I understand the idea but as ProductPrice entity, Is better to use a ExternalDevicePurpose ? Nicolas
        Hide
        Nicolas Malin added a comment - - edited

        Hi,

        I new patch version.

        I add :

        • an entity ExternalDevicePruposeAction to manage the call environment (invoice, order, shipment, etc ...)
        • screens in webtools to :
        • * create/list/update/remove ExternalDevice
        • * create/list/update/remove ExternalDeviceUserAction
        • * check value on service findExternalDevice
        • seed Data Type and little demo data (not loaded)
        • a new service sendPrinterFromScreenByUserAction that call findExternalDevice to find printerName and call sendPrinterFromScreen

        I create an addon to manage jira evolution (I need it for production site )

        Nicolas

        Show
        Nicolas Malin added a comment - - edited Hi, I new patch version. I add : an entity ExternalDevicePruposeAction to manage the call environment (invoice, order, shipment, etc ...) screens in webtools to : * create/list/update/remove ExternalDevice * create/list/update/remove ExternalDeviceUserAction * check value on service findExternalDevice seed Data Type and little demo data (not loaded) a new service sendPrinterFromScreenByUserAction that call findExternalDevice to find printerName and call sendPrinterFromScreen I create an addon to manage jira evolution (I need it for production site ) Nicolas
        Hide
        Nicolas Malin added a comment -

        Hi,

        I resynchronised addon with Jira.

        The news :

        • Bug correction to find device when only action is present
        • pass enumId to actionEnumId
        • Update administration screen
        • Switch sendPrintFromScreen service to sendPrint and sendPrintFromScreen. This give the possibility to add to service : sendPrintByUserAction and sendPrintFromScreenByUserAction use to call upper service with dynamic pritner selection.
        • Update label content error on sendPrint service
          Nicolas
        Show
        Nicolas Malin added a comment - Hi, I resynchronised addon with Jira. The news : Bug correction to find device when only action is present pass enumId to actionEnumId Update administration screen Switch sendPrintFromScreen service to sendPrint and sendPrintFromScreen. This give the possibility to add to service : sendPrintByUserAction and sendPrintFromScreenByUserAction use to call upper service with dynamic pritner selection. Update label content error on sendPrint service Nicolas
        Hide
        Jacques Le Roux added a comment -

        Hi Nicolas,

        Your patch almost applies in Eclipse with a 5 fuzz (only applications/content/src/org/ofbiz/content/output/OutputServices.java fails, 4 hunks with issues). Could you please update?

        Show
        Jacques Le Roux added a comment - Hi Nicolas, Your patch almost applies in Eclipse with a 5 fuzz (only applications/content/src/org/ofbiz/content/output/OutputServices.java fails, 4 hunks with issues). Could you please update?
        Hide
        Nicolas Malin added a comment -

        Hi Jacques,
        It's a old patch
        I try update it this night

        Nicolas


        MALIN Nicolas
        Trésorier de l'association Néogia
        Tél : 06.17.66.40.06
        http://www.neogia.org/

        Show
        Nicolas Malin added a comment - Hi Jacques, It's a old patch I try update it this night Nicolas – MALIN Nicolas Trésorier de l'association Néogia Tél : 06.17.66.40.06 http://www.neogia.org/
        Hide
        Nicolas Malin added a comment -

        Resynchronize patch done.

        Nicolas

        Show
        Nicolas Malin added a comment - Resynchronize patch done. Nicolas
        Hide
        Jacques Le Roux added a comment -

        Nicolas,

        I have applied your patch. I had to revert the labels and to change the encoding to UTF-8 using Scite. I ran run-install and now I'm a bit lost. I put my 2 local printers on (XP) but I don't see anything appearing on https://localhost:8443/webtools/control/FindExtDevice when I look for them. I noticed that you use begins instead of contains for the fields search and changed for contains as we do for default OOTB, but got no printers either. What do I miss, could you give us a small tuto with few steps?

        Thanks

        Show
        Jacques Le Roux added a comment - Nicolas, I have applied your patch. I had to revert the labels and to change the encoding to UTF-8 using Scite. I ran run-install and now I'm a bit lost. I put my 2 local printers on (XP) but I don't see anything appearing on https://localhost:8443/webtools/control/FindExtDevice when I look for them. I noticed that you use begins instead of contains for the fields search and changed for contains as we do for default OOTB, but got no printers either. What do I miss, could you give us a small tuto with few steps? Thanks
        Hide
        Nicolas Malin added a comment -

        Strange, all my system on UTF-8

        Jacques, I will try to create a movie or/and few step.
        Thanks for your time !

        Nicolas

        Show
        Nicolas Malin added a comment - Strange, all my system on UTF-8 Jacques, I will try to create a movie or/and few step. Thanks for your time ! Nicolas
        Hide
        Jacques Le Roux added a comment -

        Great, looking forward...

        Show
        Jacques Le Roux added a comment - Great, looking forward...
        Hide
        Jacques Le Roux added a comment -

        Ha, also if you could replace begins by contains...

        Show
        Jacques Le Roux added a comment - Ha, also if you could replace begins by contains...
        Hide
        Nicolas Malin added a comment -

        Added a demonstration movie for a basic externalDevice using.

        I updated patch with :

        • Example data
        • correct resolve externalDevice
        • Adding documentation

        For contains instead of begins, some search forms has been generated by auto-field.

        Show
        Nicolas Malin added a comment - Added a demonstration movie for a basic externalDevice using. I updated patch with : Example data correct resolve externalDevice Adding documentation For contains instead of begins, some search forms has been generated by auto-field.
        Hide
        Nicolas Malin added a comment -

        Rename patch ExternalDevice.path to OFBIZ-3913.patch

        Show
        Nicolas Malin added a comment - Rename patch ExternalDevice.path to OFBIZ-3913 .patch
        Hide
        Jacques Le Roux added a comment -

        Thanks for your effort Nicolas,

        I applied your patch (still a necessary 5 fuzz - I guess changes in trunk from your submission - and UTF8+BOM change - I guess it's due to my XP platform -, anyway forget these trivial issues ;o) and followed your video. I used PDFCreator name where you used PDF (see screen copy). But maybe as I'm using XP i don't see any SECA call of sendPrintFromScreenByUserAction in log when creating an example, hence no PDFCreator print, any ideas what I could do wrong? Or coult it be platform relate?

        Show
        Jacques Le Roux added a comment - Thanks for your effort Nicolas, I applied your patch (still a necessary 5 fuzz - I guess changes in trunk from your submission - and UTF8+BOM change - I guess it's due to my XP platform -, anyway forget these trivial issues ;o) and followed your video. I used PDFCreator name where you used PDF (see screen copy). But maybe as I'm using XP i don't see any SECA call of sendPrintFromScreenByUserAction in log when creating an example, hence no PDFCreator print, any ideas what I could do wrong? Or coult it be platform relate?
        Hide
        Jacques Le Roux added a comment -

        What I did with PDFCreator

        Show
        Jacques Le Roux added a comment - What I did with PDFCreator
        Hide
        Jacques Le Roux added a comment -

        Of course, I also checked PDFCreator was well associated with admin

        Show
        Jacques Le Roux added a comment - Of course, I also checked PDFCreator was well associated with admin
        Hide
        Nicolas Malin added a comment -

        Jacques, do you uncomment seca ?

        Index: framework/example/servicedef/secas.xml
        ===================================================================
        — framework/example/servicedef/secas.xml (révision 1207784)
        +++ framework/example/servicedef/secas.xml (copie de travail)
        @@ -27,4 +27,13 @@
        <condition-field field-name="statusId" operator="not-equals" to-field-name="oldStatusId"/>
        <action service="createExampleStatus" mode="sync"/>
        </eca>
        + <!-- Active this seca to use externalDevice with demo data ->
        + <eca service="createExample" event="return">
        + <set field-name="userLoginId" env-name="userLogin.userLoginId"/>
        + <set field-name="screenLocation" value="component://example/widget/example/ExampleScreens.xml#ExampleReport"/>
        + <set field-name="content-type" value="application/pdf"/>
        + <set field-name="screenContext.exampleId" env-name="exampleId"/>
        + <action service="sendPrintFromScreenByUserAction" mode="sync"/>
        + </eca>
        + -->
        </service-eca>

        Show
        Nicolas Malin added a comment - Jacques, do you uncomment seca ? Index: framework/example/servicedef/secas.xml =================================================================== — framework/example/servicedef/secas.xml (révision 1207784) +++ framework/example/servicedef/secas.xml (copie de travail) @@ -27,4 +27,13 @@ <condition-field field-name="statusId" operator="not-equals" to-field-name="oldStatusId"/> <action service="createExampleStatus" mode="sync"/> </eca> + <!-- Active this seca to use externalDevice with demo data -> + <eca service="createExample" event="return"> + <set field-name="userLoginId" env-name="userLogin.userLoginId"/> + <set field-name="screenLocation" value="component://example/widget/example/ExampleScreens.xml#ExampleReport"/> + <set field-name="content-type" value="application/pdf"/> + <set field-name="screenContext.exampleId" env-name="exampleId"/> + <action service="sendPrintFromScreenByUserAction" mode="sync"/> + </eca> + --> </service-eca>
        Hide
        Jacques Le Roux added a comment -

        Hi Nicolas,

        Thanks, yes I tried since, but got another issue with the name. I 1st created a PDF resource and did not remove it. After removing the PDF line, the PDFCreator item did not appear in the dropdown where you assign the login (admin). Also when you remove a line from "External Device" or"External Device User Action" screens, it does not update the list correctly (when more than one lines), this is confusing

        I will double check all that by creating from new, but clearly it's a bit fragile at the moment

        Show
        Jacques Le Roux added a comment - Hi Nicolas, Thanks, yes I tried since, but got another issue with the name. I 1st created a PDF resource and did not remove it. After removing the PDF line, the PDFCreator item did not appear in the dropdown where you assign the login (admin). Also when you remove a line from "External Device" or"External Device User Action" screens, it does not update the list correctly (when more than one lines), this is confusing I will double check all that by creating from new, but clearly it's a bit fragile at the moment
        Hide
        Jacques Le Roux added a comment -

        Hi Nicolas,

        This is not clear to me, what is supposed to be externalDeviceId? And why do you set it as "PDF" in data by default?

        I thought it was related to a Printer name (PDFCreator for instance for me under XP); but when I remove PDF (because of the issue below) and add PDFCreator, I find nothing in dropdown when wanting to associate with an user (login)

             [java] 2011-12-21 12:10:31,859 (http-bio-/0.0.0.0-8443-exec-4) [     ControlServlet.java:141:INFO ] [[[createExample(Domain:https://localhost)] Request Begun, encoding=[UTF-8]- total:0.0,since last(Begin
        ):0.0]]
             [java] 2011-12-21 12:10:31,906 (http-bio-/0.0.0.0-8443-exec-4) [       SequenceUtil.java:239:WARN ] [SequenceUtil.SequenceBank.fillBank] first select failed: will try to add new row, result set was empty
         for sequence [Example]
             [java] Used SQL: SELECT SEQ_ID FROM OFBIZ.SEQUENCE_VALUE_ITEM WHERE SEQ_NAME='Example'
             [java]  Thread Name is: http-bio-/0.0.0.0-8443-exec-4:Thread[http-bio-/0.0.0.0-8443-exec-4,5,main]
             [java] 2011-12-21 12:10:31,921 (http-bio-/0.0.0.0-8443-exec-4) [       SequenceUtil.java:348:INFO ] Got bank of sequenced IDs for [Example]; curSeqId=10000, maxSeqId=10010, bankSize=10
             [java] 2011-12-21 12:10:31,937 (http-bio-/0.0.0.0-8443-exec-4) [     ServiceEcaRule.java:157:INFO ] Running Service ECA Service: createExampleStatus, triggered by rule on Service: createExample
             [java] 2011-12-21 12:10:32,000 (http-bio-/0.0.0.0-8443-exec-4) [  ServiceDispatcher.java:604:INFO ] Sync service [example/createExampleStatus] finished in [63] milliseconds with response [{responseMessag
        e=success}]
             [java] 2011-12-21 12:10:32,000 (http-bio-/0.0.0.0-8443-exec-4) [     ServiceEcaRule.java:157:INFO ] Running Service ECA Service: sendPrintFromScreenByUserAction, triggered by rule on Service: createExamp
        le
             [java] 2011-12-21 12:10:32,000 (http-bio-/0.0.0.0-8443-exec-4) [       ModelService.java:469:INFO ] Set default value [PRINTER] for parameter [externalDeviceTypeId]
             [java] 2011-12-21 12:10:32,000 (http-bio-/0.0.0.0-8443-exec-4) [       ModelService.java:469:INFO ] Set default value [GENERIC] for parameter [extDevicePurposeActionId]
             [java] 2011-12-21 12:10:32,015 (http-bio-/0.0.0.0-8443-exec-4) [                Log.java:117:ERROR] [CommonServices.xml#findExternalDevice line 283] userLoginId = admin, externalDeviceTypeId =PRINTER , e
        xtDevicePurposeActionId = GENERIC, parameters.actionEnumId =
             [java] 2011-12-21 12:10:32,031 (http-bio-/0.0.0.0-8443-exec-4) [     UtilProperties.java:1056:INFO ] ResourceBundle DefaultMessages (fr) created in 0.0s with 3 properties
             [java] 2011-12-21 12:10:32,937 (http-bio-/0.0.0.0-8443-exec-4) [FopFactoryConfigurator.java:179:INFO ] Default page-height set to: 11in
             [java] 2011-12-21 12:10:32,937 (http-bio-/0.0.0.0-8443-exec-4) [FopFactoryConfigurator.java:186:INFO ] Default page-width set to: 8.26in
             [java] 2011-12-21 12:10:32,937 (http-bio-/0.0.0.0-8443-exec-4) [    ApacheFopWorker.java:87 :INFO ] FOP-FontBaseURL: file:///D:/workspace/ofbizClean/framework/webapp/config/
             [java] 2011-12-21 12:10:33,375 (http-bio-/0.0.0.0-8443-exec-4) [LoggingEventListener.java:80 :WARN ] The following feature isn't implemented by Apache FOP, yet: table-layout="auto" (on fo:table) (See pos
        ition 72:11)
             [java] 2011-12-21 12:10:33,484 (http-bio-/0.0.0.0-8443-exec-4) [LoggingEventListener.java:80 :WARN ] Font "Symbol,normal,700" not found. Substituting with "Symbol,normal,400".
             [java] 2011-12-21 12:10:33,484 (http-bio-/0.0.0.0-8443-exec-4) [LoggingEventListener.java:80 :WARN ] Font "ZapfDingbats,normal,700" not found. Substituting with "ZapfDingbats,normal,400".
             [java] 2011-12-21 12:10:33,578 (http-bio-/0.0.0.0-8443-exec-4) [LoggingEventListener.java:78 :INFO ] table-layout="fixed" and width="auto", but auto-layout not supported => assuming width="100%". (See po
        sition 28:44)
             [java] 2011-12-21 12:10:33,859 (http-bio-/0.0.0.0-8443-exec-4) [     OutputServices.java:118:INFO ] Printer Name Given PDF
             [java] 2011-12-21 12:10:33,875 (http-bio-/0.0.0.0-8443-exec-4) [     OutputServices.java:155:ERROR]
             [java] ---- runtime exception report --------------------------------------------------
             [java] Error rendering [application/postscript]: java.lang.IllegalArgumentException: locale cannot be null
             [java] Exception: java.lang.IllegalArgumentException
             [java] Message: locale cannot be null
             [java] ---- stack trace ---------------------------------------------------------------
             [java] java.lang.IllegalArgumentException: locale cannot be null
             [java] org.ofbiz.base.util.UtilProperties.getResourceBundle(UtilProperties.java:666)
             [java] org.ofbiz.base.util.UtilProperties.getMessage(UtilProperties.java:571)
             [java] org.ofbiz.base.util.UtilProperties.getMessage(UtilProperties.java:639)
             [java] org.ofbiz.content.output.OutputServices.sendPrint(OutputServices.java:130)
             [java] sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
             [java] sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
             [java] sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
             [java] java.lang.reflect.Method.invoke(Method.java:597)
             [java] org.ofbiz.service.engine.StandardJavaEngine.serviceInvoker(StandardJavaEngine.java:100)
             [java] org.ofbiz.service.engine.StandardJavaEngine.runSync(StandardJavaEngine.java:57)
             [java] org.ofbiz.service.ModelServiceReader$GenericInvokerImpl.runSync(ModelServiceReader.java:761)
             [java] _$gen.file_58$.D_58$.workspace.ofbizClean.applications.content.servicedef.services_95$output_46$xml_35$sendPrint.runSync(file:/D:/workspace/ofbizClean/applications/content/servicedef/services_outp
        ut.xml#sendPrint:27)
             [java] org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:399)
             [java] org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:226)
             [java] org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:163)
             [java] org.ofbiz.content.output.OutputServices.sendPrintFromScreen(OutputServices.java:202)
             [java] sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
             [java] sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
             [java] sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
             [java] java.lang.reflect.Method.invoke(Method.java:597)
             [java] org.ofbiz.service.engine.StandardJavaEngine.serviceInvoker(StandardJavaEngine.java:100)
             [java] org.ofbiz.service.engine.StandardJavaEngine.runSync(StandardJavaEngine.java:57)
             [java] org.ofbiz.service.ModelServiceReader$GenericInvokerImpl.runSync(ModelServiceReader.java:761)
             [java] _$gen.file_58$.D_58$.workspace.ofbizClean.applications.content.servicedef.services_95$output_46$xml_35$sendPrintFromScreen.runSync(file:/D:/workspace/ofbizClean/applications/content/servicedef/ser
        vices_output.xml#sendPrintFromScreen:45)
             [java] org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:399)
             [java] org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:226)
             [java] org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:177)
             [java] org.ofbiz.minilang.method.callops.CallService.exec(CallService.java:248)
             [java] org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:920)
             [java] org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:739)
             [java] org.ofbiz.minilang.method.callops.CallSimpleMethod.exec(CallSimpleMethod.java:86)
             [java] org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:920)
             [java] org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:739)
             [java] org.ofbiz.minilang.SimpleMethod.runSimpleMethod(SimpleMethod.java:160)
             [java] org.ofbiz.minilang.SimpleMethod.runSimpleService(SimpleMethod.java:142)
             [java] org.ofbiz.minilang.SimpleServiceEngine.serviceInvoker(SimpleServiceEngine.java:78)
             [java] org.ofbiz.minilang.SimpleServiceEngine.runSync(SimpleServiceEngine.java:53)
             [java] org.ofbiz.service.ModelServiceReader$GenericInvokerImpl.runSync(ModelServiceReader.java:761)
             [java] _$gen.file_58$.D_58$.workspace.ofbizClean.applications.content.servicedef.services_95$output_46$xml_35$sendPrintFromScreenByUserAction.runSync(file:/D:/workspace/ofbizClean/applications/content/se
        rvicedef/services_output.xml#sendPrintFromScreenByUserAction:53)
             [java] org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:399)
             [java] org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:226)
             [java] org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:163)
             [java] org.ofbiz.service.eca.ServiceEcaAction.runAction(ServiceEcaAction.java:138)
             [java] org.ofbiz.service.eca.ServiceEcaRule.eval(ServiceEcaRule.java:159)
             [java] org.ofbiz.service.eca.ServiceEcaUtil.evalRules(ServiceEcaUtil.java:188)
             [java] org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:592)
             [java] org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:226)
             [java] org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:163)
             [java] org.ofbiz.webapp.event.ServiceEventHandler.invoke(ServiceEventHandler.java:337)
             [java] org.ofbiz.webapp.control.RequestHandler.runEvent(RequestHandler.java:647)
             [java] org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:393)
             [java] org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:224)
             [java] org.ofbiz.webapp.control.ControlServlet.doPost(ControlServlet.java:87)
             [java] javax.servlet.http.HttpServlet.service(HttpServlet.java:641)
             [java] javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
             [java] org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:304)
             [java] org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
             [java] org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:337)
             [java] org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
             [java] org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
             [java] org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:224)
             [java] org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:169)
             [java] org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
             [java] org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)
             [java] org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)
             [java] org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
             [java] org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:929)
             [java] org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:405)
             [java] org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:964)
             [java] org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:515)
             [java] org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:304)
             [java] java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
             [java] java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
             [java] java.lang.Thread.run(Thread.java:662)
             [java] --------------------------------------------------------------------------------
             [java]
             [java] 2011-12-21 12:10:33,875 (http-bio-/0.0.0.0-8443-exec-4) [  ServiceDispatcher.java:515:INFO ] [[Sync service failed...- total:0.0,since last(Begin):0.0]] - 'example / sendPrint'
             [java] 2011-12-21 12:10:33,875 (http-bio-/0.0.0.0-8443-exec-4) [    TransactionUtil.java:378:WARN ]
             [java] ---- exception report ----------------------------------------------------------
             [java] [TransactionUtil.setRollbackOnly] Calling transaction setRollbackOnly; this stack trace shows where this is happening:
             [java] Exception: java.lang.Exception
             [java] Message: Service [sendPrint] threw an unexpected exception/error
             [java] ---- stack trace ---------------------------------------------------------------
             [java] java.lang.Exception: Service [sendPrint] threw an unexpected exception/error
             [java] org.ofbiz.entity.transaction.TransactionUtil.setRollbackOnly(TransactionUtil.java:378)
             [java] org.ofbiz.entity.transaction.TransactionUtil.rollback(TransactionUtil.java:319)
             [java] org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:524)
             [java] org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:226)
             [java] org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:163)
             [java] org.ofbiz.content.output.OutputServices.sendPrintFromScreen(OutputServices.java:202)
             [java] sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
             [java] sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
             [java] sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
             [java] java.lang.reflect.Method.invoke(Method.java:597)
             [java] org.ofbiz.service.engine.StandardJavaEngine.serviceInvoker(StandardJavaEngine.java:100)
             [java] org.ofbiz.service.engine.StandardJavaEngine.runSync(StandardJavaEngine.java:57)
             [java] org.ofbiz.service.ModelServiceReader$GenericInvokerImpl.runSync(ModelServiceReader.java:761)
             [java] _$gen.file_58$.D_58$.workspace.ofbizClean.applications.content.servicedef.services_95$output_46$xml_35$sendPrintFromScreen.runSync(file:/D:/workspace/ofbizClean/applications/content/servicedef/ser
        vices_output.xml#sendPrintFromScreen:45)
             [java] org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:399)
             [java] org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:226)
             [java] org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:177)
             [java] org.ofbiz.minilang.method.callops.CallService.exec(CallService.java:248)
             [java] org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:920)
             [java] org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:739)
             [java] org.ofbiz.minilang.method.callops.CallSimpleMethod.exec(CallSimpleMethod.java:86)
             [java] org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:920)
             [java] org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:739)
             [java] org.ofbiz.minilang.SimpleMethod.runSimpleMethod(SimpleMethod.java:160)
             [java] org.ofbiz.minilang.SimpleMethod.runSimpleService(SimpleMethod.java:142)
             [java] org.ofbiz.minilang.SimpleServiceEngine.serviceInvoker(SimpleServiceEngine.java:78)
             [java] org.ofbiz.minilang.SimpleServiceEngine.runSync(SimpleServiceEngine.java:53)
             [java] org.ofbiz.service.ModelServiceReader$GenericInvokerImpl.runSync(ModelServiceReader.java:761)
             [java] _$gen.file_58$.D_58$.workspace.ofbizClean.applications.content.servicedef.services_95$output_46$xml_35$sendPrintFromScreenByUserAction.runSync(file:/D:/workspace/ofbizClean/applications/content/se
        rvicedef/services_output.xml#sendPrintFromScreenByUserAction:53)
             [java] org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:399)
             [java] org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:226)
             [java] org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:163)
             [java] org.ofbiz.service.eca.ServiceEcaAction.runAction(ServiceEcaAction.java:138)
             [java] org.ofbiz.service.eca.ServiceEcaRule.eval(ServiceEcaRule.java:159)
             [java] org.ofbiz.service.eca.ServiceEcaUtil.evalRules(ServiceEcaUtil.java:188)
             [java] org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:592)
             [java] org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:226)
             [java] org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:163)
             [java] org.ofbiz.webapp.event.ServiceEventHandler.invoke(ServiceEventHandler.java:337)
             [java] org.ofbiz.webapp.control.RequestHandler.runEvent(RequestHandler.java:647)
             [java] org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:393)
             [java] org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:224)
             [java] org.ofbiz.webapp.control.ControlServlet.doPost(ControlServlet.java:87)
             [java] javax.servlet.http.HttpServlet.service(HttpServlet.java:641)
             [java] javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
             [java] org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:304)
             [java] org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
             [java] org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:337)
             [java] org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
             [java] org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
             [java] org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:224)
             [java] org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:169)
             [java] org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
             [java] org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)
             [java] org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)
             [java] org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
             [java] org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:929)
             [java] org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:405)
             [java] org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:964)
             [java] org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:515)
             [java] org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:304)
             [java] java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
             [java] java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
             [java] java.lang.Thread.run(Thread.java:662)
             [java] --------------------------------------------------------------------------------
             [java]
             [java] 2011-12-21 12:10:33,875 (http-bio-/0.0.0.0-8443-exec-4) [     OutputServices.java:205:ERROR]
             [java] ---- exception report ----------------------------------------------------------
             [java] Error rendering screen [component://example/widget/example/ExampleScreens.xml#ExampleReport]: org.ofbiz.service.GenericServiceException: Service [sendPrint] target threw an unexpected exception (l
        ocale cannot be null)
             [java] Exception: org.ofbiz.service.GenericServiceException
             [java] Message: Service [sendPrint] target threw an unexpected exception (locale cannot be null)
             [java] ---- cause ---------------------------------------------------------------------
             [java] Exception: java.lang.IllegalArgumentException
             [java] Message: locale cannot be null
             [java] ---- stack trace ---------------------------------------------------------------
             [java] java.lang.IllegalArgumentException: locale cannot be null
             [java] org.ofbiz.base.util.UtilProperties.getResourceBundle(UtilProperties.java:666)
             [java] org.ofbiz.base.util.UtilProperties.getMessage(UtilProperties.java:571)
             [java] org.ofbiz.base.util.UtilProperties.getMessage(UtilProperties.java:639)
             [java] org.ofbiz.content.output.OutputServices.sendPrint(OutputServices.java:156)
             [java] sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
             [java] sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
             [java] sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
             [java] java.lang.reflect.Method.invoke(Method.java:597)
             [java] org.ofbiz.service.engine.StandardJavaEngine.serviceInvoker(StandardJavaEngine.java:100)
             [java] org.ofbiz.service.engine.StandardJavaEngine.runSync(StandardJavaEngine.java:57)
             [java] org.ofbiz.service.ModelServiceReader$GenericInvokerImpl.runSync(ModelServiceReader.java:761)
             [java] _$gen.file_58$.D_58$.workspace.ofbizClean.applications.content.servicedef.services_95$output_46$xml_35$sendPrint.runSync(file:/D:/workspace/ofbizClean/applications/content/servicedef/services_outp
        ut.xml#sendPrint:27)
             [java] org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:399)
             [java] org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:226)
             [java] org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:163)
             [java] org.ofbiz.content.output.OutputServices.sendPrintFromScreen(OutputServices.java:202)
             [java] sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
             [java] sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
             [java] sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
             [java] java.lang.reflect.Method.invoke(Method.java:597)
             [java] org.ofbiz.service.engine.StandardJavaEngine.serviceInvoker(StandardJavaEngine.java:100)
             [java] org.ofbiz.service.engine.StandardJavaEngine.runSync(StandardJavaEngine.java:57)
             [java] org.ofbiz.service.ModelServiceReader$GenericInvokerImpl.runSync(ModelServiceReader.java:761)
             [java] _$gen.file_58$.D_58$.workspace.ofbizClean.applications.content.servicedef.services_95$output_46$xml_35$sendPrintFromScreen.runSync(file:/D:/workspace/ofbizClean/applications/content/servicedef/ser
        vices_output.xml#sendPrintFromScreen:45)
             [java] org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:399)
             [java] org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:226)
             [java] org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:177)
             [java] org.ofbiz.minilang.method.callops.CallService.exec(CallService.java:248)
             [java] org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:920)
             [java] org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:739)
             [java] org.ofbiz.minilang.method.callops.CallSimpleMethod.exec(CallSimpleMethod.java:86)
             [java] org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:920)
             [java] org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:739)
             [java] org.ofbiz.minilang.SimpleMethod.runSimpleMethod(SimpleMethod.java:160)
             [java] org.ofbiz.minilang.SimpleMethod.runSimpleService(SimpleMethod.java:142)
             [java] org.ofbiz.minilang.SimpleServiceEngine.serviceInvoker(SimpleServiceEngine.java:78)
             [java] org.ofbiz.minilang.SimpleServiceEngine.runSync(SimpleServiceEngine.java:53)
             [java] org.ofbiz.service.ModelServiceReader$GenericInvokerImpl.runSync(ModelServiceReader.java:761)
             [java] _$gen.file_58$.D_58$.workspace.ofbizClean.applications.content.servicedef.services_95$output_46$xml_35$sendPrintFromScreenByUserAction.runSync(file:/D:/workspace/ofbizClean/applications/content/se
        rvicedef/services_output.xml#sendPrintFromScreenByUserAction:53)
             [java] org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:399)
             [java] org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:226)
             [java] org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:163)
             [java] org.ofbiz.service.eca.ServiceEcaAction.runAction(ServiceEcaAction.java:138)
             [java] org.ofbiz.service.eca.ServiceEcaRule.eval(ServiceEcaRule.java:159)
             [java] org.ofbiz.service.eca.ServiceEcaUtil.evalRules(ServiceEcaUtil.java:188)
             [java] org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:592)
             [java] org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:226)
             [java] org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:163)
             [java] org.ofbiz.webapp.event.ServiceEventHandler.invoke(ServiceEventHandler.java:337)
             [java] org.ofbiz.webapp.control.RequestHandler.runEvent(RequestHandler.java:647)
             [java] org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:393)
             [java] org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:224)
             [java] org.ofbiz.webapp.control.ControlServlet.doPost(ControlServlet.java:87)
             [java] javax.servlet.http.HttpServlet.service(HttpServlet.java:641)
             [java] javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
             [java] org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:304)
             [java] org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
             [java] org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:337)
             [java] org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
             [java] org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
             [java] org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:224)
             [java] org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:169)
             [java] org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
             [java] org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)
             [java] org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)
             [java] org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
             [java] org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:929)
             [java] org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:405)
             [java] org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:964)
             [java] org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:515)
             [java] org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:304)
             [java] java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
             [java] java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
             [java] java.lang.Thread.run(Thread.java:662)
             [java] --------------------------------------------------------------------------------
             [java]
             [java] 2011-12-21 12:10:33,875 (http-bio-/0.0.0.0-8443-exec-4) [  ServiceDispatcher.java:543:ERROR] Error in Service [sendPrintFromScreen]: Error rendering screen [component://example/widget/example/Exam
        pleScreens.xml#ExampleReport]: org.ofbiz.service.GenericServiceException: Service [sendPrint] target threw an unexpected exception (locale cannot be null)
             [java] 2011-12-21 12:10:33,875 (http-bio-/0.0.0.0-8443-exec-4) [    TransactionUtil.java:383:INFO ] [TransactionUtil.setRollbackOnly] transaction rollback only not set, rollback only is already set.
             [java] 2011-12-21 12:10:33,875 (http-bio-/0.0.0.0-8443-exec-4) [  ServiceDispatcher.java:604:INFO ] Sync service [example/sendPrintFromScreen] finished in [1844] milliseconds with response [{responseMess
        age=error, errorMessage=Error rendering screen [component://example/widget/example/ExampleScreens.xml#ExampleReport]: org.ofbiz.service.GenericServiceException: Service [sendPrint] target threw an unexpected
        exception (locale cannot be null)}]
             [java] 2011-12-21 12:10:33,875 (http-bio-/0.0.0.0-8443-exec-4) [        CallService.java:351:ERROR]
             [java] ---- exception report ----------------------------------------------------------
             [java] Exception: java.lang.Exception
             [java] Message: Erreur :áError rendering screen [component://example/widget/example/ExampleScreens.xml#ExampleReport]: org.ofbiz.service.GenericServiceException: Service [sendPrint] target threw an unexp
        ected exception (locale cannot be null)áá
             [java] ---- stack trace ---------------------------------------------------------------
             [java] java.lang.Exception: Erreur :áError rendering screen [component://example/widget/example/ExampleScreens.xml#ExampleReport]: org.ofbiz.service.GenericServiceException: Service [sendPrint] target th
        rew an unexpected exception (locale cannot be null)áá
             [java] org.ofbiz.minilang.method.callops.CallService.exec(CallService.java:351)
             [java] org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:920)
             [java] org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:739)
             [java] org.ofbiz.minilang.method.callops.CallSimpleMethod.exec(CallSimpleMethod.java:86)
             [java] org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:920)
             [java] org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:739)
             [java] org.ofbiz.minilang.SimpleMethod.runSimpleMethod(SimpleMethod.java:160)
             [java] org.ofbiz.minilang.SimpleMethod.runSimpleService(SimpleMethod.java:142)
             [java] org.ofbiz.minilang.SimpleServiceEngine.serviceInvoker(SimpleServiceEngine.java:78)
             [java] org.ofbiz.minilang.SimpleServiceEngine.runSync(SimpleServiceEngine.java:53)
             [java] org.ofbiz.service.ModelServiceReader$GenericInvokerImpl.runSync(ModelServiceReader.java:761)
             [java] _$gen.file_58$.D_58$.workspace.ofbizClean.applications.content.servicedef.services_95$output_46$xml_35$sendPrintFromScreenByUserAction.runSync(file:/D:/workspace/ofbizClean/applications/content/se
        rvicedef/services_output.xml#sendPrintFromScreenByUserAction:53)
             [java] org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:399)
             [java] org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:226)
             [java] org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:163)
             [java] org.ofbiz.service.eca.ServiceEcaAction.runAction(ServiceEcaAction.java:138)
             [java] org.ofbiz.service.eca.ServiceEcaRule.eval(ServiceEcaRule.java:159)
             [java] org.ofbiz.service.eca.ServiceEcaUtil.evalRules(ServiceEcaUtil.java:188)
             [java] org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:592)
             [java] org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:226)
             [java] org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:163)
             [java] org.ofbiz.webapp.event.ServiceEventHandler.invoke(ServiceEventHandler.java:337)
             [java] org.ofbiz.webapp.control.RequestHandler.runEvent(RequestHandler.java:647)
             [java] org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:393)
             [java] org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:224)
             [java] org.ofbiz.webapp.control.ControlServlet.doPost(ControlServlet.java:87)
             [java] javax.servlet.http.HttpServlet.service(HttpServlet.java:641)
             [java] javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
             [java] org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:304)
             [java] org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
             [java] org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:337)
             [java] org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
             [java] org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
             [java] org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:224)
             [java] org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:169)
             [java] org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
             [java] org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)
             [java] org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)
             [java] org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
             [java] org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:929)
             [java] org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:405)
             [java] org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:964)
             [java] org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:515)
             [java] org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:304)
             [java] java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
             [java] java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
             [java] java.lang.Thread.run(Thread.java:662)
             [java] --------------------------------------------------------------------------------
             [java]
             [java] 2011-12-21 12:10:33,875 (http-bio-/0.0.0.0-8443-exec-4) [    TransactionUtil.java:383:INFO ] [TransactionUtil.setRollbackOnly] transaction rollback only not set, rollback only is already set.
             [java] 2011-12-21 12:10:33,875 (http-bio-/0.0.0.0-8443-exec-4) [   CallSimpleMethod.java:109:WARN ] Got error [error] calling inline simple-method named [sendPrintByUserAction] in resource [], message is
         null, and the error message list is: {Error rendering screen [component://example/widget/example/ExampleScreens.xml#ExampleReport]: org.ofbiz.service.GenericServiceException: Service [sendPrint] target threw
         an unexpected exception (locale cannot be null)}
             [java] 2011-12-21 12:10:33,875 (http-bio-/0.0.0.0-8443-exec-4) [    TransactionUtil.java:383:INFO ] [TransactionUtil.setRollbackOnly] transaction rollback only not set, rollback only is already set.
             [java] 2011-12-21 12:10:33,875 (http-bio-/0.0.0.0-8443-exec-4) [  ServiceDispatcher.java:543:ERROR] Error in Service [sendPrintFromScreenByUserAction]: Error rendering screen [component://example/widget/
        example/ExampleScreens.xml#ExampleReport]: org.ofbiz.service.GenericServiceException: Service [sendPrint] target threw an unexpected exception (locale cannot be null)
             [java] 2011-12-21 12:10:33,875 (http-bio-/0.0.0.0-8443-exec-4) [    TransactionUtil.java:341:ERROR]
             [java] ---- exception report ----------------------------------------------------------
             [java] [TransactionUtil.rollback]
             [java] Exception: java.lang.Exception
             [java] Message: Stack Trace
             [java] ---- stack trace ---------------------------------------------------------------
             [java] java.lang.Exception: Stack Trace
             [java] org.ofbiz.entity.transaction.TransactionUtil.rollback(TransactionUtil.java:340)
             [java] org.ofbiz.entity.transaction.TransactionUtil.rollback(TransactionUtil.java:317)
             [java] org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:547)
             [java] org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:226)
             [java] org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:163)
             [java] org.ofbiz.service.eca.ServiceEcaAction.runAction(ServiceEcaAction.java:138)
             [java] org.ofbiz.service.eca.ServiceEcaRule.eval(ServiceEcaRule.java:159)
             [java] org.ofbiz.service.eca.ServiceEcaUtil.evalRules(ServiceEcaUtil.java:188)
             [java] org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:592)
             [java] org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:226)
             [java] org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:163)
             [java] org.ofbiz.webapp.event.ServiceEventHandler.invoke(ServiceEventHandler.java:337)
             [java] org.ofbiz.webapp.control.RequestHandler.runEvent(RequestHandler.java:647)
             [java] org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:393)
             [java] org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:224)
             [java] org.ofbiz.webapp.control.ControlServlet.doPost(ControlServlet.java:87)
             [java] javax.servlet.http.HttpServlet.service(HttpServlet.java:641)
             [java] javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
             [java] org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:304)
             [java] org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
             [java] org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:337)
             [java] org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
             [java] org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
             [java] org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:224)
             [java] org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:169)
             [java] org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
             [java] org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)
             [java] org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)
             [java] org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
             [java] org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:929)
             [java] org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:405)
             [java] org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:964)
             [java] org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:515)
             [java] org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:304)
             [java] java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
             [java] java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
             [java] java.lang.Thread.run(Thread.java:662)
             [java] --------------------------------------------------------------------------------
             [java]
             [java] 2011-12-21 12:10:33,875 (http-bio-/0.0.0.0-8443-exec-4) [    TransactionUtil.java:351:INFO ] [TransactionUtil.rollback] transaction rolled back
             [java] 2011-12-21 12:10:33,875 (http-bio-/0.0.0.0-8443-exec-4) [  ServiceDispatcher.java:604:INFO ] Sync service [example/sendPrintFromScreenByUserAction] finished in [1875] milliseconds with response [{
        errorMessageList={Error rendering screen [component://example/widget/example/ExampleScreens.xml#ExampleReport]: org.ofbiz.service.GenericServiceException: Service [sendPrint] target threw an unexpected except
        ion (locale cannot be null)}, responseMessage=error}]
             [java] 2011-12-21 12:10:33,875 (http-bio-/0.0.0.0-8443-exec-4) [  ServiceDispatcher.java:604:INFO ] Sync service [example/createExample] finished in [2016] milliseconds with response [{responseMessage=su
        ccess, exampleId=10000}]
             [java] 2011-12-21 12:10:33,875 (http-bio-/0.0.0.0-8443-exec-4) [     RequestHandler.java:648:INFO ] Ran Event [service:#createExample] from [request], result is [success]
             [java] 2011-12-21 12:10:33,875 (http-bio-/0.0.0.0-8443-exec-4) [     RequestHandler.java:707:INFO ] Sending redirect to: [/example/control/FindExample?exampleId=10000], sessionId=A0E4A1D0500277F564626323
        62256975.jvm1
             [java] 2011-12-21 12:10:33,875 (http-bio-/0.0.0.0-8443-exec-4) [       ServerHitBin.java:627:INFO ] Visit delegatorName=default, ServerHitBin delegatorName=default
             [java] 2011-12-21 12:10:33,937 (http-bio-/0.0.0.0-8443-exec-2) [     ControlServlet.java:141:INFO ] [[[FindExample(Domain:https://localhost)] Request Begun, encoding=[UTF-8]- total:0.0,since last(Begin):
        0.0]]
             [java] 2011-12-21 12:10:33,937 (http-bio-/0.0.0.0-8443-exec-2) [     RequestHandler.java:750:INFO ] Rendering View [FindExample], sessionId=A0E4A1D0500277F56462632362256975.jvm1
             [java] 2011-12-21 12:10:33,968 (http-bio-/0.0.0.0-8443-exec-4) [     ControlServlet.java:324:INFO ] [[[createExample(Domain:https://localhost)] Request Done- total:2.109,since last([createExample(Do...):
        
        Show
        Jacques Le Roux added a comment - Hi Nicolas, This is not clear to me, what is supposed to be externalDeviceId? And why do you set it as "PDF" in data by default? I thought it was related to a Printer name (PDFCreator for instance for me under XP); but when I remove PDF (because of the issue below) and add PDFCreator, I find nothing in dropdown when wanting to associate with an user (login) [java] 2011-12-21 12:10:31,859 (http-bio-/0.0.0.0-8443-exec-4) [ ControlServlet.java:141:INFO ] [[[createExample(Domain:https: //localhost)] Request Begun, encoding=[UTF-8]- total:0.0,since last(Begin ):0.0]] [java] 2011-12-21 12:10:31,906 (http-bio-/0.0.0.0-8443-exec-4) [ SequenceUtil.java:239:WARN ] [SequenceUtil.SequenceBank.fillBank] first select failed: will try to add new row, result set was empty for sequence [Example] [java] Used SQL: SELECT SEQ_ID FROM OFBIZ.SEQUENCE_VALUE_ITEM WHERE SEQ_NAME='Example' [java] Thread Name is: http-bio-/0.0.0.0-8443-exec-4: Thread [http-bio-/0.0.0.0-8443-exec-4,5,main] [java] 2011-12-21 12:10:31,921 (http-bio-/0.0.0.0-8443-exec-4) [ SequenceUtil.java:348:INFO ] Got bank of sequenced IDs for [Example]; curSeqId=10000, maxSeqId=10010, bankSize=10 [java] 2011-12-21 12:10:31,937 (http-bio-/0.0.0.0-8443-exec-4) [ ServiceEcaRule.java:157:INFO ] Running Service ECA Service: createExampleStatus, triggered by rule on Service: createExample [java] 2011-12-21 12:10:32,000 (http-bio-/0.0.0.0-8443-exec-4) [ ServiceDispatcher.java:604:INFO ] Sync service [example/createExampleStatus] finished in [63] milliseconds with response [{responseMessag e=success}] [java] 2011-12-21 12:10:32,000 (http-bio-/0.0.0.0-8443-exec-4) [ ServiceEcaRule.java:157:INFO ] Running Service ECA Service: sendPrintFromScreenByUserAction, triggered by rule on Service: createExamp le [java] 2011-12-21 12:10:32,000 (http-bio-/0.0.0.0-8443-exec-4) [ ModelService.java:469:INFO ] Set default value [PRINTER] for parameter [externalDeviceTypeId] [java] 2011-12-21 12:10:32,000 (http-bio-/0.0.0.0-8443-exec-4) [ ModelService.java:469:INFO ] Set default value [GENERIC] for parameter [extDevicePurposeActionId] [java] 2011-12-21 12:10:32,015 (http-bio-/0.0.0.0-8443-exec-4) [ Log.java:117:ERROR] [CommonServices.xml#findExternalDevice line 283] userLoginId = admin, externalDeviceTypeId =PRINTER , e xtDevicePurposeActionId = GENERIC, parameters.actionEnumId = [java] 2011-12-21 12:10:32,031 (http-bio-/0.0.0.0-8443-exec-4) [ UtilProperties.java:1056:INFO ] ResourceBundle DefaultMessages (fr) created in 0.0s with 3 properties [java] 2011-12-21 12:10:32,937 (http-bio-/0.0.0.0-8443-exec-4) [FopFactoryConfigurator.java:179:INFO ] Default page-height set to: 11in [java] 2011-12-21 12:10:32,937 (http-bio-/0.0.0.0-8443-exec-4) [FopFactoryConfigurator.java:186:INFO ] Default page-width set to: 8.26in [java] 2011-12-21 12:10:32,937 (http-bio-/0.0.0.0-8443-exec-4) [ ApacheFopWorker.java:87 :INFO ] FOP-FontBaseURL: file: ///D:/workspace/ofbizClean/framework/webapp/config/ [java] 2011-12-21 12:10:33,375 (http-bio-/0.0.0.0-8443-exec-4) [LoggingEventListener.java:80 :WARN ] The following feature isn't implemented by Apache FOP, yet: table-layout= "auto" (on fo:table) (See pos ition 72:11) [java] 2011-12-21 12:10:33,484 (http-bio-/0.0.0.0-8443-exec-4) [LoggingEventListener.java:80 :WARN ] Font "Symbol,normal,700" not found. Substituting with "Symbol,normal,400" . [java] 2011-12-21 12:10:33,484 (http-bio-/0.0.0.0-8443-exec-4) [LoggingEventListener.java:80 :WARN ] Font "ZapfDingbats,normal,700" not found. Substituting with "ZapfDingbats,normal,400" . [java] 2011-12-21 12:10:33,578 (http-bio-/0.0.0.0-8443-exec-4) [LoggingEventListener.java:78 :INFO ] table-layout= "fixed" and width= "auto" , but auto-layout not supported => assuming width= "100%" . (See po sition 28:44) [java] 2011-12-21 12:10:33,859 (http-bio-/0.0.0.0-8443-exec-4) [ OutputServices.java:118:INFO ] Printer Name Given PDF [java] 2011-12-21 12:10:33,875 (http-bio-/0.0.0.0-8443-exec-4) [ OutputServices.java:155:ERROR] [java] ---- runtime exception report -------------------------------------------------- [java] Error rendering [application/postscript]: java.lang.IllegalArgumentException: locale cannot be null [java] Exception: java.lang.IllegalArgumentException [java] Message: locale cannot be null [java] ---- stack trace --------------------------------------------------------------- [java] java.lang.IllegalArgumentException: locale cannot be null [java] org.ofbiz.base.util.UtilProperties.getResourceBundle(UtilProperties.java:666) [java] org.ofbiz.base.util.UtilProperties.getMessage(UtilProperties.java:571) [java] org.ofbiz.base.util.UtilProperties.getMessage(UtilProperties.java:639) [java] org.ofbiz.content.output.OutputServices.sendPrint(OutputServices.java:130) [java] sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [java] sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [java] sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [java] java.lang.reflect.Method.invoke(Method.java:597) [java] org.ofbiz.service.engine.StandardJavaEngine.serviceInvoker(StandardJavaEngine.java:100) [java] org.ofbiz.service.engine.StandardJavaEngine.runSync(StandardJavaEngine.java:57) [java] org.ofbiz.service.ModelServiceReader$GenericInvokerImpl.runSync(ModelServiceReader.java:761) [java] _$gen.file_58$.D_58$.workspace.ofbizClean.applications.content.servicedef.services_95$output_46$xml_35$sendPrint.runSync(file:/D:/workspace/ofbizClean/applications/content/servicedef/services_outp ut.xml#sendPrint:27) [java] org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:399) [java] org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:226) [java] org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:163) [java] org.ofbiz.content.output.OutputServices.sendPrintFromScreen(OutputServices.java:202) [java] sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [java] sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [java] sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [java] java.lang.reflect.Method.invoke(Method.java:597) [java] org.ofbiz.service.engine.StandardJavaEngine.serviceInvoker(StandardJavaEngine.java:100) [java] org.ofbiz.service.engine.StandardJavaEngine.runSync(StandardJavaEngine.java:57) [java] org.ofbiz.service.ModelServiceReader$GenericInvokerImpl.runSync(ModelServiceReader.java:761) [java] _$gen.file_58$.D_58$.workspace.ofbizClean.applications.content.servicedef.services_95$output_46$xml_35$sendPrintFromScreen.runSync(file:/D:/workspace/ofbizClean/applications/content/servicedef/ser vices_output.xml#sendPrintFromScreen:45) [java] org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:399) [java] org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:226) [java] org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:177) [java] org.ofbiz.minilang.method.callops.CallService.exec(CallService.java:248) [java] org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:920) [java] org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:739) [java] org.ofbiz.minilang.method.callops.CallSimpleMethod.exec(CallSimpleMethod.java:86) [java] org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:920) [java] org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:739) [java] org.ofbiz.minilang.SimpleMethod.runSimpleMethod(SimpleMethod.java:160) [java] org.ofbiz.minilang.SimpleMethod.runSimpleService(SimpleMethod.java:142) [java] org.ofbiz.minilang.SimpleServiceEngine.serviceInvoker(SimpleServiceEngine.java:78) [java] org.ofbiz.minilang.SimpleServiceEngine.runSync(SimpleServiceEngine.java:53) [java] org.ofbiz.service.ModelServiceReader$GenericInvokerImpl.runSync(ModelServiceReader.java:761) [java] _$gen.file_58$.D_58$.workspace.ofbizClean.applications.content.servicedef.services_95$output_46$xml_35$sendPrintFromScreenByUserAction.runSync(file:/D:/workspace/ofbizClean/applications/content/se rvicedef/services_output.xml#sendPrintFromScreenByUserAction:53) [java] org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:399) [java] org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:226) [java] org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:163) [java] org.ofbiz.service.eca.ServiceEcaAction.runAction(ServiceEcaAction.java:138) [java] org.ofbiz.service.eca.ServiceEcaRule.eval(ServiceEcaRule.java:159) [java] org.ofbiz.service.eca.ServiceEcaUtil.evalRules(ServiceEcaUtil.java:188) [java] org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:592) [java] org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:226) [java] org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:163) [java] org.ofbiz.webapp.event.ServiceEventHandler.invoke(ServiceEventHandler.java:337) [java] org.ofbiz.webapp.control.RequestHandler.runEvent(RequestHandler.java:647) [java] org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:393) [java] org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:224) [java] org.ofbiz.webapp.control.ControlServlet.doPost(ControlServlet.java:87) [java] javax.servlet.http.HttpServlet.service(HttpServlet.java:641) [java] javax.servlet.http.HttpServlet.service(HttpServlet.java:722) [java] org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:304) [java] org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) [java] org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:337) [java] org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) [java] org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) [java] org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:224) [java] org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:169) [java] org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472) [java] org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168) [java] org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100) [java] org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118) [java] org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:929) [java] org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:405) [java] org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:964) [java] org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:515) [java] org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:304) [java] java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [java] java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [java] java.lang. Thread .run( Thread .java:662) [java] -------------------------------------------------------------------------------- [java] [java] 2011-12-21 12:10:33,875 (http-bio-/0.0.0.0-8443-exec-4) [ ServiceDispatcher.java:515:INFO ] [[Sync service failed...- total:0.0,since last(Begin):0.0]] - 'example / sendPrint' [java] 2011-12-21 12:10:33,875 (http-bio-/0.0.0.0-8443-exec-4) [ TransactionUtil.java:378:WARN ] [java] ---- exception report ---------------------------------------------------------- [java] [TransactionUtil.setRollbackOnly] Calling transaction setRollbackOnly; this stack trace shows where this is happening: [java] Exception: java.lang.Exception [java] Message: Service [sendPrint] threw an unexpected exception/error [java] ---- stack trace --------------------------------------------------------------- [java] java.lang.Exception: Service [sendPrint] threw an unexpected exception/error [java] org.ofbiz.entity.transaction.TransactionUtil.setRollbackOnly(TransactionUtil.java:378) [java] org.ofbiz.entity.transaction.TransactionUtil.rollback(TransactionUtil.java:319) [java] org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:524) [java] org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:226) [java] org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:163) [java] org.ofbiz.content.output.OutputServices.sendPrintFromScreen(OutputServices.java:202) [java] sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [java] sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [java] sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [java] java.lang.reflect.Method.invoke(Method.java:597) [java] org.ofbiz.service.engine.StandardJavaEngine.serviceInvoker(StandardJavaEngine.java:100) [java] org.ofbiz.service.engine.StandardJavaEngine.runSync(StandardJavaEngine.java:57) [java] org.ofbiz.service.ModelServiceReader$GenericInvokerImpl.runSync(ModelServiceReader.java:761) [java] _$gen.file_58$.D_58$.workspace.ofbizClean.applications.content.servicedef.services_95$output_46$xml_35$sendPrintFromScreen.runSync(file:/D:/workspace/ofbizClean/applications/content/servicedef/ser vices_output.xml#sendPrintFromScreen:45) [java] org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:399) [java] org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:226) [java] org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:177) [java] org.ofbiz.minilang.method.callops.CallService.exec(CallService.java:248) [java] org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:920) [java] org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:739) [java] org.ofbiz.minilang.method.callops.CallSimpleMethod.exec(CallSimpleMethod.java:86) [java] org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:920) [java] org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:739) [java] org.ofbiz.minilang.SimpleMethod.runSimpleMethod(SimpleMethod.java:160) [java] org.ofbiz.minilang.SimpleMethod.runSimpleService(SimpleMethod.java:142) [java] org.ofbiz.minilang.SimpleServiceEngine.serviceInvoker(SimpleServiceEngine.java:78) [java] org.ofbiz.minilang.SimpleServiceEngine.runSync(SimpleServiceEngine.java:53) [java] org.ofbiz.service.ModelServiceReader$GenericInvokerImpl.runSync(ModelServiceReader.java:761) [java] _$gen.file_58$.D_58$.workspace.ofbizClean.applications.content.servicedef.services_95$output_46$xml_35$sendPrintFromScreenByUserAction.runSync(file:/D:/workspace/ofbizClean/applications/content/se rvicedef/services_output.xml#sendPrintFromScreenByUserAction:53) [java] org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:399) [java] org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:226) [java] org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:163) [java] org.ofbiz.service.eca.ServiceEcaAction.runAction(ServiceEcaAction.java:138) [java] org.ofbiz.service.eca.ServiceEcaRule.eval(ServiceEcaRule.java:159) [java] org.ofbiz.service.eca.ServiceEcaUtil.evalRules(ServiceEcaUtil.java:188) [java] org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:592) [java] org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:226) [java] org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:163) [java] org.ofbiz.webapp.event.ServiceEventHandler.invoke(ServiceEventHandler.java:337) [java] org.ofbiz.webapp.control.RequestHandler.runEvent(RequestHandler.java:647) [java] org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:393) [java] org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:224) [java] org.ofbiz.webapp.control.ControlServlet.doPost(ControlServlet.java:87) [java] javax.servlet.http.HttpServlet.service(HttpServlet.java:641) [java] javax.servlet.http.HttpServlet.service(HttpServlet.java:722) [java] org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:304) [java] org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) [java] org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:337) [java] org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) [java] org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) [java] org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:224) [java] org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:169) [java] org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472) [java] org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168) [java] org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100) [java] org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118) [java] org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:929) [java] org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:405) [java] org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:964) [java] org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:515) [java] org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:304) [java] java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [java] java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [java] java.lang. Thread .run( Thread .java:662) [java] -------------------------------------------------------------------------------- [java] [java] 2011-12-21 12:10:33,875 (http-bio-/0.0.0.0-8443-exec-4) [ OutputServices.java:205:ERROR] [java] ---- exception report ---------------------------------------------------------- [java] Error rendering screen [component: //example/widget/example/ExampleScreens.xml#ExampleReport]: org.ofbiz.service.GenericServiceException: Service [sendPrint] target threw an unexpected exception (l ocale cannot be null ) [java] Exception: org.ofbiz.service.GenericServiceException [java] Message: Service [sendPrint] target threw an unexpected exception (locale cannot be null ) [java] ---- cause --------------------------------------------------------------------- [java] Exception: java.lang.IllegalArgumentException [java] Message: locale cannot be null [java] ---- stack trace --------------------------------------------------------------- [java] java.lang.IllegalArgumentException: locale cannot be null [java] org.ofbiz.base.util.UtilProperties.getResourceBundle(UtilProperties.java:666) [java] org.ofbiz.base.util.UtilProperties.getMessage(UtilProperties.java:571) [java] org.ofbiz.base.util.UtilProperties.getMessage(UtilProperties.java:639) [java] org.ofbiz.content.output.OutputServices.sendPrint(OutputServices.java:156) [java] sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [java] sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [java] sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [java] java.lang.reflect.Method.invoke(Method.java:597) [java] org.ofbiz.service.engine.StandardJavaEngine.serviceInvoker(StandardJavaEngine.java:100) [java] org.ofbiz.service.engine.StandardJavaEngine.runSync(StandardJavaEngine.java:57) [java] org.ofbiz.service.ModelServiceReader$GenericInvokerImpl.runSync(ModelServiceReader.java:761) [java] _$gen.file_58$.D_58$.workspace.ofbizClean.applications.content.servicedef.services_95$output_46$xml_35$sendPrint.runSync(file:/D:/workspace/ofbizClean/applications/content/servicedef/services_outp ut.xml#sendPrint:27) [java] org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:399) [java] org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:226) [java] org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:163) [java] org.ofbiz.content.output.OutputServices.sendPrintFromScreen(OutputServices.java:202) [java] sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [java] sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [java] sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [java] java.lang.reflect.Method.invoke(Method.java:597) [java] org.ofbiz.service.engine.StandardJavaEngine.serviceInvoker(StandardJavaEngine.java:100) [java] org.ofbiz.service.engine.StandardJavaEngine.runSync(StandardJavaEngine.java:57) [java] org.ofbiz.service.ModelServiceReader$GenericInvokerImpl.runSync(ModelServiceReader.java:761) [java] _$gen.file_58$.D_58$.workspace.ofbizClean.applications.content.servicedef.services_95$output_46$xml_35$sendPrintFromScreen.runSync(file:/D:/workspace/ofbizClean/applications/content/servicedef/ser vices_output.xml#sendPrintFromScreen:45) [java] org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:399) [java] org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:226) [java] org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:177) [java] org.ofbiz.minilang.method.callops.CallService.exec(CallService.java:248) [java] org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:920) [java] org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:739) [java] org.ofbiz.minilang.method.callops.CallSimpleMethod.exec(CallSimpleMethod.java:86) [java] org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:920) [java] org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:739) [java] org.ofbiz.minilang.SimpleMethod.runSimpleMethod(SimpleMethod.java:160) [java] org.ofbiz.minilang.SimpleMethod.runSimpleService(SimpleMethod.java:142) [java] org.ofbiz.minilang.SimpleServiceEngine.serviceInvoker(SimpleServiceEngine.java:78) [java] org.ofbiz.minilang.SimpleServiceEngine.runSync(SimpleServiceEngine.java:53) [java] org.ofbiz.service.ModelServiceReader$GenericInvokerImpl.runSync(ModelServiceReader.java:761) [java] _$gen.file_58$.D_58$.workspace.ofbizClean.applications.content.servicedef.services_95$output_46$xml_35$sendPrintFromScreenByUserAction.runSync(file:/D:/workspace/ofbizClean/applications/content/se rvicedef/services_output.xml#sendPrintFromScreenByUserAction:53) [java] org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:399) [java] org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:226) [java] org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:163) [java] org.ofbiz.service.eca.ServiceEcaAction.runAction(ServiceEcaAction.java:138) [java] org.ofbiz.service.eca.ServiceEcaRule.eval(ServiceEcaRule.java:159) [java] org.ofbiz.service.eca.ServiceEcaUtil.evalRules(ServiceEcaUtil.java:188) [java] org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:592) [java] org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:226) [java] org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:163) [java] org.ofbiz.webapp.event.ServiceEventHandler.invoke(ServiceEventHandler.java:337) [java] org.ofbiz.webapp.control.RequestHandler.runEvent(RequestHandler.java:647) [java] org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:393) [java] org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:224) [java] org.ofbiz.webapp.control.ControlServlet.doPost(ControlServlet.java:87) [java] javax.servlet.http.HttpServlet.service(HttpServlet.java:641) [java] javax.servlet.http.HttpServlet.service(HttpServlet.java:722) [java] org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:304) [java] org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) [java] org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:337) [java] org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) [java] org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) [java] org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:224) [java] org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:169) [java] org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472) [java] org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168) [java] org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100) [java] org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118) [java] org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:929) [java] org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:405) [java] org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:964) [java] org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:515) [java] org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:304) [java] java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [java] java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [java] java.lang. Thread .run( Thread .java:662) [java] -------------------------------------------------------------------------------- [java] [java] 2011-12-21 12:10:33,875 (http-bio-/0.0.0.0-8443-exec-4) [ ServiceDispatcher.java:543:ERROR] Error in Service [sendPrintFromScreen]: Error rendering screen [component: //example/widget/example/Exam pleScreens.xml#ExampleReport]: org.ofbiz.service.GenericServiceException: Service [sendPrint] target threw an unexpected exception (locale cannot be null ) [java] 2011-12-21 12:10:33,875 (http-bio-/0.0.0.0-8443-exec-4) [ TransactionUtil.java:383:INFO ] [TransactionUtil.setRollbackOnly] transaction rollback only not set, rollback only is already set. [java] 2011-12-21 12:10:33,875 (http-bio-/0.0.0.0-8443-exec-4) [ ServiceDispatcher.java:604:INFO ] Sync service [example/sendPrintFromScreen] finished in [1844] milliseconds with response [{responseMess age=error, errorMessage=Error rendering screen [component: //example/widget/example/ExampleScreens.xml#ExampleReport]: org.ofbiz.service.GenericServiceException: Service [sendPrint] target threw an unexpected exception (locale cannot be null )}] [java] 2011-12-21 12:10:33,875 (http-bio-/0.0.0.0-8443-exec-4) [ CallService.java:351:ERROR] [java] ---- exception report ---------------------------------------------------------- [java] Exception: java.lang.Exception [java] Message: Erreur :áError rendering screen [component: //example/widget/example/ExampleScreens.xml#ExampleReport]: org.ofbiz.service.GenericServiceException: Service [sendPrint] target threw an unexp ected exception (locale cannot be null )áá [java] ---- stack trace --------------------------------------------------------------- [java] java.lang.Exception: Erreur :áError rendering screen [component: //example/widget/example/ExampleScreens.xml#ExampleReport]: org.ofbiz.service.GenericServiceException: Service [sendPrint] target th rew an unexpected exception (locale cannot be null )áá [java] org.ofbiz.minilang.method.callops.CallService.exec(CallService.java:351) [java] org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:920) [java] org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:739) [java] org.ofbiz.minilang.method.callops.CallSimpleMethod.exec(CallSimpleMethod.java:86) [java] org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:920) [java] org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:739) [java] org.ofbiz.minilang.SimpleMethod.runSimpleMethod(SimpleMethod.java:160) [java] org.ofbiz.minilang.SimpleMethod.runSimpleService(SimpleMethod.java:142) [java] org.ofbiz.minilang.SimpleServiceEngine.serviceInvoker(SimpleServiceEngine.java:78) [java] org.ofbiz.minilang.SimpleServiceEngine.runSync(SimpleServiceEngine.java:53) [java] org.ofbiz.service.ModelServiceReader$GenericInvokerImpl.runSync(ModelServiceReader.java:761) [java] _$gen.file_58$.D_58$.workspace.ofbizClean.applications.content.servicedef.services_95$output_46$xml_35$sendPrintFromScreenByUserAction.runSync(file:/D:/workspace/ofbizClean/applications/content/se rvicedef/services_output.xml#sendPrintFromScreenByUserAction:53) [java] org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:399) [java] org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:226) [java] org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:163) [java] org.ofbiz.service.eca.ServiceEcaAction.runAction(ServiceEcaAction.java:138) [java] org.ofbiz.service.eca.ServiceEcaRule.eval(ServiceEcaRule.java:159) [java] org.ofbiz.service.eca.ServiceEcaUtil.evalRules(ServiceEcaUtil.java:188) [java] org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:592) [java] org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:226) [java] org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:163) [java] org.ofbiz.webapp.event.ServiceEventHandler.invoke(ServiceEventHandler.java:337) [java] org.ofbiz.webapp.control.RequestHandler.runEvent(RequestHandler.java:647) [java] org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:393) [java] org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:224) [java] org.ofbiz.webapp.control.ControlServlet.doPost(ControlServlet.java:87) [java] javax.servlet.http.HttpServlet.service(HttpServlet.java:641) [java] javax.servlet.http.HttpServlet.service(HttpServlet.java:722) [java] org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:304) [java] org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) [java] org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:337) [java] org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) [java] org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) [java] org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:224) [java] org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:169) [java] org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472) [java] org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168) [java] org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100) [java] org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118) [java] org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:929) [java] org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:405) [java] org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:964) [java] org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:515) [java] org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:304) [java] java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [java] java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [java] java.lang. Thread .run( Thread .java:662) [java] -------------------------------------------------------------------------------- [java] [java] 2011-12-21 12:10:33,875 (http-bio-/0.0.0.0-8443-exec-4) [ TransactionUtil.java:383:INFO ] [TransactionUtil.setRollbackOnly] transaction rollback only not set, rollback only is already set. [java] 2011-12-21 12:10:33,875 (http-bio-/0.0.0.0-8443-exec-4) [ CallSimpleMethod.java:109:WARN ] Got error [error] calling inline simple-method named [sendPrintByUserAction] in resource [], message is null , and the error message list is: {Error rendering screen [component: //example/widget/example/ExampleScreens.xml#ExampleReport]: org.ofbiz.service.GenericServiceException: Service [sendPrint] target threw an unexpected exception (locale cannot be null )} [java] 2011-12-21 12:10:33,875 (http-bio-/0.0.0.0-8443-exec-4) [ TransactionUtil.java:383:INFO ] [TransactionUtil.setRollbackOnly] transaction rollback only not set, rollback only is already set. [java] 2011-12-21 12:10:33,875 (http-bio-/0.0.0.0-8443-exec-4) [ ServiceDispatcher.java:543:ERROR] Error in Service [sendPrintFromScreenByUserAction]: Error rendering screen [component: //example/widget/ example/ExampleScreens.xml#ExampleReport]: org.ofbiz.service.GenericServiceException: Service [sendPrint] target threw an unexpected exception (locale cannot be null ) [java] 2011-12-21 12:10:33,875 (http-bio-/0.0.0.0-8443-exec-4) [ TransactionUtil.java:341:ERROR] [java] ---- exception report ---------------------------------------------------------- [java] [TransactionUtil.rollback] [java] Exception: java.lang.Exception [java] Message: Stack Trace [java] ---- stack trace --------------------------------------------------------------- [java] java.lang.Exception: Stack Trace [java] org.ofbiz.entity.transaction.TransactionUtil.rollback(TransactionUtil.java:340) [java] org.ofbiz.entity.transaction.TransactionUtil.rollback(TransactionUtil.java:317) [java] org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:547) [java] org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:226) [java] org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:163) [java] org.ofbiz.service.eca.ServiceEcaAction.runAction(ServiceEcaAction.java:138) [java] org.ofbiz.service.eca.ServiceEcaRule.eval(ServiceEcaRule.java:159) [java] org.ofbiz.service.eca.ServiceEcaUtil.evalRules(ServiceEcaUtil.java:188) [java] org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:592) [java] org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:226) [java] org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:163) [java] org.ofbiz.webapp.event.ServiceEventHandler.invoke(ServiceEventHandler.java:337) [java] org.ofbiz.webapp.control.RequestHandler.runEvent(RequestHandler.java:647) [java] org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:393) [java] org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:224) [java] org.ofbiz.webapp.control.ControlServlet.doPost(ControlServlet.java:87) [java] javax.servlet.http.HttpServlet.service(HttpServlet.java:641) [java] javax.servlet.http.HttpServlet.service(HttpServlet.java:722) [java] org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:304) [java] org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) [java] org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:337) [java] org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) [java] org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) [java] org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:224) [java] org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:169) [java] org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472) [java] org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168) [java] org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100) [java] org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118) [java] org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:929) [java] org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:405) [java] org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:964) [java] org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:515) [java] org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:304) [java] java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [java] java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [java] java.lang. Thread .run( Thread .java:662) [java] -------------------------------------------------------------------------------- [java] [java] 2011-12-21 12:10:33,875 (http-bio-/0.0.0.0-8443-exec-4) [ TransactionUtil.java:351:INFO ] [TransactionUtil.rollback] transaction rolled back [java] 2011-12-21 12:10:33,875 (http-bio-/0.0.0.0-8443-exec-4) [ ServiceDispatcher.java:604:INFO ] Sync service [example/sendPrintFromScreenByUserAction] finished in [1875] milliseconds with response [{ errorMessageList={Error rendering screen [component: //example/widget/example/ExampleScreens.xml#ExampleReport]: org.ofbiz.service.GenericServiceException: Service [sendPrint] target threw an unexpected except ion (locale cannot be null )}, responseMessage=error}] [java] 2011-12-21 12:10:33,875 (http-bio-/0.0.0.0-8443-exec-4) [ ServiceDispatcher.java:604:INFO ] Sync service [example/createExample] finished in [2016] milliseconds with response [{responseMessage=su ccess, exampleId=10000}] [java] 2011-12-21 12:10:33,875 (http-bio-/0.0.0.0-8443-exec-4) [ RequestHandler.java:648:INFO ] Ran Event [service:#createExample] from [request], result is [success] [java] 2011-12-21 12:10:33,875 (http-bio-/0.0.0.0-8443-exec-4) [ RequestHandler.java:707:INFO ] Sending redirect to: [/example/control/FindExample?exampleId=10000], sessionId=A0E4A1D0500277F564626323 62256975.jvm1 [java] 2011-12-21 12:10:33,875 (http-bio-/0.0.0.0-8443-exec-4) [ ServerHitBin.java:627:INFO ] Visit delegatorName= default , ServerHitBin delegatorName= default [java] 2011-12-21 12:10:33,937 (http-bio-/0.0.0.0-8443-exec-2) [ ControlServlet.java:141:INFO ] [[[FindExample(Domain:https: //localhost)] Request Begun, encoding=[UTF-8]- total:0.0,since last(Begin): 0.0]] [java] 2011-12-21 12:10:33,937 (http-bio-/0.0.0.0-8443-exec-2) [ RequestHandler.java:750:INFO ] Rendering View [FindExample], sessionId=A0E4A1D0500277F56462632362256975.jvm1 [java] 2011-12-21 12:10:33,968 (http-bio-/0.0.0.0-8443-exec-4) [ ControlServlet.java:324:INFO ] [[[createExample(Domain:https: //localhost)] Request Done- total:2.109,since last([createExample(Do...):
        Hide
        Nicolas Malin added a comment -

        Jacques,

        I will tried your process to understand why you have this error.

        Thanks your review !

        Show
        Nicolas Malin added a comment - Jacques, I will tried your process to understand why you have this error. Thanks your review !
        Hide
        Nicolas Malin added a comment -

        Hi Jacques,

        I update the patch :

        • externalDeviceId field use sequence
        • update call printer (error on locale = null, that break properties system)

        For your case, set PDFCreator on cmdToCall, with cups system I set the printerName on this field.

        Example, with lpc status on my system :
        LaserCouleur:
        l’imprimante correspond au périphérique « socket », débit -1
        PDF:
        l’imprimante correspond au
        Stylus-Photo-870:
        l’imprimante correspond au périphérique « usb », débit -1

        to use LaserCouleur I create:
        <ExternalDevice cmdToCall="LaserCouleur" description="Imprimante Laser" deviceLocation="Bureau" externalDeviceId="10000" externalDeviceTypeId="PRINTER" statusId="DEVICE_ENABLED"/>

        On windows system ... I don't know. I hope it's will ok for you.

        Show
        Nicolas Malin added a comment - Hi Jacques, I update the patch : externalDeviceId field use sequence update call printer (error on locale = null, that break properties system) For your case, set PDFCreator on cmdToCall, with cups system I set the printerName on this field. Example, with lpc status on my system : LaserCouleur: l’imprimante correspond au périphérique « socket », débit -1 PDF: l’imprimante correspond au Stylus-Photo-870: l’imprimante correspond au périphérique « usb », débit -1 to use LaserCouleur I create: <ExternalDevice cmdToCall="LaserCouleur" description="Imprimante Laser" deviceLocation="Bureau" externalDeviceId="10000" externalDeviceTypeId="PRINTER" statusId="DEVICE_ENABLED"/> On windows system ... I don't know. I hope it's will ok for you.
        Hide
        Jacques Le Roux added a comment -

        OK, works well here. I will check some points before committing...

        Show
        Jacques Le Roux added a comment - OK, works well here. I will check some points before committing...
        Hide
        Jacques Le Roux added a comment -

        Hi Nicolas,

        Could you please review this last patch.

        You used an old version of OutputServices.java so I put my hand in it to reuse the original/current sendPrintFromScreen() method (that I just reformatted a bit)

        I also added another
        <!-- Default printer with default action -->
        not sure we should keep it (could be useful for Windows user who use PDFCreator, like me)

        Apart that, I crossed some issues with duplicated labels, my fault I think.

        I'm not quite sure how we could present that in another way you did (in Example). Maybe to make it a bit more visible we could add an help file with explanation?

        I'd also appreciate other opinions (than Nicolas and I)

        Good job!

        Show
        Jacques Le Roux added a comment - Hi Nicolas, Could you please review this last patch. You used an old version of OutputServices.java so I put my hand in it to reuse the original/current sendPrintFromScreen() method (that I just reformatted a bit) I also added another <!-- Default printer with default action --> not sure we should keep it (could be useful for Windows user who use PDFCreator, like me) Apart that, I crossed some issues with duplicated labels, my fault I think. I'm not quite sure how we could present that in another way you did (in Example). Maybe to make it a bit more visible we could add an help file with explanation? I'd also appreciate other opinions (than Nicolas and I) Good job!
        Hide
        Nicolas Malin added a comment -

        Hi Jacques,

        I will review the path this week-end. Thanks for your time

        Nicolas

        Show
        Nicolas Malin added a comment - Hi Jacques, I will review the path this week-end. Thanks for your time Nicolas
        Hide
        Adrian Crum added a comment -

        Could someone post a link to the thread on the dev mailing list? I am having a difficult time understanding the need for this, or a use case. I seems to me a user would simply select a printer from their browser.

        Show
        Adrian Crum added a comment - Could someone post a link to the thread on the dev mailing list? I am having a difficult time understanding the need for this, or a use case. I seems to me a user would simply select a printer from their browser.
        Hide
        Jacques Le Roux added a comment -

        Adrian,

        I don't think there was a clear requirement on dev ML.

        I understand it as a mean to print something based on a SECA firing, which can be handy in some cases.

        Nicolas, could you explain more please?

        Show
        Jacques Le Roux added a comment - Adrian, I don't think there was a clear requirement on dev ML. I understand it as a mean to print something based on a SECA firing, which can be handy in some cases. Nicolas, could you explain more please?
        Hide
        Olivier Heintz added a comment -

        This requirement comes from end users who wants a "one click print button".
        It's useful when some paper workflow still exist.
        example:
        1) in manufacturing when order approval should print a production run in workshop
        2) when administrative sent a lot of paper mail for customer

        Show
        Olivier Heintz added a comment - This requirement comes from end users who wants a "one click print button". It's useful when some paper workflow still exist. example: 1) in manufacturing when order approval should print a production run in workshop 2) when administrative sent a lot of paper mail for customer
        Hide
        Jacques Le Roux added a comment -

        Update patch because of CommonEmptyHeader replacement by " "

        Show
        Jacques Le Roux added a comment - Update patch because of CommonEmptyHeader replacement by " "
        Hide
        Nicolas Malin added a comment -

        Hi Jacques,

        I check your last patch, I found a duplication data on file : framework/common/data/CommonTypeData.xml. Your change it's good to me, thanks for your works jacques. This would have been to me to resynchronize the patch on trunk that you don't waste your time with it.

        On the dev mailing list I find this thread http://ofbiz.135035.n4.nabble.com/Configure-printer-on-OFBiz-for-direct-printing-td2330823.html. To understand Why I use seca, the better and simple example is with order preparation :

        #. An user approve an order -> automaticly print this order on configured printer
        #. An user valide a picklist -> automaticly print the prick list on configured printer (detect by user login and/or enumeration (computer/site/location) and/or purpose process)

        A little complex process :

        #. An user approve order -> automaticly print this order on his printer and print all product content with prurpose documentation associate on each product on this order on package printer
        #. An user finalise a shipment -> for each package print their content, the carrier information, internal tracking number and print on docks's printer the package list that will arrive

        It really depends on the deploy site so external device isn't OOTB. I will create a Help to configure.

        Nicolas

        Show
        Nicolas Malin added a comment - Hi Jacques, I check your last patch, I found a duplication data on file : framework/common/data/CommonTypeData.xml. Your change it's good to me, thanks for your works jacques. This would have been to me to resynchronize the patch on trunk that you don't waste your time with it. On the dev mailing list I find this thread http://ofbiz.135035.n4.nabble.com/Configure-printer-on-OFBiz-for-direct-printing-td2330823.html . To understand Why I use seca, the better and simple example is with order preparation : #. An user approve an order -> automaticly print this order on configured printer #. An user valide a picklist -> automaticly print the prick list on configured printer (detect by user login and/or enumeration (computer/site/location) and/or purpose process) A little complex process : #. An user approve order -> automaticly print this order on his printer and print all product content with prurpose documentation associate on each product on this order on package printer #. An user finalise a shipment -> for each package print their content, the carrier information, internal tracking number and print on docks's printer the package list that will arrive It really depends on the deploy site so external device isn't OOTB. I will create a Help to configure. Nicolas
        Hide
        Jacques Le Roux added a comment -

        Thanks Nicolas,

        I will wait your "Help to configure" to commit the whole. Please remember then to update your working copy before creating the patch

        Show
        Jacques Le Roux added a comment - Thanks Nicolas, I will wait your "Help to configure" to commit the whole. Please remember then to update your working copy before creating the patch
        Hide
        Jacques Le Roux added a comment -

        Hi Nicolas,

        When you get a chance: I have this pending, and would like to get rid of it, thanks!

        Show
        Jacques Le Roux added a comment - Hi Nicolas, When you get a chance: I have this pending, and would like to get rid of it, thanks!
        Hide
        Jacques Le Roux added a comment -

        Bump...

        Show
        Jacques Le Roux added a comment - Bump...
        Hide
        Jacques Le Roux added a comment -

        Updated patch with duplicated common type data pointed out by Nicolas removed

        Show
        Jacques Le Roux added a comment - Updated patch with duplicated common type data pointed out by Nicolas removed
        Hide
        Nicolas Malin added a comment -

        Hello Jacques,

        My apologies for my silence. I will check this old issue on trunk and complete the documentation.

        Nicolas

        Show
        Nicolas Malin added a comment - Hello Jacques, My apologies for my silence. I will check this old issue on trunk and complete the documentation. Nicolas

          People

          • Assignee:
            Jacques Le Roux
            Reporter:
            Nicolas Malin
          • Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

            • Created:
              Updated:

              Development