BMS-HOSxP Community
HOSxP => แจ้งปัญหา / ขอความช่วยเหลือ => ข้อความที่เริ่มโดย: anukul ที่ กรกฎาคม 12, 2011, 22:49:23 PM
-
พบปัญหาการเรียกใช้งาน End user report
....สืบเนื่องจาก เครื่อง Server Slave เสีย (Harddisk เต็ม) เลยถือโอกาสลงเครื่องใหม่เลย ปรากฎว่าเกิดปัญหา หลังจากที่ลง MySQL เรียบร้อย ==> Initial import ==> run Replicate เรียบร้อยดี ..... แต่ไม่สามารถเรียกดูรายงาน จาก End user report ได้ ขึ้นหน้าต่าง error
............"..Could not convert variant of type (Null) into type (Integer)...." ตามภาพครับ
....คิดว่าน่าจะเกิดจากการลง CentOS ใหม่ 5.6 และ Percona 5.1.30 แล้วคงทำอะไรผิดหรือไม่ครบแน่ๆ เพราะก่อนหน้านี้ก็ใช้งานได้ดี ????
??? ??? ???
-
EurekaLog 6.1.01
Application:
-------------------------------------------------------
1.1 Start Date : Tue, 12 Jul 2011 22:34:41 +0700
1.2 Name/Description: HOSMy.exe
1.3 Version Number : 3.54.5.30
1.4 Parameters :
1.5 Compilation Date: Mon, 30 May 2011 14:50:32 +0700
1.6 Up Time : 2 minutes, 44 seconds
Exception:
-----------------------------------------------------------------------------------
2.1 Date : Tue, 12 Jul 2011 22:37:26 +0700
2.2 Address : 0041E3C8
2.3 Module Name : HOSMy.exe
2.4 Module Version: 3.54.5.30
2.5 Type : EVariantTypeCastError
2.6 Message : Could not convert variant of type (Null) into type (Integer).
2.7 ID : 8F7E
2.8 Count : 1
2.9 Status : New
2.10 Note :
User:
-------------------------------------------------------
3.1 ID : ANUKUL
3.2 Name : ANUKUL
3.3 Email :
3.4 Company :
3.5 Privileges: SeIncreaseQuotaPrivilege - OFF
SeSecurityPrivilege - OFF
SeTakeOwnershipPrivilege - OFF
SeLoadDriverPrivilege - OFF
SeSystemProfilePrivilege - OFF
SeSystemtimePrivilege - OFF
SeProfileSingleProcessPrivilege - OFF
SeIncreaseBasePriorityPrivilege - OFF
SeCreatePagefilePrivilege - OFF
SeBackupPrivilege - OFF
SeRestorePrivilege - OFF
SeShutdownPrivilege - OFF
SeDebugPrivilege - OFF
SeSystemEnvironmentPrivilege - OFF
SeChangeNotifyPrivilege - ON
SeRemoteShutdownPrivilege - OFF
SeUndockPrivilege - OFF
SeManageVolumePrivilege - OFF
SeImpersonatePrivilege - ON
SeCreateGlobalPrivilege - ON
SeIncreaseWorkingSetPrivilege - OFF
SeTimeZonePrivilege - OFF
SeCreateSymbolicLinkPrivilege - OFF
Active Controls:
--------------------------------------------
4.1 Form Class : #32770
4.2 Form Text :
4.3 Control Class: TReportPrintForm
4.4 Control Text : Prepare to Print Report
Computer:
--------------------------------------------------------------------------------------------------------------------------------------
5.1 Name : ANUKUL-NOTEBOOK
5.2 Total Memory : 3063 Mb
5.3 Free Memory : 2105 Mb
5.4 Total Disk : 147 Gb
5.5 Free Disk : 51.47 Gb
5.6 System Up Time: 6 days, 1 hour, 54 minutes, 53 seconds
5.7 Processor : Intel(R) Core(TM)2 Duo CPU T5270 @ 1.40GHz
5.8 Display Mode : 1280 x 800, 32 bit
5.9 Display DPI : 96
5.10 Video Card : Mobile Intel(R) 965 Express Chipset Family (Microsoft Corporation - WDDM 1.1) (driver 8.15.10.1749 - RAM 384 MB)
5.11 Printer : HP LaserJet 1020 (driver 6,1,0,0)
Operating System:
-----------------------------------
6.1 Type : Microsoft Windows 7
6.2 Build # : 7600
6.3 Update :
6.4 Language: Thai
6.5 Charset : 222
Network:
---------------------------------------------------
7.1 IP Address: 192.168.001.251 - 000.000.000.000
7.2 Submask : 255.255.254.000 - 000.000.000.000
7.3 Gateway : 000.000.000.000 - 000.000.000.000
7.4 DNS 1 : 000.000.000.000 - 000.000.000.000
7.5 DNS 2 : 000.000.000.000 - 000.000.000.000
7.6 DHCP : OFF - OFF
Custom Information:
-------------------------------------------------------------------------------------
8.1 Hospital Code : 10732 [âç¾ÂÒºÒÅ ÁСÒÃÑ¡Éì]
8.2 Database Type : MySQL
8.3 Database Protocol : mysql-4.1 [5.1.30-percona
Database hos @ 192.168.1.8]
8.4 :
8.5 No 1 : select get_serialnumber('report_access_id') as cc
8.6 No 2 : SHOW COLUMNS FROM hos.serial LIKE '%'
8.7 No 3 : SHOW TABLES FROM hos LIKE 'serial'
8.8 DBMS Variables :
8.9 :
8.10 auto_increment_increment: 1
auto_increment_offset = 1
autocommit = ON
automatic_sp_privileges = ON
back_log = 50
basedir = /
big_tables = OFF
binlog_cache_size = 32768
binlog_format = STATEMENT
bulk_insert_buffer_size = 8388608
character_set_client = tis620
character_set_connection = tis620
character_set_database = tis620
character_set_filesystem = binary
character_set_results = tis620
character_set_server = tis620
character_set_system = utf8
character_sets_dir = /usr/share/mysql/charsets/
collation_connection = tis620_thai_ci
collation_database = tis620_thai_ci
collation_server = tis620_thai_ci
completion_type = 0
concurrent_insert = 2
connect_timeout = 10
datadir = /var/lib/mysql/
date_format = %Y-%m-%d
datetime_format = %Y-%m-%d %H:%i:%s
default_week_format = 0
delay_key_write = ON
delayed_insert_limit = 100
delayed_insert_timeout = 300
delayed_queue_size = 1000
div_precision_increment = 4
engine_condition_pushdown = ON
error_count = 0
event_scheduler = OFF
expire_logs_days = 0
flush = OFF
flush_time = 0
foreign_key_checks = ON
ft_boolean_syntax = + -><()~*:""&|
ft_max_word_len = 84
ft_min_word_len = 4
ft_query_expansion_limit = 20
ft_stopword_file = (built-in)
general_log = OFF
general_log_file = /var/lib/mysql/HosXP1.log
group_concat_max_len = 1024
have_community_features = YES
have_compress = YES
have_crypt = YES
have_csv = YES
have_dynamic_loading = YES
have_geometry = YES
have_innodb = YES
have_ndbcluster = NO
have_openssl = NO
have_partitioning = YES
have_query_cache = YES
have_rtree_keys = YES
have_ssl = NO
have_symlink = YES
hostname = HosXP1
identity = 324390539
init_connect = SET NAMES tis620
init_file =
init_slave =
innodb_adaptive_checkpoint = 1
innodb_adaptive_hash_index = ON
innodb_additional_mem_pool_size = 20971520
innodb_autoextend_increment = 8
innodb_autoinc_lock_mode = 1
innodb_buffer_pool_size = 8388608000
innodb_checksums = ON
innodb_commit_concurrency = 0
innodb_concurrency_tickets = 500
innodb_data_file_path = ibdata1:10M:autoextend
innodb_data_home_dir = /var/lib/mysql/
innodb_doublewrite = OFF
innodb_extra_undoslots = OFF
innodb_fast_shutdown = 1
innodb_file_format = Antelope
innodb_file_format_check = Antelope
innodb_file_io_threads = 4
innodb_file_per_table = ON
innodb_flush_log_at_trx_commit = 1
innodb_flush_method =
innodb_flush_neighbor_pages = 1
innodb_force_recovery = 0
innodb_ibuf_accel_rate = 100
innodb_ibuf_active_contract = 0
innodb_ibuf_max_size = 4194287616
innodb_io_capacity = 10000
innodb_lock_wait_timeout = 50
innodb_locks_unsafe_for_binlog = ON
innodb_log_buffer_size = 8388608
innodb_log_file_size = 1048576000
innodb_log_files_in_group = 2
innodb_log_group_home_dir = /var/lib/mysql/
innodb_max_dirty_pages_pct = 90
innodb_max_purge_lag = 0
innodb_mirrored_log_groups = 1
innodb_open_files = 2000
innodb_read_ahead = both
innodb_read_io_threads = 16
innodb_replication_delay = 0
innodb_rollback_on_timeout = OFF
innodb_show_locks_held = 10
innodb_show_verbose_locks = 0
innodb_stats_on_metadata = ON
innodb_stats_sample_pages = 8
innodb_strict_mode = OFF
innodb_support_xa = OFF
innodb_sync_spin_loops = 20
innodb_table_locks = ON
innodb_thread_concurrency = 0
innodb_thread_sleep_delay = 10000
innodb_version = 1.0.2-1
innodb_write_io_threads = 16
insert_id = 0
interactive_timeout = 28800
join_buffer_size = 2097152
keep_files_on_create = OFF
key_buffer_size = 1887436800
key_cache_age_threshold = 300
key_cache_block_size = 1024
key_cache_division_limit = 100
language = /usr/share/mysql/english/
large_files_support = ON
large_page_size = 0
large_pages = OFF
last_insert_id = 324390539
lc_time_names = en_US
license = GPL
local_infile = ON
locked_in_memory = OFF
log = OFF
log_bin = OFF
log_bin_trust_function_creators = OFF
log_bin_trust_routine_creators = OFF
log_error = /var/lib/mysql/HosXP1.err
log_output = FILE
log_queries_not_using_indexes = OFF
log_slave_updates = OFF
log_slow_queries = OFF
log_warnings = 1
long_query_time = 10.000000
low_priority_updates = OFF
lower_case_file_system = OFF
lower_case_table_names = 0
max_allowed_packet = 536870912
max_binlog_cache_size = 18446744073709551615
max_binlog_size = 1073741824
max_connect_errors = 10
max_connections = 500
max_delayed_threads = 20
max_error_count = 64
max_heap_table_size = 268435456
max_insert_delayed_threads = 20
max_join_size = 18446744073709551615
max_length_for_sort_data = 1024
max_prepared_stmt_count = 16382
max_relay_log_size = 0
max_seeks_for_key = 18446744073709551615
max_sort_length = 1024
max_sp_recursion_depth = 0
max_tmp_tables = 32
max_user_connections = 0
max_write_lock_count = 18446744073709551615
min_examined_row_limit = 0
multi_range_count = 256
myisam_data_pointer_size = 6
myisam_max_sort_file_size = 9223372036854775807
myisam_recover_options = OFF
myisam_repair_threads = 1
myisam_sort_buffer_size = 134217728
myisam_stats_method = nulls_unequal
myisam_use_mmap = OFF
net_buffer_length = 16384
net_read_timeout = 30
net_retry_count = 10
net_write_timeout = 60
new = OFF
old = OFF
old_alter_table = OFF
old_passwords = OFF
open_files_limit = 50000
optimizer_prune_level = 1
optimizer_search_depth = 62
pid_file = /var/lib/mysql/HosXP1.pid
plugin_dir = /usr/lib64/mysql/plugin
port = 3306
preload_buffer_size = 32768
profiling = OFF
profiling_history_size = 15
protocol_version = 10
pseudo_thread_id = 18024
query_alloc_block_size = 8192
query_cache_limit = 1048576
query_cache_min_res_unit = 4096
query_cache_size = 268435456
query_cache_type = ON
query_cache_wlock_invalidate = OFF
query_prealloc_size = 8192
rand_seed1 =
rand_seed2 =
range_alloc_block_size = 4096
read_buffer_size = 1048576
read_only = OFF
read_rnd_buffer_size = 1048576
relay_log =
relay_log_index =
relay_log_info_file = relay-log.info
relay_log_purge = ON
relay_log_space_limit = 0
report_host =
report_password =
report_port = 3306
report_user =
rpl_recovery_rank = 0
secure_auth = OFF
secure_file_priv =
server_id = 0
skip_external_locking = ON
skip_networking = OFF
skip_show_database = OFF
slave_compressed_protocol = OFF
slave_exec_mode = STRICT
slave_load_tmpdir = /tmp
slave_net_timeout = 3600
slave_skip_errors = OFF
slave_transaction_retries = 10
slow_launch_time = 2
slow_query_log = OFF
slow_query_log_file = /var/lib/mysql/HosXP1-slow.log
socket = /var/lib/mysql/mysql.sock
sort_buffer_size = 1048576
sql_auto_is_null = ON
sql_big_selects = ON
sql_big_tables = OFF
sql_buffer_result = OFF
sql_log_bin = ON
sql_log_off = OFF
sql_log_update = ON
sql_low_priority_updates = OFF
sql_max_join_size = 18446744073709551615
sql_mode =
sql_notes = ON
sql_quote_show_create = ON
sql_safe_updates = OFF
sql_select_limit = 18446744073709551615
sql_slave_skip_counter =
sql_warnings = OFF
ssl_ca =
ssl_capath =
ssl_cert =
ssl_cipher =
ssl_key =
storage_engine = MyISAM
sync_binlog = 0
sync_frm = ON
system_time_zone = ICT
table_definition_cache = 256
table_lock_wait_timeout = 50
table_open_cache = 1000
table_type = MyISAM
thread_cache_size = 8
thread_handling = one-thread-per-connection
thread_stack = 262144
time_format = %H:%i:%s
time_zone = SYSTEM
timed_mutexes = OFF
timestamp = 1310485011
tmp_table_size = 16777216
tmpdir = /tmp
transaction_alloc_block_size = 8192
transaction_prealloc_size = 4096
tx_isolation = REPEATABLE-READ
unique_checks = ON
updatable_views_with_limit = YES
version = 5.1.30-percona
version_comment = MySQL Community Server (GPL)
version_compile_machine = x86_64
version_compile_os = unknown-linux-gnu
wait_timeout = 28800
warning_count = 0
Call Stack Information:
---------------------------------------------------------------------------------------------------------------
|Address |Module |Unit |Class |Procedure/Method |Line |
---------------------------------------------------------------------------------------------------------------
|Running Thread: ID=4420; Priority=0; Class=; [Main] |
|-------------------------------------------------------------------------------------------------------------|
|004970A0|HOSMy.exe|FastcodeStrToInt32Unit.pas| | |82[0] |
|008EC891|HOSMy.exe|ZDbcMySqlUtils.pas | |CheckMySQLError |363[7] |
|01E0EC01|HOSMy.exe|KSKDMU.pas | |HOSxP_GetDataSet |3646[313] |
|01E2BA0A|HOSMy.exe|KSKDMU.pas | |GetSerialNumber |10513[127]|
|01E2B608|HOSMy.exe|KSKDMU.pas | |GetSerialNumber |10386[0] |
|01E5EC57|HOSMy.exe|KSKDMU.pas | |LogReportAccess |20328[8] |
|01E5EBE0|HOSMy.exe|KSKDMU.pas | |LogReportAccess |20320[0] |
|01D75BCB|HOSMy.exe|ReportPrintU.pas |TReportPrintForm |PrintBtnClick |1050[4] |
|00CE8379|HOSMy.exe|cxButtons.pas |TcxCustomButton |Click |1668[8] |
|00CE88DC|HOSMy.exe|cxButtons.pas |TcxCustomButton |CNCommand |1892[4] |
|00D8B065|HOSMy.exe|dxSkinsForm.pas | |dxSkinsWndProcHook |4411[2] |
|00CE885B|HOSMy.exe|cxButtons.pas |TcxCustomButton |WndProc |1870[18] |
|005B91E3|HOSMy.exe|cxContainer.pas | |ApplicationCallWndProcHookProc|6194[13] |
|00D8B065|HOSMy.exe|dxSkinsForm.pas | |dxSkinsWndProcHook |4411[2] |
|00618FE2|HOSMy.exe|dxBar.pas | |dxBarWndProcHook |13620[31] |
|00CE885B|HOSMy.exe|cxButtons.pas |TcxCustomButton |WndProc |1870[18] |
|01D780E3|HOSMy.exe|ReportPrintU.pas | |PrintCustomReport |1658[28] |
|01D77FB4|HOSMy.exe|ReportPrintU.pas | |PrintCustomReport |1630[0] |
|022F2AFD|HOSMy.exe|CustomReportListU.pas |TCustomReportListForm|SeSkinButton2Click |547[207] |
|00A09045|HOSMy.exe|dxDBGrid.pas |TCustomdxDBGrid |MouseDown |2169[28] |
|009DC590|HOSMy.exe|dxTL.pas |TCustomdxTreeList |WndProc |9603[47] |
|009DC440|HOSMy.exe|dxTL.pas |TCustomdxTreeList |WndProc |9556[0] |
|00A094FF|HOSMy.exe|dxDBGrid.pas |TCustomdxDBGrid |WndProc |2291[32] |
|02B82AF2|HOSMy.exe|HOSMy.dpr | | |1727[136] |
---------------------------------------------------------------------------------------------------------------
Modules Information:
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|Handle |Name |Description |Version |Size |Modified |Path |
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|00400000|HOSMy.exe | |3.54.5.30 |73267712|2011-05-30 14:50:32|C:\Program Files\HOSxP |
|06320000|wnaspi32.dll |ASPI for Win32 DLL |4.71.2.0 |45056 |2002-07-17 10:03:20|C:\Windows\system32 |
|09800000|libmysql41.dll | | |1056768 |2004-07-12 14:36:18|C:\Windows\system32 |
|10000000|INBarcodeOCR.dll |INBarcodeOCR |1.3.200.0 |455168 |2007-03-12 15:37:50|C:\Program Files\HOSxP |
|11200000|PCIHOOKS.DLL | | |88928 |2007-03-19 15:14:12|C:\Program Files\NetSupport Manager |
|64A20000|MSHTML.dll |Microsoft (R) HTML Viewer |9.0.8112.16421 |12268544|2011-04-10 19:41:48|C:\Windows\system32 |
|65AF0000|Flash10q.ocx |Adobe Flash Player 10.3 r181 |10.3.181.14 |6378144 |2011-05-14 10:04:14|C:\Windows\system32\Macromed\Flash |
|67DD0000|mdnsNSP.dll |Bonjour Namespace Provider |2.0.5.0 |152864 |2011-04-06 16:20:16|C:\Program Files\Bonjour |
|67F90000|AgentMPx.dll |Microsoft Agent Custom Marshaling Proxy DLL |2.0.0.2115 |61505 |1998-09-15 17:55:04|C:\Windows\msagent |
|67FC0000|AgentCtl.dll |Microsoft Agent Control |2.0.0.2115 |163905 |1998-09-15 17:54:28|C:\Windows\msagent |
|6C240000|CRTDLL.dll |Microsoft C Runtime Library |4.0.1183.1 |149019 |2009-07-14 08:15:08|C:\Windows\system32 |
|6C5D0000|d3d10.dll |Direct3D 10 Runtime |6.1.7600.16385 |1030144 |2009-07-14 08:15:08|C:\Windows\system32 |
|6C750000|mlang.dll |Multi Language Support DLL |6.1.7600.16385 |177664 |2009-07-14 08:15:42|C:\Windows\system32 |
|6C8C0000|DWrite.dll |Microsoft DirectX Typography Services |6.1.7600.16699 |1074176 |2011-04-10 19:37:40|C:\Windows\system32 |
|6C9D0000|d2d1.dll |Microsoft D2D Library |6.1.7600.16699 |739840 |2011-04-10 19:37:40|C:\Windows\system32 |
|6CA90000|msado15.dll |ActiveX Data Objects |6.1.7600.16385 |987136 |2009-07-14 08:15:44|C:\Program Fi
-
.งัยก็เป็นกำลังใจให้ผ่าน function_get_serialnumber นะครับ หมอ :) :)
-
ถ้าดูจาก last 3 statement ผมเดาว่า function get_serialnumber ไม่สามารถทำงานได้ คุณหมอลอง grant สิทธิ์ใหม่ในเครื่องสำรองนี้ใหม่ได้ไหมครับ แล้วก็ถ้า run รายงานตัวนี้จากตัว master ได้หรือไม่ครับ
-
mysql user ที่กำหนดให้ hosxp ใช้ ไม่มีสิทธิสร้าง function ครับ
-
นั่นหนะสิ ผมนึกแล้ว ว่าต้องลืมอะไรไปแน่เลย
ว่าแต่ว่า กำหนดสิทธิให้สามารถ สร้าง function ให้ user ยังไงครับ จำไม่ได้ครับ (หรือไม่เคยรู้ว่าก่อน ไม่แน่ใจเหมือนกัน)
;D
-
ใช้คำสั่งนี้ที่ mysql> ครับ
grant all on *.* to user@'%' identified by 'password' with grant option;
flush privileges;