Michael Lee
2012-09-17 11:53:28 UTC
I tried with the following but it doesn't work for me. I got a "Failed to find entry point for component" error:
<br /><br />
<code>
<br />
import java.io.InputStream;
<br /><br />
import org.apache.log4j.Logger;
<br /><br />
public class GetFileSize
<br />
{
<br />
private Logger log = Logger.getLogger(GetFileSize.class);
<br /><br />
public static void main(String[] args) {
<br /><br />
}
<br /><br />
void processStream(InputStream is) throws Exception {
<br />
try {
<br />
log.info("Start of processFile");
<br />
log.info("End of processFile");
<br />
}
<br />
finally {
<br />
if (is != null) {
<br />
is.close();
<br />
}
<br />
}
<br />
}
<br />
}
<br />
</code>
<br /><br />
What did I do wrong?
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email
<br /><br />
<code>
<br />
import java.io.InputStream;
<br /><br />
import org.apache.log4j.Logger;
<br /><br />
public class GetFileSize
<br />
{
<br />
private Logger log = Logger.getLogger(GetFileSize.class);
<br /><br />
public static void main(String[] args) {
<br /><br />
}
<br /><br />
void processStream(InputStream is) throws Exception {
<br />
try {
<br />
log.info("Start of processFile");
<br />
log.info("End of processFile");
<br />
}
<br />
finally {
<br />
if (is != null) {
<br />
is.close();
<br />
}
<br />
}
<br />
}
<br />
}
<br />
</code>
<br /><br />
What did I do wrong?
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email