ode-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sean Ahn (JIRA)" <j...@apache.org>
Subject [jira] Updated: (ODE-445) No endpoint config files results in a null pointer exception during processing
Date Tue, 02 Dec 2008 22:10:44 GMT

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

Sean Ahn updated ODE-445:
-------------------------

    Attachment: ode-445.2.patch

Attached second patch that's to be applied on top of the first patch.

The logic now checks if the directory exists and it's really a directory:

if( !_configDir.exists() ) {
    __log.error("The specified config directory does not exist:" + _configDir.getAbsolutePath()
+ "!!");
} else if( !_configDir.isDirectory() ) {
    __log.error("The specified config directory is not a directory but a regular file:" +
_configDir.getAbsolutePath() + "!!");
} else {
    // list and sort endpoint config files
    File[] files = _configDir.listFiles(new FileFilter() {
          public boolean accept(File path) {
               return path.getName().endsWith(".endpoint") && path.isFile();
          }
     });
     if( files != null ) {
          Arrays.sort(files);
          propFiles.addAll(Arrays.asList(files));
     }
}


> No endpoint config files results in a null pointer exception during processing
> ------------------------------------------------------------------------------
>
>                 Key: ODE-445
>                 URL: https://issues.apache.org/jira/browse/ODE-445
>             Project: ODE
>          Issue Type: Bug
>          Components: BPEL Runtime
>            Reporter: Sean Ahn
>         Attachments: ode-445.2.patch, ode-445.2.trunk.patch, ode-445.patch, ode-445.trunk.patch
>
>
> Today, noticed that all the join correlation test cases break with NullPointerException.

-- 
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