camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Torsten Mielke (JIRA)" <j...@apache.org>
Subject [jira] Updated: (CAMEL-3446) NPE in camel-printer when not setting media size or omitting sides attribute
Date Mon, 20 Dec 2010 10:53:01 GMT

     [ https://issues.apache.org/jira/browse/CAMEL-3446?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Torsten Mielke updated CAMEL-3446:
----------------------------------

    Attachment: PrinterConfiguration.patch

Proposed patch attached. It assigned default values for sides and mediaSize attributes if
they are not specified as part of the endpoint configuration. 
Also, some additional logging statements included.


> NPE in camel-printer when not setting media size or omitting sides attribute
> ----------------------------------------------------------------------------
>
>                 Key: CAMEL-3446
>                 URL: https://issues.apache.org/jira/browse/CAMEL-3446
>             Project: Camel
>          Issue Type: Bug
>    Affects Versions: 2.5.0
>         Environment: component: camel-printer (Could not select it from components list).
>            Reporter: Torsten Mielke
>         Attachments: PrinterConfiguration.patch
>
>
> When specifying a camel-printer configuration that does not include config properties
for sides or mediaSize, the camel route will fail to start up with a NullPointerException.
E.g. this route
> {code:java}
> from("file://target/incoming?delete=true")
> 	.to("lpr://localhost/default");
> {code}
> will raise an NPE at route startup time.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message