Perl lib version (v5.8.8) doesn't match executable version
>>
23:20:50 -!- Irssi: Error in script adv_windowlist:
23:20:50 Perl lib version (v5.8.8) doesn't match executable version (v5.8.7) at
/usr/lib/perl5/5.8.7/i686-linux-thread-multi/Config.pm line 46.
23:20:50 Compilation failed in require at /usr/lib/perl5/5.8.7/i686-linux-thread-multi/lib.pm line
6.
23:20:50 BEGIN failed--compilation aborted at /usr/lib/perl5/5.8.7/i686-linux-thread-multi/lib.pm
line 6.
23:20:50 Compilation failed in require at (eval 18) line 1.
23:20:50 BEGIN failed--compilation aborted at (eval 18) line 1.
23:20:50
It worked before the new perl version.
Recomplie irssi, that will solove the problem.
Similar Messages
-
hello
i have this error when i try to launch amavis
etc/rc.d/amavisd restart
:: Stopping amavisd daemon [FAIL]
:: Starting amavisd daemon [BUSY] fetch_modules: error loading required module Unix/Syslog.pm:
Perl API version v5.14.0 of Unix::Syslog does not match v5.16.0 at /usr/lib/perl5/core_perl/DynaLoader.pm line 213.
Compilation failed in require at /usr/sbin/amavisd line 202.
defined(@array) is deprecated at /usr/share/perl5/site_perl/Net/Server.pm line 211.
(Maybe you should just omit the defined()?)
ERROR: MISSING REQUIRED BASIC MODULES:
Unix::Syslog
BEGIN failed--compilation aborted at /usr/sbin/amavisd line 242.
i recompiled Unix::Syslog but no change
please help
thksThe helpful error message lets you know that the module you are trying to load was built for perl 5.14. Since you now have perl 5.16 the module is no longer binary compatible with the perl runtime and cannot be loaded. This applies to all XS modules which bridge C and perl code together. You must rebuild/reinstall the complaining modules.
Here are some diagnoses.
freaks:
You didn't reinstall Unix::Syslog properly. Maybe the old version was installed with cpan and you installed the new packaged version, which is not being loaded. Modules installed with the cpan shell take precedence over packaged modules.
disarmer:
You have extra copies of Encode and IO modules installed. They are included with perl. Uninstall the unnecessary duplicates. The old IO.pm file is trying to load the newer (core) binary IO.so library. Maybe.
nomorewindows:
You have to reinstall the complaining modules the applications use.
A script to find paths of loaded modules:
[juster@artemis bin]$ cat pmpath
#!/usr/bin/env perl
$m = shift or die "usage: pmpath [module name]\n";
eval "require $m" or die "pmpath: bad module: $!\n";
$m =~ s{::}{/}g;
print $INC{"$m.pm"}, "\n";
All packaged modules from a foreign source, like the AUR, need to be rebuilt. Print out a list of them:
pacman -Qml | awk '/_perl\/auto\/.+\.so$/ { print $1 }' | uniq
Any perl XS modules installed with cpan need to be rebuilt. They are under /usr/lib/perl5/site_perl/auto. Look for .so files.
edit: shorten the awk
Last edited by juster (2012-06-05 04:23:33) -
How to install perl lib without make?
Hi, I know that to install perl libs, php, mysql I need install first Developer tool to have a make. But my preview experience was not good. The system become runs slowly, even if I uninstall Developer tool after compiling the sources.
Now, I reinstall system and found already compiled php, mysql and they works prefect by only 2 more things left, DB and DBI libs for perl and ImageMagick.
Is it possible to install them without installing Developer tool?
eMAc Mac OS X (10.4.9)I've found the problem. I didn't realize that OS X Snow Leopard came with 2 versions of Perl installed, so when I wanted to upgrade to 5.10, I installed it using MacPorts. I also hadn't realized that MacPorts paths had /opt/local prepended to them, so I was running the wrong version of Perl with it. Now I don't get the original error message I posted, but I do get these error messages:
dyld: lazy symbol binding failed: Symbol not found: mysqlinit
Referenced from: /opt/local/lib/perl5/site_perl/5.10.1/darwin-multi-2level/auto/DBD/mysql/mysql. bundle
Expected in: dynamic lookup
dyld: Symbol not found: mysqlinit
Referenced from: /opt/local/lib/perl5/site_perl/5.10.1/darwin-multi-2level/auto/DBD/mysql/mysql. bundle
Expected in: dynamic lookup
Trace/BPT trap
Can someone help me out with these?
Thanks in advance! -
Error with calendar database: Program version 4.2 doesn't match enviroment
hi!
im instaling jes in a windows 2000 machine and i get this error when trying to start calendar:
[21/Aug/2006:16:35:58 +0200] jes csadmind[1752]: General Information: Log created (1156170958)
[21/Aug/2006:16:35:58 +0200] jes csadmind[1752]: General Notice: Sun Java System Calendar Server 6 2005Q4 (built Dec 27 2005) csadmind starting up
[21/Aug/2006:16:35:58 +0200] jes csadmind[1752]: General Notice: csadmind attempting to open Counters Database
[21/Aug/2006:16:35:58 +0200] jes csadmind[1752]: General Notice: csadmind successfully opened the Counters Database
[21/Aug/2006:16:35:58 +0200] jes csadmind[1752]: General Notice: HTTP Module is refreshing
[21/Aug/2006:16:35:58 +0200] jes csadmind[1752]: General Notice: csadmind is refreshing
[21/Aug/2006:16:35:58 +0200] jes csadmind[1752]: General Notice: csadmind is refreshed
[21/Aug/2006:16:35:58 +0200] jes csadmind[1752]: General Notice: HTTP Module has refreshed
[21/Aug/2006:16:35:58 +0200] jes csadmind[1752]: General Notice: csadmind argc=1 argv[0]=C:\Sun\CalendarServer\bin\csadmind.exe
[21/Aug/2006:16:35:58 +0200] jes csadmind[1752]: General Notice: csadmind attempting to open Calendar Database
[21/Aug/2006:16:35:58 +0200] jes csadmind[1752]: General Error: caldb: Error with calendar database: Program version 4.2 doesn't match environment version
[21/Aug/2006:16:35:58 +0200] jes csadmind[1752]: General Error: caldb: caldb_InitializeEnvironment: dbenv->open returned 22
[21/Aug/2006:16:35:58 +0200] jes csadmind[1752]: General Critical: Fatal error 70: Cannot open calendar database
anyone have faced same problem?
thanks in advanceHi Vyacheslav,
its wierd that when I run db_stat on windows, for my environment, it works.... I installed Berkeley DB XML 2.4.16 from a self extracting package.
When I tried running from my Linux box, the error message appear... The native library on my Linux box was built from the zip package dbxml-2.4.16.zip
Arent they the same?
Thanks! -
Hi,
I haven't used LabVIEW for a while.
I plugged in a USB-6251 and ran Measurment and Automation explorer and saw that the USB-6251 was in the NI-DAQmx Device and was green.
I clicked on the Test Panels button and got a window with the message:
Get Executable version (7.1.1) doesn't match resource file (7.1)
When I clicked OK MAX was locked up.
I found this:
http://digital.ni.com/public.nsf/websearch/680E61A4D02158A186256F7A0073C228?OpenDocument
which told me to repair the LabVIEW Runtime thingy. I did that and it's still broken.
My MAX version is 4.2.0.3001
I assume that's a pretty old version but I would have thought it should have been updated when I upgraded to LabVIEW 8.2.1. But I don't see a MAX folder in the 8.2.1 install.I thought I had replied to this but somehow it didn't get there. In answer to the question about running the device driver CD after installing LV 8.2 I don't know the answer.
Anyway I installed LV8.6.1 and now it goes into test panels OK so I should be able to progress. -
Dp lib version mismatch-After kernel upgrade
Hi All,
After kernel upgrade from 700 162 to 179 all the workprocess are not coming up i am getting the below error:
Full qualified hostname = XXXXXX.saipc.XXX.com
***LOG Q0Z=> DpSysAdmExtCreate, bad version (lib=241000 krn=239000) [dpxxtool2.c 681]
LOCATION SAP-Gateway on host XXXXXXX / sapgw01
ERROR dp lib version mismatch, please check installation
TIME Mon Oct 20 00:33:37 2008
RELEASE 700
COMPONENT DP
VERSION 241000
RC -9999
MODULE dpxxtool2.c
LINE 688
DETAIL version of external and kernel dp lib mismatch (ext lib
version is 241000 / kernel lib version is 239000)
COUNTER 1
ERROR => DpIPCInit2: DpSysAdmExtCreate [dpxxtool2.c 369]
***LOG S0V=> GwStopGateway, gateway stopped () [gwxxrd.c 14652]
XXXXXXXXX:ts2adm 30% pg sapcpe.log
================ >>> main =======================
INFO: sapcpe version: @(#) $Id: //bas/700_REL/src/ccm/sapstart/sapxxcpe.c#18 $ SAP
=================================================
INFO: Try to find file table sapcpeft (default:sapcpeft)
INFO: Try to find file table in the central directory /usr/sap/TS2/SYS/exe/ctrun/sapcpeft
INFO: not found any file table.
=================================================
Update Local Programs (dir-sync + file-path + ln)
=================================================
Starting at 2008/10/20 00:33:34
ERROR: can't change to central Executable-Dir /usr/sap/TS2/SYS/exe/ctrun (No such file or directory) [sapxxcpe.c:1488]
Mon Oct 20 00:50:19 2008
ERROR => gateway (pid 24413) died [dpxxdisp.c 16063]
DpGwCheck: appc_adm.stat = 2
DP_FATAL_ERROR => Gateway could not be started - I better exit now
please help in solving this problem
Thanks
Giridhar
Edited by: giridhar n on Oct 20, 2008 12:47 PMHi,
We faced an issue with workprocesses which are not coming up after the kernel(700) upgrade from patch 162 to 179. below are the error logs:
Error Log
(XXXXXXXXX is the hostname)
Dev_W1:
XXXXXXXXX:ts2adm 9% more dev_w1.old
trc file: "dev_w1", trc level: 1, release: "700"
ACTIVE TRACE LEVEL 1
ACTIVE TRACE COMPONENTS all, MJ
M sysno 01
M sid TS2
M systemid 370 (Solaris on SPARCV9 CPU)
M relno 7000
M patchlevel 0
M patchno 162
M intno 20050900
M make: single threaded, Unicode, 64 bit, optimized
M pid 3867
M
M
M Mon Oct 20 03:59:26 2008
M kernel runs with dp version 239000(ext=110000) (-(#) DPLIB-INT-VERSION-239000-UC)
M length of sys_adm_ext is 576 bytes
M ***LOG Q01=> ThInit, WPStart (Workproc 1 1 3867) [thxxhead.c 1281]
M ThInit: running on host XXXXXXXXX
M calling db_connect ...
C Oracle Client Version: '10.2.0.2.0'
C
C Mon Oct 20 03:59:27 2008
C Client NLS settings: AMERICAN_AMERICA.UTF8
C Logon as OPS$-user to get SAPTS2's password
C Connecting as /-TS2 on connection 0 (nls_hdl 0) ... (dbsl 700 030508)
C Nls CharacterSet NationalCharSet C EnvHp ErrHp ErrHpBatch
C 0 UTF8 1 0x106eea0c0 0x106ef1b80 0x106f02318
C Attaching to DB Server TS2 (con_hdl=0,svchp=0x106f02248,srvhp=0x106f04598)
C Starting user session (con_hdl=0,svchp=0x106f02248,srvhp=0x106f04598,usrhp=0x106ef2398)
C Now '/-TS2' is connected: con_hdl=0, nls_hdl=0, session_id=475.
C Got SAPTS2's password from OPS$-user
C Disconnecting from connection 0 ...
C Closing user session (con_hdl=0,svchp=0x106f02248,usrhp=0x106ef2398)
C Now I'm disconnected from ORACLE
C Connecting as SAPTS2/<pwd>-TS2 on connection 0 (nls_hdl 0) ... (dbsl 700 030508)
C Nls CharacterSet NationalCharSet C EnvHp ErrHp ErrHpBatch
C 0 UTF8 1 0x106eea0c0 0x106ef1b80 0x106f02318
C Starting user session (con_hdl=0,svchp=0x106f02248,srvhp=0x106f04598,usrhp=0x106ef2398)
C Now 'SAPTS2/<pwd>-TS2' is connected: con_hdl=0, nls_hdl=0, session_id=475.
C Database NLS settings: AMERICAN_AMERICA.UTF8
C DB instance TS2 is running on XXXXXXXXX with ORACLE version 10.2.0.2.0 since OCT 20, 2008, 03:49:47
B Connection 0 opened (DBSL handle 0)
B Wp Hdl ConName ConId ConState TX PRM RCT TIM MAX OPT Date Time DBHost
B 000 000 R/3 000000000 ACTIVE NO YES NO 000 255 255 20081020 035926 XXXXXXXXX
C build_stmt: reallocating stmt buffer: 256 -> 2000 characters
M db_connect o.k.
M ICT: exclude compression: .zip,.cs,.rar,.arj,.z,.gz,.tar,.lzh,.cab,.hqx,.ace,.jar,.ear,.war,.css,.pdf,.js,.gzip,.uue,.bz2,.iso,.sda,
.sar,.gif
I
I Mon Oct 20 03:59:30 2008
I MtxInit: 1 0 0
M SHM_PRES_BUF (addr: 0xffffffff64c00000, size: 20000768)
M SHM_ROLL_AREA (addr: 0xfffffffe40000000, size: 268435456)
M SHM_PAGING_AREA (addr: 0xfffffffe36000000, size: 134217728)
M SHM_ROLL_ADM (addr: 0xffffffff7597a000, size: 3715586)
M SHM_PAGING_ADM (addr: 0xffffffff79a00000, size: 656416)
M ThCreateNoBuffer allocated 572152 bytes for 1000 entries at 0xfffffffe2c004000
M ThCreateNoBuffer index size: 3000 elems
M ThCreateVBAdm allocated 12176 bytes (50 server) at 0xffffffff7a900000
X EmInit: MmSetImplementation( 2 ).
X MM global diagnostic options set: 0
X <ES> client 1 initializing ....
X Using implementation std
X <ES> Info: use normal pages (no huge table support available)
X ES initialized.
B dbntab: NTAB buffers attached
B dbntab: Buffer FTAB(hash header) (addr: 0xfffffffe2c092088, size: 576)
B dbntab: Buffer FTAB(anchor array) (addr: 0xfffffffe2c0922c8, size: 798968)
B dbntab: Buffer FTAB(item array) (addr: 0xfffffffe2c1553c0, size: 3195648)
B dbntab: Buffer FTAB(data area) (addr: 0xfffffffe2c4616c0, size: 30740480)
B dbntab: Buffer IREC(hash header) (addr: 0xfffffffe2e1b6088, size: 576)
B dbntab: Buffer IREC(anchor array) (addr: 0xfffffffe2e1b62c8, size: 798968)
B dbntab: Buffer IREC(item array) (addr: 0xfffffffe2e2793c0, size: 798912)
B dbntab: Buffer IREC(data area) (addr: 0xfffffffe2e33c480, size: 6148096)
B dbntab: Buffer STAB(hash header) (addr: 0xfffffffe2e91c088, size: 576)
B dbntab: Buffer STAB(anchor array) (addr: 0xfffffffe2e91c2c8, size: 798968)
B dbntab: Buffer STAB(item array) (addr: 0xfffffffe2e9df3c0, size: 798912)
B dbntab: Buffer STAB(data area) (addr: 0xfffffffe2eaa2480, size: 3072000)
B dbntab: Buffer TTAB(hash header) (addr: 0xfffffffe2ed94088, size: 3072)
B dbntab: Buffer TTAB(anchor array) (addr: 0xfffffffe2ed94c88, size: 798968)
B dbntab: Buffer TTAB(item array) (addr: 0xfffffffe2ee57d80, size: 1997280)
B dbntab: Buffer TTAB(data area) (addr: 0xfffffffe2f03f760, size: 14580144)
B db_con_shm_ini: WP_ID = 1, WP_CNT = 24, CON_ID = -1
B dbstat: TABSTAT buffer attached (addr: 0xfffffffe28012008)
B dbtbxbuf: Buffer TABL (addr: 0xfffffffe24000100, size: 60000256, end: 0xfffffffe27938900)
B dbtbxbuf: Buffer TABLP (addr: 0xfffffffe20000100, size: 40960000, end: 0xfffffffe22710100)
B dbexpbuf: Buffer EIBUF (addr: 0xffffffff5d800108, size: 4194304, end: 0xffffffff5dc00108)
B dbexpbuf: Buffer ESM (addr: 0xfffffffe5f800108, size: 4194304, end: 0xfffffffe5fc00108)
B dbexpbuf: Buffer CUA (addr: 0xfffffffe2fe30108, size: 5120000, end: 0xfffffffe30312108)
B dbexpbuf: Buffer OTR (addr: 0xfffffffe59800108, size: 4194304, end: 0xfffffffe59c00108)
B dbcalbuf: Buffer CALE (addr: 0xffffffff75d08000, size: 500000, end: 0xffffffff75d82120)
I *** ERROR => ShmProtect(62,3) shmat(268435641,0x0xfffffffe5a000000,(SHM_RND | 0)) (22: Invalid argument) [shmux.c 2782]
I *** ERROR => ShmCreate: ShmProtect( 62, 3) failed [shmux.c 1359]
I *** ERROR => ShmCreate( ATTACH 62, 86228824) failed 1 [mpixx.c 855]
M *** ERROR => DpInitMpi: MpiInit failed (1) [dpxxtool2.c 5064]
M in_ThErrHandle: 1
M *** ERROR => ThInit: DpInitMpi (step 1, th_errno 17, action 3, level 1) [thxxhead.c 10506]
M
M Info for wp 1
M
M pid = 3867
M severity = 0
M status = 0
M stat = WP_RUN
M waiting_for = NO_WAITING
M reqtype = DP_RQ_DIAWP
M act_reqtype = NO_REQTYPE
M rq_info = 0
M tid = -1
M mode = 255
M len = -1
M rq_id = 65535
M rq_source =
M last_tid = 0
M last_mode = 0
M semaphore = 0
M act_cs_count = 0
M csTrack = 0
M csTrackRwExcl = 0
M csTrackRwShrd = 0
M mode_cleaned_counter = 0
M control_flag = 0
M int_checked_resource(RFC) = 0
M ext_checked_resource(RFC) = 0
M int_checked_resource(HTTP) = 0
M ext_checked_resource(HTTP) = 0
M report = > <
M action = 0
M tab_name = > <
M attachedVm = no VM
M PfStatDisconnect: disconnect statistics
M Entering TH_CALLHOOKS
M ThCallHooks: call hook >SAP-Trace buffer write< for event BEFORE_DUMP
M TrThHookFunc: called for WP dump
M ThCallHooks: call hook >ThrSaveSPAFields< for event BEFORE_DUMP
M *** ERROR => ThrSaveSPAFields: no valid thr_wpadm [thxxrun1.c 724]
M *** ERROR => ThCallHooks: event handler ThrSaveSPAFields for event BEFORE_DUMP failed [thxxtool3.c 261]
M Entering ThSetStatError
M ThIErrHandle: do not call ThrCoreInfo (no_core_info=0, in_dynp_env=0)
M Entering ThReadDetachMode
M call ThrShutDown (1)...
B dbtbxbuf: Saving TBX statistics:
B dbtbxbuf: 0 object entries written.
M ***LOG Q02=> wp_halt, WPStop (Workproc 1 3867) [dpuxtool.c 269]
dev_icm:
trc file: "dev_icm", trc level: 1, release: "700"
sysno 01
sid TS2
systemid 370 (Solaris on SPARCV9 CPU)
relno 7000
patchlevel 0
patchno 177
intno 20050900
make: multithreaded, Unicode, 64 bit, optimized
pid 3865
[Thr 1] started security log to file dev_icm_sec
[Thr 1] ICM running on: XXXXXXXXX.saipc.XXX.com
[Thr 1] MtxInit: 30001 0 2
[Thr 1] IcmInit: listening to admin port: 64999
[Thr 1] ***LOG Q0Z=> DpSysAdmExtCreate, bad version (lib=241000 krn=239000) [dpxxtool2_mt 681]
[Thr 1]
[Thr 1] * LOCATION ICM runing on host XXXXXXXXX
[Thr 1] * ERROR dp lib version mismatch, please check installation
[Thr 1] *
TIME Mon Oct 20 03:59:28 2008
[Thr 1] * RELEASE 700
[Thr 1] * COMPONENT DP
[Thr 1] * VERSION 241000
[Thr 1] * RC -9999
[Thr 1] * MODULE dpxxtool2_mt.c
[Thr 1] * LINE 688
[Thr 1] * DETAIL version of external and kernel dp lib mismatch (ext lib
version is 241000 / kernel lib version is 239000)
[Thr 1] * COUNTER 3
[Thr 1] *
[Thr 1] *****************************************************************************
[Thr 1] *** ERROR => DpIPCInit2: DpSysAdmExtCreate [dpxxtool2_mt 369]
[Thr 1] *** ERROR => IcmInit: IcmIPCInit failed (rc=-9999) [icxxman_mt.c 1741]
[Thr 1] *** ICM shutdown completed (pid: 3865) ***
dev_ms:
trc file: "dev_ms", trc level: 1, release: "700"
[Thr 1] Mon Oct 20 03:59:24 2008
[Thr 1] MsSSetTrcLog: trc logging active, max size = 20971520 bytes
systemid 370 (Solaris on SPARCV9 CPU)
relno 7000
patchlevel 0
patchno 145
intno 20050900
make: multithreaded, Unicode, 64 bit, optimized
pid 3853
[Thr 1] ***LOG Q01=> MsSInit, MSStart (Msg Server 1 3853) [msxxserv_mt. 1834]
[Thr 1] SigISetDefaultAction : default handling for signal 18
[Thr 1] load acl file = /usr/sap/TS2/SYS/global/ms_acl_info
[Thr 1] MsGetOwnIpAddr: my host addresses are :
[Thr 1] 1 : [148.92.31.49] XXXXXXXXX (HOSTNAME)
[Thr 1] 2 : [127.0.0.1] localhost (LOCALHOST)
[Thr 1] 3 : [148.92.31.157] XXXXXXXXX-maint (NILIST)
[Thr 1] 4 : [10.220.6.72] XXXXXXXXX-bkup (NILIST)
[Thr 1] MsHttpInit: full qualified hostname = XXXXXXXXX.saipc.XXX.com
[Thr 1] HTTP logging is switch off
[Thr 1] MsHttpOwnDomain: own domain[1] = saipc.XXX.com
[Thr 1] ms/icf_info_server : deleted
[Thr 1] *** I listen to port sapmsTS2 (3601) ***
[Thr 1] *** I listen to internal port 3901 (3901) ***
[Thr 1] CUSTOMER KEY: >C0395101982<
[Thr 1] Mon Oct 20 04:01:28 2008
[Thr 1] *** ERROR => MsSClientHandle: no server provides service ENQ (4), requested from XXXXXXXXX_TS2_01 [msxxserv_mt. 4687]
[Thr 1] Mon Oct 20 04:05:07 2008
[Thr 1] MsSExit: received SIGINT (2)
[Thr 1] ***LOG Q02=> MsSHalt, MSStop (Msg Server 3853) [msxxserv_mt. 5998]
dev_rd:
trc file: "dev_rd", trc level: 1, release: "700"
Mon Oct 20 03:59:26 2008
***LOG S00=> GwInitReader, gateway started ( 3864) [gwxxrd.c 1757]
systemid 370 (Solaris on SPARCV9 CPU)
relno 7000
patchlevel 0
patchno 176
intno 20050900
make: single threaded, Unicode, 64 bit, optimized
pid 3864
gateway runs with dp version 241000(ext=110000) (-(#) DPLIB-INT-VERSION-241000-UC)
gateway (version=700.2008.06.23)
gw/local_addr : 0.0.0.0
CCMS: AlInitGlobals : alert/use_sema_lock = TRUE.
CCMS: Initalizing shared memory of size 60000000 for monitoring segment.
Mon Oct 20 03:59:27 2008
CCMS: Checking Downtime Configuration of Monitoring Segment.
Bind service sapgw01 (socket) to port 3301
GwPrintMyHostAddr: my host addresses are :
1 : [148.92.31.49] XXXXXXXXX (HOSTNAME)
2 : [127.0.0.1] localhost (LOCALHOST)
3 : [148.92.31.157] XXXXXXXXX-maint (NILIST)
4 : [10.220.6.72] XXXXXXXXX-bkup (NILIST)
Full qualified hostname = XXXXXXXXX.saipc.XXX.com
***LOG Q0Z=> DpSysAdmExtCreate, bad version (lib=241000 krn=239000) [dpxxtool2.c 681]
LOCATION SAP-Gateway on host XXXXXXXXX / sapgw01
ERROR dp lib version mismatch, please check installation
TIME Mon Oct 20 03:59:27 2008
RELEASE 700
COMPONENT DP
VERSION 241000
RC -9999
MODULE dpxxtool2.c
LINE 688
DETAIL version of external and kernel dp lib mismatch (ext lib
version is 241000 / kernel lib version is 239000)
COUNTER 1
ERROR => DpIPCInit2: DpSysAdmExtCreate [dpxxtool2.c 369]
***LOG S0V=> GwStopGateway, gateway stopped () [gwxxrd.c 14652]
dev_rfc24:
Trace file opened at 20081020 031506 EDT SAP-REL 700,0,162 RFC-VER U 3 985555
======> User is locked. Please notify the person responsible
ABAP Programm: SAPLTMSC (Transaction: )
Called function module: TMS_CI_START_SERVICE
User: DDIC (Client: 015)
Destination: TMSADM-TS2.DOMAIN_DV2 (handle: 2, 11671309, {48FC3006-2FF4-60E5-E100-0000945C1F31})
dev_disp
trc file: "dev_disp.new", trc level: 1, release: "700"
sysno 01
sid TS2
systemid 370 (Solaris on SPARCV9 CPU)
relno 7000
patchlevel 0
patchno 162
intno 20050900
make: single threaded, Unicode, 64 bit, optimized
pid 3854
Mon Oct 20 03:59:25 2008
kernel runs with dp version 239000(ext=110000) (-(#) DPLIB-INT-VERSION-239000-UC)
length of sys_adm_ext is 576 bytes
SWITCH TRC-HIDE on ***
***LOG Q00=> DpSapEnvInit, DPStart (01 3854) [dpxxdisp.c 1257]
shared lib "dw_xml.so" version 162 successfully loaded
shared lib "dw_xtc.so" version 162 successfully loaded
shared lib "dw_stl.so" version 162 successfully loaded
shared lib "dw_gui.so" version 162 successfully loaded
shared lib "dw_mdm.so" version 162 successfully loaded
rdisp/softcancel_sequence : -> 0,5,-1
use internal message server connection to port 3901
MtxInit: 30000 0 0
DpSysAdmExtInit: ABAP is active
DpSysAdmExtInit: VMC (JAVA VM in WP) is not active
DpIPCInit2: start server >XXXXXXXXX_TS2_01 <
DpShMCreate: sizeof(wp_adm) 42240 (1760)
DpShMCreate: sizeof(tm_adm) 150350080 (30064)
DpShMCreate: sizeof(wp_ca_adm) 31232 (104)
DpShMCreate: sizeof(appc_ca_adm) 208000 (104)
DpCommTableSize: max/headSize/ftSize/tableSize=500/8/548056/548064
DpShMCreate: sizeof(comm_adm) 548064 (1088)
DpSlockTableSize: max/headSize/ftSize/fiSize/tableSize=0/0/0/0/0
DpShMCreate: sizeof(slock_adm) 0 (104)
DpFileTableSize: max/headSize/ftSize/tableSize=0/0/0/0
DpShMCreate: sizeof(file_adm) 0 (72)
DpShMCreate: sizeof(vmc_adm) 0 (2080)
DpShMCreate: sizeof(wall_adm) (1000056/862328/88/192)
DpShMCreate: sizeof(gw_adm) 48
DpShMCreate: SHM_DP_ADM_KEY (addr: 0xffffffff66000000, size: 153051096)
DpShMCreate: allocated sys_adm at 0xffffffff66000000
DpShMCreate: allocated wp_adm at 0xffffffff66002218
DpShMCreate: allocated tm_adm_list at 0xffffffff6600c718
DpShMCreate: allocated tm_adm at 0xffffffff6600c778
DpShMCreate: allocated wp_ca_adm at 0xffffffff6ef6f078
DpShMCreate: allocated appc_ca_adm at 0xffffffff6ef76a78
DpShMCreate: allocated comm_adm at 0xffffffff6efa96f8
DpShMCreate: system runs without slock table
DpShMCreate: system runs without file table
DpShMCreate: allocated vmc_adm_list at 0xffffffff6f02f3d8
DpShMCreate: allocated gw_adm at 0xffffffff6f02f458
DpShMCreate: system runs without vmc_adm
DpShMCreate: allocated ca_info at 0xffffffff6f02f488
DpShMCreate: allocated wall_adm at 0xffffffff6f02f490
Mon Oct 20 03:59:26 2008
MBUF state OFF
DpCommInitTable: init table for 500 entries
rdisp/queue_size_check_value : -> off
ThTaskStatus: rdisp/reset_online_during_debug 0
EmInit: MmSetImplementation( 2 ).
MM global diagnostic options set: 0
<ES> client 0 initializing ....
<ES> InitFreeList
<ES> block size is 1024 kByte.
Using implementation std
<ES> Info: use normal pages (no huge table support available)
EsStdUnamFileMapInit: ES base = 0x0xfffffffe60000000
EsStdInit: Extended Memory 4048 MB allocated
<ES> 4047 blocks reserved for free list.
ES initialized.
Mon Oct 20 03:59:31 2008
rdisp/http_min_wait_dia_wp : 1 -> 1
***LOG CPS=> DpLoopInit, ICU ( 3.0 3.0 4.0.1) [dpxxdisp.c 1659]
***LOG Q0K=> DpMsAttach, mscon ( XXXXXXXXX) [dpxxdisp.c 12153]
DpStartStopMsg: send start message (myname is >XXXXXXXXX_TS2_01 <)
DpStartStopMsg: start msg sent
CCMS: AlInitGlobals : alert/use_sema_lock = TRUE.
ERROR => DpWPCheck: W0 (pid 3866) died (severity=0, status=65280) [dpxxdisp.c 15218]
child (pid=3866) exited with exit code 255
my types changed after wp death/restart 0xbf --> 0xbd
ERROR => DpWPCheck: W1 (pid 3867) died (severity=0, status=65280) [dpxxdisp.c 15218]
child (pid=3867) exited with exit code 255
ERROR => DpWPCheck: W2 (pid 3868) died (severity=0, status=65280) [dpxxdisp.c 15218]
child (pid=3868) exited with exit code 255
ERROR => DpWPCheck: W4 (pid 3870) died (severity=0, status=65280) [dpxxdisp.c 15218]
child (pid=3870) exited with exit code 255
ERROR => DpWPCheck: W5 (pid 3871) died (severity=0, status=65280) [dpxxdisp.c 15218]
child (pid=3871) exited with exit code 255
ERROR => DpWPCheck: W6 (pid 3872) died (severity=0, status=65280) [dpxxdisp.c 15218]
child (pid=3872) exited with exit code 255
ERROR => DpWPCheck: W7 (pid 3873) died (severity=0, status=65280) [dpxxdisp.c 15218]
child (pid=3873) exited with exit code 255
ERROR => DpWPCheck: W8 (pid 3874) died (severity=0, status=65280) [dpxxdisp.c 15218]
child (pid=3874) exited with exit code 255
ERROR => DpWPCheck: W9 (pid 3875) died (severity=0, status=65280) [dpxxdisp.c 15218]
child (pid=3875) exited with exit code 255
ERROR => DpWPCheck: W10 (pid 3885) died (severity=0, status=65280) [dpxxdisp.c 15218]
child (pid=3885) exited with exit code 255
ERROR => DpWPCheck: W11 (pid 3888) died (severity=0, status=65280) [dpxxdisp.c 15218]
child (pid=3888) exited with exit code 255
ERROR => DpWPCheck: W12 (pid 3890) died (severity=0, status=65280) [dpxxdisp.c 15218]
child (pid=3890) exited with exit code 255
ERROR => DpWPCheck: W13 (pid 3902) died (severity=0, status=65280) [dpxxdisp.c 15218]
child (pid=3902) exited with exit code 255
DpMsgAdmin: Set release to 7000, patchlevel 0
MBUF state PREPARED
MBUF component UP
DpMBufHwIdSet: set Hardware-ID
***LOG Q1C=> DpMBufHwIdSet [dpxxmbuf.c 1050]
DpMsgAdmin: Set patchno for this platform to 162
Release check o.K.
Mon Oct 20 03:59:51 2008
my types changed after wp death/restart 0xbd --> 0x81
ERROR => DpWPCheck: W14 (pid 3903) died (severity=0, status=65280) [dpxxdisp.c 15218]
child (pid=3903) exited with exit code 255
ERROR => DpWPCheck: W15 (pid 3904) died (severity=0, status=65280) [dpxxdisp.c 15218]
child (pid=3904) exited with exit code 255
ERROR => DpWPCheck: W16 (pid 3905) died (severity=0, status=65280) [dpxxdisp.c 15218]
child (pid=3905) exited with exit code 255
ERROR => DpWPCheck: W17 (pid 3908) died (severity=0, status=65280) [dpxxdisp.c 15218]
child (pid=3908) exited with exit code 255
ERROR => DpWPCheck: W18 (pid 3911) died (severity=0, status=65280) [dpxxdisp.c 15218]
child (pid=3911) exited with exit code 255
ERROR => DpWPCheck: W19 (pid 3914) died (severity=0, status=65280) [dpxxdisp.c 15218]
child (pid=3914) exited with exit code 255
ERROR => DpWPCheck: W20 (pid 3915) died (severity=0, status=65280) [dpxxdisp.c 15218]
child (pid=3915) exited with exit code 255
ERROR => DpWPCheck: W21 (pid 3916) died (severity=0, status=65280) [dpxxdisp.c 15218]
child (pid=3916) exited with exit code 255
ERROR => DpWPCheck: W22 (pid 3919) died (severity=0, status=65280) [dpxxdisp.c 15218]
child (pid=3919) exited with exit code 255
ERROR => DpWPCheck: W23 (pid 3924) died (severity=0, status=65280) [dpxxdisp.c 15218]
child (pid=3924) exited with exit code 255
Mon Oct 20 04:00:11 2008
ERROR => gateway (pid 3864) died [dpxxdisp.c 16063]
DpGwCheck: appc_adm.stat = 2
DP_FATAL_ERROR => Gateway could not be started - I better exit now
DISPATCHER EMERGENCY SHUTDOWN ***
increase tracelevel of WPs
kill(3869,0) successful -> process alive
killing W3-3869 (SIGUSR2)
NiWait: sleep (10000ms) ...
NiISelect: timeout 10000ms
NiISelect: maximum fd=12
NiISelect: read-mask is NULL
NiISelect: write-mask is NULL
Mon Oct 20 04:00:21 2008
NiISelect: TIMEOUT occured (10000ms)
dump system status
Workprocess Table (long) Mon Oct 20 08:00:21 2008
========================
No Ty. Pid Status Cause Start Err Sem CPU Time Program Cl User Action Table
0 DIA 3866 Ended no 3 0 0
1 DIA 3867 Ended no 3 0 0
2 DIA 3868 Ended no 3 0 0
3 DIA 3869 Run yes 0 0 0
4 DIA 3870 Ended no 3 0 0
5 DIA 3871 Ended no 3 0 0
6 DIA 3872 Ended no 3 0 0
7 DIA 3873 Ended no 3 0 0
8 DIA 3874 Ended no 3 0 0
9 DIA 3875 Ended no 3 0 0
10 UPD 3885 Ended no 3 0 0
11 UPD 3888 Ended no 3 0 0
12 UPD 3890 Ended no 3 0 0
13 UPD 3902 Ended no 3 0 0
14 ENQ 3903 Ended no 2 0 0
15 BTC 3904 Ended no 2 0 0
16 BTC 3905 Ended no 2 0 0
17 BTC 3908 Ended no 2 0 0
18 BTC 3911 Ended no 2 0 0
19 BTC 3914 Ended no 2 0 0
20 BTC 3915 Ended no 2 0 0
21 SPO 3916 Ended no 2 0 0
22 UP2 3919 Ended no 2 0 0
23 UP2 3924 Ended no 2 0 0
Dispatcher Queue Statistics Mon Oct 20 08:00:21 2008
===========================
--------++++--
+
Typ
now
high
max
writes
reads
--------++++--
+
NOWP
0
0
4000
0
0
--------++++--
+
DIA
4
4
4000
4
0
--------++++--
+
UPD
0
0
4000
0
0
--------++++--
+
ENQ
0
0
4000
0
0
--------++++--
+
BTC
0
0
4000
0
0
--------++++--
+
SPO
0
0
4000
0
0
--------++++--
+
UP2
0
0
4000
0
0
--------++++--
+
max_rq_id 7
wake_evt_udp_now 0
wake events total 3, udp 2 ( 66%), shm 1 ( 33%)
since last update total 3, udp 2 ( 66%), shm 1 ( 33%)
Dump of tm_adm structure: Mon Oct 20 08:00:21 2008
=========================
Term uid man user term lastop mod wp ta a/i (modes)
Workprocess Comm. Area Blocks Mon Oct 20 08:00:21 2008
=============================
Slots: 300, Used: 1, Max: 0
--------++--
+
id
owner
pid
eyecatcher
--------++--
+
0
DISPATCHER
-1
WPCAAD000
NiWait: sleep (5000ms) ...
NiISelect: timeout 5000ms
NiISelect: maximum fd=12
NiISelect: read-mask is NULL
NiISelect: write-mask is NULL
Mon Oct 20 04:00:26 2008
NiISelect: TIMEOUT occured (5000ms)
DpHalt: shutdown server >XXXXXXXXX_TS2_01 < (normal)
DpJ2eeDisableRestart
DpModState: buffer in state MBUF_PREPARED
please help me to solve this.
Thanks
Giridhar -
Error: The decapsulated inner packet doesn't match the negotiated policy in the SA
I upgraded my ASA from 8.2(1) to 8.4(3) as I wanted to try to get Android devices to properly connect via VPN.
After some effort, I was able to get the Android devices to connect via VPN. However, my syslog server has a number of errors recorded that look this this:
%ASA-4-402116: IPSEC: Received an ESP packet (SPI= 0x1E76EFA6, sequence number= 0x1F0) from x.x.x.x (user= testuser) to y.y.y.y. The decapsulated inner packet doesn't match the negotiated policy in the SA. The packet specifies its destination as z.z.z.z, its source as a.a.a.a, and its protocol as tcp. The SA specifies its local proxy as y.y.y.y/255.255.255.255/udp/42246 and its remote_proxy as x.x.x.x/255.255.255.255/udp/0.
Digging further, it seems this error might be due to a NAT issues with the VPN connections. VPN previously worked with Cisco's VPN client on Windows, though I did not test to see if that is no longer working. However, I made no changes in the config, except for those related to additions needed to support L2TP. With the below config, Android clients can connect to the ASA and access the internal network, but they cannot connect to external addresses. I'm at a loss.
The addresses used in the config: 192.168.1.0/24 are on the internal LAN and 192.168.3.0/24 are addresses assigned to VPN clients.
I noted in the config this line:
access-list inside_nat0_outbound extended permit ip any 192.168.3.0 255.255.255.0
The access list is not referenced anywhere, though it was referenced in the 8.2(1) config like this:
nat (inside) 0 access-list inside_nat0_outbound
I'm not sure what else changed, but I've looked over the config and I just cannot see what the issue might be. I'm hoping somebody might be able to point out my error.
Here's the config file (at least the parts that might be of interest):
: Saved
ASA Version 8.4(3)
interface Vlan1
nameif inside
security-level 100
ip address 192.168.1.1 255.255.255.0
interface Vlan2
nameif outside
security-level 0
ip address dhcp setroute
boot system disk0:/asa843-k8.bin
object network obj-192.168.3.0
subnet 192.168.3.0 255.255.255.0
object network obj_any
subnet 0.0.0.0 0.0.0.0
access-list outside_access_in extended permit icmp any interface outside time-exceeded
access-list outside_access_in extended permit icmp any interface outside echo-reply
access-list outside_access_in extended permit icmp any interface outside unreachable
access-list outside_mpc extended permit ip any interface outside
access-list inside_mpc extended permit ip 192.168.1.0 255.255.255.0 any
access-list testVPN_splitTunnelAcl extended permit ip 192.168.1.0 255.255.255.0 any
access-list inside_nat0_outbound extended permit ip any 192.168.3.0 255.255.255.0
ip local pool VPN-Pool-1 192.168.3.1-192.168.3.254 mask 255.255.255.0
ip verify reverse-path interface outside
nat (inside,any) source static any any destination static obj-192.168.3.0 obj-192.168.3.0 no-proxy-arp
object network obj-192.168.3.0
nat (outside,outside) dynamic interface
object network obj_any
nat (inside,outside) dynamic interface
access-group outside_access_in in interface outside
crypto ipsec ikev1 transform-set ESP-AES-256-SHA esp-aes-256 esp-sha-hmac
crypto ipsec ikev1 transform-set ESP-AES-256-MD5 esp-aes-256 esp-md5-hmac
crypto ipsec ikev1 transform-set ESP-DES-SHA esp-des esp-sha-hmac
crypto ipsec ikev1 transform-set ESP-3DES-SHA esp-3des esp-sha-hmac
crypto ipsec ikev1 transform-set ESP-DES-MD5 esp-des esp-md5-hmac
crypto ipsec ikev1 transform-set ESP-AES-192-MD5 esp-aes-192 esp-md5-hmac
crypto ipsec ikev1 transform-set ESP-3DES-MD5 esp-3des esp-md5-hmac
crypto ipsec ikev1 transform-set ESP-AES-128-SHA esp-aes esp-sha-hmac
crypto ipsec ikev1 transform-set ESP-AES-192-SHA esp-aes-192 esp-sha-hmac
crypto ipsec ikev1 transform-set ESP-AES-128-MD5 esp-aes esp-md5-hmac
crypto ipsec ikev1 transform-set ESP-AES-128-SHA-TRANSP esp-aes esp-sha-hmac
crypto ipsec ikev1 transform-set ESP-AES-128-SHA-TRANSP mode transport
crypto ipsec ikev1 transform-set ESP-3DES-SHA-TRANSP esp-des esp-sha-hmac
crypto ipsec ikev1 transform-set ESP-3DES-SHA-TRANSP mode transport
crypto dynamic-map SYSTEM_DEFAULT_CRYPTO_MAP 10 set ikev1 transform-set ESP-AES-128-SHA-TRANSP ESP-3DES-SHA-TRANSP
crypto dynamic-map SYSTEM_DEFAULT_CRYPTO_MAP 65535 set pfs
crypto dynamic-map SYSTEM_DEFAULT_CRYPTO_MAP 65535 set ikev1 transform-set ESP-AES-128-SHA ESP-AES-128-MD5 ESP-AES-192-SHA ESP-AES-192-MD5 ESP-AES-256-SHA ESP-AES-256-MD5 ESP-3DES-SHA ESP-3DES-MD5 ESP-DES-SHA ESP-DES-MD5
crypto map outside_map 65535 ipsec-isakmp dynamic SYSTEM_DEFAULT_CRYPTO_MAP
crypto map outside_map interface outside
crypto ikev1 enable outside
crypto ikev1 policy 5
authentication pre-share
encryption aes
hash sha
group 2
lifetime 86400
crypto ikev1 policy 10
authentication pre-share
encryption aes-256
hash sha
group 2
lifetime 86400
group-policy testVPN internal
group-policy testVPN attributes
wins-server value 192.168.1.8
dns-server value 192.168.1.8 192.168.1.4
vpn-idle-timeout none
vpn-tunnel-protocol ikev1
split-tunnel-policy tunnelspecified
split-tunnel-network-list value testVPN_splitTunnelAcl
default-domain value test.us
group-policy testVPNnsl2tp internal
group-policy testVPNnsl2tp attributes
wins-server value 192.168.1.8
dns-server value 192.168.1.8 192.168.1.4
vpn-idle-timeout none
vpn-tunnel-protocol l2tp-ipsec
group-policy testVPNns internal
group-policy testVPNns attributes
wins-server value 192.168.1.8
dns-server value 192.168.1.8 192.168.1.4
vpn-idle-timeout none
vpn-tunnel-protocol ikev1
username testuser password PASSWORD encrypted privilege 15
username testuser2 password PASSWORD nt-encrypted privilege 15
tunnel-group DefaultRAGroup general-attributes
address-pool VPN-Pool-1
default-group-policy testVPNnsl2tp
tunnel-group DefaultRAGroup ipsec-attributes
ikev1 pre-shared-key *****
tunnel-group DefaultRAGroup ppp-attributes
authentication ms-chap-v2
tunnel-group testVPN type remote-access
tunnel-group testVPN general-attributes
address-pool VPN-Pool-1
default-group-policy testVPN
tunnel-group testVPN ipsec-attributes
ikev1 pre-shared-key *****
tunnel-group testVPNns type remote-access
tunnel-group testVPNns general-attributes
address-pool VPN-Pool-1
default-group-policy testVPNns
tunnel-group testVPNns ipsec-attributes
ikev1 pre-shared-key *****
tunnel-group testVPNnsl2tp type remote-access
tunnel-group testVPNnsl2tp general-attributes
address-pool VPN-Pool-1
default-group-policy testVPNnsl2tp
tunnel-group testVPNnsl2tp ipsec-attributes
ikev1 pre-shared-key *****
tunnel-group testVPNnsl2tp ppp-attributes
authentication ms-chap-v2
One last question: in order to get the connection from Android to work, I was forced to use "tunnel-group DefaultRAGroup". Is that actually a limitation, or did I make an error that forced that requirement? I wanted to use "tunnel-group testVPNnsl2tp".
Thanks!Chris,
This is still a bit off the mark. I think I might be confusing the issue by including some of the VPN configuration that I had previously installed and working (e.g., two other VPN tunnel groups with split tunneling on one of them). Let's just remove that stuff from consideration. I actually tested the current configs just to see if they are working since the upgrade. testVPN is working with the split tunneling, but testVPNns (no-split tunneling) does not allow external access. I guess there is a NAT config issue there, too, but not sure what it is, yet. I've not investigated that closely.
I want to solve one problem at a time, though I understand there are some interdependencies.
What I'd like to focus on right now is just the L2TP VPN connection.
From what I've been able to understand from the documentation, what I need are these lines:
crypto ipsec ikev1 transform-set ESP-AES-128-SHA-TRANSP esp-aes esp-sha-hmac
crypto ipsec ikev1 transform-set ESP-AES-128-SHA-TRANSP mode transport
crypto ipsec ikev1 transform-set ESP-3DES-SHA-TRANSP esp-des esp-sha-hmac
crypto ipsec ikev1 transform-set ESP-3DES-SHA-TRANSP mode transport
crypto dynamic-map SYSTEM_DEFAULT_CRYPTO_MAP 10 set ikev1 transform-set ESP-AES-128-SHA-TRANSP ESP-3DES-SHA-TRANSP
crypto map outside_map 65535 ipsec-isakmp dynamic SYSTEM_DEFAULT_CRYPTO_MAP
crypto map outside_map interface outside
crypto ikev1 enable outside
group-policy testVPNnsl2tp internal
group-policy testVPNnsl2tp attributes
wins-server value 192.168.1.8
dns-server value 192.168.1.8 192.168.1.4
vpn-idle-timeout none
vpn-tunnel-protocol l2tp-ipsec
tunnel-group DefaultRAGroup general-attributes
address-pool VPN-Pool-1
default-group-policy testVPNnsl2tp
tunnel-group DefaultRAGroup ipsec-attributes
ikev1 pre-shared-key P74bmqL6rT40bl5
tunnel-group DefaultRAGroup ppp-attributes
authentication ms-chap-v2
crypto ikev1 policy 5
authentication pre-share
encryption aes
hash sha
group 2
lifetime 86400
I still want to assign the IP addresses to VPN clients out of 192.168.3.0/24.
The tricky part is understanding exactly what NAT rules to insert and to avoid that error message I'm getting relatred to the encapsulated packets. I tried to introduce the commands you had, but it's missing stuff that I would need for L2TP/IPSec (e.g., "mode transport"). I also don't think I want "pfs group5". The above config "works" in that I get connected -- all negotiation is done. It's just that packets from the VPN client are not able to go out to the Internet and I'm seeing that encapsulation error messages when I try to send a packet.
Paul -
Image in Lightroom doesn't match exported image viewed in Photoshop
After all my hard work in Lightroom, I export the image to a folder on my hard drive. When I open this exported image in Photoshop and view it alongside the Lightroom version of its "twin" in Lightroom, there is a significant difference. Why is this? I want to use these images in my books, but my time is wasted if I end up with anything other than what I created in Lightroom. Shouldn't these images match exactly?
Thanks Jao and Michael...the color management idea makes a lot of sense.
Adding to this idea, when I open the Pshop file I get a message about the doc having an embedded profile that doesn't match current RGB working space, and the usual 3 options: Use the embedded profile, Convert color to the working space, or discard embedded profile. No matter which option I choose, none of the opened docs match the Lightroom version.
The color balance is fine, but the colors aren't as vibrant. The Pshop photo is dull and lifeless compared to the Lightroom version. I used Clarity which added subtle brightness, and Vibrance to crank up the color in LR which added wonderful dimensionality and punch to the landscape scene, but the Pshop version has dulled these back down. -
Column count doesn't match value count at row 1, unknown number of columns
Hi,
I am making a program to read data from excel files as the above and store them in tables. I have managed to read all the data from excel files as a string and store them in a table.
ID Name Salary
50 christine 2349000
43 paulina 1245874
54 laura 4587894
23 efi 3456457
43 jim 4512878
But in my project I have several other files that have same cell that are blank as the above example
ID Name Salary
50 christine 2349000
43 paulina
laura 4587894
23 3456457
43 jim 4512878
and when i ran the same program i get this exception :
SQLException: Column count doesn't match value count at row 1
SQLState: 21S01
VendorError: 1136The code for creating the table and inserting the values is above:
private static String getCreateTable(Connection con, String tablename,
LinkedHashMap<String, Integer> tableFields) {
Iterator iter = tableFields.keySet().iterator();
Iterator cells = tableFields.keySet().iterator();
String str = "";
String[] allFields = new String[tableFields.size()];
int i = 0;
while (iter.hasNext()) {
String fieldName = (String) iter.next();
Integer fieldType = (Integer) tableFields.get(fieldName);
switch (fieldType) {
case Cell.CELL_TYPE_NUMERIC:
str = fieldName + " INTEGER";
break;
case Cell.CELL_TYPE_STRING:
str = fieldName + " VARCHAR(255)";
break;
case Cell.CELL_TYPE_BOOLEAN:
str = fieldName + " INTEGER";
break;
default:
str = "";
break;
allFields[i++] = str;
try {
Statement stmt = con.createStatement();
try {
String all = org.apache.commons.lang3.StringUtils.join(
allFields, ",");
String createTableStr = "CREATE TABLE IF NOT EXISTS "
+ tablename + " ( " + all + ")";
System.out.println("Create a new table in the database");
stmt.executeUpdate(createTableStr);
} catch (SQLException e) {
System.out.println("SQLException: " + e.getMessage());
System.out.println("SQLState: " + e.getSQLState());
System.out.println("VendorError: " + e.getErrorCode());
} catch (Exception e)
System.out.println( ((SQLException) e).getSQLState() );
System.out.println( e.getMessage() );
e.printStackTrace();
return str;
private static void fillTable(Connection con, String fieldname,
LinkedHashMap[] tableData) {
for (int row = 0; row < tableData.length; row++) {
LinkedHashMap<String, Integer> rowData = tableData[row];
Iterator iter = rowData.entrySet().iterator();
String str;
String[] tousFields = new String[rowData.size()];
int i = 0;
while (iter.hasNext()) {
Map.Entry pairs = (Map.Entry) iter.next();
Integer fieldType = (Integer) pairs.getValue();
String fieldValue = (String) pairs.getKey();
switch (fieldType) {
case Cell.CELL_TYPE_NUMERIC:
str = fieldValue;
break;
case Cell.CELL_TYPE_STRING:
str = "\'" + fieldValue + "\'";
break;
case Cell.CELL_TYPE_BOOLEAN:
str = fieldValue;
break;
default:
str = "";
break;
tousFields[i++] = str;
try {
Statement stmt = con.createStatement();
String all = org.apache.commons.lang3.StringUtils.join(
tousFields, ",");
String sql = "INSERT INTO " + fieldname + " VALUES (" + all
+ ")";
stmt.executeUpdate(sql);
System.out.println("Fill table...");
} catch (SQLException e) {
System.out.println("SQLException: " + e.getMessage());
System.out.println("SQLState: " + e.getSQLState());
System.out.println("VendorError: " + e.getErrorCode());
}To be more specific the error it in the second row where i have only ID and Name in my excel file and only these i want to store. The third row has only Name and Salary and no ID. How i would be able to store only the values that i have and leave blank in the second row the Salary and in the third row the ID? Is there a way for my program to skip the blanks as empty value?
Edited by: 998913 on May 9, 2013 1:01 AMIn an unrelated observation, it appears you are creating new database tables to hold each document. I don't think this is a good idea. Your database tables should be created using the database's utility program and not programmatically. The database schema should hardly ever change once the project is complete.
As a design approach: One database table can hold your document names, versions, and date they were uploaded. Another table will hold the column names and data types. Another table can hold the data (type for all data = String). This way, you can join the three tables to retrieve a document. Your design will only consists of those three tables no matter how many unique documents you have. You probably should seek the advice of a DBA or experienced Java developer on exactly how structure those tables. My design is a rough layout. -
Saved file doesn%27t match original text
Using LV 2010. I have an application where I'm encrypting a file and saving it to the hard drive as a text file. The problem I'm having is that the string of characters that I'm writing to the file does not match the string of characters that are read from the file. The files match for the first 10 characters, then in the original string, there is a \r character that is dropped from the file. The rest of the file doesn't match too well after that. Also, the size of the strings are different too by a few thousand characters. Is there some setting in the file read or write that could be causing this? Thanks.
Solved!
Go to Solution.Here's a quick example (LabVIEW 2010). Result is always true in my limited testing.
Here's the string IO version:
(It is a bit more complicated when using the binary file IO:
(1) wire false to prepend array or string size when writing.
(2) wire -1 to count when reading.
This code is not attached, just a picture)
LabVIEW Champion . Do more with less code and in less time .
Attachments:
ValidateFileIO.png 5 KB
ValidateFileIO.vi 7 KB
ValidateFileIOBinary.png 5 KB -
New iTunes - Artwork downloaded doesn't match
I just installed the latest iTUnes version. I have gone through my whole library and downloaded the artwork (album covers) but when the artwork doesn't match, I try to delete it but the wrong cover stays, and I have no way to remove it..... Does anyone have the same problem? Thanks
acer aspire 1691 Windows XP
acer aspire 1691 Windows XPHave the same problem. Suggestion of pac_80 doesn't work.
Have posted this to the Itunes helpdesk.
What's strange is that when clicking Get Info the artwork doesn't pop up. When adding other artwork the previous one remains in the view, while the new one in the separate artwork-window => so downloaded and manually added must be two separate fields... -
Audio doesn't match video because repeated half way through
Hi guys,
I am currently editing videos from my Canon SLR with Adobe Premiere Elements (Windows).
In the same project, I have only uploaded videos taken the same day with the same equipment. I have been able to process them all normally apart from one. For some reason, when I play this file with a basic video player, everything works fine but when I import it in the Adobe software and play it either through the small window or in the timeline, I have the same problem:
Everything works fine (audio and video in sync), until it reaches a specific point (totally random as far as I can tell) when the video keeps going but suddenly the sound repeats itself from the beginning of the file (and the audio which would correspond to the video is replaced by it). For you to understand better the problem:
Video: ABCDEF
Audio: ABCABC
I have tried opening it in a different project and somehow it happens exactly at the same point.
I am totally clueless of what it comes from and getting really frustrated!
Any idea?
Cheers
BabsHello, I'm new to using forums like this. Is it appropriate for me to post that I'm having the same issue? Also sounds similar to Audio doesn't match video because repeated half way through as well.
My situation is:
Win7 64-bit, i7 920, 2.67GHz, 8GB RAM
Multiple Nikon D7000 video clips I've taken play back fine except for the following clip. In Windows Media Viewer, I have no problem, but in PE10, in the timeline editor, this clip repeats the audio from the beginning starting about 6 minutes into the video. I have Quicktime version 7.7.5 installed which I noticed was mentioned as a possible culprit in the other thread.
I've been using my camera primarily for stills, but decided to have my mom tell her story before she wasn't able to. I'm so frustrated with this problem because I know the audio is just fine since I can play it back synchronized throughout the entire clip in WMV. I've tried cleaning out PE caches as best I can figure them out and created new projects without any better luck.
Any help would be greatly appreciated. I'm open to getting a new version of PE or another program if I could believe that I wouldn't run into this issue again. This seems like such a vanilla problem since all my other clips seem to be fine and this one does too on WMV.
Thanks for any help you can provide. I don't really know where else to go to figure this out.
Joel
My Premier Elements Project settings are:
Editing Mode: DSLR
Timebase: 23.976frames/sec
Video:
Framesize: 1920 x 1080
Pixel Aspect Ratio: Square Pixels (1.0)
Fields: No Fields (Progressive Scan)
Display Format: 24fps Timecode
Audio:
Sampe Rate: 48000 Hz
Output from MediaInfo
General
Complete name : Z:\NikonVideo\MomsStory\JDB_20140702_6537.MOV
Format : MPEG-4
Format profile : QuickTime
Codec ID : qt
File size : 1.46 GiB
Duration : 10mn 32s
Overall bit rate : 19.8 Mbps
Encoded date : UTC 2014-07-02 18:22:46
Tagged date : UTC 2014-07-15 03:24:05
NCDT : NCTG
Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : [email protected]
Format settings, CABAC : Yes
Format settings, ReFrames : 2 frames
Codec ID : avc1
Codec ID/Info : Advanced Video Coding
Duration : 10mn 32s
Bit rate : 18.3 Mbps
Width : 1 920 pixels
Height : 1 080 pixels
Display aspect ratio : 16:9
Frame rate mode : Constant
Frame rate : 23.976 fps
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.368
Stream size : 1.35 GiB (92%)
Language : English
Encoded date : UTC 2014-07-02 18:22:46
Tagged date : UTC 2014-07-02 18:22:46
Transfer characteristics : BT.470 System M
Matrix coefficients : BT.601
Audio
ID : 2
Format : PCM
Format settings, Endianness : Little
Format settings, Sign : Signed
Codec ID : sowt
Duration : 10mn 32s
Bit rate mode : Constant
Bit rate : 1 536 Kbps
Channel(s) : 2 channels
Channel positions : Front: L R
Sampling rate : 48.0 KHz
Bit depth : 16 bits
Stream size : 116 MiB (8%)
Language : English
Encoded date : UTC 2014-07-02 18:22:46
Tagged date : UTC 2014-07-02 18:22:46 -
Serial number doesn't match product
My coworker downloaded Adobe Acrobat XI Standard on our computers recently and now whenever I try to open up a PDF file a pop up screen appears with the heading "Serial Number Upgrade" asking me to chose a product and type in the serial number I have tried matching every single product option with my serial number and none of them work. The screen does say my serial number is correct but it doesn't match any of the products. I'm not sure what to do at this point...?
Ok, so what you are saying is we bought the upgraded Adobe Acrobat, but we would need to buy the previous version if we want the serial number to work?
King & Wood, P.A.
1701 Hermitage Blvd., Ste. 104
(850) 580-7711
(850) 205-4501 fax
Privileged & Confidential: This email is intended for the named recipient(s) only and may contain information that is proprietary, privileged, confidential, or otherwise legally exempt from disclosure. If you are not the named addressee, you are not authorized to read, print, retain, copy, or disseminate this message or any part of it. Nothing in this email is intended to constitute a waiver of any privilege or the confidentiality of this message. If you have received this email in error, please notify the sender immediately and delete this message. Circular 230 Disclosure:To ensure compliance with Treasury Department regulations, we advise you that, unless expressly indicated, any federal tax advice contained in this message or any attachments cannot be used for the purpose of avoiding penalties imposed by the Internal Revenue Code, or (ii) promoting, marketing, or recommending to another party any matters addressed herein -
Signed JNLP file doesn't match JNLP file on webserver?
Hi,
using Java 1.6.0(_13) Webstart says, that the JNLP file is not signed.
So I added my JNLP file as JNLP-INF/APPLICATION.JNLP into the client jar.
I signed my jar with my cert from thawte and copied the JNLP file to the unix webserver.
Now Webstart says that the JNLP file from the webserver doesn't match with the signed one.
Does anyone have some practical experience with signing JNLP files and knows the common pitfalls.
What are the issues that could let this fail, CR/LF or a bug ?
Best regardsIts from an Android device? Maybe incompatible Java versions. In Utilities launch the Java Preferences app and look at the enabled version information (General tab). Perhaps click the Restore Defaults button.
-
Closing Stock Valuation doesn't matched physicallly
Hi SAP Gurus.,
Can you please assist me reg this issue"Closing Stock Valuation doesn't matched physicallly".
May I know the possible rectification ways to solve this problem.
Thanks in Advance,
Regards,
Balaji BhonslePhysical Inventory...
http://www.sap-img.com/materials/physical-inventory-process.htm
Maybe you are looking for
-
I have a late 2013 13" MacBook Pro Retina using Yosemite. In Finder, under pictures, my iPhoto library won't show pictures. It says there's 12GB of photos, but it won't show the photos. When I click on the iPhoto Library, it will open the iPhoto app
-
How do I launch executable from PS prompt?
Hello, Very basic question, if I launch powershell and I'm trying to launch executable from "system32" (which is in PATH:), how do I do that without specifying exact path to it (like you can do in "CMD.EXE") PS C:\Users\g> nesth.exe winhttp show prox
-
Invalid objects no longer show
In APEX 3.0, any invalid procedures, triggers, etc. would show up with a red mark when viewing the objects. After upgrading to 3.2, they no longer do that. Is this intentional behavior or is something broken? It was really nice for quickly identifyin
-
PP IDOC Message for Work Center upload with Costing
Hi all, I'm looking for apropriate IDOC message type to import Costing data with Work Centers. I found some of them to pass WorkCenters data, the best is LOIWCS I think, but I don;t see a possibility to passing costing data. ( e.q. KOSTL domain fiel
-
Hi Gurus, Can anyone send me list of standard fi document types? Please send it. Thank You Moderator: Please, respect the rules of SDN. If you want to know the document types, look at table T003