java.lang.ExceptionInInitializerError
sep.fmat.sipre.service.PreinscripcionService.<init>(PreinscripcionService.java:53)
sep.fmat.sipre.service.PreinscripcionService.<clinit>(PreinscripcionService.java:37)
sep.fmat.sipre.action.BusqAlumnoAction.execute(BusqAlumnoAction.java:66)
is raised when, i get instance for may daoManager
public class DaoConfig {
private static final DaoManager daoManager;
//private static final SqlMapClient sqlMap;
static {
try {
//conexion via JDBC
String resource =
"sep/fmat/sipre/persistent/dao.xml";
Reader reader =
Resources.getResourceAsReader(resource);
daoManager =
DaoManagerBuilder.buildDaoManager(reader);
System.out.println("Se ha cargado el sqlmap
exitosamente");
} catch (Exception e) {
throw new RuntimeException("No se puede
iniciaizar el DaoConfig. Cause: " + e);
}
}
public static DaoManager getDaoManager() {
return daoManager;
}
}
--- Brandon Goodin <[EMAIL PROTECTED]> wrote:
> what is the specific exception it is giving you?
>
> Brandon
>
>
> On Thu, 17 Feb 2005 05:04:17 -0800 (PST), Roger
> Baeza
> <[EMAIL PROTECTED]> wrote:
> > Hello all
> >
> > Any one can help me...
> >
> > I'm usign sqlMap, when I put more than 9 field to
> > insert statement like this
> >
> > 9 exactly
> > Insert Into spIngresoSecundaria
> > (IdPreinscripcion, IdAlumno, IdPrimaria,
> > IdSecundaria, TieneHermanos,
> > PrimariaInf, EsMenorA12, FechaPreIns,
> FechaIns)
> > values
> > (0, #alumnoId#, #primariaId#, #secundariaId#,
> > #tieneHermanos#,
> > #primariaInf#, #esMenora12#, current, current)
> >
> > more than 9,
> > Insert Into spIngresoSecundaria
> > (IdPreinscripcion, IdAlumno, IdPrimaria,
> > IdSecundaria, TieneHermanos,
> > PrimariaInf, EsMenorA12, FechaPreIns,
> FechaIns,
> > other)
> > values
> > (0, #alumnoId#, #primariaId#, #secundariaId#,
> > #tieneHermanos#,
> > #primariaInf#, #esMenora12#, current, current,
> > #other#)
> >
> > can let me inicialize the daoManager
> >
> > what's up?
> >
> > regards
> >
> >
> > __________________________________
> > Do you Yahoo!?
> > Read only the mail you want - Yahoo! Mail
> SpamGuard.
> > http://promotions.yahoo.com/new_mail
> >
>
__________________________________
Do you Yahoo!?
Yahoo! Mail - now with 250MB free storage. Learn more.
http://info.mail.yahoo.com/mail_250