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

Экспорт отчётов в новом менеджере платежей
http://forum.bitel.ru/viewtopic.php?f=8&t=6393
Страница 1 из 1

Автор:  iONE [ 31 янв 2012, 22:00 ]
Заголовок сообщения:  Экспорт отчётов в новом менеджере платежей

Зависает GUI клиент после нажатия на кнопку Экспорт.

Результат одинаков на разных платформах (Linux, WinXP, Vista, Win7) и версиях java.

Код:
   
   Клиент: вер. 5.1 сборка 568 от 06.07.2011 16:35:25
os:Windows Vista; java:Sun Microsystems Inc., v.1.6.0_29
   Сервер: вер. 5.1 сборка 689 от 06.07.2011 16:35:12
os:Linux; java:Sun Microsystems Inc., v.1.6.0_17

   card вер. 5.1 сборка 170 от 07.07.2011 12:48:08

Автор:  skn [ 01 фев 2012, 00:48 ]
Заголовок сообщения:  Re: Экспорт отчётов в новом менеджере платежей

попробуйте клиента в дебаге запустить и посмотрите логи, может там чего нибудь есть

Автор:  iONE [ 01 фев 2012, 22:33 ]
Заголовок сообщения:  Re: Экспорт отчётов в новом менеджере платежей

Последнее что есть в логе клиента:
Код:
https://xx.xx.xx.xx:8443/bgbilling/executer/modules.card/5/Card?wsdl -> {http://common.card.modules.bgbilling.bitel.ru/}WSCard
<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/"><S:Body><ns5:paymentListExport xmlns:ns5="http://common.card.modules.bgbilling.bitel.ru/" xmlns:common="http://common.bitel.ru" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><dealerIds>21</dealerIds><dateFrom>2012-01-30T00:00:00+04:00</dateFrom><dateTo>2012-01-30T00:00:00+04:00</dateTo><type>1</type><trans/><contract/><contractGroups>1</contractGroups></ns5:paymentListExport></S:Body></S:Envelope>


В логе сервера:
Код:
02-01/20:43:56 ERROR [Thread-9616] LoggingPrintStream - Exception in thread "Thread-9616"
02-01/20:43:56 ERROR [Thread-9616] LoggingPrintStream - java.lang.NoClassDefFoundError: au/com/bytecode/opencsv/CSVWriter
02-01/20:43:56 ERROR [Thread-9616] LoggingPrintStream -         at ru.bitel.bgbilling.modules.card.server.WSCardImpl$1.run(WSCardImpl.java:91)


Снял диалог запроса на экспорт снифером:
Код:
GET /bgbilling/executer/modules.card/5/Card?wsdl
HTTP/1.1
User-Agent: Java/1.6.0_29
Host: xxx.xxx.xxx.xxx:8080
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive

HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Type: text/xml;charset=utf-8
Transfer-Encoding: chunked
Date: Wed, 01 Feb 2012 16:43:56 GMT

1237
<?xml version="1.0" encoding="UTF-8"?><!-- Published by JAX-WS RI at http://jax-ws.dev.java.net. RI's version is JAX-WS RI 2.2-b05-. --><!-- Generated by JAX-WS RI at http://jax-ws.dev.java.net. RI's version is JAX-WS RI 2.2-b05-. --><definitions xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:wsp="http://www.w3.org/ns/ws-policy" xmlns:wsp1_2="http://schemas.xmlsoap.org/ws/2004/09/policy" xmlns:wsam="http://www.w3.org/2007/05/addressing/metadata" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://common.card.modules.bgbilling.bitel.ru/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://schemas.xmlsoap.org/wsdl/" targetNamespace="http://common.card.modules.bgbilling.bitel.ru/" name="WSCard">
<types>
<xsd:schema>
<xsd:import namespace="http://common.card.modules.bgbilling.bitel.ru/" schemaLocation="http://xxx.xxx.xxx.xxx:8080/bgbilling/executer/modules.card/5/Card?xsd=1"></xsd:import>
</xsd:schema>
<xsd:schema>
<xsd:import namespace="http://common.bitel.ru" schemaLocation="http://xxx.xxx.xxx.xxx:8080/bgbilling/executer/modules.card/5/Card?xsd=2"></xsd:import>
</xsd:schema>
</types>
<message name="paymentList">
<part name="parameters" element="tns:paymentList"></part>
</message>
<message name="paymentListResponse">
<part name="parameters" element="tns:paymentListResponse"></part>
</message>
<message name="BGException">
<part name="fault" element="tns:BGException"></part>
</message>
<message name="paymentListExport">
<part name="parameters" element="tns:paymentListExport"></part>
</message>
<message name="paymentListExportResponse">
<part name="parameters" element="tns:paymentListExportResponse"></part>
</message>
<message name="dealerList">
<part name="parameters" element="tns:dealerList"></part>
</message>
<message name="dealerListResponse">
<part name="parameters" element="tns:dealerListResponse"></part>
</message>
<portType name="WSCard">
<operation name="paymentList">
<input wsam:Action="http://common.card.modules.bgbilling.bitel.ru/WSCard/paymentListRequest" message="tns:paymentList"></input>
<output wsam:Action="http://common.card.modules.bgbilling.bitel.ru/WSCard/paymentListResponse" message="tns:paymentListResponse"></output>
<fault message="tns:BGException" name="BGException" wsam:Action="http://common.card.modules.bgbilling.bitel.ru/WSCard/paymentList/Fault/BGException"></fault>
</operation>
<operation name="paymentListExport">
<input wsam:Action="http://common.card.modules.bgbilling.bitel.ru/WSCard/paymentListExportRequest" message="tns:paymentListExport"></input>
<output wsam:Action="http://common.card.modules.bgbilling.bitel.ru/WSCard/paymentListExportResponse" message="tns:paymentListExportResponse"></output>
<fault message="tns:BGException" name="BGException" wsam:Action="http://common.card.modules.bgbilling.bitel.ru/WSCard/paymentListExport/Fault/BGException"></fault>
</operation>
<operation name="dealerList">
<input wsam:Action="http://common.card.modules.bgbilling.bitel.ru/WSCard/dealerListRequest" message="tns:dealerList"></input>
<output wsam:Action="http://common.card.modules.bgbilling.bitel.ru/WSCard/dealerListResponse" message="tns:dealerListResponse"></output>
<fault message="tns:BGException" name="BGException" wsam:Action="http://common.card.modules.bgbilling.bitel.ru/WSCard/dealerList/Fault/BGException"></fault>
</operation>
</portType>
<binding name="WSCardBinding" type="tns:WSCard">
<soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"></soap:binding>
<operation name="paymentList">
<soap:operation soapAction=""></soap:operation>
<input>
<soap:body use="literal"></soap:body>
</input>
<output>
<soap:body use="literal"></soap:body>
</output>
<fault name="BGException">
<soap:fault name="BGException" use="literal"></soap:fault>
</fault>
</operation>
<operation name="paymentListExport">
<soap:operation soapAction=""></soap:operation>
<input>
<soap:body use="literal"></soap:body>
</input>
<output>
<soap:body use="literal"></soap:body>
</output>
<fault name="BGException">
<soap:fault name="BGException" use="literal"></soap:fault>
</fault>
</operation>
<operation name="dealerList">
<soap:operation soapAction=""></soap:operation>
<input>
<soap:body use="literal"></soap:body>
</input>
<output>
<soap:body use="literal"></soap:body>
</output>
<fault name="BGException">
<soap:fault name="BGException" use="literal"></soap:fault>
</fault>
</operation>
</binding>
<service name="WSCard">
<port name="WSCard" binding="tns:WSCardBinding">
<soap:address location="http://xxx.xxx.xxx.xxx:8080/bgbilling/executer/modules.card/5/Card"></soap:address>
</port>
</service>
</definitions>
0

POST /bgbilling/executer/modules.card/5/Card
HTTP/1.1
Content-type: text/xml;charset=utf-8
Soapaction: "http://common.card.modules.bgbilling.bitel.ru/WSCard/paymentListExportRequest"
Accept: text/xml, multipart/related
User-Agent: JAX-WS RI 2.2-b05-
Host: xxx.xxx.xxx.xxx:8080
Connection: keep-alive
Content-Length: 733

<?xml version="1.0" ?><S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/"><S:Header><auth xmlns="http://ws.base.kernel.bgbilling.bitel.ru/" pswd="xxx" user="xxx"></auth></S:Header><S:Body><ns5:paymentListExport xmlns:common="http://common.bitel.ru" xmlns:ns5="http://common.card.modules.bgbilling.bitel.ru/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><dealerIds xmlns="">21</dealerIds><dateFrom xmlns="">2012-01-30T00:00:00+04:00</dateFrom><dateTo xmlns="">2012-01-30T00:00:00+04:00</dateTo><type xmlns="">1</type><trans xmlns=""></trans><contract xmlns=""></contract><contractGroups xmlns="">1</contractGroups></ns5:paymentListExport></S:Body></S:Envelope>

HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Set-Cookie: JSESSIONID=0697A13A0046A6DF2FBA7A5658363B95; Path=/
Content-Type: text/xml;charset=utf-8
Transfer-Encoding: chunked
Date: Wed, 01 Feb 2012 16:43:56 GMT

5d
<?xml version="1.0" ?><S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/"><S:Body
1
>

Автор:  iONE [ 01 фев 2012, 23:36 ]
Заголовок сообщения:  Re: Экспорт отчётов в новом менеджере платежей

Обновил версию java на сервере, результат не изменился:

Код:
02-01/21:33:22 ERROR [Thread-23] LoggingPrintStream - Exception in thread "Thread-23"
02-01/21:33:22 ERROR [Thread-23] LoggingPrintStream - java.lang.NoClassDefFoundError: au/com/bytecode/opencsv/CSVWriter
02-01/21:33:22 ERROR [Thread-23] LoggingPrintStream -   at ru.bitel.bgbilling.modules.card.server.WSCardImpl$1.run(WSCardImpl.java:91)
02-01/21:33:22 ERROR [Thread-23] LoggingPrintStream - Caused by: java.lang.ClassNotFoundException: au.com.bytecode.opencsv.CSVWriter
02-01/21:33:22 ERROR [Thread-23] LoggingPrintStream -   at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
02-01/21:33:22 ERROR [Thread-23] LoggingPrintStream -   at java.security.AccessController.doPrivileged(Native Method)
02-01/21:33:22 ERROR [Thread-23] LoggingPrintStream -   at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
02-01/21:33:22 ERROR [Thread-23] LoggingPrintStream -   at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
02-01/21:33:22 ERROR [Thread-23] LoggingPrintStream -   at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
02-01/21:33:22 ERROR [Thread-23] LoggingPrintStream -   at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
02-01/21:33:22 ERROR [Thread-23] LoggingPrintStream -   ... 1 more


Код:
   Клиент: вер. 5.1 сборка 568 от 06.07.2011 16:35:25
os:Windows Vista; java:Sun Microsystems Inc., v.1.6.0_29
   Сервер: вер. 5.1 сборка 689 от 06.07.2011 16:35:12
os:Linux; java:Sun Microsystems Inc., v.1.6.0_30

   card вер. 5.1 сборка 170 от 07.07.2011 12:48:08

Автор:  iONE [ 02 фев 2012, 00:31 ]
Заголовок сообщения:  Re: Экспорт отчётов в новом менеджере платежей

Положил в lib библиотеку opencsv-2.3.jar

Теперь ругается на метод, видимо версия библиотеки не подходит.

Код:
02-01/22:27:17 ERROR [Thread-15] LoggingPrintStream - Exception in thread "Thread-15"
02-01/22:27:17 ERROR [Thread-15] LoggingPrintStream - java.lang.NoSuchMethodError: au.com.bytecode.opencsv.CSVWriter.writeNext([Ljava/lang/String;Z)V
02-01/22:27:17 ERROR [Thread-15] LoggingPrintStream -   at ru.bitel.bgbilling.modules.card.server.WSCardImpl$1.run(WSCardImpl.java:116)

Автор:  stark [ 09 фев 2012, 17:59 ]
Заголовок сообщения:  Re: Экспорт отчётов в новом менеджере платежей

iONE писал(а):
Последнее что есть в логе клиента:
Код:
https://xx.xx.xx.xx:8443/bgbilling/executer/modules.card/5/Card?wsdl -> {http://common.card.modules.bgbilling.bitel.ru/}WSCard
<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/"><S:Body><ns5:paymentListExport xmlns:ns5="http://common.card.modules.bgbilling.bitel.ru/" xmlns:common="http://common.bitel.ru" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><dealerIds>21</dealerIds><dateFrom>2012-01-30T00:00:00+04:00</dateFrom><dateTo>2012-01-30T00:00:00+04:00</dateTo><type>1</type><trans/><contract/><contractGroups>1</contractGroups></ns5:paymentListExport></S:Body></S:Envelope>


В логе сервера:
Код:
02-01/20:43:56 ERROR [Thread-9616] LoggingPrintStream - Exception in thread "Thread-9616"
02-01/20:43:56 ERROR [Thread-9616] LoggingPrintStream - java.lang.NoClassDefFoundError: au/com/bytecode/opencsv/CSVWriter
02-01/20:43:56 ERROR [Thread-9616] LoggingPrintStream -         at ru.bitel.bgbilling.modules.card.server.WSCardImpl$1.run(WSCardImpl.java:91)


[/code]


А в папке lib есть csvlib.jar ?

Автор:  stark [ 09 фев 2012, 17:59 ]
Заголовок сообщения:  Re: Экспорт отчётов в новом менеджере платежей

iONE писал(а):
Положил в lib библиотеку opencsv-2.3.jar

Теперь ругается на метод, видимо версия библиотеки не подходит.

Код:
02-01/22:27:17 ERROR [Thread-15] LoggingPrintStream - Exception in thread "Thread-15"
02-01/22:27:17 ERROR [Thread-15] LoggingPrintStream - java.lang.NoSuchMethodError: au.com.bytecode.opencsv.CSVWriter.writeNext([Ljava/lang/String;Z)V
02-01/22:27:17 ERROR [Thread-15] LoggingPrintStream -   at ru.bitel.bgbilling.modules.card.server.WSCardImpl$1.run(WSCardImpl.java:116)


Уберите ее.

Автор:  iONE [ 15 фев 2012, 00:07 ]
Заголовок сообщения:  Re: Экспорт отчётов в новом менеджере платежей

Я её положил туда не от нечего делать, а для попытки устранить ошибку:

Код:
02-01/20:43:56 ERROR [Thread-9616] LoggingPrintStream - Exception in thread "Thread-9616"
02-01/20:43:56 ERROR [Thread-9616] LoggingPrintStream - java.lang.NoClassDefFoundError: au/com/bytecode/opencsv/CSVWriter
02-01/20:43:56 ERROR [Thread-9616] LoggingPrintStream -         at ru.bitel.bgbilling.modules.card.server.WSCardImpl$1.run(WSCardImpl.java:91)


Убрал, и что дальше?

Автор:  skyb [ 15 фев 2012, 05:28 ]
Заголовок сообщения:  Re: Экспорт отчётов в новом менеджере платежей

iONE писал(а):
Я её положил туда не от нечего делать, а для попытки устранить ошибку:

Код:
02-01/20:43:56 ERROR [Thread-9616] LoggingPrintStream - Exception in thread "Thread-9616"
02-01/20:43:56 ERROR [Thread-9616] LoggingPrintStream - java.lang.NoClassDefFoundError: au/com/bytecode/opencsv/CSVWriter
02-01/20:43:56 ERROR [Thread-9616] LoggingPrintStream -         at ru.bitel.bgbilling.modules.card.server.WSCardImpl$1.run(WSCardImpl.java:91)


Убрал, и что дальше?

stark писал(а):
А в папке lib есть csvlib.jar ?

Автор:  iONE [ 16 фев 2012, 00:58 ]
Заголовок сообщения:  Re: Экспорт отчётов в новом менеджере платежей

В папке lib csvlib.jar отсутствует, собственно по этой причине я и пытался подсунуть туда csvlib.jar разных версий.
Более того csvlib.jar так же отсутствует в сборках сервера и модуля карт.

Автор:  stark [ 17 фев 2012, 20:05 ]
Заголовок сообщения:  Re: Экспорт отчётов в новом менеджере платежей

iONE писал(а):
В папке lib csvlib.jar отсутствует, собственно по этой причине я и пытался подсунуть туда csvlib.jar разных версий.
Более того csvlib.jar так же отсутствует в сборках сервера и модуля карт.

О какой версии идет речь ? в 5.1 точно есть. В 5.2 тоже.Скачайте отсюда например :
ftp://bgbilling.ru/pub/bgbilling/5.1/

Если положить эту библиотеку в lib , то работает ?

Автор:  iONE [ 19 фев 2012, 00:07 ]
Заголовок сообщения:  Re: Экспорт отчётов в новом менеджере платежей

В 5.1.765 действительно есть эта либа и с ней всё работает.

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