• Post Reply Bookmark Topic Watch Topic
  • New Topic

Error on the createTimer - NullPointerException  RSS feed

 
Hugo Santos
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello friends,

I need a help!
I'm doing a web aplication using EJB 2.1.
I wanna do a query each three minutes.
When I call the method createTimer from the interface TimerService, occur a
NullPointerException after started the server.
The code is below:

//The method createTimer
public void createTimer(final int pollIntervalMillis, final com.alliance.nfe.info.ConsultaStatusInfo info) {
log.info("Create Status Timer. Info = " + info);
TimerService timerService = context.getTimerService();
timerService.createTimer(pollIntervalMillis, info);
}

//The method ejbTimeout
public void ejbTimeout(Timer timer) {
ConsultaStatusInfo info = (ConsultaStatusInfo)timer.getInfo();
NfeConsultaSta nfeConsultaStaSefaz = new NfeConsultaSta();

//L� a propriedade de Ambiente
String ambiente = System.getProperty("nfe-alliance.service.sefaz", "HOMOLOGACAO");
int tpAmb = 0;
if(ambiente.equals("HOMOLOGACAO")) {
tpAmb = 1;
} else if (ambiente.equals("PRODUCAO")){
tpAmb = 2;
}

try{
Iterator i = info.getListaUf().iterator();
int z = 0;
while(i.hasNext()) {
String uf = (String)info.getListaUf().get(z);

//Cria arquivo XML
ConsStatServDocument stat = ConsStatServDocument.Factory.newInstance();
stat.getConsStatServ().setCUF(br.inf.portalfiscal.nfe.TCodUfIBGE.Enum.forString(uf));
stat.getConsStatServ().setTpAmb(br.inf.portalfiscal.nfe.TAmb.Enum.forInt(tpAmb));
stat.getConsStatServ().setXServ("STATUS");
String xml = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>" +stat.toString();

//Faz a consulta do status da respectiva UF na Sefaz
String response = ServiceFactory.getInstance(uf).consultaStatus(xml);
RetConsStatServDocument document = RetConsStatServDocument.Factory.parse(response);

//Acessa os atributos do xml
nfeConsultaStaSefaz.setCodUf(document.getRetConsStatServ().getCUF().toString());
nfeConsultaStaSefaz.setAmbiente(Short.parseShort(document.getRetConsStatServ().getTpAmb().toString()));
nfeConsultaStaSefaz.setCodStatus(Short.parseShort(document.getRetConsStatServ().getCStat()));
nfeConsultaStaSefaz.setMotivo(document.getRetConsStatServ().getXMotivo());
nfeConsultaStaSefaz.setDtRcbto(Date.valueOf(String.valueOf(document.getRetConsStatServ().getDhRecbto())));
nfeConsultaStaSefaz.setDtRetorno(Date.valueOf(String.valueOf(document.getRetConsStatServ().getDhRetorno())));
nfeConsultaStaSefaz.setObservacao(document.getRetConsStatServ().getXObs());

//Consulta a �ltima modifica��o no banco
List consultaBanco = ServiceDao.getInstance().consultaStatusUf(nfeConsultaStaSefaz.getCodUf());
Iterator it = consultaBanco.iterator();
short codStatBanco = 0;
if(it.hasNext()) {
NfeConsultaSta nfeConsultaBanco = (NfeConsultaSta)it.next();
codStatBanco = nfeConsultaBanco.getCodStatus();
}

//Verifica se houve modifica��o no �ltimo status
if(nfeConsultaStaSefaz.getCodStatus() != codStatBanco) {
//Grava novo status no banco
ServiceDao.getInstance().saveStatUf(nfeConsultaStaSefaz);
}
z++;
}

}
catch(Exception e) {
log.error(e);
}

}

//This is the method that call the createTimer
public boolean start() {
try {

log.info("------------------------");
log.info("Starting nfe-alliance...");
log.info("------------------------");

log.info("- create session factory -");
//SessionFactory factory = new Configuration().configure().buildSessionFactory();
new Configuration().configure().buildSessionFactory();


ConsultaStatusInfo info_status = new ConsultaStatusInfo();

ConsultaStatusTimerLocalHome consultaHome = (ConsultaStatusTimerLocalHome) ServiceLocator
.getInstance().getLocalHome(EJB_STA);

ConsultaStatusTimerLocal status = consultaHome.create();

log.info("Inicializando consulta de status na Sefaz");
//Here I call the createTimer
status.createTimer(180000, info_status);



The error is below:

6:46:36,542 INFO [Server] Starting JBoss (MX MicroKernel)...
16:46:36,542 INFO [Server] Release ID: JBoss [Zion] 4.0.5.GA (build: CVSTag=Branch_4_0 date=200610162339)
16:46:36,542 INFO [Server] Home Dir: C:\java\jboss-4.0.5.GA
16:46:36,542 INFO [Server] Home URL: file:/C:/java/jboss-4.0.5.GA/
16:46:36,542 INFO [Server] Patch URL: null
16:46:36,542 INFO [Server] Server Name: default
16:46:36,542 INFO [Server] Server Home Dir: C:\java\jboss-4.0.5.GA\server\default
16:46:36,558 INFO [Server] Server Home URL: file:/C:/java/jboss-4.0.5.GA/server/default/
16:46:36,558 INFO [Server] Server Log Dir: C:\java\jboss-4.0.5.GA\server\default\log
16:46:36,573 INFO [Server] Server Temp Dir: C:\java\jboss-4.0.5.GA\server\default\tmp
16:46:36,573 INFO [Server] Root Deployment Filename: jboss-service.xml
16:46:37,620 INFO [ServerInfo] Java version: 1.5.0_06,Sun Microsystems Inc.
16:46:37,620 INFO [ServerInfo] Java VM: Java HotSpot(TM) Client VM 1.5.0_06-b05,Sun Microsystems Inc.
16:46:37,620 INFO [ServerInfo] OS-System: Windows 2000 5.0,x86
16:46:38,151 INFO [Server] Core system initialized
16:46:40,667 INFO [WebService] Using RMI server codebase: http://e77:8083/
16:46:40,698 INFO [Log4jService$URLWatchTimerTask] Configuring from URL: resource:log4j.xml
16:46:46,261 INFO [ServiceEndpointManager] WebServices: jbossws-1.0.3.SP1 (date=200609291417)
16:46:47,776 INFO [Embedded] Catalina naming disabled
16:46:47,839 INFO [ClusterRuleSetFactory] Unable to find a cluster rule set in the classpath. Will load the default rule set.
16:46:47,839 INFO [ClusterRuleSetFactory] Unable to find a cluster rule set in the classpath. Will load the default rule set.
16:46:48,214 INFO [Http11BaseProtocol] Initializing Coyote HTTP/1.1 on http-0.0.0.0-8080
16:46:48,214 INFO [Catalina] Initialization processed in 375 ms
16:46:48,214 INFO [StandardService] Starting service jboss.web
16:46:48,214 INFO [StandardEngine] Starting Servlet Engine: Apache Tomcat/5.5.20
16:46:48,261 INFO [StandardHost] XML validation disabled
16:46:48,308 INFO [Catalina] Server startup in 94 ms
16:46:48,714 INFO [TomcatDeployer] deploy, ctxPath=/invoker, warUrl=.../deploy/http-invoker.sar/invoker.war/
16:46:49,058 INFO [WebappLoader] Dual registration of jndi stream handler: factory already defined
16:46:49,589 INFO [TomcatDeployer] deploy, ctxPath=/, warUrl=.../deploy/jbossweb-tomcat55.sar/ROOT.war/
16:46:49,761 INFO [TomcatDeployer] deploy, ctxPath=/jbossws, warUrl=.../tmp/deploy/tmp28543jbossws-context-exp.war/
16:46:49,933 INFO [TomcatDeployer] deploy, ctxPath=/jbossmq-httpil, warUrl=.../deploy/jms/jbossmq-httpil.sar/jbossmq-httpil.war/
16:46:51,120 INFO [TomcatDeployer] deploy, ctxPath=/web-console, warUrl=.../deploy/management/console-mgr.sar/web-console.war/
16:46:52,011 INFO [MailService] Mail Service bound to java:/Mail
16:46:52,245 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-ha-local-jdbc.rar
16:46:52,276 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-ha-xa-jdbc.rar
16:46:52,308 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-local-jdbc.rar
16:46:52,339 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-xa-jdbc.rar
16:46:52,386 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jms/jms-ra.rar
16:46:52,417 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/mail-ra.rar
16:46:54,073 INFO [WrapperDataSourceService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=DefaultDS' to JNDI name 'java efaultDS'
16:46:54,401 INFO [A] Bound to JNDI name: queue/A
16:46:54,401 INFO [B] Bound to JNDI name: queue/B
16:46:54,401 INFO [C] Bound to JNDI name: queue/C
16:46:54,401 INFO [D] Bound to JNDI name: queue/D
16:46:54,401 INFO [ex] Bound to JNDI name: queue/ex
16:46:54,401 INFO [CancelamentoOut] Bound to JNDI name: jms/mdb/CancelamentoOut
16:46:54,401 INFO [CancelamentoIn] Bound to JNDI name: jms/mdb/CancelamentoIn
16:46:54,401 INFO [ConsultaEnvioOut] Bound to JNDI name: jms/mdb/ConsultaEnvioOut
16:46:54,401 INFO [ConsultaEnvioIn] Bound to JNDI name: jms/mdb/ConsultaEnvioIn
16:46:54,417 INFO [EnvioOut] Bound to JNDI name: jms/mdb/EnvioOut
16:46:54,417 INFO [EnvioIn] Bound to JNDI name: jms/mdb/EnvioIn
16:46:54,417 INFO [FileReceiverOut] Bound to JNDI name: jms/mdb/FileReceiverOut
16:46:54,417 INFO [InutilizacaoOut] Bound to JNDI name: jms/mdb/InutilizacaoOut
16:46:54,417 INFO [InutilizacaoIn] Bound to JNDI name: jms/mdb/InutilizacaoIn
16:46:54,448 INFO [testTopic] Bound to JNDI name: topic/testTopic
16:46:54,448 INFO [securedTopic] Bound to JNDI name: topic/securedTopic
16:46:54,448 INFO [testDurableTopic] Bound to JNDI name: topic/testDurableTopic
16:46:54,464 INFO [testQueue] Bound to JNDI name: queue/testQueue
16:46:54,526 INFO [UILServerILService] JBossMQ UIL service available at : /0.0.0.0:8093
16:46:54,589 INFO [DLQ] Bound to JNDI name: queue/DLQ
16:46:54,776 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=ConnectionFactoryBinding,name=JmsXA' to JNDI name 'java:JmsXA'
16:46:54,886 INFO [WrapperDataSourceService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=jdbc/OracleNfeDS' to JNDI name 'java:jdbc/OracleNfeDS'
16:46:54,948 INFO [TomcatDeployer] deploy, ctxPath=/jmx-console, warUrl=.../deploy/jmx-console.war/
16:46:55,151 INFO [EARDeployer] Init J2EE application: file:/C:/java/jboss-4.0.5.GA/server/default/deploy/HelloWorld.ear/
16:46:55,464 INFO [EjbModule] Deploying HelloWorld
16:46:55,542 INFO [EjbModule] Deploying LogMessage
16:46:55,683 INFO [BaseLocalProxyFactory] Bound EJB LocalHome 'HelloWorld' to jndi 'HelloWorldLocal'
16:46:55,776 WARN [JMSContainerInvoker] destination not found: queue/LogMessage reason: javax.naming.NameNotFoundException: LogMessage not bound
16:46:55,776 WARN [JMSContainerInvoker] creating a new temporary destination: queue/LogMessage
16:46:55,776 INFO [LogMessage] Bound to JNDI name: queue/LogMessage
16:46:55,901 INFO [EJBDeployer] Deployed: file:/C:/java/jboss-4.0.5.GA/server/default/deploy/HelloWorld.ear/HelloWorldEJB.jar/
16:46:56,011 INFO [TomcatDeployer] deploy, ctxPath=/HelloWorldWeb, warUrl=.../deploy/HelloWorld.ear/HelloWorldWeb.war/
16:46:56,136 INFO [EARDeployer] Started J2EE application: file:/C:/java/jboss-4.0.5.GA/server/default/deploy/HelloWorld.ear/
16:46:56,136 INFO [EARDeployer] Init J2EE application: file:/C:/java/jboss-4.0.5.GA/server/default/deploy/nfe-alliance-ear.ear/
16:46:56,495 INFO [EjbModule] Deploying EnvioLoteTimer
16:46:56,511 INFO [EjbModule] Deploying StartupMonitor
16:46:56,558 INFO [EjbModule] Deploying ConsultaStatusTimer
16:46:56,558 INFO [EjbModule] Deploying CancelamentoTimer
16:46:56,558 INFO [EjbModule] Deploying ConsultaEnvioLoteTimer
16:46:56,558 INFO [EjbModule] Deploying DirectoryMonitor
16:46:56,573 INFO [EjbModule] Deploying CancelamentoMDB
16:46:56,589 INFO [EjbModule] Deploying InutilizacaoFileReceiverMDB
16:46:56,589 INFO [EjbModule] Deploying ConsultaEnvioLoteMDB
16:46:56,604 INFO [EjbModule] Deploying InutilizacaoMDB
16:46:56,604 INFO [EjbModule] Deploying EnvioLoteMDB
16:46:56,948 WARN [StatelessSessionContainer] No resource manager found for jms/mdb/EnvioIn
16:46:56,948 WARN [StatelessSessionContainer] No resource manager found for jms/mdb/ConnectionFactory
16:46:56,964 INFO [BaseLocalProxyFactory] Bound EJB LocalHome 'EnvioLoteTimer' to jndi 'ejb/EnvioTimerBean'
16:46:56,979 INFO [BaseLocalProxyFactory] Bound EJB LocalHome 'StartupMonitor' to jndi 'ejb/StartupMonitorBean'
16:46:56,979 INFO [BaseLocalProxyFactory] Bound EJB LocalHome 'ConsultaStatusTimer' to jndi 'ejb/ConsultaStatusTimerBean'
16:46:57,026 WARN [StatelessSessionContainer] No resource manager found for jms/mdb/ConnectionFactory
16:46:57,026 WARN [StatelessSessionContainer] No resource manager found for jms/mdb/CancelamentoIn
16:46:57,042 INFO [BaseLocalProxyFactory] Bound EJB LocalHome 'CancelamentoTimer' to jndi 'ejb/CancelamentoTimerBean'
16:46:57,042 WARN [StatelessSessionContainer] No resource manager found for jms/mdb/ConsultaEnvioOut
16:46:57,042 WARN [StatelessSessionContainer] No resource manager found for jms/mdb/ConnectionFactory
16:46:57,058 INFO [BaseLocalProxyFactory] Bound EJB LocalHome 'ConsultaEnvioLoteTimer' to jndi 'ejb/ConsultaEnvioTimerBean'
16:46:57,058 WARN [StatelessSessionContainer] No resource manager found for jms/mdb/EnvioIn
16:46:57,058 WARN [StatelessSessionContainer] No resource manager found for jms/mdb/ConnectionFactory
16:46:57,058 WARN [StatelessSessionContainer] No resource manager found for jms/mdb/InutilizacaoIn
16:46:57,058 WARN [StatelessSessionContainer] No resource manager found for jms/mdb/CancelamentoIn
16:46:57,058 INFO [BaseLocalProxyFactory] Bound EJB LocalHome 'DirectoryMonitor' to jndi 'ejb/DirectoryMonitorBean'
16:46:57,526 INFO [EJBDeployer] Deployed: file:/C:/java/jboss-4.0.5.GA/server/default/deploy/nfe-alliance-ear.ear/nfe-alliance-ejb.jar/
16:46:57,589 INFO [TomcatDeployer] deploy, ctxPath=/nfe, warUrl=.../deploy/nfe-alliance-ear.ear/nfe-alliance-web.war/
16:46:57,901 INFO [ContextLoader] Root WebApplicationContext: initialization started
16:46:57,901 INFO [[/nfe]] Loading Spring root WebApplicationContext
16:46:58,058 INFO [XmlBeanDefinitionReader] Loading XML bean definitions from ServletContext resource [/WEB-INF/applicationContext.xml]
16:46:58,073 INFO [XmlWebApplicationContext] Bean factory for application context [Root WebApplicationContext]: org.springframework.beans.factory.support.DefaultListableBeanFactory defining beans []; root of BeanFactory hierarchy
16:46:58,104 INFO [XmlWebApplicationContext] No beans defined in application context [Root WebApplicationContext]
16:46:58,104 INFO [CollectionFactory] JDK 1.4+ collections available
16:46:58,136 INFO [CollectionFactory] Commons Collections 3.x available
16:46:58,136 INFO [XmlWebApplicationContext] Unable to locate MessageSource with name 'messageSource': using default [org.springframework.context.support.DelegatingMessageSource@4be8b8]
16:46:58,136 INFO [XmlWebApplicationContext] Unable to locate ApplicationEventMulticaster with name 'applicationEventMulticaster': using default [org.springframework.context.event.SimpleApplicationEventMulticaster@10a7be0]
16:46:58,151 INFO [UiApplicationContextUtils] Unable to locate ThemeSource with name 'themeSource': using default [org.springframework.ui.context.support.ResourceBundleThemeSource@118d722]
16:46:58,151 INFO [DefaultListableBeanFactory] Pre-instantiating singletons in factory [org.springframework.beans.factory.support.DefaultListableBeanFactory defining beans []; root of BeanFactory hierarchy]
16:46:58,151 INFO [ContextLoader] Using context class [org.springframework.web.context.support.XmlWebApplicationContext] for root WebApplicationContext
16:46:58,151 INFO [ContextLoader] Root WebApplicationContext: initialization completed in 250 ms
16:46:58,151 INFO [STDOUT] Iniciando o contexto... Iniciando os monitores
16:46:58,151 INFO [StartupMonitorBean] ------------------------
16:46:58,151 INFO [StartupMonitorBean] Starting nfe-alliance...
16:46:58,151 INFO [StartupMonitorBean] ------------------------
16:46:58,151 INFO [StartupMonitorBean] - create session factory -
16:46:58,245 INFO [Environment] Hibernate 3.2.0.ga
16:46:58,245 INFO [Environment] hibernate.properties not found
16:46:58,261 INFO [Environment] Bytecode provider name : cglib
16:46:58,276 INFO [Environment] using JDK 1.4 java.sql.Timestamp handling
16:46:58,479 INFO [Configuration] configuring from resource: /hibernate.cfg.xml
16:46:58,479 INFO [Configuration] Configuration resource: /hibernate.cfg.xml
16:46:58,979 INFO [Configuration] Reading mappings from resource: com/alliance/nfe/reveng/Diretorio.hbm.xml
16:46:59,167 INFO [HbmBinder] Mapping class: com.alliance.nfe.reveng.Diretorio -> DIRETORIO
16:46:59,245 INFO [Configuration] Reading mappings from resource: com/alliance/nfe/reveng/ProxyConfig.hbm.xml
16:46:59,261 INFO [HbmBinder] Mapping class: com.alliance.nfe.reveng.ProxyConfig -> PROXY_CONFIG
16:46:59,261 INFO [Configuration] Reading mappings from resource: com/alliance/nfe/reveng/Service.hbm.xml
16:46:59,276 INFO [HbmBinder] Mapping class: com.alliance.nfe.reveng.Service -> SERVICE
16:46:59,292 INFO [Configuration] Reading mappings from resource: com/alliance/nfe/reveng/ServiceLog.hbm.xml
16:46:59,308 INFO [HbmBinder] Mapping class: com.alliance.nfe.reveng.ServiceLog -> SERVICE_LOG
16:46:59,495 INFO [Configuration] Reading mappings from resource: com/alliance/nfe/reveng/Request.hbm.xml
16:46:59,511 INFO [HbmBinder] Mapping class: com.alliance.nfe.reveng.Request -> REQUEST
16:46:59,511 INFO [Configuration] Reading mappings from resource: com/alliance/nfe/reveng/Response.hbm.xml
16:46:59,526 INFO [HbmBinder] Mapping class: com.alliance.nfe.reveng.Response -> RESPONSE
16:46:59,526 INFO [Configuration] Reading mappings from resource: com/alliance/nfe/reveng/NfeRecepcaoLote.hbm.xml
16:46:59,542 INFO [HbmBinder] Mapping class: com.alliance.nfe.reveng.NfeRecepcaoLote -> NFE_RECEPCAO_LOTE
16:46:59,542 INFO [Configuration] Reading mappings from resource: com/alliance/nfe/reveng/NfeRecepcaoNota.hbm.xml
16:46:59,558 INFO [HbmBinder] Mapping class: com.alliance.nfe.reveng.NfeRecepcaoNota -> NFE_RECEPCAO_NOTA
16:46:59,558 INFO [Configuration] Reading mappings from resource: com/alliance/nfe/reveng/NfeConsultaSta.hbm.xml
16:46:59,573 INFO [HbmBinder] Mapping class: com.alliance.nfe.reveng.NfeConsultaSta -> NFE_CONSULTA_STA
16:46:59,573 INFO [Configuration] Configured SessionFactory:
16:46:59,573 INFO [HbmBinder] Mapping collection: com.alliance.nfe.reveng.Service.serviceLogs -> SERVICE_LOG
16:46:59,589 INFO [HbmBinder] Mapping collection: com.alliance.nfe.reveng.Request.serviceLogs -> SERVICE_LOG
16:46:59,589 INFO [HbmBinder] Mapping collection: com.alliance.nfe.reveng.Response.serviceLogs -> SERVICE_LOG
16:46:59,589 INFO [HbmBinder] Mapping collection: com.alliance.nfe.reveng.NfeRecepcaoLote.notas -> NFE_RECEPCAO_NOTA
16:46:59,604 INFO [NamingHelper] JNDI InitialContext properties:{}
16:46:59,604 INFO [DatasourceConnectionProvider] Using datasource: java:/jdbc/OracleNfeDS
16:47:00,354 INFO [SettingsFactory] RDBMS: Oracle, version: Oracle Database 10g Enterprise Edition Release 10.1.0.5.0 - Production
With the Partitioning, Real Application Clusters, OLAP and Data Mining options
16:47:00,354 INFO [SettingsFactory] JDBC driver: Oracle JDBC driver, version: 10.1.0.2.0
16:47:00,464 INFO [Dialect] Using dialect: org.hibernate.dialect.Oracle9Dialect
16:47:00,479 INFO [TransactionFactoryFactory] Using default transaction strategy (direct JDBC transactions)
16:47:00,495 INFO [TransactionManagerLookupFactory] No TransactionManagerLookup configured (in JTA environment, use of read-write or transactional second-level cache is not recommended)
16:47:00,495 INFO [SettingsFactory] Automatic flush during beforeCompletion(): disabled
16:47:00,495 INFO [SettingsFactory] Automatic session close at end of transaction: disabled
16:47:00,495 INFO [SettingsFactory] JDBC batch size: 15
16:47:00,495 INFO [SettingsFactory] JDBC batch updates for versioned data: disabled
16:47:00,495 INFO [SettingsFactory] Scrollable result sets: enabled
16:47:00,495 INFO [SettingsFactory] JDBC3 getGeneratedKeys(): disabled
16:47:00,495 INFO [SettingsFactory] Connection release mode: auto
16:47:00,495 INFO [SettingsFactory] Maximum outer join fetch depth: 3
16:47:00,495 INFO [SettingsFactory] Default batch fetch size: 1
16:47:00,495 INFO [SettingsFactory] Generate SQL with comments: disabled
16:47:00,495 INFO [SettingsFactory] Order SQL updates by primary key: disabled
16:47:00,495 INFO [SettingsFactory] Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
16:47:00,511 INFO [ASTQueryTranslatorFactory] Using ASTQueryTranslatorFactory
16:47:00,511 INFO [SettingsFactory] Query language substitutions: {}
16:47:00,511 INFO [SettingsFactory] JPA-QL strict compliance: disabled
16:47:00,511 INFO [SettingsFactory] Second-level cache: enabled
16:47:00,511 INFO [SettingsFactory] Query cache: disabled
16:47:00,511 INFO [SettingsFactory] Cache provider: org.hibernate.cache.NoCacheProvider
16:47:00,511 INFO [SettingsFactory] Optimize cache for minimal puts: disabled
16:47:00,511 INFO [SettingsFactory] Structured second-level cache entries: disabled
16:47:00,526 INFO [SettingsFactory] Statistics: disabled
16:47:00,526 INFO [SettingsFactory] Deleted entity synthetic identifier rollback: disabled
16:47:00,526 INFO [SettingsFactory] Default entity-mode: pojo
16:47:00,651 INFO [SessionFactoryImpl] building session factory
16:47:01,729 INFO [SessionFactoryObjectFactory] Factory name: HibernateSessionFactory
16:47:01,729 INFO [NamingHelper] JNDI InitialContext properties:{}
16:47:01,729 INFO [SessionFactoryObjectFactory] Bound factory to JNDI name: HibernateSessionFactory
16:47:01,729 WARN [SessionFactoryObjectFactory] InitialContext did not implement EventContext
16:47:03,011 INFO [StartupMonitorBean] - create directory monitor -
16:47:03,011 INFO [StartupMonitorBean] Inicializando consulta de status na Sefaz
16:47:03,011 INFO [ConsultaStatusTimerBean] Create Status Timer. Info = com.alliance.nfe.info.ConsultaStatusInfo@1871a69
16:47:03,089 INFO [DirectoryMonitorBean] Create Monitor Timer. Info = com.alliance.nfe.info.MonitorInfo@1a2335d[directory=C:\toios\FTP\nfe\cancelamento-nfe\in,pollIntervalMillis=10000,command=CANC_NFE]
16:47:03,089 INFO [DirectoryMonitorBean] Create Monitor Timer. Info = com.alliance.nfe.info.MonitorInfo@ab48a7[directory=C:\toios\FTP\nfe\envio-nfe\in,pollIntervalMillis=10000,command=NFE]
16:47:03,089 INFO [DirectoryMonitorBean] Create Monitor Timer. Info = com.alliance.nfe.info.MonitorInfo@15538e5[directory=C:\toios\FTP\nfe\envio-lote-nfe\in,pollIntervalMillis=10000,command=ENVI_NFE]
16:47:03,089 INFO [DirectoryMonitorBean] Create Monitor Timer. Info = com.alliance.nfe.info.MonitorInfo@95868c[directory=C:\toios\FTP\nfe\consulta-status-servico\in,pollIntervalMillis=10000,command=CONS_STAT]
16:47:03,089 INFO [DirectoryMonitorBean] Create Monitor Timer. Info = com.alliance.nfe.info.MonitorInfo@2fdbb1[directory=C:\toios\FTP\nfe\inutilizacao-nfe\in,pollIntervalMillis=10000,command=INUT_NFE]
16:47:03,089 INFO [DirectoryMonitorBean] Create Monitor Timer. Info = com.alliance.nfe.info.MonitorInfo@4e9f7f[directory=C:\toios\FTP\nfe\consulta-nfe\in,pollIntervalMillis=10000,command=CONS_NFE]
16:47:03,089 INFO [StartupMonitorBean] nfe-alliance ready...
16:47:03,089 INFO [STDOUT] Monitores iniciados!
16:47:03,276 INFO [ResponseOverrideFilter] Filter initialized. Response buffering is enabled
16:47:03,339 INFO [EARDeployer] Started J2EE application: file:/C:/java/jboss-4.0.5.GA/server/default/deploy/nfe-alliance-ear.ear/
16:47:03,448 INFO [Http11BaseProtocol] Starting Coyote HTTP/1.1 on http-0.0.0.0-8080
16:47:03,573 INFO [ChannelSocket] JK: ajp13 listening on /0.0.0.0:8009
16:47:03,604 INFO [JkMain] Jk running ID=0 time=0/78 config=null
16:47:03,620 INFO [Server] JBoss (MX MicroKernel) [4.0.5.GA (build: CVSTag=Branch_4_0 date=200610162339)] Started in 27s:47ms
16:47:56,729 ERROR [ConsultaStatusTimerBean] java.lang.NullPointerException

Does anybody have any idea how to arrange this error?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!