To further describe my problem :

Iam calling a seperate class inside my mailet which uses a jndi lookup to
fetch something.
If there is an exception somewhere for eg. while jndi lookup the exception
is not
caught inside my mailet.
Am I  missing something here?
(see exception below when I run James)
**************
javax.naming.NoInitialContextException: Need to specify class name in
environmen
t or system property, or as an applet parameter, or in an application
resource f
ile:  java.naming.factory.initial
        at
javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:6
43)
        at
javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:246
)
        at
javax.naming.InitialContext.getURLOrDefaultInitCtx(InitialContext.jav
a:283)
        at javax.naming.InitialContext.lookup(InitialContext.java:350)
        at MyOtherHelper.doSomething(MyOtherHelper.java:78)
        at MyHelper.doSomething(MyHelper.java:130)
        at MyOtherclass.service(MyOtherclass.java:55)
        at MyMailet.service(MyMailet.java:56)
        at
org.apache.james.transport.LinearProcessor.service(LinearProcessor.ja
va:168)
        at
org.apache.james.transport.JamesSpoolManager.process(JamesSpoolManage
r.java:241)
        at
org.apache.james.transport.JamesSpoolManager.run(JamesSpoolManager.ja
va:208)
        at
org.apache.avalon.excalibur.thread.impl.ExecutableRunnable.execute(Ex
ecutableRunnable.java:47)
        at
org.apache.avalon.excalibur.thread.impl.WorkerThread.run(WorkerThread
.java:80)




<[EMAIL PROTECTED]> on 18/02/2002 17:18:00

Please respond to "James Users List" <[EMAIL PROTECTED]>

To:    "James Users List" <[EMAIL PROTECTED]>
cc:

Subject:    Custom Mailet problem

Hi all,

Iam running a Custom Mailet which is in the James.bar build.
It runs fine but whenever there is an exception anywhere inside the mailet
the mailet dosent process it further (just stops executing the rest of the
code)
although I catch the exception. This wasnt the problem in James 1.2.1 as
exception was
caught in our mailet code and we could control from there.

Any ideas anybody.

kishan

****************************************************************
NOTICE - This message is intended only for the use of the
addressee named above and may contain privileged and
confidential information.  If you are not the intended recipient
of this message you are hereby notified that you must not
disseminate, copy or take any action based upon it.  If you
received this message in error please notify HIC immediately.
Any views expressed in this message are those of the individual
sender, except where the sender specifically states them to be
the views of HIC.
****************************************************************

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]
>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]
>









--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to