forum.bitel.ru http://forum.bitel.ru/ |
|
При обновлении на 7.1 javax.naming.NameNotFoundException http://forum.bitel.ru/viewtopic.php?f=44&t=12863 |
Страница 1 из 1 |
Автор: | georgdts [ 14 апр 2018, 15:54 ] |
Заголовок сообщения: | При обновлении на 7.1 javax.naming.NameNotFoundException |
Обновляю с 6.1 на 7.1, в inet получаю такую ошибку, как её исправить? Код: 04-14/12:40:30 INFO [main] DefaultServerSetup - Binding javax.jms.ConnectionFactory[org.apache.activemq.ActiveMQConnectionFactory@1130520d] to java:comp/env/mq/connectionFactory
04-14/12:40:30 INFO [main] DefaultServerSetup - Init DB connection pools 04-14/12:40:30 INFO [main] DefaultServerSetup - Binding JDBC pool "master" to java:comp/env/jdbc/master 04-14/12:40:30 INFO [main] AnnotatedMBean - Register MBean ru.bitel.bgbilling.server.util:type=DatabaseConnectionPool,name=master 04-14/12:40:31 INFO [main] DefaultServerSetup - Init trash pools... mq 04-14/12:40:31 INFO [EventProcessor-init] EventProcessor - Init EventProcessor MQ connection factory... mq 04-14/12:40:32 INFO [ActiveMQ Task-1] FailoverTransport - Successfully connected to tcp://10.0.0.77:61616 access 04-14/12:40:33 INFO [main] InetApplication - rootDeviceId=10 access 04-14/12:40:33 INFO [main] Setup - Load config for mid=5 access 04-14/12:40:34 INFO [main] InetOptionRuntimeMap - Loading inetOptionRuntimeMap for moduleId:5 script 04-14/12:40:34 INFO [main] ScriptEventListener - Starting ScriptEventListener... script 04-14/12:40:34 INFO [main] ScriptEventListener - Relinking script functions. script 04-14/12:40:35 INFO [main] ScriptEventListener - Starting DynamicScriptEventListener... access 04-14/12:40:35 INFO [main] AnnotatedMBean - Register MBean ru.bitel.bgbilling.modules.inet.access:type=Access radius 04-14/12:40:35 INFO [main] radius - Eap not enabled (keystore file not loaded). radius 04-14/12:40:35 INFO [main] AnnotatedMBean - Register MBean ru.bitel.bgbilling.modules.inet.radius:type=InetRadiusProcessor radius 04-14/12:40:36 INFO [main] AnnotatedMBean - Register MBean ru.bitel.bgbilling.modules.inet.radius:type=InetRadiusListener dhcp 04-14/12:40:36 INFO [main] AnnotatedMBean - Register MBean ru.bitel.bgbilling.modules.inet.dhcp:type=InetDhcpProcessor2 dhcp 04-14/12:40:36 INFO [main] AnnotatedMBean - Register MBean ru.bitel.bgbilling.kernel.network.dhcp:type=DhcpListener access 04-14/12:40:36 INFO [main] Application - Init ru.bitel.bgbilling.modules.inet.access.Access@7d151a access 04-14/12:40:36 INFO [main] InetDeviceRuntimeMap - (Re)loading InetDeviceRuntimeMap access 04-14/12:40:36 INFO [main] InetDeviceMap - (Re)loading InetDeviceMap access 04-14/12:40:37 INFO [main] InetDeviceRuntime - Reload protocolHandler class for device: pgISG: pgISG access 04-14/12:40:37 INFO [main] InetDeviceRuntime - Reload SA classes for device: pgISG: pgISG access 04-14/12:40:37 INFO [main] InetDeviceRuntime - Reload protocolHandler class for device: ciscoISG: nas04.x.ru [10.0.0.4] access 04-14/12:40:39 INFO [main] ISGProtocolHandler - ISG port length: 4 access 04-14/12:40:39 INFO [main] InetDeviceRuntime - Reload SA classes for device: ciscoISG: nas04.x.ru [10.0.0.4] access 04-14/12:40:39 ERROR [main] InetDeviceRuntime - Name [processor] is not bound in this Context. Unable to find [processor]. javax.naming.NameNotFoundException: Name [processor] is not bound in this Context. Unable to find [processor]. at org.apache.naming.NamingContext.lookup(NamingContext.java:816) at org.apache.naming.NamingContext.lookup(NamingContext.java:173) at ru.bitel.bgbilling.kernel.container.resource.ResourceManager.inject(ResourceManager.java:176) at ru.bitel.bgbilling.kernel.container.resource.ResourceManager.inject(ResourceManager.java:107) at ru.bitel.bgbilling.modules.inet.runtime.device.InetDeviceRuntime.reloadScripts(InetDeviceRuntime.java:388) at ru.bitel.bgbilling.modules.inet.runtime.device.InetDeviceRuntime.<init>(InetDeviceRuntime.java:246) at ru.bitel.bgbilling.modules.inet.runtime.device.InetDeviceRuntimeMap.loadDevice(InetDeviceRuntimeMap.java:476) at ru.bitel.bgbilling.modules.inet.runtime.device.InetDeviceRuntimeMap.loadDevice(InetDeviceRuntimeMap.java:487) at ru.bitel.bgbilling.modules.inet.runtime.device.InetDeviceRuntimeMap.load(InetDeviceRuntimeMap.java:257) at ru.bitel.bgbilling.modules.inet.runtime.InetApplication.init(InetApplication.java:311) at ru.bitel.bgbilling.modules.inet.access.Access.init(Access.java:134) at ru.bitel.bgbilling.kernel.application.server.Application.application(Application.java:294) at ru.bitel.bgbilling.kernel.application.server.Application.<init>(Application.java:174) at ru.bitel.bgbilling.kernel.application.server.Application.main(Application.java:883) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at ru.bitel.common.bootstrap.Boot.boot(Boot.java:129) at ru.bitel.common.bootstrap.Boot.main(Boot.java:178) access 04-14/12:40:39 INFO [main] InetDeviceRuntimeMap - Load inetDeviceRuntimeMap complete. Loaded 2 inetDevices. access 04-14/12:40:39 INFO [main] Access - childrenDeviceIds=[10, 11] access 04-14/12:40:39 INFO [main] InetServRuntimeMap - Loading inetServs from database. access 04-14/12:40:40 WARN [inetServ-load-p-12-t-2] AbstractTariffTreeBuilder - Root of tree not found for tree:88 module:5 access 04-14/12:40:40 WARN [inetServ-load-p-12-t-2] AbstractTariffTreeBuilder - Root of tree not found for tree:220 module:5 access 04-14/12:40:40 INFO [inetServ-load-p-12-t-2] InetServRuntimeMap - Adding InetServRuntime: 15 access 04-14/12:40:40 INFO [inetServ-load-p-12-t-2] InetServRuntimeMap - ContractId: 1408; status: 0; servId: 15 |
Автор: | georgdts [ 16 апр 2018, 17:09 ] |
Заголовок сообщения: | Re: При обновлении на 7.1 javax.naming.NameNotFoundException |
up |
Автор: | Amir [ 16 апр 2018, 17:11 ] |
Заголовок сообщения: | Re: При обновлении на 7.1 javax.naming.NameNotFoundException |
Похоже у вас в каком-то ServiceActivator или ProtocolHandler указано @Inject( name = "processor" ). И ранее в inet-access.xml было указано <bean name="processor" class="ru.bitel.bgbilling.modules.inet.radius.InetRadiusProcessor"/> Поэтому работало. В новом inet-access.xml указано вместо processor - radiusProcessor. Рекомендую в дин. классе поменять с processor на radiusProcessor. |
Автор: | georgdts [ 16 апр 2018, 18:09 ] |
Заголовок сообщения: | Re: При обновлении на 7.1 javax.naming.NameNotFoundException |
У меня ISG, дин. классов самописных нет. Два активатора: ru.bitel.b.m.inet.dyn.device.cisco.ISGServiceActivator ru.bitel.b.m.inet.dyn.device.cisco.ISGProtocolHandler В обоих "@Inject( name = "processor" )" не встречается. Единственно где нашёл: ru.bitel.b.m.inet.dyn.device.radius.AbstractRadiusServiceActivator Код: @Resource(name = "processor") InetRadiusProcessor processor; @Override public Object connect() throws Exception { if( logCoA || logPoD ) { final Nas<?, ?, ?> nas = processor.getNasList().get( deviceId ); radiusClient.setNas( nas ); } return null; } Это оно? |
Автор: | Amir [ 16 апр 2018, 18:33 ] |
Заголовок сообщения: | Re: При обновлении на 7.1 javax.naming.NameNotFoundException |
Хм, похоже недавно добавили, в ближайший час выложим обновление (этого класса). В принципе, если поменять processor на radiusProcessor - должно заработать. |
Страница 1 из 1 | Часовой пояс: UTC + 5 часов [ Летнее время ] |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |