You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by "Torsten Mielke (JIRA)" <ji...@apache.org> on 2010/12/20 11:51:00 UTC
[jira] Created: (CAMEL-3446) NPE in camel-printer when not setting
media size or omitting sides attribute
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
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.
[jira] Resolved: (CAMEL-3446) NPE in camel-printer when not setting
media size or omitting sides attribute
Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CAMEL-3446?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Claus Ibsen resolved CAMEL-3446.
--------------------------------
Resolution: Fixed
Fix Version/s: 2.6.0
Assignee: Claus Ibsen
trunk: 1051116.
Thanks Torsten for the patch. I polished it a bit.
> 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
> Assignee: Claus Ibsen
> Fix For: 2.6.0
>
> Attachments: PrinterConfiguration.patch, tests.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.
[jira] Updated: (CAMEL-3446) NPE in camel-printer when not setting
media size or omitting sides attribute
Posted by "Torsten Mielke (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CAMEL-3446?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Torsten Mielke updated CAMEL-3446:
----------------------------------
Attachment: (was: PrinterConfiguration.patch)
> 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.
[jira] Updated: (CAMEL-3446) NPE in camel-printer when not setting
media size or omitting sides attribute
Posted by "Torsten Mielke (JIRA)" <ji...@apache.org>.
[ 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
> 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.
[jira] Updated: (CAMEL-3446) NPE in camel-printer when not setting
media size or omitting sides attribute
Posted by "Torsten Mielke (JIRA)" <ji...@apache.org>.
[ 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.
[jira] Updated: (CAMEL-3446) NPE in camel-printer when not setting
media size or omitting sides attribute
Posted by "Torsten Mielke (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CAMEL-3446?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Torsten Mielke updated CAMEL-3446:
----------------------------------
Attachment: tests.patch
Attaching additional JUnit test method (see tests.patch).
> 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, tests.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.
[jira] Issue Comment Edited: (CAMEL-3446) NPE in camel-printer when
not setting media size or omitting sides attribute
Posted by "Torsten Mielke (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CAMEL-3446?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12973173#action_12973173 ]
Torsten Mielke edited comment on CAMEL-3446 at 12/20/10 6:33 AM:
-----------------------------------------------------------------
Attaching additional JUnit test method (see tests.patch) to test for this bug.
was (Author: tmielke):
Attaching additional JUnit test method (see tests.patch).
> 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, tests.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.