forum.bitel.ru
http://forum.bitel.ru/

Ошибки в BGInetAccounting
http://forum.bitel.ru/viewtopic.php?f=44&t=5755
Страница 1 из 1

Автор:  iONE [ 02 авг 2011, 14:13 ]
Заголовок сообщения:  Ошибки в BGInetAccounting

При поступлении radius пакетов Accounting-Request валятся исключения.

Код:
08-02/12:05:14  INFO [radiusListener-p-5-t-1] InetRadiusProcessor - Creating NasConnection from radius accounting packet
08-02/12:05:14  INFO [radiusListener-p-5-t-1] Accounting - Write new connection to DB
08-02/12:05:15 ERROR [radiusListener-p-5-t-1] InetNas - com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException: Column 'calledStationId' cannot be null
ru.bitel.bgbilling.common.BGException: com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException: Column 'calledStationId' cannot be null
        at ru.bitel.bgbilling.modules.inet.api.server.bean.InetConnectionDao.insert(InetConnectionDao.java:72)
        at ru.bitel.bgbilling.modules.inet.accounting.Accounting.newConnectionCallRuntime(Accounting.java:673)
        at ru.bitel.bgbilling.modules.inet.accounting.Accounting.connectionCallStart(Accounting.java:994)
        at ru.bitel.bgbilling.modules.inet.radius.InetRadiusProcessor.getNasConnection(InetRadiusProcessor.java:699)
        at ru.bitel.bgbilling.modules.inet.radius.InetNas.startConnection(InetNas.java:200)
        at ru.bitel.bgbilling.modules.inet.radius.InetNas.startConnection(InetNas.java:1)
        at ru.bitel.bgbilling.kernel.network.radius.RadiusProcessor.accounting(RadiusProcessor.java:485)
        at ru.bitel.bgbilling.kernel.network.radius.RadiusProcessor.accountingRequest(RadiusProcessor.java:430)
        at ru.bitel.bgbilling.modules.inet.radius.InetRadiusListenerWorker.accountingRequest(InetRadiusListenerWorker.java:125)
        at ru.bitel.bgbilling.modules.inet.radius.InetRadiusListenerWorker.accountingRequest(InetRadiusListenerWorker.java:1)
        at ru.bitel.bgbilling.kernel.network.radius.RadiusListenerWorker.processPacket(RadiusListenerWorker.java:201)
        at ru.bitel.bgbilling.kernel.network.radius.RadiusListenerWorker.runImpl(RadiusListenerWorker.java:87)
        at ru.bitel.common.worker.WorkerTask.run(WorkerTask.java:74)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
        at java.lang.Thread.run(Thread.java:662)
        at ru.bitel.common.worker.WorkerThread.run(WorkerThread.java:40)
Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException: Column 'calledStationId' cannot be null
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
        at com.mysql.jdbc.Util.handleNewInstance(Util.java:407)
        at com.mysql.jdbc.Util.getInstance(Util.java:382)
        at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1039)
        at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3593)
        at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3525)
        at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1986)
        at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2140)
        at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2626)
        at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:2111)
        at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2407)
        at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2325)
        at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2310)
        at org.apache.commons.dbcp.DelegatingPreparedStatement.executeUpdate(DelegatingPreparedStatement.java:105)
        at ru.bitel.bgbilling.modules.inet.api.server.bean.InetConnectionDao.insert(InetConnectionDao.java:66)
        ... 16 more


Информация о версии:

Клиент: вер. 5.2 сборка 662 от 01.08.2011 17:40:27
os:Windows XP; java:Sun Microsystems Inc., v.1.6.0_26
Сервер: вер. 5.2 сборка 816 от 01.08.2011 17:40:11
os:Linux; java:Sun Microsystems Inc., v.1.6.0_26

card вер. 5.2 сборка 147 от 18.07.2011 12:04:42
inet вер. 5.2 сборка 469 от 01.08.2011 12:19:50

Автор:  Amir [ 02 авг 2011, 18:59 ]
Заголовок сообщения:  Re: Ошибки в BGInetAccounting

Выложили обновление, должно помочь.
Но похоже у вас в mysql стоит STRICT_MODE, а, хотя он мне и нравится, биллинг разрабатывается без STRICT_MODE, т.е. в этом режиме могут возникнуть проблемы в других местах.

Автор:  iONE [ 03 авг 2011, 00:51 ]
Заголовок сообщения:  Re: Ошибки в BGInetAccounting

Код:
08-02/22:49:12  INFO [radiusListener-p-5-t-1] InetRadiusProcessor - Creating NasConnection from radius accounting packet
08-02/22:49:12  INFO [radiusListener-p-5-t-1] Accounting - Write new connection to DB
08-02/22:49:12 ERROR [radiusListener-p-5-t-1] InetNas - com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException: Column 'ipAddress' cannot be null
ru.bitel.bgbilling.common.BGException: com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException: Column 'ipAddress' cannot be null
        at ru.bitel.bgbilling.modules.inet.api.server.bean.InetConnectionDao.insert(InetConnectionDao.java:72)
        at ru.bitel.bgbilling.modules.inet.accounting.Accounting.newConnectionCallRuntime(Accounting.java:642)
        at ru.bitel.bgbilling.modules.inet.accounting.Accounting.connectionCallStart(Accounting.java:963)
        at ru.bitel.bgbilling.modules.inet.radius.InetRadiusProcessor.getNasConnection(InetRadiusProcessor.java:699)
        at ru.bitel.bgbilling.modules.inet.radius.InetNas.startConnection(InetNas.java:200)
        at ru.bitel.bgbilling.modules.inet.radius.InetNas.startConnection(InetNas.java:1)
        at ru.bitel.bgbilling.kernel.network.radius.RadiusProcessor.accounting(RadiusProcessor.java:485)
        at ru.bitel.bgbilling.kernel.network.radius.RadiusProcessor.accountingRequest(RadiusProcessor.java:430)
        at ru.bitel.bgbilling.modules.inet.radius.InetRadiusListenerWorker.accountingRequest(InetRadiusListenerWorker.java:125)
        at ru.bitel.bgbilling.modules.inet.radius.InetRadiusListenerWorker.accountingRequest(InetRadiusListenerWorker.java:1)
        at ru.bitel.bgbilling.kernel.network.radius.RadiusListenerWorker.processPacket(RadiusListenerWorker.java:201)
        at ru.bitel.bgbilling.kernel.network.radius.RadiusListenerWorker.runImpl(RadiusListenerWorker.java:87)
        at ru.bitel.common.worker.WorkerTask.run(WorkerTask.java:74)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
        at java.lang.Thread.run(Thread.java:662)
        at ru.bitel.common.worker.WorkerThread.run(WorkerThread.java:40)
Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException: Column 'ipAddress' cannot be null
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
        at com.mysql.jdbc.Util.handleNewInstance(Util.java:407)
        at com.mysql.jdbc.Util.getInstance(Util.java:382)
        at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1039)
        at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3593)
        at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3525)
        at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1986)
        at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2140)
        at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2626)
        at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:2111)
        at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2407)
        at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2325)
        at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2310)
        at org.apache.commons.dbcp.DelegatingPreparedStatement.executeUpdate(DelegatingPreparedStatement.java:105)
        at ru.bitel.bgbilling.modules.inet.api.server.bean.InetConnectionDao.insert(InetConnectionDao.java:66)
        ... 16 more



Ваш совет отключить Strict mode в мускуле?

Автор:  skn [ 03 авг 2011, 01:47 ]
Заголовок сообщения:  Re: Ошибки в BGInetAccounting

да, об этом написано в руководстве по установке

Автор:  iONE [ 03 авг 2011, 10:22 ]
Заголовок сообщения:  Re: Ошибки в BGInetAccounting

grep -i strict /etc/my.cnf ничего не выводит.

Код:
root@alfa:~# mysqladmin -p variables | grep -i "sql_"
Enter password:
| sql_big_selects                 | ON                         |
| sql_mode                        |                            |
| sql_notes                       | ON                         |
| sql_warnings                    | OFF                        |

Автор:  Amir [ 03 авг 2011, 13:36 ]
Заголовок сообщения:  Re: Ошибки в BGInetAccounting

Выложили обновление.

Страница 1 из 1 Часовой пояс: UTC + 5 часов [ Летнее время ]
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/