0x0F28EA10 (ucrtbased.dll)处(位于 Project10.exe 中)引发的异常: 0xC0000005: 读取位置 0x00000000 时发生访问冲突。求原因和解决方案,代码如下

#include
char str[5][1000], p, *t, *g, cr[100][4], mr[4], uj[100][4];
int m, n, i, j, k;
void main()
{
for (i = 0; i < 5; i++)
gets(str[i]);
for (k = 0, n = 0; k < 5; k++)
{
p = &str[k][0];
for (i = 0, n = n + 1; i < 1000; i++)
{
if (((
(p + i) > 47) && (*(p + i) < 58)) && ((*(p + i + 1) > 47) && (*(p + i + 1) < 58)) && ((*(p + i + 2) > 47) && (*(p + i + 2) < 58)))
{

            n = n + 1;
            for (j = i, m = 0; j < 3 + i; j++, m++)
            {
                printf("%c", *(p + j));
                cr[n][m] = *(p + j);
            }
            printf("\n"); i = i + 2;
        }

    }

}
printf("\n");
for (i = 0; i < 30; i++)
    printf("%s \n", cr + i);

char hello(char);
hello(cr + 0);

}

char hello(char uj)
{
for (i = 0; i < 100; i++)
{
if (strcmp(((uj + i), (uj + i + 1)) > 0))
{
strcpy(mr, uj + i);
strcpy(uj + i, uj + i + 1);
strcpy(uj + i + 1, mr);
}

}
for (i = 0; i < 100; i++)
    printf("%s \n", uj + i);
return 0;

}

用codeblocks不能执行被调用函数内容
用vs2017时出现标题所示错误

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
调用http.Get时出现golang恐慌

<div class="post-text" itemprop="text"> <p>error message:</p> <pre><code>goroutine 11357 [runnable]: net.runtime_pollWait(0x1737f28, 0x77, 0x4fa90) /usr/local/go/src/runtime/netpoll.go:157 +0x60 net.(*pollDesc).Wait(0xc829571bf0, 0x77, 0x0, 0x0) /usr/local/go/src/net/fd_poll_runtime.go:73 +0x3a net.(*pollDesc).WaitWrite(0xc829571bf0, 0x0, 0x0) /usr/local/go/src/net/fd_poll_runtime.go:82 +0x36 net.(*netFD).connect(0xc829571b90, 0x0, 0x0, 0x1714f80, 0xc829572f20, 0xece412272, 0x33aa2325, 0x473ea0, 0x0, 0x0) /usr/local/go/src/net/fd_unix.go:114 +0x1f6 net.(*netFD).dial(0xc829571b90, 0x1714f38, 0x0, 0x1714f38, 0xc8295755c0, 0xece412272, 0x33aa2325, 0x473ea0, 0x0, 0x0) /usr/local/go/src/net/sock_posix.go:137 +0x351 net.socket(0x3050e8, 0x3, 0x2, 0x1, 0x0, 0xc829575500, 0x1714f38, 0x0, 0x1714f38, 0xc8295755c0, ...) /usr/local/go/src/net/sock_posix.go:89 +0x411 net.internetSocket(0x3050e8, 0x3, 0x1714f38, 0x0, 0x1714f38, 0xc8295755c0, 0xece412272, 0xc833aa2325, 0x473ea0, 0x1, ...) /usr/local/go/src/net/ipsock_posix.go:160 +0x141 net.dialTCP(0x3050e8, 0x3, 0x0, 0xc8295755c0, 0xece412272, 0xc833aa2325, 0x473ea0, 0x2, 0x0, 0x0) /usr/local/go/src/net/tcpsock_posix.go:171 +0x11e net.dialSingle(0xc829580b80, 0x1714ea8, 0xc8295755c0, 0xece412272, 0x33aa2325, 0x473ea0, 0x0, 0x0, 0x0, 0x0) /usr/local/go/src/net/dial.go:364 +0x3f5 net.dialSerial.func1(0xece412272, 0x33aa2325, 0x473ea0, 0x0, 0x0, 0x0, 0x0) /usr/local/go/src/net/dial.go:336 +0x75 net.dial(0x3050e8, 0x3, 0x1714ea8, 0xc8295755c0, 0xc8232f96e8, 0xece412272, 0x33aa2325, 0x473ea0, 0x0, 0x0, ...) /usr/local/go/src/net/fd_unix.go:40 +0x60 net.dialSerial(0xc829580b80, 0xc829572f00, 0x2, 0x2, 0x0, 0x0, 0x0, 0x0, 0x0) /usr/local/go/src/net/dial.go:338 +0x760 net.(*Dialer).Dial(0xc8200783c0, 0x3050e8, 0x3, 0xc823166ed0, 0x10, 0x0, 0x0, 0x0, 0x0) /usr/local/go/src/net/dial.go:232 +0x50f net.(*Dialer).Dial-fm(0x3050e8, 0x3, 0xc823166ed0, 0x10, 0x0, 0x0, 0x0, 0x0) /usr/local/go/src/net/http/transport.go:38 +0x6e net/http.(*Transport).dial(0xc820092090, 0x3050e8, 0x3, 0xc823166ed0, 0x10, 0x0, 0x0, 0x0, 0x0) /usr/local/go/src/net/http/transport.go:499 +0x79 net/http.(*Transport).dialConn(0xc820092090, 0x0, 0x7fff5fbff92a, 0x4, 0xc823166ed0, 0x10, 0x0, 0x0, 0x0) /usr/local/go/src/net/http/transport.go:596 +0x19a9 net/http.(*Transport).getConn.func4(0xc820092090, 0x0, 0x7fff5fbff92a, 0x4, 0xc823166ed0, 0x10, 0xc8232a9560) /usr/local/go/src/net/http/transport.go:549 +0x66 created by net/http.(*Transport).getConn /usr/local/go/src/net/http/transport.go:551 +0x265 </code></pre> <p>source</p> <pre><code>package main import ( "fmt" "io/ioutil" "net/http" "os" "strconv" "time" ) func golanggo(url string, round int, c chan int64) { for i := 0; i &lt; round; i++ { call(url, c) } } func call(url string, c chan int64) { eslap := int64(0) defer func() { c &lt;- eslap //fmt.Println("put", eslap) // if err := recover(); err != nil { // fmt.Println(err) // } }() now := time.Now() resp, err := http.Get(url) defer resp.Body.Close() if err != nil { fmt.Println("err:", err) return } if resp.StatusCode == 200 { ioutil.ReadAll(resp.Body) //fmt.Println(string(data[:])) } eslap = time.Now().Sub(now).Nanoseconds() } func main() { url := os.Args[1] size, _ := strconv.Atoi(os.Args[2]) round, _ := strconv.Atoi(os.Args[3]) c := make(chan int64) for i := 0; i &lt; size; i++ { go golanggo(url, round, c) } var total int64 = 0 var nanos int64 for i := 0; i &lt; (size * round); i++ { //fmt.Print(i) nanos = &lt;-c //fmt.Println(i, "get", nanos) total += nanos } fmt.Println(total / 1000000) } </code></pre> <p>when exec go run client.go <a href="http://www.baidu.com" rel="nofollow">http://www.baidu.com</a> 10000 1, and after a few seconds program crash. when exec go run client.go <a href="http://www.baidu.com" rel="nofollow">http://www.baidu.com</a> 100 1, it's ok.</p> <p>How much of goroutine will cause this error?</p> <p>Please help me! Thanks.</p> </div>

全志A40I按power键死机

全志A40I使用的是Android7系统,内核Linux3.10.65。使用的WiFi是AP6236 按power键出现死机。log打印如下: a40-boardcon:/ # [ 1422.126312] [DISP] disp_lcd_pwm_enable,line:1079:pwm device hdl is NULL [ 1422.164875] disp_runtime_idle [ 1422.700248] PM: suspend entry 2019-11-29 03:26:13.193275785 UTC [ 1422.706769] [pm]valid [ 1422.709253] PM: Syncing filesystems ... done. [ 1422.715960] PM: Preparing system for mem sleep [ 1422.723091] Freezing user space processes ... [ 1422.728251] last active wakeup source: eventpoll [ 1422.733714] [ 1422.735340] Freezing of tasks aborted after 0.005 seconds [ 1422.741380] Restarting tasks ... done. [ 1422.746143] sunxi-mmc 1c0f000.sdmmc: smc 1 p0 err, cmd 7, RTO !! [ 1422.746184] sunxi-mmc 1c0f000.sdmmc: smc 1 p0 err, cmd 7, RTO !! [ 1422.746214] sunxi-mmc 1c0f000.sdmmc: smc 1 p0 err, cmd 7, RTO !! [ 1422.746242] sunxi-mmc 1c0f000.sdmmc: smc 1 p0 err, cmd 7, RTO !! [ 1422.747082] sdioh_remove: Enter [ 1422.747088] dhdsdio_disconnect : no mutex held. set lock [ 1422.747095] bcmsdh_oob_intr_unregister: Enter [ 1422.747097] bcmsdh_oob_intr_unregister: irq is not registered [ 1422.747104] dhd_wlfc_deinit():3301, Already disabled! [ 1422.752940] PM: suspend exit 2019-11-29 03:26:13.245966118 UTC [ 1422.910357] dhd_detach(): thread:dhd_watchdog_thread:6a6 terminated OK [ 1422.917576] dhd_detach(): thread:dhd_rxf:6a8 terminated OK [ 1422.923968] dhd_dpc_thread: Unexpected up_cnt 0 [ 1422.929081] dhd_detach(): thread:dhd_dpc:6a7 terminated OK [ 1422.936715] wl_event_handler: was terminated [ 1422.941637] wl_destroy_event_handler(): thread:wl_event_handler:6a4 terminated OK [ 1423.250136] dhd_os_prealloc: failed to alloc memory, section: 7, size: 0bytes [ 1423.258093] dhdsdio_disconnect : the lock is released. [ 1423.264114] Unable to handle kernel paging request at virtual address 6b6b6b6b [ 1423.272328] pgd = c0004000 [ 1423.275320] [6b6b6b6b] *pgd=00000000 [ 1423.279270] Internal error: Oops: 5 [#1] PREEMPT SMP ARM [ 1423.282261] Modules linked in: sunxi_ir_rx gt9xxnew_ts bcm_btlpm bcmdhd xin_ncm r8152 ttyxin gpio_sunxi mali(O) nand(O) [ 1423.282261] CPU: 2 PID: 23224 Comm: kworker/u8:0 Tainted: G W O 3.10.65 #64 [ 1423.282261] Workqueue: kmmcd mmc_rescan [ 1423.282261] task: cc88dac0 ti: e0110000 task.ti: e0110000 [ 1423.282261] PC is at sdio_claim_host+0x30/0x40 [ 1423.282261] LR is at sdioh_detach+0x6c/0xac [bcmdhd] [ 1423.282261] pc : [<c0491fac>] lr : [<bf10db64>] psr: 20070013 [ 1423.282261] sp : e0111da0 ip : e0111db0 fp : e0111dac [ 1423.282261] r10: e484b414 r9 : 00000000 r8 : e41f89d8 [ 1423.282261] r7 : 00000000 r6 : bf16e400 r5 : e3d78b40 r4 : e431e000 [ 1423.282261] r3 : 6b6b6b6b r2 : e0111d40 r1 : 40070013 r0 : e4321800 [ 1423.282261] Flags: nzCv IRQs on FIQs on Mode SVC_32 ISA ARM Segment kernel [ 1423.282261] Control: 10c5387d Table: 638e006a DAC: 00000015 [ 1423.282261] [ 1423.282261] PC: 0xc0491f2c: [ 1423.282261] 1f2c 05932354 13e00015 01821001 05831354 e89da800 e1a0c00d e92dd800 e24cb004 [ 1423.282261] 1f4c e92d4000 e8bd4000 e3500000 1a000000 e7f001f2 e5903000 e3530000 1a000000 [ 1423.282261] 1f6c e7f001f2 e5933000 e59301cc e89da800 e1a0c00d e92dd800 e24cb004 e92d4000 [ 1423.282261] 1f8c e8bd4000 e3500000 1a000000 e7f001f2 e5903000 e3530000 1a000000 e7f001f2 [ 1423.282261] 1fac e5930000 e3a01000 ebffce29 e89da800 e1a0c00d e92dd810 e24cb004 e24dd00c [ 1423.282261] 1fcc e92d4000 e8bd4000 e3500000 e1a0c002 e1a04003 1a000000 e7f001f2 e24230f0 [ 1423.282261] 1fec e353000f 9a000007 e5903000 e593318c e3130001 1a000003 e3540000 13e03015 [ 1423.282261] 200c 15843000 ea000008 e3a02000 e58d1000 e58d2004 e3a01001 e5900000 e1a0300c [ 1423.282261] [ 1423.282261] SP: 0xe0111d20: [ 1423.282261] 1d20 00000000 e4196a28 40070013 c06d2544 e0111d4c e0111d40 c0491fac 20070013 [ 1423.282261] 1d40 ffffffff e0111d8c e0111dac e0111d58 c06d2fd8 c000a168 e4321800 40070013 [ 1423.282261] 1d60 e0111d40 6b6b6b6b e431e000 e3d78b40 bf16e400 00000000 e41f89d8 00000000 [ 1423.282261] 1d80 e484b414 e0111dac e0111db0 e0111da0 bf10db64 c0491fac 20070013 ffffffff [ 1423.282261] 1da0 e0111dc4 e0111db0 bf10db64 c0491f88 00000000 e431e000 e0111ddc e0111dc8 [ 1423.282261] 1dc0 bf10ff34 bf10db04 e4321608 e4321600 e0111dfc e0111de0 c0490b0c bf10fe04 [ 1423.282261] 1de0 c0490ac4 e4321608 bf16e400 c0b6c880 e0111e14 e0111e00 c0324d90 c0490ad0 [ 1423.282261] 1e00 e432163c e4321608 e0111e2c e0111e18 c0324e04 c0324d10 e4321608 e4991ab0 [ 1423.282261] [ 1423.282261] IP: 0xe0111d30: [ 1423.282261] 1d30 e0111d4c e0111d40 c0491fac 20070013 ffffffff e0111d8c e0111dac e0111d58 [ 1423.282261] 1d50 c06d2fd8 c000a168 e4321800 40070013 e0111d40 6b6b6b6b e431e000 e3d78b40 [ 1423.282261] 1d70 bf16e400 00000000 e41f89d8 00000000 e484b414 e0111dac e0111db0 e0111da0 [ 1423.282261] 1d90 bf10db64 c0491fac 20070013 ffffffff e0111dc4 e0111db0 bf10db64 c0491f88 [ 1423.282261] 1db0 00000000 e431e000 e0111ddc e0111dc8 bf10ff34 bf10db04 e4321608 e4321600 [ 1423.282261] 1dd0 e0111dfc e0111de0 c0490b0c bf10fe04 c0490ac4 e4321608 bf16e400 c0b6c880 [ 1423.282261] 1df0 e0111e14 e0111e00 c0324d90 c0490ad0 e432163c e4321608 e0111e2c e0111e18 [ 1423.282261] 1e10 c0324e04 c0324d10 e4321608 e4991ab0 e0111e4c e0111e30 c03248c4 c0324de4 [ 1423.282261] [ 1423.282261] FP: 0xe0111d2c: [ 1423.282261] 1d2c c06d2544 e0111d4c e0111d40 c0491fac 20070013 ffffffff e0111d8c e0111dac [ 1423.282261] 1d4c e0111d58 c06d2fd8 c000a168 e4321800 40070013 e0111d40 6b6b6b6b e431e000 [ 1423.282261] 1d6c e3d78b40 bf16e400 00000000 e41f89d8 00000000 e484b414 e0111dac e0111db0 [ 1423.282261] 1d8c e0111da0 bf10db64 c0491fac 20070013 ffffffff e0111dc4 e0111db0 bf10db64 [ 1423.282261] 1dac c0491f88 00000000 e431e000 e0111ddc e0111dc8 bf10ff34 bf10db04 e4321608 [ 1423.282261] 1dcc e4321600 e0111dfc e0111de0 c0490b0c bf10fe04 c0490ac4 e4321608 bf16e400 [ 1423.282261] 1dec c0b6c880 e0111e14 e0111e00 c0324d90 c0490ad0 e432163c e4321608 e0111e2c [ 1423.282261] 1e0c e0111e18 c0324e04 c0324d10 e4321608 e4991ab0 e0111e4c e0111e30 c03248c4 [ 1423.282261] [ 1423.282261] R0: 0xe4321780: [ 1423.282261] 1780 00000000 00000002 02d00000 0000a9a6 00000200 00000080 000007d0 00000001 [ 1423.282261] 17a0 00000000 00000000 00000000 e3d788c0 00000000 00000000 00000000 00000000 [ 1423.282261] 17c0 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 [ 1423.282261] 17e0 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 [ 1423.282261] 1800 6b6b6b6b 6b6b6b6b 6b6b6b6b 6b6b6b6b 6b6b6b6b 6b6b6b6b 6b6b6b6b 6b6b6b6b [ 1423.282261] 1820 6b6b6b6b 6b6b6b6b 6b6b6b6b 6b6b6b6b 6b6b6b6b 6b6b6b6b 6b6b6b6b 6b6b6b6b [ 1423.282261] 1840 6b6b6b6b 6b6b6b6b 6b6b6b6b 6b6b6b6b 6b6b6b6b 6b6b6b6b 6b6b6b6b 6b6b6b6b [ 1423.282261] 1860 6b6b6b6b 6b6b6b6b 6b6b6b6b 6b6b6b6b 6b6b6b6b 6b6b6b6b 6b6b6b6b 6b6b6b6b [ 1423.282261] [ 1423.282261] R2: 0xe0111cc0: [ 1423.282261] 1cc0 c0485d44 c0485b6c 00000000 e0111d14 00000000 00000000 00000000 00020002 [ 1423.282261] 1ce0 e0111ce0 e0111ce0 c0485b40 00000000 00000000 e4196800 00000400 e0111d97 [ 1423.282261] 1d00 e0111d6c e0111d10 c0490454 c0485cd4 e0111d34 00000034 00000400 c00507a0 [ 1423.282261] 1d20 00000000 e4196a28 40070013 c06d2544 e0111d4c e0111d40 c0491fac 20070013 [ 1423.282261] 1d40 ffffffff e0111d8c e0111dac e0111d58 c06d2fd8 c000a168 e4321800 40070013 [ 1423.282261] 1d60 e0111d40 6b6b6b6b e431e000 e3d78b40 bf16e400 00000000 e41f89d8 00000000 [ 1423.282261] 1d80 e484b414 e0111dac e0111db0 e0111da0 bf10db64 c0491fac 20070013 ffffffff [ 1423.282261] 1da0 e0111dc4 e0111db0 bf10db64 c0491f88 00000000 e431e000 e0111ddc e0111dc8 [ 1423.282261] [ 1423.282261] R4: 0xe431df80: [ 1423.282261] df80 00000000 e42e9c80 c003d488 00000000 e431dfac e431dfa0 c003d4b8 c003d328 [ 1423.282261] dfa0 00000000 e431dfb0 c000fa78 c003d494 00000000 00000000 00000000 00000000 [ 1423.282261] dfc0 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 [ 1423.282261] dfe0 00000000 00000000 00000000 00000000 00000013 00000000 00001040 00001008 [ 1423.282261] e000 e3d78b40 e3d78ac0 00000000 00000000 00000000 00000000 00000000 00010100 [ 1423.282261] e020 00000000 00000040 00000040 00000080 00000000 00000000 00000000 00000000 [ 1423.282261] e040 00000002 00001070 00001070 00001000 00001038 00000000 00000000 00000000 [ 1423.282261] e060 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 [ 1423.282261] [ 1423.282261] R5: 0xe3d78ac0: [ 1423.282261] 8ac0 6b6b6b6b 6b6b6b6b 6b6b6b6b 6b6b6b6b 6b6b6b6b 6b6b6b6b 6b6b6b6b 6b6b6b6b [ 1423.282261] 8ae0 6b6b6b6b 6b6b6b6b 6b6b6b6b 6b6b6b6b 6b6b6b6b 6b6b6b6b 6b6b6b6b a56b6b6b [ 1423.282261] 8b00 000004e8 00000000 00000000 00000000 00000000 00000001 5a5a5a5a 5a5a5a5a [ 1423.282261] 8b20 5a5a5a5a 5a5a5a5a 5a5a5a5a 5a5a5a5a 5a5a5a5a 5a5a5a5a 5a5a5a5a a55a5a5a [ 1423.282261] 8b40 00000001 00000000 00000000 00000000 00000000 00000000 1234abcd e4321608 [ 1423.282261] 8b60 00000000 00000003 e3d78b00 e3d78ac0 00000000 5a5a5a5a 5a5a5a5a a55a5a5a [ 1423.282261] 8b80 6b6b6b6b 6b6b6b6b 6b6b6b6b 6b6b6b6b 6b6b6b6b 6b6b6b6b 6b6b6b6b 6b6b6b6b [ 1423.282261] 8ba0 6b6b6b6b 6b6b6b6b 6b6b6b6b 6b6b6b6b 6b6b6b6b 6b6b6b6b 6b6b6b6b a56b6b6b [ 1423.282261] [ 1423.282261] R8: 0xe41f8958: [ 1423.282261] 8958 00000000 e41f8944 00000000 e4853f10 e4853f10 00000000 e41f8970 e41f8970 [ 1423.282261] 8978 e41f8978 e41f8978 e433d840 ffffffff 00000000 c0a743bc e49bcb00 00000000 [ 1423.282261] 8998 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 [ 1423.282261] 89b8 00000000 00000000 00000000 e484b550 e4196a3c c0488298 e4873900 00000000 [ 1423.282261] 89d8 e41f89d8 e41f89d8 cc88dac0 e484b400 0001b691 00000081 00000000 73756c66 [ 1423.282261] 89f8 3a302d68 00003132 00000000 00000000 00000000 00000000 00000000 00000000 [ 1423.282261] 8a18 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 [ 1423.282261] 8a38 00000000 00000000 f00003fa 0000416d 00000002 00000000 00000000 00000000 [ 1423.282261] [ 1423.282261] R10: 0xe484b394: [ 1423.282261] b394 5a5a5a5a 5a5a5a5a 5a5a5a5a 5a5a5a5a 5a5a5a5a 5a5a5a5a 5a5a5a5a 5a5a5a5a [ 1423.282261] b3b4 5a5a5a5a 5a5a5a5a 5a5a5a5a 5a5a5a5a 5a5a5a5a 5a5a5a5a 5a5a5a5a 5a5a5a5a [ 1423.282261] b3d4 5a5a5a5a 5a5a5a5a 5a5a5a5a 5a5a5a5a 5a5a5a5a 5a5a5a5a 5a5a5a5a 5a5a5a5a [ 1423.282261] b3f4 5a5a5a5a 5a5a5a5a a55a5a5a 15be15be ffffffff ffffffff 00000008 00000004 [ 1423.282261] b414 e484b414 e484b414 00000004 00000003 e48f3ec0 cef7c940 e490e85c e490e85c [ 1423.282261] b434 0001c900 e490e001 c003e478 e484b400 ffffffff ffffffff 00000000 00000000 [ 1423.282261] b454 00000000 00000000 00000000 00000000 00200200 000153ac e48ea000 c003e690 [ 1423.282261] b474 e484b400 ffffffff ffffffff 00000000 00000000 00000000 00000000 00000000 [ 1423.282261] Process kworker/u8:0 (pid: 23224, stack limit = 0xe0110240) [ 1423.282261] Stack: (0xe0111da0 to 0xe0112000) [ 1423.282261] 1da0: e0111dc4 e0111db0 bf10db64 c0491f88 00000000 e431e000 e0111ddc e0111dc8 [ 1423.282261] 1dc0: bf10ff34 bf10db04 e4321608 e4321600 e0111dfc e0111de0 c0490b0c bf10fe04 [ 1423.282261] 1de0: c0490ac4 e4321608 bf16e400 c0b6c880 e0111e14 e0111e00 c0324d90 c0490ad0 [ 1423.282261] 1e00: e432163c e4321608 e0111e2c e0111e18 c0324e04 c0324d10 e4321608 e4991ab0 [ 1423.282261] 1e20: e0111e4c e0111e30 c03248c4 c0324de4 00000011 e4321608 e3c24408 000000b9 [ 1423.282261] 1e40: e0111e6c e0111e50 c03222ec c03247f8 00000001 e4321608 e4196800 000000b9 [ 1423.282261] 1e60: e0111e84 e0111e70 c0490f3c c03221e0 00000002 00000001 e0111ea4 e0111e88 [ 1423.282261] 1e80: c048fee8 c0490f1c e4196800 ffffff92 e41969e8 c07640a0 e0111ebc e0111ea8 [ 1423.282261] 1ea0: c0490000 c048fea8 e4196a3c e4196800 e0111ee4 e0111ec0 c0488350 c048ff20 [ 1423.282261] 1ec0: e41f89c0 e484b400 e4873900 e4196a3c e41f89d8 e484b414 e0111f24 e0111ee8 [ 1423.282261] 1ee0: c0040a8c c04882a4 c0b8f2e8 e41f89c0 e484b400 00000000 e0110000 e41f89c0 [ 1423.282261] 1f00: e484b400 c0b8f2e8 e0110000 e41f89d8 e484b400 e484b414 e0111f5c e0111f28 [ 1423.282261] 1f20: c0040ec4 c00407e8 00000000 e41f89c0 c0040c8c e4151e6c 00000000 e41f89c0 [ 1423.282261] 1f40: c0040c8c 00000000 00000000 00000000 e0111fac e0111f60 c00470ec c0040c98 [ 1423.282261] 1f60: c06d259c 00000000 e0111f94 e41f89c0 00000000 00000000 e0111f78 e0111f78 [ 1423.282261] 1f80: 00000000 00000000 e0111f88 e0111f88 e4151e6c c0047030 00000000 00000000 [ 1423.282261] 1fa0: 00000000 e0111fb0 c000fa78 c004703c 00000000 00000000 00000000 00000000 [ 1423.282261] 1fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 [ 1423.282261] 1fe0: 00000000 00000000 00000000 00000000 00000013 00000000 ffa38ad1 ffa38ad1 [ 1423.282261] [<c0491fac>] (sdio_claim_host+0x30/0x40) from [<bf10db64>] (sdioh_detach+0x6c/0xac [bcmdhd]) [ 1423.282261] [<bf10db64>] (sdioh_detach+0x6c/0xac [bcmdhd]) from [<bf10ff34>] (bcmsdh_sdmmc_remove+0x13c/0x174 [bcmdhd]) [ 1423.282261] [<bf10ff34>] (bcmsdh_sdmmc_remove+0x13c/0x174 [bcmdhd]) from [<c0490b0c>] (sdio_bus_remove+0x48/0x100) [ 1423.282261] [<c0490b0c>] (sdio_bus_remove+0x48/0x100) from [<c0324d90>] (__device_release_driver+0x8c/0xd4) [ 1423.282261] [<c0324d90>] (__device_release_driver+0x8c/0xd4) from [<c0324e04>] (device_release_driver+0x2c/0x38) [ 1423.282261] [<c0324e04>] (device_release_driver+0x2c/0x38) from [<c03248c4>] (bus_remove_device+0xd8/0xe8) [ 1423.282261] [<c03248c4>] (bus_remove_device+0xd8/0xe8) from [<c03222ec>] (device_del+0x118/0x17c) [ 1423.282261] [<c03222ec>] (device_del+0x118/0x17c) from [<c0490f3c>] (sdio_remove_func+0x2c/0x38) [ 1423.282261] [<c0490f3c>] (sdio_remove_func+0x2c/0x38) from [<c048fee8>] (mmc_sdio_remove+0x4c/0x78) [ 1423.282261] [<c048fee8>] (mmc_sdio_remove+0x4c/0x78) from [<c0490000>] (mmc_sdio_detect+0xec/0x114) [ 1423.282261] [<c0490000>] (mmc_sdio_detect+0xec/0x114) from [<c0488350>] (mmc_rescan+0xb8/0x474) [ 1423.282261] [<c0488350>] (mmc_rescan+0xb8/0x474) from [<c0040a8c>] (process_one_work+0x2b0/0x474) [ 1423.282261] [<c0040a8c>] (process_one_work+0x2b0/0x474) from [<c0040ec4>] (worker_thread+0x238/0x348) [ 1423.282261] [<c0040ec4>] (worker_thread+0x238/0x348) from [<c00470ec>] (kthread+0xbc/0xc8) [ 1423.282261] [<c00470ec>] (kthread+0xbc/0xc8) from [<c000fa78>] (ret_from_fork+0x14/0x20) [ 1423.282261] Code: e5903000 e3530000 1a000000 e7f001f2 (e5930000) [ 1424.510507] ---[ end trace a20d4dd70782290e ]--- [ 1424.515606] Kernel panic - not syncing: Fatal exception [ 1424.521496] CPU0: stopping [ 1424.524463] CPU: 0 PID: 1726 Comm: logd.klogd Tainted: G D W O 3.10.65 #64 [ 1424.530021] [<c0017fc4>] (unwind_backtrace+0x0/0xec) from [<c0014238>] (show_stack+0x20/0x24) [ 1424.530021] [<c0014238>] (show_stack+0x20/0x24) from [<c06cc684>] (dump_stack+0x20/0x28) [ 1424.530021] [<c06cc684>] (dump_stack+0x20/0x28) from [<c0015db0>] (handle_IPI+0x15c/0x2d0) [ 1424.530021] [<c0015db0>] (handle_IPI+0x15c/0x2d0) from [<c000a34c>] (gic_handle_irq+0x64/0x6c) [ 1424.530021] [<c000a34c>] (gic_handle_irq+0x64/0x6c) from [<c06d3200>] (__irq_usr+0x40/0x60) [ 1424.530021] Exception stack(0xe39c3fb0 to 0xe39c3ff8) [ 1424.530021] 3fa0: b335c620 b38c90a0 b38c6390 5de0fade [ 1424.530021] 3fc0: 5de08fd5 00000006 2e35f14e b38c90c0 b38c90c0 00000050 b30cf310 b38a0000 [ 1424.530021] 3fe0: b3c9af18 b32fe670 b3c8df03 b3c8df16 200e0030 ffffffff [ 1424.531507] CPU3: stopping [ 1424.531507] CPU: 3 PID: 0 Comm: swapper/3 Tainted: G D W O 3.10.65 #64 [ 1424.531507] [<c0017fc4>] (unwind_backtrace+0x0/0xec) from [<c0014238>] (show_stack+0x20/0x24) [ 1424.531507] [<c0014238>] (show_stack+0x20/0x24) from [<c06cc684>] (dump_stack+0x20/0x28) [ 1424.531507] [<c06cc684>] (dump_stack+0x20/0x28) from [<c0015db0>] (handle_IPI+0x15c/0x2d0) [ 1424.531507] [<c0015db0>] (handle_IPI+0x15c/0x2d0) from [<c000a34c>] (gic_handle_irq+0x64/0x6c) [ 1424.531507] [<c000a34c>] (gic_handle_irq+0x64/0x6c) from [<c06d3040>] (__irq_svc+0x40/0x70) [ 1424.531507] Exception stack(0xe48dff68 to 0xe48dffb0) [ 1424.531507] ff60: 00000003 00000000 000b6574 00000000 e48de000 00000015 [ 1424.531507] ff80: c0b8facc c0b91f44 c06db3a0 410fc075 c0a6848c e48dffbc e48dffc0 e48dffb0 [ 1424.531507] ffa0: c0010ee0 c0010ee4 600e0013 ffffffff [ 1424.531507] [<c06d3040>] (__irq_svc+0x40/0x70) from [<c0010ee4>] (arch_cpu_idle+0x34/0x3c) [ 1424.531507] [<c0010ee4>] (arch_cpu_idle+0x34/0x3c) from [<c006ab1c>] (cpu_startup_entry+0x1d8/0x244) [ 1424.531507] [<c006ab1c>] (cpu_startup_entry+0x1d8/0x244) from [<c06c62cc>] (secondary_start_kernel+0x118/0x130) [ 1424.531507] [<c06c62cc>] (secondary_start_kernel+0x118/0x130) from [<406c4460>] (0x406c4460) [ 1424.531508] CPU1: stopping [ 1424.531508] CPU: 1 PID: 0 Comm: swapper/1 Tainted: G D W O 3.10.65 #64 [ 1424.531508] [<c0017fc4>] (unwind_backtrace+0x0/0xec) from [<c0014238>] (show_stack+0x20/0x24) [ 1424.531508] [<c0014238>] (show_stack+0x20/0x24) from [<c06cc684>] (dump_stack+0x20/0x28) [ 1424.531508] [<c06cc684>] (dump_stack+0x20/0x28) from [<c0015db0>] (handle_IPI+0x15c/0x2d0) [ 1424.531508] [<c0015db0>] (handle_IPI+0x15c/0x2d0) from [<c000a34c>] (gic_handle_irq+0x64/0x6c) [ 1424.531508] [<c000a34c>] (gic_handle_irq+0x64/0x6c) from [<c06d3040>] (__irq_svc+0x40/0x70) [ 1424.531508] Exception stack(0xe48cdf68 to 0xe48cdfb0) [ 1424.531508] df60: 00000001 00000000 000ed2f6 00000000 e48cc000 00000015 [ 1424.531508] df80: c0b8facc c0b91f44 c06db3a0 410fc075 c0a6848c e48cdfbc e48cdfc0 e48cdfb0 [ 1424.531508] dfa0: c0010ee0 c0010ee4 600e0013 ffffffff [ 1424.531508] [<c06d3040>] (__irq_svc+0x40/0x70) from [<c0010ee4>] (arch_cpu_idle+0x34/0x3c) [ 1424.531508] [<c0010ee4>] (arch_cpu_idle+0x34/0x3c) from [<c006ab1c>] (cpu_startup_entry+0x1d8/0x244) [ 1424.531508] [<c006ab1c>] (cpu_startup_entry+0x1d8/0x244) from [<c06c62cc>] (secondary_start_kernel+0x118/0x130) [ 1424.531508] [<c06c62cc>] (secondary_start_kernel+0x118/0x130) from [<406c4460>] (0x406c4460) 尝试过在sys_config.fex的[sdc0]中加入non-removable 按power键不会死机 但是WiFi用不了。请各位大神帮看一下

运行Go异步操作并写入映射

<div class="post-text" itemprop="text"> <p>I have <a href="https://bitbucket.org/codyc54321/golang-w-python/src" rel="nofollow noreferrer">this project</a> that tries to run unlimited bigqueries at the same time in Go. The parent project is all Python. I need to be able to keep track of the query results, like in a map.</p> <pre><code>Input: { 'reports_portal': 'select * from reports_portal', 'billing_portal': 'select * from billing_portal', } output: { 'reports_portal': [23, 123, 5234, 632], 'billing_portal': [23, 123, 5234, 632], } </code></pre> <p>and so on</p> <p>these bigqueries need to be run asynchronously as they're very slow (from a UI perspective, an SRE waiting 15-30 seconds for results.</p> <p>I first try to asynchronously write items to a map:</p> <pre><code>package main import ( "fmt" ) func add_to_map(m map[string] string, word string) map[string]string { added_word := word + " plus more letters" m[word] = added_word return m } func main() { words_map := make(map[string]string) words := []string{"giraffe", "cat", "dog", "turtle"} for _, this_word := range words { go add_to_map(words_map, this_word) } fmt.Println(words_map) } </code></pre> <p>blows up like:</p> <pre><code>$ go run try_asynchronous.go fatal error: concurrent map writes goroutine 7 [running]: runtime.throw(0x10b3b96, 0x15) /usr/local/Cellar/go/1.8.1/libexec/src/runtime/panic.go:596 +0x95 fp=0xc420032eb8 sp=0xc420032e98 runtime.mapassign(0x109ad20, 0xc420016270, 0xc420032fa0, 0x10b3268) /usr/local/Cellar/go/1.8.1/libexec/src/runtime/hashmap.go:499 +0x667 fp=0xc420032f58 sp=0xc420032eb8 main.add_to_map(0xc420016270, 0x10b1ba0, 0x3, 0x0) /tmp/golang-w-python/try_asynchronous.go:10 +0xa3 fp=0xc420032fc0 sp=0xc420032f58 runtime.goexit() /usr/local/Cellar/go/1.8.1/libexec/src/runtime/asm_amd64.s:2197 +0x1 fp=0xc420032fc8 sp=0xc420032fc0 created by main.main /tmp/golang-w-python/try_asynchronous.go:19 +0xc8 goroutine 1 [runnable]: fmt.(*pp).fmtString(0xc42001e0c0, 0x10b1f52, 0x7, 0x76) /usr/local/Cellar/go/1.8.1/libexec/src/fmt/print.go:424 +0x1a2 fmt.(*pp).printValue(0xc42001e0c0, 0x10953c0, 0xc42000e260, 0x98, 0x76, 0x1) /usr/local/Cellar/go/1.8.1/libexec/src/fmt/print.go:729 +0x27aa fmt.(*pp).printValue(0xc42001e0c0, 0x109ad20, 0xc420016270, 0x15, 0x76, 0x0) /usr/local/Cellar/go/1.8.1/libexec/src/fmt/print.go:750 +0x103d fmt.(*pp).printArg(0xc42001e0c0, 0x109ad20, 0xc420016270, 0x76) /usr/local/Cellar/go/1.8.1/libexec/src/fmt/print.go:682 +0x217 fmt.(*pp).doPrintln(0xc42001e0c0, 0xc420045f28, 0x1, 0x1) /usr/local/Cellar/go/1.8.1/libexec/src/fmt/print.go:1138 +0xa1 fmt.Fprintln(0x1108140, 0xc42000c018, 0xc420045f28, 0x1, 0x1, 0xc420045ef0, 0xc420045ee0, 0x1087218) /usr/local/Cellar/go/1.8.1/libexec/src/fmt/print.go:247 +0x5c fmt.Println(0xc420045f28, 0x1, 0x1, 0x10b1e6f, 0x6, 0x0) /usr/local/Cellar/go/1.8.1/libexec/src/fmt/print.go:257 +0x57 main.main() /tmp/golang-w-python/try_asynchronous.go:21 +0x132 exit status 2 </code></pre> <p>based on needing to run many queries at once and trying to keep track of the results by their name, I expected to write to a map during asynchronous. But <code>fatal error: concurrent map writes</code> says you can't.</p> <p>I don't understand </p> <ol> <li>why not </li> <li>what I should do the run these bigqueries simultaneously. </li> </ol> <p>EDIT:</p> <p>The closest thing I have, that returns results, is not asynchronous:</p> <pre><code>package main import ( "fmt" "math/rand" "sync" "time" ) var mutex sync.Mutex var wg sync.WaitGroup func random_sleep() { r := rand.Intn(3000) time.Sleep(time.Duration(r) * time.Millisecond) } func add_to_map(m map[string] string, word string) { defer wg.Done() added_word := word + " plus more letters" mutex.Lock() defer mutex.Unlock() fmt.Println("Before sleep") random_sleep() m[word] = added_word fmt.Println("Added word %v", word) } func main() { words_map := make(map[string]string) words := []string{"giraffe", "cat", "dog", "turtle"} for _, this_word := range words { wg.Add(1) go add_to_map(words_map, this_word) } wg.Wait() fmt.Println(words_map) } </code></pre> <p>Results are wrong:</p> <pre><code>cchilders:~/work_projects/metricsportal/golang_integration (feature/golang-query) $ go run try_async.go Before sleep Added word %v turtle Before sleep Added word %v cat Before sleep Added word %v giraffe Before sleep Added word %v dog map[dog:dog plus more letters turtle:turtle plus more letters cat:cat plus more letters giraffe:giraffe plus more letters] cchilders:~/work_projects/metricsportal/golang_integration (feature/golang-query) $ go run try_async.go Before sleep Added word %v turtle Before sleep Added word %v cat Before sleep Added word %v giraffe Before sleep Added word %v dog map[dog:dog plus more letters turtle:turtle plus more letters cat:cat plus more letters giraffe:giraffe plus more letters] </code></pre> <p>Results should be very fast, no longer than 3 seconds (the max of random I think):</p> <pre><code>Expectation - Before sleep Before sleep Before sleep Before sleep Added word %v cat Added word %v giraffe Added word %v turtle Added word %v dog </code></pre> </div>

使用centos7作为Jaeger的基础映像

<div class="post-text" itemprop="text"> <p>I am trying to setup Jaeger using a CentOS base image instead of Alpine. The agent, collector, and Cassandra containers all work fine except for the query container. The Jaeger repository is <a href="https://github.com/jaegertracing/jaeger/tree/master/cmd" rel="nofollow noreferrer">here</a>. After changing the base image to CentOS 7, commenting out the sections that apply to copying <code>ca-certificates.crt</code> and running <code>docker-compose</code>, I get the following nil pointer error message when tailing the query container</p> <blockquote> <p>panic: runtime error: invalid memory address or nil pointer dereference</p> </blockquote> <p>I ran the makefile with the necessary flags to compile the code in the app directory. Has anyone ever setup Jaeger using CentOS as a base image?</p> <p>Below is the full stack error from the container</p> <pre><code>goroutine 1 [running]: github.com/jaegertracing/jaeger/cmd/query/app.NewStaticAssetsHandler(0x0, 0x0, 0xe6cb85, 0x1, 0x0, 0x0, 0xc0000397a0, 0xc0000397b0, 0xc000137098) /Users/myusername/Go/src/github.com/jaegertracing/jaeger/cmd/query/app/static_handler.go:74 +0x5e github.com/jaegertracing/jaeger/cmd/query/app.RegisterStaticHandler(0xc0000a7bd0, 0xc00009d080, 0xc0001eec80) /Users/myusername/Go/src/github.com/jaegertracing/jaeger/cmd/query/app/static_handler.go:45 +0x74 main.main.func1(0xc0001746c0, 0xc000184f60, 0x0, 0x2, 0x0, 0x0) /Users/myusername/Go/src/github.com/jaegertracing/jaeger/cmd/query/main.go:131 +0x14eb github.com/jaegertracing/jaeger/vendor/github.com/spf13/cobra.(*Command).execute(0xc0001746c0, 0xc00008e0a0, 0x2, 0x2, 0xc0001746c0, 0xc00008e0a0) /Users/myusername/Go/src/github.com/jaegertracing/jaeger/vendor/github.com/spf13/cobra/command.go:698 +0x47a github.com/jaegertracing/jaeger/vendor/github.com/spf13/cobra.(*Command).ExecuteC(0xc0001746c0, 0x0, 0x4, 0xc00009cfc0) /Users/myusername/Go/src/github.com/jaegertracing/jaeger/vendor/github.com/spf13/cobra/command.go:783 +0x2dc github.com/jaegertracing/jaeger/vendor/github.com/spf13/cobra.(*Command).Execute(0xc0001746c0, 0xc0001746c0, 0xc000137f28) /Users/myusername/Go/src/github.com/jaegertracing/jaeger/vendor/github.com/spf13/cobra/command.go:736 +0x2b main.main() /Users/myusername/Go/src/github.com/jaegertracing/jaeger/cmd/query/main.go:172 +0x5a6 {"level":"info","ts":1539888666.5870771,"caller":"healthcheck/handler.go:99","msg":"Health Check server started","http-port":16687,"status":"unavailable"} {"level":"info","ts":1539888666.6052766,"caller":"cassandra/factory.go:92","msg":"Cassandra archive storage configuration is empty, skipping"} {"level":"info","ts":1539888666.6063912,"caller":"query/main.go:186","msg":"Archive storage not created","reason":"Archive storage not configured"} panic: runtime error: invalid memory address or nil pointer dereference [signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0xbe2b9e </code></pre> </div>

在飞凌imx6q的linux-3.0.35内核上打实时补丁,启动内核后报错,求大神指教

Unable to handle kernel NULL pointer dereference at virtual address 00000000 pgd = 80004000 [00000000] *pgd=00000000 Internal error: Oops: 80000007 [#1] PREEMPT SMP Modules linked in: CPU: 0 Not tainted (3.0.35-2666-gbdde708-rt56-gcb741c4-dirty #3) PC is at 0x0 LR is at activate_task+0x54/0x64 pc : [<00000000>] lr : [<8006d644>] psr: 80000193 sp : bff87e38 ip : 00000000 fp : bff87e4c r10: 20000113 r9 : 8003c140 r8 : bff1dda8 r7 : 00000008 r6 : 00000001 r5 : bff1da20 r4 : 8c027140 r3 : 00000000 r2 : 00000001 r1 : bff1da20 r0 : 8c027140 Flags: Nzcv IRQs off FIQs on Mode SVC_32 ISA ARM Segment kernel Control: 10c53c7d Table: 4a5d404a DAC: 00000015 Process ksoftirqd/0 (pid: 3, stack limit = 0xbff862f0) Stack: (0xbff87e38 to 0xbff88000) 7e20: 00000001 bff1da20 7e40: 8c027140 00000001 bff87e7c 80072b94 00000002 8003c140 80b462a0 80b462a0 7e60: ffff8bfb 80b462a0 00000000 80b462a0 80b5fd5c 00000000 00000000 80542d98 7e80: 8c026f90 ffff8bfb 80b462a0 800830d8 8c026fb8 00000000 af3da8a7 8c026f90 7ea0: 80b5fba0 8003bf90 0bfeb000 00000003 00004e20 803a1e50 bff87edc 8054162c 7ec0: 00004e20 00000000 8bff9ea0 00000000 002c3651 0000005c bffc0000 00000001 7ee0: bffc0000 bff87f10 80b462a0 80ad8200 bff86000 00200200 00000000 00000000 7f00: 803a1c08 80083374 00000000 bff86000 bff87f10 bff87f10 00000006 00000001 7f20: 80ad8184 bff86000 80af2058 80ad8180 00000000 80b46100 00000001 8007c148 7f40: bffdf210 00000000 00000001 00000000 00000000 bff86000 8c00e2b8 00000000 7f60: 80af2058 8003b2b8 00000000 00000000 00000000 8007c304 bff86000 00000000 7f80: 00000001 bff87f94 80b46100 8007c418 00000013 00000001 00000000 bff81f28 7fa0: 00000000 8007c35c 00000013 00000000 00000000 800916a8 00000000 00000000 7fc0: 00000000 00000000 00000000 bff87fcc bff87fcc 00000000 00000000 00000000 7fe0: bff87fe0 bff87fe0 bff81f28 80091628 80043a24 80043a24 00000000 08040420 [<8006d644>] (activate_task+0x54/0x64) from [<80072b94>] (try_to_wake_up+0x2a0/ 0x328) [<80072b94>] (try_to_wake_up+0x2a0/0x328) from [<80542d98>] (rt_spin_lock_slowu nlock+0x24/0x74) [<80542d98>] (rt_spin_lock_slowunlock+0x24/0x74) from [<800830d8>] (mod_timer+0 x160/0x228) [<800830d8>] (mod_timer+0x160/0x228) from [<803a1e50>] (cpufreq_interactive_tim er+0x248/0x3e0) [<803a1e50>] (cpufreq_interactive_timer+0x248/0x3e0) from [<80083374>] (run_tim er_softirq+0x100/0x240) [<80083374>] (run_timer_softirq+0x100/0x240) from [<8007c148>] (__do_softirq_co mmon+0xc4/0x178) [<8007c148>] (__do_softirq_common+0xc4/0x178) from [<8007c304>] (__thread_do_so ftirq+0x108/0x160) [<8007c304>] (__thread_do_softirq+0x108/0x160) from [<8007c418>] (run_ksoftirqd +0xbc/0x180) [<8007c418>] (run_ksoftirqd+0xbc/0x180) from [<800916a8>] (kthread+0x80/0x88) [<800916a8>] (kthread+0x80/0x88) from [<80043a24>] (kernel_thread_exit+0x0/0x8) Code: bad PC value

TI 用ccs编程打不开文件怎么办

Description Resource Path Location Type #1965 cannot open source file "driverlib/adc.h" adc.c /PWMHomework/driverlib line 54 C/C++ Problem

windows server 2008r2 安装vs2012报错

windows server 2008r2 安装vs2012一直报错,提示核心功能安装时发生严重错误。 Mrciosoft visual C++ 2012Compilers文件包失败。 ![图片说明](https://img-ask.csdn.net/upload/201508/17/1439807562_956720.png) 日志中: Automatic updates could not be paused due to error: 0x80070422. Continuing... MUX: ExecuteError: Package (vc_compilercore) failed: Error Message Id: 2902 ErrorMessage: The installer has encountered an unexpected error installing this package. This may indicate a problem with this package. The error code is 2902. [1A90:1CFC][2015-08-17T18:18:12]: Error 0x80070643: Failed to install MSI package. [1A90:1CFC][2015-08-17T18:18:12]: Error 0x80070643: Failed to execute MSI package. [1680:1F28][2015-08-17T18:18:12]: Error 0x80070643: Failed to configure per-machine MSI package. Error 0x800b0101: Failed to verify certificate chain policy status. [1A90:1078][2015-08-17T18:18:30]: Error 0x800b0101: Failed to get certificate chain for authenticode certificate. [1A90:1078][2015-08-17T18:18:30]: Error 0x800b0101: Failed to verify signature of payload: webdeploy_x64_en_usmsi_902 [1A90:1078][2015-08-17T18:18:30]: Failed to verify payload: webdeploy_x64_en_usmsi_902 at path: C:\ProgramData\Package Cache\.unverified\webdeploy_x64_en_usmsi_902, error: 0x800b0101. Deleting file. Error 0x800b0101: Failed to cache payload: webdeploy_x64_en_usmsi_902 [1680:1F28][2015-08-17T18:25:32]: MUX: Return Code:0x80070643 Msi Messages:2902 Result Detail:0 Restart:None [1680:1F28][2015-08-17T18:25:32]: MUX: Set Result: Return Code=-2147023293 (0x80070643), Error Message=2902, Result Detail=, Vital=True, Package Action=Install, Package Id=vs_professionalcore [1680:1F28][2015-08-17T18:25:32]: Applied execute package: vs_professionalcore, result: 0x80070643, restart: None [1680:1F28][2015-08-17T18:25:32]: Error 0x80070643: Failed to execute MSI package.

Liunx驱动死机,经常运行一段时间,报错重启问题

驱动程序运行一段时间之后,就容易报这种错误重启。 [ 122.377666] **Unable to handle kernel paging request at virtual address 4d118106** [ 122.384417] pgd = d497c000 [ 122.387603] [4d118106] *pgd=00000000 [ 122.391150] Internal error: Oops: 5 [#1] PREEMPT SMP [ 122.395520] Modules linked in: [ 122.398560] CPU: 3 Not tainted (3.0.15 #4) [ 122.402994] PC is at anon_vma_clone+0x58/0x168 [ 122.407413] LR is at anon_vma_clone+0x4c/0x168 [ 122.411841] pc : [<c0100a60>] lr : [<c0100a54>] psr: a0000053 [ 122.411844] sp : d490be30 ip : c004130c fp : d490be64 [ 122.423296] r10: d6097690 r9 : c09b2940 r8 : 4d118102 [ 122.428505] r7 : d3afebb0 r6 : d6097690 r5 : d6097690 r4 : d3db3000 [ 122.435014] r3 : 00000000 r2 : c08f28f0 r1 : 00000001 r0 : d3db3000 [ 122.441526] Flags: NzCv IRQs on FIQs off Mode SVC_32 ISA ARM Segment user [ 122.448729] Control: 10c5387d Table: 5497c04a DAC: 00000015 [ 122.454457] [ 122.454459] PC: 0xc01009e0: [ 122.458710] 09e0 eb12abc0 eaffffac e3060f80 e3a010d6 e34c0086 ebfe02cd e3a03001 e51bc038 [ 122.466869] 0a00 e5cc3008 eafffff4 e1a0c00d e92ddff0 e24cb004 e24dd00c e2812038 e1a07000 [ 122.475028] 0a20 e50b2030 e591803c e1580002 e2488008 0a00002e e3029940 e2803038 e34c909b [ 122.483187] 0a40 e50b3034 e3a06000 e5990000 e3a01c02 eb0023c4 e2504000 0a000026 e1a0a006 [ 122.491346] 0a60 e5985004 e5956000 e15a0006 0a000003 e35a0000 1a00002a e2860004 eb12ac2a [ 122.499506] 0a80 e5847000 e5845004 e2852020 e597e038 e284c008 e584e008 e58ec004 e587c038 [ 122.507665] 0aa0 e5842010 e2840010 e51b1034 e584100c e5953024 e5850024 e5830000 e5843014 [ 122.515824] 0ac0 e598e00c e51b2030 e24e8008 e15e0002 1affffdc e3560000 0a000004 e2860004 [ 122.523984] [ 122.523985] LR: 0xc01009d4: [ 122.528236] 09d4 e3500001 1a000002 e2880004 eb12abc0 eaffffac e3060f80 e3a010d6 e34c0086 [ 122.536395] 09f4 ebfe02cd e3a03001 e51bc038 e5cc3008 eafffff4 e1a0c00d e92ddff0 e24cb004 [ 122.544555] 0a14 e24dd00c e2812038 e1a07000 e50b2030 e591803c e1580002 e2488008 0a00002e [ 122.552714] 0a34 e3029940 e2803038 e34c909b e50b3034 e3a06000 e5990000 e3a01c02 eb0023c4 [ 122.560873] 0a54 e2504000 0a000026 e1a0a006 e5985004 e5956000 e15a0006 0a000003 e35a0000 [ 122.569032] 0a74 1a00002a e2860004 eb12ac2a e5847000 e5845004 e2852020 e597e038 e284c008 [ 122.577192] 0a94 e584e008 e58ec004 e587c038 e5842010 e2840010 e51b1034 e584100c e5953024 [ 122.585351] 0ab4 e5850024 e5830000 e5843014 e598e00c e51b2030 e24e8008 e15e0002 1affffdc [ 122.593511] [ 122.593512] SP: 0xd490bdb0: [ 122.597763] bdb0 40029000 00000008 d490be44 d490bdc8 c00f7280 c05aaf80 ffffffff d490be1c [ 122.605922] bdd0 d6097690 d3afebb0 d490be64 d490bde8 c00462ec c003f52c d3db3000 00000001 [ 122.614082] bdf0 c08f28f0 00000000 d3db3000 d6097690 d6097690 d3afebb0 4d118102 c09b2940 [ 122.622241] be10 d6097690 d490be64 c004130c d490be30 c0100a54 c0100a60 a0000053 ffffffff [ 122.630400] be30 d3afebe8 d67e4fb0 c00fa9d8 d67e4f78 d3afebb0 d3afe160 d67e4f78 00000033 [ 122.638559] be50 c098a440 d3afe17c d490be8c d490be68 c0100b9c c0100a14 d48e0a6c d3afebb0 [ 122.646718] be70 d08abd40 d3afe160 d67e4f78 00000033 d490bee4 d490be90 c007f8e8 c0100b7c [ 122.654878] be90 d490beac d490bea0 c05ad964 d08abd7c d490c37c d490a000 c098a440 d490c340 [ 122.663037] [ 122.663039] IP: 0xc004128c: [ 122.667290] 128c e08c4003 e51b0038 e51b103c e2808801 e1510008 2affffca e1a0c009 e1a0000c [ 122.675449] 12ac e24bd028 e89daff0 e7e02b50 e2008a0f e18285a8 eaffff80 e0848005 e2084007 [ 122.683608] 12cc e0844002 eaffff9e e084e005 e20e4007 e0844003 eaffffb4 e51b1030 e2013807 [ 122.691768] 12ec e50b303c e5992000 e3520000 1affff7b e3e0c000 eaffffe8 e59f1008 e081918a [ 122.699927] 130c eaffff67 c08fae8c c08fad8c e1a0c00d e92dd830 e24cb004 e1a04002 e1a05001 [ 122.708086] 132c ebfffd9f e7e72bd4 e1a03000 e35200ff 0a00001a e3a00000 e7e7cbd3 e35c00ff [ 122.716245] 134c 0a000022 e3500000 189da830 e1530004 0a000029 e183c004 e3cc1102 e3510000 [ 122.724404] 136c 0a000025 e1330004 4a000025 e1530004 a3a0e000 b3a0e001 e1a02fa3 e152000e [ 122.732564] 在网上也查了很多资料,有些认为是驱动程序存在非法变量,可是我检查了好多遍,并没有出现自己的驱动程序中有非法变量这一问题,而且导致出问题的函数,也并未显示驱动程序中的函数。由于我的驱动程序里面包含有,等待队列、中断函数。我开始以为是不是因为中断或者是等待队列原因导致的,但是目前也不敢准确说明是这个原因,请各位Linux驱动大神教教我,这种问题要怎么解决啊?

Hive请正常,在show databases;报错,求大神解答

2018-02-01T09:46:28,400 WARN [9a4cc1b4-8396-471b-8df0-b1eb3ca1fd82 main] ql.Driver: Caught exception attempting to write metadata call information org.apache.hadoop.hive.ql.metadata.HiveException: java.lang.RuntimeException: Unable to instantiate org.apache.hadoop.hive.ql.metadata.SessionHiveMetaStoreClient org.apache.hadoop.hive.ql.metadata.HiveException: java.lang.RuntimeException: Unable to instantiate org.apache.hadoop.hive.ql.metadata.SessionHiveMetaStoreClient at org.apache.hadoop.hive.ql.metadata.Hive.registerAllFunctionsOnce(Hive.java:236) ~[hive-exec-2.3.2.jar:2.3.2] at org.apache.hadoop.hive.ql.metadata.Hive.<init>(Hive.java:388) ~[hive-exec-2.3.2.jar:2.3.2] at org.apache.hadoop.hive.ql.metadata.Hive.create(Hive.java:332) ~[hive-exec-2.3.2.jar:2.3.2] at org.apache.hadoop.hive.ql.metadata.Hive.getInternal(Hive.java:312) ~[hive-exec-2.3.2.jar:2.3.2] at org.apache.hadoop.hive.ql.metadata.Hive.get(Hive.java:354) ~[hive-exec-2.3.2.jar:2.3.2] at org.apache.hadoop.hive.ql.metadata.Hive.get(Hive.java:350) ~[hive-exec-2.3.2.jar:2.3.2] at org.apache.hadoop.hive.ql.Driver.dumpMetaCallTimingWithoutEx(Driver.java:683) ~[hive-exec-2.3.2.jar:2.3.2] at org.apache.hadoop.hive.ql.Driver.compile(Driver.java:621) ~[hive-exec-2.3.2.jar:2.3.2] at org.apache.hadoop.hive.ql.Driver.compileInternal(Driver.java:1317) ~[hive-exec-2.3.2.jar:2.3.2] at org.apache.hadoop.hive.ql.Driver.runInternal(Driver.java:1457) ~[hive-exec-2.3.2.jar:2.3.2] at org.apache.hadoop.hive.ql.Driver.run(Driver.java:1237) ~[hive-exec-2.3.2.jar:2.3.2] at org.apache.hadoop.hive.ql.Driver.run(Driver.java:1227) ~[hive-exec-2.3.2.jar:2.3.2] at org.apache.hadoop.hive.cli.CliDriver.processLocalCmd(CliDriver.java:233) ~[hive-cli-2.3.2.jar:2.3.2] at org.apache.hadoop.hive.cli.CliDriver.processCmd(CliDriver.java:184) ~[hive-cli-2.3.2.jar:2.3.2] at org.apache.hadoop.hive.cli.CliDriver.processLine(CliDriver.java:403) ~[hive-cli-2.3.2.jar:2.3.2] at org.apache.hadoop.hive.cli.CliDriver.executeDriver(CliDriver.java:821) ~[hive-cli-2.3.2.jar:2.3.2] at org.apache.hadoop.hive.cli.CliDriver.run(CliDriver.java:759) ~[hive-cli-2.3.2.jar:2.3.2] at org.apache.hadoop.hive.cli.CliDriver.main(CliDriver.java:686) ~[hive-cli-2.3.2.jar:2.3.2] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_151] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_151] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_151] at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_151] at org.apache.hadoop.util.RunJar.run(RunJar.java:239) ~[hadoop-common-2.9.0.jar:?] at org.apache.hadoop.util.RunJar.main(RunJar.java:153) ~[hadoop-common-2.9.0.jar:?] Caused by: java.lang.RuntimeException: Unable to instantiate org.apache.hadoop.hive.ql.metadata.SessionHiveMetaStoreClient at org.apache.hadoop.hive.metastore.MetaStoreUtils.newInstance(MetaStoreUtils.java:1701) ~[hive-exec-2.3.2.jar:2.3.2] at org.apache.hadoop.hive.metastore.RetryingMetaStoreClient.<init>(RetryingMetaStoreClient.java:83) ~[hive-exec-2.3.2.jar:2.3.2] at org.apache.hadoop.hive.metastore.RetryingMetaStoreClient.getProxy(RetryingMetaStoreClient.java:133) ~[hive-exec-2.3.2.jar:2.3.2] at org.apache.hadoop.hive.metastore.RetryingMetaStoreClient.getProxy(RetryingMetaStoreClient.java:104) ~[hive-exec-2.3.2.jar:2.3.2] at org.apache.hadoop.hive.ql.metadata.Hive.createMetaStoreClient(Hive.java:3600) ~[hive-exec-2.3.2.jar:2.3.2] at org.apache.hadoop.hive.ql.metadata.Hive.getMSC(Hive.java:3652) ~[hive-exec-2.3.2.jar:2.3.2] at org.apache.hadoop.hive.ql.metadata.Hive.getMSC(Hive.java:3632) ~[hive-exec-2.3.2.jar:2.3.2] at org.apache.hadoop.hive.ql.metadata.Hive.getAllFunctions(Hive.java:3894) ~[hive-exec-2.3.2.jar:2.3.2] at org.apache.hadoop.hive.ql.metadata.Hive.reloadFunctions(Hive.java:248) ~[hive-exec-2.3.2.jar:2.3.2] at org.apache.hadoop.hive.ql.metadata.Hive.registerAllFunctionsOnce(Hive.java:231) ~[hive-exec-2.3.2.jar:2.3.2] ... 23 more Caused by: java.lang.reflect.InvocationTargetException at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[?:1.8.0_151] at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) ~[?:1.8.0_151] at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) ~[?:1.8.0_151] at java.lang.reflect.Constructor.newInstance(Constructor.java:423) ~[?:1.8.0_151] at org.apache.hadoop.hive.metastore.MetaStoreUtils.newInstance(MetaStoreUtils.java:1699) ~[hive-exec-2.3.2.jar:2.3.2] at org.apache.hadoop.hive.metastore.RetryingMetaStoreClient.<init>(RetryingMetaStoreClient.java:83) ~[hive-exec-2.3.2.jar:2.3.2] at org.apache.hadoop.hive.metastore.RetryingMetaStoreClient.getProxy(RetryingMetaStoreClient.java:133) ~[hive-exec-2.3.2.jar:2.3.2] at org.apache.hadoop.hive.metastore.RetryingMetaStoreClient.getProxy(RetryingMetaStoreClient.java:104) ~[hive-exec-2.3.2.jar:2.3.2] at org.apache.hadoop.hive.ql.metadata.Hive.createMetaStoreClient(Hive.java:3600) ~[hive-exec-2.3.2.jar:2.3.2] at org.apache.hadoop.hive.ql.metadata.Hive.getMSC(Hive.java:3652) ~[hive-exec-2.3.2.jar:2.3.2] at org.apache.hadoop.hive.ql.metadata.Hive.getMSC(Hive.java:3632) ~[hive-exec-2.3.2.jar:2.3.2] at org.apache.hadoop.hive.ql.metadata.Hive.getAllFunctions(Hive.java:3894) ~[hive-exec-2.3.2.jar:2.3.2] at org.apache.hadoop.hive.ql.metadata.Hive.reloadFunctions(Hive.java:248) ~[hive-exec-2.3.2.jar:2.3.2] at org.apache.hadoop.hive.ql.metadata.Hive.registerAllFunctionsOnce(Hive.java:231) ~[hive-exec-2.3.2.jar:2.3.2] ... 23 more Caused by: org.apache.hadoop.hive.metastore.api.MetaException: Version information not found in metastore. at org.apache.hadoop.hive.metastore.RetryingHMSHandler.<init>(RetryingHMSHandler.java:83) ~[hive-exec-2.3.2.jar:2.3.2] at org.apache.hadoop.hive.metastore.RetryingHMSHandler.getProxy(RetryingHMSHandler.java:92) ~[hive-exec-2.3.2.jar:2.3.2] at org.apache.hadoop.hive.metastore.HiveMetaStore.newRetryingHMSHandler(HiveMetaStore.java:6893) ~[hive-exec-2.3.2.jar:2.3.2] at org.apache.hadoop.hive.metastore.HiveMetaStoreClient.<init>(HiveMetaStoreClient.java:164) ~[hive-exec-2.3.2.jar:2.3.2] at org.apache.hadoop.hive.ql.metadata.SessionHiveMetaStoreClient.<init>(SessionHiveMetaStoreClient.java:70) ~[hive-exec-2.3.2.jar:2.3.2] at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[?:1.8.0_151] at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) ~[?:1.8.0_151] at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) ~[?:1.8.0_151] at java.lang.reflect.Constructor.newInstance(Constructor.java:423) ~[?:1.8.0_151] at org.apache.hadoop.hive.metastore.MetaStoreUtils.newInstance(MetaStoreUtils.java:1699) ~[hive-exec-2.3.2.jar:2.3.2] at org.apache.hadoop.hive.metastore.RetryingMetaStoreClient.<init>(RetryingMetaStoreClient.java:83) ~[hive-exec-2.3.2.jar:2.3.2] at org.apache.hadoop.hive.metastore.RetryingMetaStoreClient.getProxy(RetryingMetaStoreClient.java:133) ~[hive-exec-2.3.2.jar:2.3.2] at org.apache.hadoop.hive.metastore.RetryingMetaStoreClient.getProxy(RetryingMetaStoreClient.java:104) ~[hive-exec-2.3.2.jar:2.3.2] at org.apache.hadoop.hive.ql.metadata.Hive.createMetaStoreClient(Hive.java:3600) ~[hive-exec-2.3.2.jar:2.3.2] at org.apache.hadoop.hive.ql.metadata.Hive.getMSC(Hive.java:3652) ~[hive-exec-2.3.2.jar:2.3.2] at org.apache.hadoop.hive.ql.metadata.Hive.getMSC(Hive.java:3632) ~[hive-exec-2.3.2.jar:2.3.2] at org.apache.hadoop.hive.ql.metadata.Hive.getAllFunctions(Hive.java:3894) ~[hive-exec-2.3.2.jar:2.3.2] at org.apache.hadoop.hive.ql.metadata.Hive.reloadFunctions(Hive.java:248) ~[hive-exec-2.3.2.jar:2.3.2] at org.apache.hadoop.hive.ql.metadata.Hive.registerAllFunctionsOnce(Hive.java:231) ~[hive-exec-2.3.2.jar:2.3.2] ... 23 more 2018-02-01T09:46:28,400 INFO [9a4cc1b4-8396-471b-8df0-b1eb3ca1fd82 main] ql.Driver: Completed compiling command(queryId=root_20180201094627_6a378f28-ae24-4c00-8d15-a8df87e7020e); Time taken: 0.474 seconds

nodeJs的nodemailer发邮件报错

源码如下: emailUtil.sendOneEmail = function(email, content) { if (!email || !content) { return ; } var transporter = nodemailer.createTransport({ host: 'smtp.sina.com', secureConnection: true, port: 465, auth: { user: 'xxx@sina.com', pass: 'xxx' } }); var mailOptions = { from: 'xxx <xxx@sina.com>', // sender address to: email, // list of receivers subject: 'xxx confirm code', // Subject line html: content // html body }; transporter.sendMail(mailOptions, function(error, info){ if(error){ console.log(error); }else{ console.log('Message send: ' + info.response); } }); }; 发邮件报错: { [Error: Hostname/IP doesn't match certificate's altnames: "Host: smtp.sina.com.cn. is not in the cert's altnames: DNS:*.sina.cn, DNS:sina.cn"] reason: 'Host: smtp.sina.com.cn. is not in the cert\'s altnames: DNS:*.sina.cn, DNS:sina.cn', host: 'smtp.sina.com.cn.', cert: { subject: { C: 'CN', ST: 'Beijing', L: 'Beijing', O: 'Sina.com Technology(China)Co.,ltd', OU: 'Sina.com Technology(China)Co.,ltd', CN: '*.sina.cn' }, issuer: { C: 'US', O: 'GeoTrust Inc.', CN: 'GeoTrust SSL CA - G3' }, subjectaltname: 'DNS:*.sina.cn, DNS:sina.cn', infoAccess: { 'OCSP - URI': [Object], 'CA Issuers - URI': [Object] }, modulus: 'C948A2A9200320BF1EF6DDA295182CF133C19254B57C769897E831E38E4762931F22B507131159AA7EC55862465EEABE37D1EF315AB97489EEE1BA8E569CD9E96553A6C820093B0ECBA071AF06266356B04DD776E95E44B062FA92141B4A45E2CE905B11967DFBF2672233CB163919934ADEB18D3A129565CC63473ED7DEFE530D140B2037E20293F50BC7EFE2A7DB79FC38577A7A12A10FD7C50AEF14B5B4C857FCA2D310435FD9077093B8AF3E3524B90331DF4B9119795EFEA9B25CAD0E0F767EA9A9A38BEEA9DE6C6B6F1862F4F28C3E16202688E5F619F2DC62EBF89DF7C762AAE32ABA94B003A90A0FBA28F4C896C46E386E5DC0CC6F151F3D23004279', exponent: '0x10001', valid_from: 'Sep 29 00:00:00 2015 GMT', valid_to: 'Dec 28 23:59:59 2017 GMT', fingerprint: 'A1:8D:2F:D1:DD:EF:5B:C4:A2:D4:0B:30:FF:2C:1A:5E:29:34:D1:E3', ext_key_usage: [ '1.3.6.1.5.5.7.3.1', '1.3.6.1.5.5.7.3.2' ], serialNumber: '69939B35FEA6870306B207D72D7A7963', raw: <Buffer 30 82 05 12 30 82 03 fa a0 03 02 01 02 02 10 69 93 9b 35 fe a6 87 03 06 b2 07 d7 2d 7a 79 63 30 0d 06 09 2a 86 48 86 f7 0d 01 01 0b 05 00 30 44 31 0b ... > } } 看起来是证书的问题?莫名其妙,不知道原因。

安卓使用Des NoSuchProviderException

调用的时候: mPassword = DES.encrypt(null, password, "UTF-8"); encrypt方法会返回“加密失败”,报异常java.security.NoSuchProviderException: Provider not available: SunJCE,是为什么呢, 下面是Des的代码 ``` package com.shishi.utils; import java.security.Key; import javax.crypto.Cipher; /** * * * * @author vlinux * * */ public class DES { private static String strDefaultKey = "aaaa"; private Cipher encryptCipher = null; private Cipher decryptCipher = null; /** * * 将byte数组转换为表示16进制值的字符串, 如:byte[]{8,18}转换为:0813, 和public static byte[] * hexStr2ByteArr(String strIn) 互为可逆的转换过程 * * @param arrB * * 需要转换的byte数组 * * @return 转换后的字符串 * * @throws Exception * * 本方法不处理任何异常,所有异常全部抛出 */ public static String byteArr2HexStr(byte[] arrB) throws Exception { int iLen = arrB.length; // 每个byte用两个字符才能表示,所以字符串的长度是数组长度的两倍 StringBuffer sb = new StringBuffer(iLen * 2); for (int i = 0; i < iLen; i++) { int intTmp = arrB[i]; // 把负数转换为正数 while (intTmp < 0) { intTmp = intTmp + 256; } // 小于0F的数需要在前面补0 if (intTmp < 16) { sb.append("0"); } sb.append(Integer.toString(intTmp, 16)); } return sb.toString(); } /** * * 将表示16进制值的字符串转换为byte数组, 和public static String byteArr2HexStr(byte[] arrB) * 互为可逆的转换过程 * * @param strIn * * 需要转换的字符串 * * @return 转换后的byte数组 * * @throws Exception * * 本方法不处理任何异常,所有异常全部抛出 @ <a * href="mailto:leo841001@163.com">LiGuoQing</a> */ public static byte[] hexStr2ByteArr(String strIn) throws Exception { byte[] arrB = strIn.getBytes(); int iLen = arrB.length; // 两个字符表示一个字节,所以字节数组长度是字符串长度除以2 byte[] arrOut = new byte[iLen / 2]; for (int i = 0; i < iLen; i = i + 2) { String strTmp = new String(arrB, i, 2); arrOut[i / 2] = (byte) Integer.parseInt(strTmp, 16); } return arrOut; } /** * * 默认构造方法,使用默认密钥 * * @throws Exception */ public DES() throws Exception { this(strDefaultKey); } /** * * 指定密钥构造方法 * * @param strKey * * 指定的密钥 * * @throws Exception */ public DES(String strKey) throws Exception { // 如果没有指定秘钥的话,使用默认秘钥 if (strKey == null || strKey.equals("")) strKey = strDefaultKey; Key key = getKey(strKey.getBytes()); // NoPadding // PKCS5Padding encryptCipher = Cipher.getInstance("DES/ECB/NoPadding", "SunJCE"); encryptCipher.init(Cipher.ENCRYPT_MODE, key); decryptCipher = Cipher.getInstance("DES/ECB/NoPadding", "SunJCE"); decryptCipher.init(Cipher.DECRYPT_MODE, key); } /** * * 加密字节数组 * * @param arrB * 需加密的字节数组 * * @return 加密后的字节数组 * * @throws Exception */ public byte[] encrypt(byte[] arrB) throws Exception { return encryptCipher.doFinal(arrB); } /** * * 加密字符串 * * * * @param strIn * * 需加密的字符串 * * @return 加 * * 密后的字符串 * * @throws Exception */ public String encrypt(String strIn, String encode) throws Exception { return byteArr2HexStr(encrypt(strIn.getBytes(encode))); } /** * * 解密字节数组 * * @param arrB * * 需解密的字节数组 * * @return 解密后的字节数组 * * @throws Exception */ public byte[] decrypt(byte[] arrB) throws Exception { return decryptCipher.doFinal(arrB); } /** * * 解密字符串 * * * * @param strIn * * 需解密的字符串 * * @return 解密后的字符串 * * @throws Exception */ public String decrypt(String strIn, String encode) throws Exception { return new String(decrypt(hexStr2ByteArr(strIn)), encode); } /** * * 从指定字符串生成密钥,密钥所需的字节数组长度为8位 不足8位时后面补0,超出8位只取前8位 * * * * @param arrBTmp * * 构成该字符串的字节数组 * * @return 生成的密钥 * * @throws Exception */ private Key getKey(byte[] arrBTmp) throws Exception { // 创建一个空的8位字节数组(默认值为0) byte[] arrB = new byte[8]; // 将原始字节数组转换为8位 for (int i = 0; i < arrBTmp.length && i < arrB.length; i++) { arrB[i] = arrBTmp[i]; } // 生成密钥 Key key = new javax.crypto.spec.SecretKeySpec(arrB, "DES"); return key; } /** * * DES加密 * * @param key * 使用的秘钥,传入null或是空值时使用默认秘钥 * * @param str * 待加密的明文 * * @param encode * 明文编码方式,一般为“GBK” * * @return */ public static String encrypt(String key, String str, String encode) { try { byte[] strBytes = str.getBytes(encode); byte[] newStrBytes = new byte[strBytes.length + (8 - strBytes.length % 8)]; for (int i = 0; i < newStrBytes.length; i++) { newStrBytes[i] = i < strBytes.length ? strBytes[i] : 32; }// for return new DES(key).encrypt(new String(newStrBytes, encode), encode); } catch (Exception e) { // throw new MPayException(MPayException.MPAY_DES_ERROR,"加密失败",e); return "加密失败"; }// try } /** * * DES解密 * * @param key * 使用的秘钥,传入null或是空值时使用默认秘钥 * * @param str * 待解密的密文 * * @param encode * 密文编码方式,一般为“GBK” * * @return */ public static String decrypt(String key, String str, String encode) { try { return new DES(key).decrypt(str, encode).replaceAll("\\s*$", ""); } catch (Exception e) { // throw new MPayException(MPayException.MPAY_DES_ERROR,"解密失败",e); return "解密失败"; }// try } public static void main(String[] args) throws Exception { // String str = DesUtil.encrypt("}7$#3@+1~/B\\[D&...","intf", "UTF-8"); // System.out.println("密文=" + str); // System.out.println("明文=#" + // DesUtil.decrypt("}7$#3@+1~/B\\[D&...",str, "UTF-8")+"#"); // System.out.println(DesUtil.decrypt("}7$#3@+1~/B\\[D&...","54c5b564c51868ba", // "UTF-8"));//f54c505c18c74894 54c5b564c51868ba // // System.out.println( DesUtil.decrypt("}7$#3@+1", "d40d315388d74f2d", // "GBK") ); String key = ""; String message = "23873d4a0da6f58d3863b5758c457e312015ba63f4e433a4a12b60ca79bab8347e185d6502a594989d2711e8239ed0a37f14a477140fb18593d5dafba217ba76cf1e6a5fdf0f3593ff9945ac10398f99d5f14de2d349c4914431cb11724ee801f64147ea46455215777980a12f18acc842a8545db0bfe6d739efd36f096defa1bf2b1e016b4af9f18e87a3f220da2a4741f2cb88f6a29f8293e53357b2e6f9f9b4434f4e0b76ef6a250ecc47fecde2248e419665de46fe8fa31accc171bcbb44758d3ed4d2ab6e5d3456caee683dd1a8758d3ed4d2ab6e5d7cb111627e687fd3a9634596dd187b8acc697ee8444988d6908adf9322636cf7201f575fb41823ec412eede8a8c5a5b4d2eac2b6ae6bf07ef8ba56572383d327ce8e3f64aec57b4f473c0534c91140f160acf86fa415611c65d068960831f7864eff47fcb5a2a675c1ddb1b39ea3aa047a0b9f4258a61ae8e0b4664f71df1ea1ff9945ac10398f99da4be1a7f28b5f2a"; System.out.println(DES.decrypt(key, message, "GBK")); String str = "123456.com"; System.out.println(DES.encrypt(key, str, "GBK")); } } ```

spring security cas单点登录拒绝访问

[b]cas服务端和cas客户端都已经配合,访问cas服务端可以登录,访问客户端应用资源的时候出现拒绝访问问题,但是[color=red]能成功跳转到cas服务端的login页面,输入账号密码后控制台打印显示出服务端登录成功,但是关于客户端的打印出现拒绝访问异常,而且httpSession不为null但是里面没值[/color][/b]。 初次使用spring security和cas望多多指教. 异常信息: [color=red][b]首次登录直接出现拒绝访问,但是却能跳转到cas 登录页面,[/b][/color] [quote] 信息: Server startup in 21955 ms 2012-6-6 11:51:31 org.apache.catalina.core.ApplicationContext log 信息: HTMLManager: init: Associated with Deployer 'Catalina:type=Deployer,host=localhost' 2012-6-6 11:51:31 org.apache.catalina.core.ApplicationContext log 信息: HTMLManager: init: Global resources are available 2012-6-6 11:51:31 org.apache.catalina.core.ApplicationContext log 信息: HTMLManager: list: Listing contexts for virtual host 'localhost' 2012-06-06 11:51:32,593 INFO [org.jasig.cas.ticket.registry.support.DefaultTicketRegistryCleaner] - <Beginning ticket cleanup.> 2012-06-06 11:51:32,593 INFO [org.jasig.cas.ticket.registry.support.DefaultTicketRegistryCleaner] - <0 tickets found to be removed.> 2012-06-06 11:51:32,593 INFO [org.jasig.cas.ticket.registry.support.DefaultTicketRegistryCleaner] - <Finished ticket cleanup.> 11:51:33,906 DEBUG org.springframework.security.web.FilterChainProxy:318 - /index.jsp at position 1 of 12 in additional filter chain; firing Filter: 'SecurityContextPersistenceFilter' 11:51:33,921 DEBUG org.springframework.security.web.context.HttpSessionSecurityContextRepository:127 - No HttpSession currently exists 11:51:33,921 DEBUG org.springframework.security.web.context.HttpSessionSecurityContextRepository:85 - No SecurityContext was available from the HttpSession: null. A new one will be created. 11:51:33,921 DEBUG org.springframework.security.web.FilterChainProxy:318 - /index.jsp at position 2 of 12 in additional filter chain; firing Filter: 'LogoutFilter' 11:51:33,921 DEBUG org.springframework.security.web.FilterChainProxy:318 - /index.jsp at position 3 of 12 in additional filter chain; firing Filter: 'CasAuthenticationFilter' 11:51:33,937 DEBUG org.springframework.security.cas.web.CasAuthenticationFilter:311 - serviceTicketRequest = false 11:51:33,937 DEBUG org.springframework.security.cas.web.CasAuthenticationFilter:362 - proxyReceptorConfigured = false 11:51:33,937 DEBUG org.springframework.security.cas.web.CasAuthenticationFilter:349 - proxyReceptorRequest = false 11:51:33,937 DEBUG org.springframework.security.cas.web.CasAuthenticationFilter:327 - proxyTicketRequest = false 11:51:33,937 DEBUG org.springframework.security.cas.web.CasAuthenticationFilter:262 - requiresAuthentication = false 11:51:33,937 DEBUG org.springframework.security.web.FilterChainProxy:318 - /index.jsp at position 4 of 12 in additional filter chain; firing Filter: 'UsernamePasswordAuthenticationFilter' 11:51:33,937 DEBUG org.springframework.security.web.FilterChainProxy:318 - /index.jsp at position 5 of 12 in additional filter chain; firing Filter: 'DefaultLoginPageGeneratingFilter' 11:51:33,937 DEBUG org.springframework.security.web.FilterChainProxy:318 - /index.jsp at position 6 of 12 in additional filter chain; firing Filter: 'BasicAuthenticationFilter' 11:51:33,937 DEBUG org.springframework.security.web.FilterChainProxy:318 - /index.jsp at position 7 of 12 in additional filter chain; firing Filter: 'RequestCacheAwareFilter' 11:51:33,937 DEBUG org.springframework.security.web.FilterChainProxy:318 - /index.jsp at position 8 of 12 in additional filter chain; firing Filter: 'SecurityContextHolderAwareRequestFilter' 11:51:33,937 DEBUG org.springframework.security.web.FilterChainProxy:318 - /index.jsp at position 9 of 12 in additional filter chain; firing Filter: 'AnonymousAuthenticationFilter' 11:51:33,937 DEBUG org.springframework.security.web.authentication.AnonymousAuthenticationFilter:102 - Populated SecurityContextHolder with anonymous token: 'org.springframework.security.authentication.AnonymousAuthenticationToken@9055e4a6: Principal: anonymousUser; Credentials: [PROTECTED]; Authenticated: true; Details: org.springframework.security.web.authentication.WebAuthenticationDetails@957e: RemoteIpAddress: 127.0.0.1; SessionId: null; Granted Authorities: ROLE_ANONYMOUS' 11:51:33,937 DEBUG org.springframework.security.web.FilterChainProxy:318 - /index.jsp at position 10 of 12 in additional filter chain; firing Filter: 'SessionManagementFilter' 11:51:33,937 DEBUG org.springframework.security.web.session.SessionManagementFilter:91 - Requested session IDFED78FFF2BDBC0647461CBFA29AB9B23 is invalid. 11:51:33,937 DEBUG org.springframework.security.web.FilterChainProxy:318 - /index.jsp at position 11 of 12 in additional filter chain; firing Filter: 'ExceptionTranslationFilter' 11:51:33,937 DEBUG org.springframework.security.web.FilterChainProxy:318 - /index.jsp at position 12 of 12 in additional filter chain; firing Filter: 'FilterSecurityInterceptor' 11:51:33,937 DEBUG org.springframework.security.web.access.intercept.FilterSecurityInterceptor:193 - Secure object: FilterInvocation: URL: /index.jsp; Attributes: [ROLE_USER] 11:51:33,937 DEBUG org.springframework.security.web.access.intercept.FilterSecurityInterceptor:298 - Previously Authenticated: org.springframework.security.authentication.AnonymousAuthenticationToken@9055e4a6: Principal: anonymousUser; Credentials: [PROTECTED]; Authenticated: true; Details: org.springframework.security.web.authentication.WebAuthenticationDetails@957e: RemoteIpAddress: 127.0.0.1; SessionId: null; Granted Authorities: ROLE_ANONYMOUS 11:51:33,937 DEBUG org.springframework.security.access.vote.AffirmativeBased:65 - Voter: org.springframework.security.access.vote.RoleVoter@13e02ed, returned: -1 11:51:33,953 DEBUG org.springframework.security.access.vote.AffirmativeBased:65 - Voter: org.springframework.security.access.vote.AuthenticatedVoter@322394, returned: 0 11:51:33,968 DEBUG org.springframework.security.web.access.ExceptionTranslationFilter:165 - Access is denied (user is anonymous); redirecting to authentication entry point org.springframework.security.access.AccessDeniedException: Access is denied at org.springframework.security.access.vote.AffirmativeBased.decide(AffirmativeBased.java:83) at org.springframework.security.access.intercept.AbstractSecurityInterceptor.beforeInvocation(AbstractSecurityInterceptor.java:205) at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:114) at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:83) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323) at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:113) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323) at org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:101) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323) at org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:113) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323) at org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:54) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323) at org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:45) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323) at org.springframework.security.web.authentication.www.BasicAuthenticationFilter.doFilter(BasicAuthenticationFilter.java:150) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323) at org.springframework.security.web.authentication.ui.DefaultLoginPageGeneratingFilter.doFilter(DefaultLoginPageGeneratingFilter.java:91) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323) at org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:182) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323) at org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:182) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323) at org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:105) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323) at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:87) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323) at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:173) at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:346) at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:259) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293) at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:877) at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:594) at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1675) at java.lang.Thread.run(Thread.java:662) 11:51:33,984 DEBUG org.springframework.security.web.savedrequest.HttpSessionRequestCache:41 - DefaultSavedRequest added to Session: DefaultSavedRequest[http://localhost:8080/Cas_Client/] 11:51:33,984 DEBUG org.springframework.security.web.access.ExceptionTranslationFilter:185 - Calling Authentication entry point. 11:51:33,984 DEBUG org.springframework.security.web.context.HttpSessionSecurityContextRepository:269 - SecurityContext is empty or contents are anonymous - context will not be stored in HttpSession. 11:51:34,015 DEBUG org.springframework.security.web.context.SecurityContextPersistenceFilter:97 - SecurityContextHolder now cleared, as request processing completed 2012-06-06 11:51:34,921 INFO [org.jasig.cas.web.flow.InitialFlowSetupAction] - <Setting path for cookies to: /casServer/> [/quote] [color=red][b]跳转到登录页面后输入账号密码出现cas服务端的信息正常,但是关于cas客户端的和上面的异常一样:[/b][/color] 打印信息: [quote] 2012-06-06 12:03:21,625 INFO [org.jasig.cas.services.DefaultServicesManagerImpl] - <Reloading registered services.> 2012-06-06 12:03:21,625 INFO [org.jasig.cas.services.DefaultServicesManagerImpl] - <Loaded 0 services.> start[1338955402531] time[603] tag[QueryDatabaseAuthenticationHandler] 2012-06-06 12:03:23,125 INFO [org.jasig.cas.authentication.AuthenticationManagerImpl] - <AuthenticationHandler: org.jasig.cas.adaptors.jdbc.QueryDatabaseAuthenticationHandler successfully authenticated the user which provided the following credentials: [username: wucht]> 2012-06-06 12:03:23,234 INFO [org.jasig.cas.authentication.AuthenticationManagerImpl] - <Resolved principal wucht> 2012-06-06 12:03:23,234 INFO [org.jasig.cas.authentication.AuthenticationManagerImpl] - <Principal found: wucht> 2012-06-06 12:03:23,250 INFO [com.github.inspektr.audit.support.Slf4jLoggingAuditTrailManager] - <Audit trail record BEGIN ============================================================= WHO: [username: wucht] WHAT: supplied credentials: [username: wucht] ACTION: AUTHENTICATION_SUCCESS APPLICATION: CAS WHEN: Wed Jun 06 12:03:23 CST 2012 CLIENT IP ADDRESS: 127.0.0.1 SERVER IP ADDRESS: 127.0.0.1 ============================================================= > 2012-06-06 12:03:23,250 INFO [com.github.inspektr.audit.support.Slf4jLoggingAuditTrailManager] - <Audit trail record BEGIN ============================================================= WHO: [username: wucht] WHAT: TGT-1-0WNh4MDLT57myMG77eF54B9ix5oQP0OItPnVBGDZBYac9Bj42E-casServer ACTION: TICKET_GRANTING_TICKET_CREATED APPLICATION: CAS WHEN: Wed Jun 06 12:03:23 CST 2012 CLIENT IP ADDRESS: 127.0.0.1 SERVER IP ADDRESS: 127.0.0.1 ============================================================= > 2012-06-06 12:03:23,265 INFO [org.jasig.cas.CentralAuthenticationServiceImpl] - <Granted service ticket [ST-1-eOK4CG7zd7cApkahlva9-casServer] for service [http://localhost:8080/Cas_Client/j_acegi_cas_security_check] for user [wucht]> 2012-06-06 12:03:23,265 INFO [com.github.inspektr.audit.support.Slf4jLoggingAuditTrailManager] - <Audit trail record BEGIN ============================================================= WHO: wucht WHAT: ST-1-eOK4CG7zd7cApkahlva9-casServer for http://localhost:8080/Cas_Client/j_acegi_cas_security_check ACTION: SERVICE_TICKET_CREATED APPLICATION: CAS WHEN: Wed Jun 06 12:03:23 CST 2012 CLIENT IP ADDRESS: 127.0.0.1 SERVER IP ADDRESS: 127.0.0.1 ============================================================= > 12:03:23,296 DEBUG org.springframework.security.web.FilterChainProxy:318 - /j_acegi_cas_security_check?ticket=ST-1-eOK4CG7zd7cApkahlva9-casServer at position 1 of 12 in additional filter chain; firing Filter: 'SecurityContextPersistenceFilter' 12:03:23,296 DEBUG org.springframework.security.web.context.HttpSessionSecurityContextRepository:139 - HttpSession returned null object for SPRING_SECURITY_CONTEXT 12:03:23,296 DEBUG org.springframework.security.web.context.HttpSessionSecurityContextRepository:85 - No SecurityContext was available from the HttpSession: org.apache.catalina.session.StandardSessionFacade@1ef3d12. A new one will be created. 12:03:23,296 DEBUG org.springframework.security.web.FilterChainProxy:318 - /j_acegi_cas_security_check?ticket=ST-1-eOK4CG7zd7cApkahlva9-casServer at position 2 of 12 in additional filter chain; firing Filter: 'LogoutFilter' 12:03:23,296 DEBUG org.springframework.security.web.FilterChainProxy:318 - /j_acegi_cas_security_check?ticket=ST-1-eOK4CG7zd7cApkahlva9-casServer at position 3 of 12 in additional filter chain; firing Filter: 'CasAuthenticationFilter' 12:03:23,296 DEBUG org.springframework.security.cas.web.CasAuthenticationFilter:311 - serviceTicketRequest = false 12:03:23,296 DEBUG org.springframework.security.cas.web.CasAuthenticationFilter:362 - proxyReceptorConfigured = false 12:03:23,296 DEBUG org.springframework.security.cas.web.CasAuthenticationFilter:349 - proxyReceptorRequest = false 12:03:23,296 DEBUG org.springframework.security.cas.web.CasAuthenticationFilter:327 - proxyTicketRequest = false 12:03:23,296 DEBUG org.springframework.security.cas.web.CasAuthenticationFilter:262 - requiresAuthentication = false 12:03:23,296 DEBUG org.springframework.security.web.FilterChainProxy:318 - /j_acegi_cas_security_check?ticket=ST-1-eOK4CG7zd7cApkahlva9-casServer at position 4 of 12 in additional filter chain; firing Filter: 'UsernamePasswordAuthenticationFilter' 12:03:23,296 DEBUG org.springframework.security.web.FilterChainProxy:318 - /j_acegi_cas_security_check?ticket=ST-1-eOK4CG7zd7cApkahlva9-casServer at position 5 of 12 in additional filter chain; firing Filter: 'DefaultLoginPageGeneratingFilter' 12:03:23,296 DEBUG org.springframework.security.web.FilterChainProxy:318 - /j_acegi_cas_security_check?ticket=ST-1-eOK4CG7zd7cApkahlva9-casServer at position 6 of 12 in additional filter chain; firing Filter: 'BasicAuthenticationFilter' 12:03:23,296 DEBUG org.springframework.security.web.FilterChainProxy:318 - /j_acegi_cas_security_check?ticket=ST-1-eOK4CG7zd7cApkahlva9-casServer at position 7 of 12 in additional filter chain; firing Filter: 'RequestCacheAwareFilter' 12:03:23,296 DEBUG org.springframework.security.web.savedrequest.DefaultSavedRequest:309 - pathInfo: both null (property equals) 12:03:23,296 DEBUG org.springframework.security.web.savedrequest.DefaultSavedRequest:317 - queryString: arg1=null; arg2=ticket=ST-1-eOK4CG7zd7cApkahlva9-casServer (property not equals) 12:03:23,296 DEBUG org.springframework.security.web.savedrequest.HttpSessionRequestCache:75 - saved request doesn't match 12:03:23,296 DEBUG org.springframework.security.web.FilterChainProxy:318 - /j_acegi_cas_security_check?ticket=ST-1-eOK4CG7zd7cApkahlva9-casServer at position 8 of 12 in additional filter chain; firing Filter: 'SecurityContextHolderAwareRequestFilter' 12:03:23,296 DEBUG org.springframework.security.web.FilterChainProxy:318 - /j_acegi_cas_security_check?ticket=ST-1-eOK4CG7zd7cApkahlva9-casServer at position 9 of 12 in additional filter chain; firing Filter: 'AnonymousAuthenticationFilter' 12:03:23,296 DEBUG org.springframework.security.web.authentication.AnonymousAuthenticationFilter:102 - Populated SecurityContextHolder with anonymous token: 'org.springframework.security.authentication.AnonymousAuthenticationToken@6fa86552: Principal: anonymousUser; Credentials: [PROTECTED]; Authenticated: true; Details: org.springframework.security.web.authentication.WebAuthenticationDetails@fffd148a: RemoteIpAddress: 127.0.0.1; SessionId: 659060E504E41E2F28CF873803A07F81; Granted Authorities: ROLE_ANONYMOUS' 12:03:23,312 DEBUG org.springframework.security.web.FilterChainProxy:318 - /j_acegi_cas_security_check?ticket=ST-1-eOK4CG7zd7cApkahlva9-casServer at position 10 of 12 in additional filter chain; firing Filter: 'SessionManagementFilter' 12:03:23,312 DEBUG org.springframework.security.web.FilterChainProxy:318 - /j_acegi_cas_security_check?ticket=ST-1-eOK4CG7zd7cApkahlva9-casServer at position 11 of 12 in additional filter chain; firing Filter: 'ExceptionTranslationFilter' 12:03:23,312 DEBUG org.springframework.security.web.FilterChainProxy:318 - /j_acegi_cas_security_check?ticket=ST-1-eOK4CG7zd7cApkahlva9-casServer at position 12 of 12 in additional filter chain; firing Filter: 'FilterSecurityInterceptor' 12:03:23,312 DEBUG org.springframework.security.web.access.intercept.FilterSecurityInterceptor:193 - Secure object: FilterInvocation: URL: /j_acegi_cas_security_check?ticket=ST-1-eOK4CG7zd7cApkahlva9-casServer; Attributes: [ROLE_USER] 12:03:23,312 DEBUG org.springframework.security.web.access.intercept.FilterSecurityInterceptor:298 - Previously Authenticated: org.springframework.security.authentication.AnonymousAuthenticationToken@6fa86552: Principal: anonymousUser; Credentials: [PROTECTED]; Authenticated: true; Details: org.springframework.security.web.authentication.WebAuthenticationDetails@fffd148a: RemoteIpAddress: 127.0.0.1; SessionId: 659060E504E41E2F28CF873803A07F81; Granted Authorities: ROLE_ANONYMOUS 12:03:23,312 DEBUG org.springframework.security.access.vote.AffirmativeBased:65 - Voter: org.springframework.security.access.vote.RoleVoter@13e02ed, returned: -1 12:03:23,312 DEBUG org.springframework.security.access.vote.AffirmativeBased:65 - Voter: org.springframework.security.access.vote.AuthenticatedVoter@322394, returned: 0 12:03:23,312 DEBUG org.springframework.security.web.access.ExceptionTranslationFilter:165 - Access is denied (user is anonymous); redirecting to authentication entry point org.springframework.security.access.AccessDeniedException: Access is denied at org.springframework.security.access.vote.AffirmativeBased.decide(AffirmativeBased.java:83) at org.springframework.security.access.intercept.AbstractSecurityInterceptor.beforeInvocation(AbstractSecurityInterceptor.java:205) at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:114) at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:83) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323) at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:113) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323) at org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:101) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323) at org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:113) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323) at org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:54) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323) at org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:45) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323) at org.springframework.security.web.authentication.www.BasicAuthenticationFilter.doFilter(BasicAuthenticationFilter.java:150) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323) at org.springframework.security.web.authentication.ui.DefaultLoginPageGeneratingFilter.doFilter(DefaultLoginPageGeneratingFilter.java:91) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323) at org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:182) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323) at org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:182) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323) at org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:105) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323) at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:87) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323) at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:173) at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:346) at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:259) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293) at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:877) at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:594) at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1675) at java.lang.Thread.run(Thread.java:662) 12:03:23,312 DEBUG org.springframework.security.web.savedrequest.HttpSessionRequestCache:41 - DefaultSavedRequest added to Session: DefaultSavedRequest[http://localhost:8080/Cas_Client/j_acegi_cas_security_check?ticket=ST-1-eOK4CG7zd7cApkahlva9-casServer] 12:03:23,312 DEBUG org.springframework.security.web.access.ExceptionTranslationFilter:185 - Calling Authentication entry point. 12:03:23,312 DEBUG org.springframework.security.web.context.HttpSessionSecurityContextRepository:269 - SecurityContext is empty or contents are anonymous - context will not be stored in HttpSession. 12:03:23,343 DEBUG org.springframework.security.web.context.SecurityContextPersistenceFilter:97 - SecurityContextHolder now cleared, as request processing completed [/quote] [b]cas服务端配置:[/b] cas.properties [quote] #server.prefix=http://localhost:8080/cas #server.prefix=http://cas.wucht.com:8080/casServer server.prefix=http://localhost:8080/casServer cas.securityContext.serviceProperties.service=${server.prefix}/j_acegi_cas_security_check # Names of roles allowed to access the CAS service manager cas.securityContext.serviceProperties.adminRoles=ROLE_ADMIN cas.securityContext.casProcessingFilterEntryPoint.loginUrl=${server.prefix}/login cas.securityContext.ticketValidator.casServerUrlPrefix=${server.prefix} cas.themeResolver.defaultThemeName=cas-theme-default #cas.themeResolver.defaultThemeName=default cas.viewResolver.basename=default_views #host.name=cas host.name=casServer #database.hibernate.dialect=org.hibernate.dialect.OracleDialect database.hibernate.dialect=org.hibernate.dialect.MySQLDialect #database.hibernate.dialect=org.hibernate.dialect.HSQLDialect [/quote] deployerConfigContext.xml [quote] <?xml version="1.0" encoding="UTF-8"?> <!-- | deployerConfigContext.xml centralizes into one file some of the declarative configuration that | all CAS deployers will need to modify. | | This file declares some of the Spring-managed JavaBeans that make up a CAS deployment. | The beans declared in this file are instantiated at context initialization time by the Spring | ContextLoaderListener declared in web.xml. It finds this file because this | file is among those declared in the context parameter "contextConfigLocation". | | By far the most common change you will need to make in this file is to change the last bean | declaration to replace the default SimpleTestUsernamePasswordAuthenticationHandler with | one implementing your approach for authenticating usernames and passwords. +--> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:p="http://www.springframework.org/schema/p" xmlns:sec="http://www.springframework.org/schema/security" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd http://www.springframework.org/schema/security http://www.springframework.org/schema/security/spring-security-3.0.xsd"> <!-- | This bean declares our AuthenticationManager. The CentralAuthenticationService service bean | declared in applicationContext.xml picks up this AuthenticationManager by reference to its id, | "authenticationManager". Most deployers will be able to use the default AuthenticationManager | implementation and so do not need to change the class of this bean. We include the whole | AuthenticationManager here in the userConfigContext.xml so that you can see the things you will | need to change in context. +--> <bean id="authenticationManager" class="org.jasig.cas.authentication.AuthenticationManagerImpl"> <!-- | This is the List of CredentialToPrincipalResolvers that identify what Principal is trying to authenticate. | The AuthenticationManagerImpl considers them in order, finding a CredentialToPrincipalResolver which | supports the presented credentials. | | AuthenticationManagerImpl uses these resolvers for two purposes. First, it uses them to identify the Principal | attempting to authenticate to CAS /login . In the default configuration, it is the DefaultCredentialsToPrincipalResolver | that fills this role. If you are using some other kind of credentials than UsernamePasswordCredentials, you will need to replace | DefaultCredentialsToPrincipalResolver with a CredentialsToPrincipalResolver that supports the credentials you are | using. | | Second, AuthenticationManagerImpl uses these resolvers to identify a service requesting a proxy granting ticket. | In the default configuration, it is the HttpBasedServiceCredentialsToPrincipalResolver that serves this purpose. | You will need to change this list if you are identifying services by something more or other than their callback URL. +--> <property name="credentialsToPrincipalResolvers"> <list> <!-- | UsernamePasswordCredentialsToPrincipalResolver supports the UsernamePasswordCredentials that we use for /login | by default and produces SimplePrincipal instances conveying the username from the credentials. | | If you've changed your LoginFormAction to use credentials other than UsernamePasswordCredentials then you will also | need to change this bean declaration (or add additional declarations) to declare a CredentialsToPrincipalResolver that supports the | Credentials you are using. +--> <bean class="org.jasig.cas.authentication.principal.UsernamePasswordCredentialsToPrincipalResolver"> <!--增加此属性,为认证过的用户的Principal添加属性--> <property name="attributeRepository" ref="attributeRepository"></property> </bean> <!-- | HttpBasedServiceCredentialsToPrincipalResolver supports HttpBasedCredentials. It supports the CAS 2.0 approach of | authenticating services by SSL callback, extracting the callback URL from the Credentials and representing it as a | SimpleService identified by that callback URL. | | If you are representing services by something more or other than an HTTPS URL whereat they are able to | receive a proxy callback, you will need to change this bean declaration (or add additional declarations). +--> <bean class="org.jasig.cas.authentication.principal.HttpBasedServiceCredentialsToPrincipalResolver" /> </list> </property> <!-- | Whereas CredentialsToPrincipalResolvers identify who it is some Credentials might authenticate, | AuthenticationHandlers actually authenticate credentials. Here we declare the AuthenticationHandlers that | authenticate the Principals that the CredentialsToPrincipalResolvers identified. CAS will try these handlers in turn | until it finds one that both supports the Credentials presented and succeeds in authenticating. +--> <property name="authenticationHandlers"> <list> <!-- | This is the authentication handler that authenticates services by means of callback via SSL, thereby validating | a server side SSL certificate. +--> <bean class="org.jasig.cas.authentication.handler.support.HttpBasedServiceCredentialsAuthenticationHandler" p:httpClient-ref="httpClient" /> <!-- | This is the authentication handler declaration that every CAS deployer will need to change before deploying CAS | into production. The default SimpleTestUsernamePasswordAuthenticationHandler authenticates UsernamePasswordCredentials | where the username equals the password. You will need to replace this with an AuthenticationHandler that implements your | local authentication strategy. You might accomplish this by coding a new such handler and declaring | edu.someschool.its.cas.MySpecialHandler here, or you might use one of the handlers provided in the adaptors modules. +--> <!-- <bean class="org.jasig.cas.authentication.handler.support.SimpleTestUsernamePasswordAuthenticationHandler" /> --> <!-- 数据库认证.wucht--> <bean class="org.jasig.cas.adaptors.jdbc.QueryDatabaseAuthenticationHandler"> <property name="dataSource" ref="dataSource" /> <property name="sql" value="select password from users where name=?" /> </bean> </list> </property> </bean> <!-- DATABASE 增加数据源配置 --> <bean id="dataSource" class="org.springframework.jdbc.datasource.DriverManagerDataSource"> <property name="driverClassName"><value>com.mysql.jdbc.Driver</value></property> <property name="url"><value>jdbc:mysql://localhost:3306/mysql?useUnicode=true&amp;characterEncoding=utf-8</value></property> <property name="username"><value>root</value></property> <property name="password"><value>root</value></property> </bean> <!-- This bean defines the security roles for the Services Management application. Simple deployments can use the in-memory version. More robust deployments will want to use another option, such as the Jdbc version. The name of this should remain "userDetailsService" in order for Spring Security to find it. --> <!-- <sec:user name="@@THIS SHOULD BE REPLACED@@" password="notused" authorities="ROLE_ADMIN" />--> <sec:user-service id="userDetailsService"> <sec:user name="@@THIS SHOULD BE REPLACED@@" password="notused" authorities="ROLE_ADMIN" /> </sec:user-service> <!-- Bean that defines the attributes that a service may return. This example uses the Stub/Mock version. A real implementation may go against a database or LDAP server. The id should remain "attributeRepository" though. --> <!-- <bean id="attributeRepository" class="org.jasig.services.persondir.support.StubPersonAttributeDao"> <property name="backingMap"> <map> <entry key="uid" value="uid" /> <entry key="eduPersonAffiliation" value="eduPersonAffiliation" /> <entry key="groupMembership" value="groupMembership" /> </map> </property> </bean> --> <!-- 使用SingleRowJdbcPersonAttributeDao 获取更多用户的信息 --> <bean id="attributeRepository" class="org.jasig.services.persondir.support.jdbc.SingleRowJdbcPersonAttributeDao"> <constructor-arg index="0" ref="dataSource"/> <constructor-arg index="1" value="select role_name from role where login_name = ?"/> <!--这里的key需写username,value对应数据库用户名字段 --> <property name="queryAttributeMapping"> <map> <entry key="username" value="login_name"/> </map> </property> <!--key对应数据库字段,value对应客户端获取参数 --> <!-- 返回数据认证后的数据 --> <property name="resultAttributeMapping"> <map> <!--这个从数据库中获取的角色,用于在应用中security的权限验证--> <entry key="role_name" value="authorities"/> </map> </property> </bean> <!-- Sample, in-memory data store for the ServiceRegistry. A real implementation would probably want to replace this with the JPA-backed ServiceRegistry DAO The name of this bean should remain "serviceRegistryDao". --> <bean id="serviceRegistryDao" class="org.jasig.cas.services.InMemoryServiceRegistryDaoImpl"> <!-- <property name="registeredServices"> <list> <bean class="org.jasig.cas.services.RegisteredServiceImpl"> <property name="id" value="0" /> <property name="name" value="HTTP" /> <property name="description" value="Only Allows HTTP Urls" /> <property name="serviceId" value="http://**" /> <property name="evaluationOrder" value="10000001" /> </bean> <bean class="org.jasig.cas.services.RegisteredServiceImpl"> <property name="id" value="1" /> <property name="name" value="HTTPS" /> <property name="description" value="Only Allows HTTPS Urls" /> <property name="serviceId" value="https://**" /> <property name="evaluationOrder" value="10000002" /> </bean> <bean class="org.jasig.cas.services.RegisteredServiceImpl"> <property name="id" value="2" /> <property name="name" value="IMAPS" /> <property name="description" value="Only Allows HTTPS Urls" /> <property name="serviceId" value="imaps://**" /> <property name="evaluationOrder" value="10000003" /> </bean> <bean class="org.jasig.cas.services.RegisteredServiceImpl"> <property name="id" value="3" /> <property name="name" value="IMAP" /> <property name="description" value="Only Allows IMAP Urls" /> <property name="serviceId" value="imap://**" /> <property name="evaluationOrder" value="10000004" /> </bean> </list> </property> --> </bean> <bean id="auditTrailManager" class="com.github.inspektr.audit.support.Slf4jLoggingAuditTrailManager" /> </beans> [/quote] [b]spring的配置代码如下:[/b][code="ruby"] <?xml version="1.0" encoding="UTF-8"?> <beans:beans xmlns="http://www.springframework.org/schema/security" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:p="http://www.springframework.org/schema/p" xmlns:beans="http://www.springframework.org/schema/beans" xsi:schemaLocation=" http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.1.xsd http://www.springframework.org/schema/security http://www.springframework.org/schema/security/spring-security-3.1.xsd" default-lazy-init="true"> <!-- entry-point-ref="casEntryPoint"作用是认证的入口,是一个实现AuthenticationEntryPoint接口的类 ,为ExceptionTranslationFilter类提供认证依据, <custom-filter position="FORM_LOGIN_FILTER" ref="casFilter"/> 使用自定义的Filter,放置在过滤器链的FORM_LOGIN_FILTER的位置 casEntryPoint只是提供认证入口的作用,当没有权限,将跳转到该地址。 casFilter是处理CAS service ticket的,当无权访问时,会使用casEntryPoint提供认证入口 --> <http auto-config="true" entry-point-ref="casEntryPoint" access-denied-page="/403.jsp"> <intercept-url pattern="/**" access="ROLE_USER" /> <!-- ROLE_ADMIN--> <!-- logout-success-url="/login.html" --> <!-- 注销时需要先注销应用程序,再注销cas中心认证服务 --> <logout logout-url="/logout.html" success-handler-ref="casLogoutSuccessHandler" /> <custom-filter position="CAS_FILTER" ref="casFilter" /> </http> <authentication-manager alias="authenticationManager"> <authentication-provider ref="casAuthenticationProvider" /> </authentication-manager> <!-- cas中心认证服务入口 --> <beans:bean id="casEntryPoint" class="org.springframework.security.cas.web.CasAuthenticationEntryPoint"> <beans:property name="loginUrl" value="http://localhost:8080/casServer/login" /> <beans:property name="serviceProperties" ref="serviceProperties" /> </beans:bean> <!-- cas中心认证服务配置 --> <beans:bean id="serviceProperties" class="org.springframework.security.cas.ServiceProperties"> <beans:property name="service" value="http://localhost:8080/Cas_Client/j_acegi_cas_security_check" /> <beans:property name="sendRenew" value="false" /> </beans:bean> <!-- CAS service ticket(中心认证服务凭据)验证 --> <beans:bean id="casFilter" class="org.springframework.security.cas.web.CasAuthenticationFilter"> <beans:property name="authenticationManager" ref="authenticationManager" /> <!-- <beans:property name="authenticationFailureHandler">--> <!-- <beans:bean--> <!-- class="org.springframework.security.web.authentication.SimpleUrlAuthenticationFailureHandler">--> <!-- <beans:property name="defaultFailureUrl"--> <!-- value="/logout.html" />--> <!-- </beans:bean>--> <!-- </beans:property>--> <!-- 登录成功后的页面,如果是固定的。否则 ref="authenticationSuccessHandler" --> <!-- <beans:property name="authenticationSuccessHandler">--> <!-- <beans:bean--> <!-- class="org.springframework.security.web.authentication.SimpleUrlAuthenticationSuccessHandler">--> <!-- <beans:property name="defaultTargetUrl"--> <!-- value="/index.jsp" />--> <!-- </beans:bean>--> <!-- </beans:property>--> </beans:bean> <!-- 从Cas Server得到用户信息 --> <beans:bean id="authenticationUserDetailsService" class="org.springframework.security.cas.userdetails.GrantedAuthorityFromAssertionAttributesUserDetailsService"> <beans:constructor-arg> <beans:array> <beans:value>authorities</beans:value> </beans:array> </beans:constructor-arg> </beans:bean> <beans:bean id="userDetailsService" class="com.reportstart.security.service.impl.BocUserDetaislServiceImpl"> <!-- <beans:property name="userDao">--> <!-- <beans:ref bean="userDao" />--> <!-- </beans:property>--> </beans:bean> <!-- <beans:bean id="authenticationUserDetailsService"--> <!-- class="org.springframework.security.core.userdetails.UserDetailsByNameServiceWrapper">--> <!-- <beans:property name="userDetailsService">--> <!-- <beans:ref local="userDetailsService" />--> <!-- </beans:property>--> <!-- </beans:bean>--> <beans:bean id="casAuthenticationProvider" class="org.springframework.security.cas.authentication.CasAuthenticationProvider"> <!-- 使用自定义service获取用户信息 --> <!-- <beans:property name="authenticationUserDetailsService"--> <!-- ref="casAuthenticationUserDetailsService" />--> <!-- 通过Cas Server获取用户信息 --> <beans:property name="authenticationUserDetailsService" ref="authenticationUserDetailsService" /> <beans:property name="serviceProperties" ref="serviceProperties" /> <beans:property name="ticketValidator"> <beans:bean class="org.jasig.cas.client.validation.Cas20ServiceTicketValidator"> <beans:constructor-arg index="0" value="http://localhost:8080/casServer" /> </beans:bean> </beans:property> <!-- 自定义cas客户端应用标示.wucht.2012-6-4(每个cas客户端都需要一个key标示用于区分不同cas客户端) --> <beans:property name="key" value="Cas_Client" /> </beans:bean> <!-- 注销 --> <beans:bean id="casLogoutSuccessHandler" class="com.wucht.test.CasLogoutSuccessHandler"> </beans:bean> </beans:beans>[/code]

SparkStream与flume的整合问题[急,在线等!!!]

各个版本信息: spark2.0.2 flume1.7 sbt部分依赖 libraryDependencies += "org.apache.spark" % "spark-streaming-flume_2.11" % "2.0.2" _拉模式代码和简单的输出语句_ val flumeStream = FlumeUtils.createPollingStream(ssc,host,port,StorageLevel.MEMORY_ONLY_SER_2) flumeStream.count().map(cnt => "Received " + cnt + " flume events." ).print() 已经在各个节点添加依赖 flume简单配置 # 指定Agent的组件名称 a1.sources = r1 a1.sinks = k1 a1.channels = c1 # 指定Flume source(要监听的路径) a1.sources.r1.type = spooldir a1.sources.r1.spoolDir = /home/hadoop/weixf_kafka/testflume # 指定Flume sink a1.sinks.k1.type = org.apache.spark.streaming.flume.sink.SparkSink a1.sinks.k1.channel =c1 a1.sinks.k1.hostname=172.28.41.196 a1.sinks.k1.port = 19999 # 指定Flume channel a1.channels.c1.type = memory a1.channels.c1.capacity = 100000 a1.channels.c1.transactionCapacity = 100000 # 绑定source和sink到channel上 a1.sources.r1.channels = c1 a1.sinks.k1.channel = c1 启动flume,再启动SparkStreaming程序发现如下信息(部分) 17/09/15 17:44:53 INFO scheduler.DAGScheduler: Submitting ResultStage 2 (Receiver 0 ParallelCollectionRDD[3] at makeRDD at ReceiverTracker.scala:610), which has no missing parents 17/09/15 17:44:53 INFO scheduler.ReceiverTracker: Receiver 0 started 17/09/15 17:44:53 INFO memory.MemoryStore: Block broadcast_2 stored as values in memory (estimated size 70.6 KB, free 413.8 MB) 17/09/15 17:44:53 INFO memory.MemoryStore: Block broadcast_2_piece0 stored as bytes in memory (estimated size 25.1 KB, free 413.8 MB) 17/09/15 17:44:53 INFO storage.BlockManagerInfo: Added broadcast_2_piece0 in memory on 172.28.41.193:41571 (size: 25.1 KB, free: 413.9 MB) 17/09/15 17:44:53 INFO spark.SparkContext: Created broadcast 2 from broadcast at DAGScheduler.scala:1012 17/09/15 17:44:53 INFO scheduler.DAGScheduler: Submitting 1 missing tasks from ResultStage 2 (Receiver 0 ParallelCollectionRDD[3] at makeRDD at ReceiverTracker.scala:610) 17/09/15 17:44:53 INFO scheduler.TaskSchedulerImpl: Adding task set 2.0 with 1 tasks 17/09/15 17:44:54 INFO scheduler.TaskSetManager: Starting task 0.0 in stage 2.0 (TID 70, 172.28.41.196, partition 0, PROCESS_LOCAL, 6736 bytes) 17/09/15 17:44:54 INFO cluster.CoarseGrainedSchedulerBackend$DriverEndpoint: Launching task 70 on executor id: 0 hostname: 172.28.41.196. 17/09/15 17:44:54 INFO storage.BlockManagerInfo: Added broadcast_2_piece0 in memory on 172.28.41.196:33364 (size: 25.1 KB, free: 413.9 MB) 17/09/15 17:44:54 INFO util.RecurringTimer: Started timer for JobGenerator at time 1505468700000 17/09/15 17:44:54 INFO scheduler.JobGenerator: Started JobGenerator at 1505468700000 ms 17/09/15 17:44:54 INFO scheduler.JobScheduler: Started JobScheduler 17/09/15 17:44:54 INFO handler.ContextHandler: Started o.s.j.s.ServletContextHandler@534e58b6{/streaming,null,AVAILABLE} 17/09/15 17:44:54 INFO handler.ContextHandler: Started o.s.j.s.ServletContextHandler@1b495d4{/streaming/json,null,AVAILABLE} 17/09/15 17:44:54 INFO handler.ContextHandler: Started o.s.j.s.ServletContextHandler@12fe1f28{/streaming/batch,null,AVAILABLE} 17/09/15 17:44:54 INFO handler.ContextHandler: Started o.s.j.s.ServletContextHandler@26fb4d06{/streaming/batch/json,null,AVAILABLE} 17/09/15 17:44:54 INFO handler.ContextHandler: Started o.s.j.s.ServletContextHandler@2d38edfd{/static/streaming,null,AVAILABLE} 17/09/15 17:44:54 INFO streaming.StreamingContext: StreamingContext started 17/09/15 17:44:55 INFO scheduler.ReceiverTracker: Registered receiver for stream 0 from 172.28.41.196:45983 17/09/15 17:45:01 INFO scheduler.JobScheduler: Added jobs for time 1505468700000 ms 17/09/15 17:45:01 INFO scheduler.JobScheduler: Starting job streaming job 1505468700000 ms.0 from job set of time 1505468700000 ms 17/09/15 17:45:01 INFO spark.SparkContext: Starting job: print at FlumeLogPull.scala:44 17/09/15 17:45:01 INFO storage.BlockManagerInfo: Removed broadcast_1_piece0 on 172.28.41.196:33364 in memory (size: 1969.0 B, free: 413.9 MB) 17/09/15 17:45:01 INFO scheduler.DAGScheduler: Registering RDD 7 (union at DStream.scala:605) 17/09/15 17:45:01 INFO scheduler.DAGScheduler: Got job 2 (print at FlumeLogPull.scala:44) with 1 output partitions 17/09/15 17:45:01 INFO scheduler.DAGScheduler: Final stage: ResultStage 4 (print at FlumeLogPull.scala:44) 17/09/15 17:45:01 INFO scheduler.DAGScheduler: Parents of final stage: List(ShuffleMapStage 3) 17/09/15 17:45:01 INFO scheduler.DAGScheduler: Missing parents: List(ShuffleMapStage 3) 17/09/15 17:45:01 INFO scheduler.DAGScheduler: Submitting ShuffleMapStage 3 (UnionRDD[7] at union at DStream.scala:605), which has no missing parents 17/09/15 17:45:01 INFO storage.BlockManagerInfo: Removed broadcast_1_piece0 on 172.28.41.193:41571 in memory (size: 1969.0 B, free: 413.9 MB) 17/09/15 17:45:02 INFO memory.MemoryStore: Block broadcast_3 stored as values in memory (estimated size 3.3 KB, free 413.8 MB) 17/09/15 17:45:02 INFO memory.MemoryStore: Block broadcast_3_piece0 stored as bytes in memory (estimated size 2.0 KB, free 413.8 MB) 17/09/15 17:45:02 INFO storage.BlockManagerInfo: Added broadcast_3_piece0 in memory on 172.28.41.193:41571 (size: 2.0 KB, free: 413.9 MB) 17/09/15 17:45:02 INFO spark.SparkContext: Created broadcast 3 from broadcast at DAGScheduler.scala:1012 17/09/15 17:45:02 INFO scheduler.DAGScheduler: Submitting 1 missing tasks from ShuffleMapStage 3 (UnionRDD[7] at union at DStream.scala:605) 17/09/15 17:45:02 INFO scheduler.TaskSchedulerImpl: Adding task set 3.0 with 1 tasks 17/09/15 17:45:30 INFO scheduler.JobScheduler: Added jobs for time 1505468730000 ms 17/09/15 17:46:00 INFO scheduler.JobScheduler: Added jobs for time 1505468760000 ms 17/09/15 17:46:30 INFO scheduler.JobScheduler: Added jobs for time 1505468790000 ms 17/09/15 17:47:00 INFO scheduler.JobScheduler: Added jobs for time 1505468820000 ms 17/09/15 17:47:30 INFO scheduler.JobScheduler: Added jobs for time 1505468850000 ms 17/09/15 17:48:00 INFO scheduler.JobScheduler: Added jobs for time 1505468880000 ms 17/09/15 17:48:30 INFO scheduler.JobScheduler: Added jobs for time 1505468910000 ms 17/09/15 17:49:00 INFO scheduler.JobScheduler: Added jobs for time 1505468940000 ms 17/09/15 17:49:30 INFO scheduler.JobScheduler: Added jobs for time 1505468970000 ms 17/09/15 17:50:00 INFO scheduler.JobScheduler: Added jobs for time 1505469000000 ms 17/09/15 17:50:30 INFO scheduler.JobScheduler: Added jobs for time 1505469030000 ms 17/09/15 17:51:00 INFO scheduler.JobScheduler: Added jobs for time 1505469060000 ms 17/09/15 17:51:30 INFO scheduler.JobScheduler: Added jobs for time 1505469090000 ms 17/09/15 17:52:00 INFO scheduler.JobScheduler: Added jobs for time 1505469120000 ms 17/09/15 17:52:30 INFO scheduler.JobScheduler: Added jobs for time 1505469150000 ms 17/09/15 17:53:00 INFO scheduler.JobScheduler: Added jobs for time 1505469180000 ms 17/09/15 17:53:30 INFO scheduler.JobScheduler: Added jobs for time 1505469210000 ms 17/09/15 17:54:00 INFO scheduler.JobScheduler: Added jobs for time 1505469240000 ms 17/09/15 17:54:30 INFO scheduler.JobScheduler: Added jobs for time 1505469270000 ms 17/09/15 17:55:00 INFO scheduler.JobScheduler: Added jobs for time 1505469300000 ms 17/09/15 17:55:30 INFO scheduler.JobScheduler: Added jobs for time 1505469330000 ms 17/09/15 17:56:00 INFO scheduler.JobScheduler: Added jobs for time 1505469360000 ms 17/09/15 17:56:30 INFO scheduler.JobScheduler: Added jobs for time 1505469390000 ms 17/09/15 17:57:00 INFO scheduler.JobScheduler: Added jobs for time 1505469420000 ms 17/09/15 17:57:30 INFO scheduler.JobScheduler: Added jobs for time 1505469450000 ms 17/09/15 17:58:00 INFO scheduler.JobScheduler: Added jobs for time 1505469480000 ms 17/09/15 17:58:30 INFO scheduler.JobScheduler: Added jobs for time 1505469510000 ms 17/09/15 17:59:00 INFO scheduler.JobScheduler: Added jobs for time 1505469540000 ms 17/09/15 17:59:30 INFO scheduler.JobScheduler: Added jobs for time 1505469570000 ms 17/09/15 18:00:00 INFO scheduler.JobScheduler: Added jobs for time 1505469600000 ms 17/09/15 18:00:30 INFO scheduler.JobScheduler: Added jobs for time 1505469630000 ms 17/09/15 18:00:59 INFO storage.BlockManagerInfo: Added input-0-1505469659600 in memory on 172.28.41.196:33364 (size: 15.7 KB, free: 413.9 MB) 17/09/15 18:01:00 INFO scheduler.JobScheduler: Added jobs for time 1505469660000 ms 17/09/15 18:01:00 INFO storage.BlockManagerInfo: Added input-0-1505469659800 in memory on 172.28.41.196:33364 (size: 15.3 KB, free: 413.9 MB) 17/09/15 18:01:03 INFO storage.BlockManagerInfo: Added input-0-1505469662800 in memory on 172.28.41.196:33364 (size: 7.3 KB, free: 413.9 MB) 17/09/15 18:01:25 INFO storage.BlockManagerInfo: Added input-0-1505469684800 in memory on 172.28.41.196:33364 (size: 15.7 KB, free: 413.8 MB) 17/09/15 18:01:25 INFO storage.BlockManagerInfo: Added input-0-1505469685000 in memory on 172.28.41.196:33364 (size: 15.3 KB, free: 413.8 MB) 其中没有我想要的输出信息而是一直有类似 17/09/15 17:45:30 INFO scheduler.JobScheduler: Added jobs for time 1505468730000 ms 这样的信息,如果向监控的文件夹下copy文件得到这样的输出信息 17/09/15 18:00:59 INFO storage.BlockManagerInfo: Added input-0-1505469659600 in memory on 172.28.41.196:33364 (size: 15.7 KB, free: 413.9 MB) 想要的效果是输出类似这样的正常结果 ------------------------------------------- Time: 1505468700000 ms ------------------------------------------- Received .. flume events. 实在是找不出来什么原因,求大神解惑,不胜感激

区块链中怎么获取账户的所有交易hash??

使用web3.js中的getpastlogs得到的是空数组. 下面是官方示例代码. ``` web3.eth.getPastLogs({ address: "0x11f4d0A3c12e86B4b5F39B213F7E19D048276DAe", topics: ["0x033456732123ffff2342342dd12342434324234234fd234fd23fd4f23d4234"] }) .then(console.log); > [{ data: '0x7f9fade1c0d57a7af66ab4ead79fade1c0d57a7af66ab4ead7c2c2eb7b11a91385', topics: ['0xfd43ade1c09fade1c0d57a7af66ab4ead7c2c2eb7b11a91ffdd57a7af66ab4ead7', '0x7f9fade1c0d57a7af66ab4ead79fade1c0d57a7af66ab4ead7c2c2eb7b11a91385'] logIndex: 0, transactionIndex: 0, transactionHash: '0x7f9fade1c0d57a7af66ab4ead79fade1c0d57a7af66ab4ead7c2c2eb7b11a91385', blockHash: '0xfd43ade1c09fade1c0d57a7af66ab4ead7c2c2eb7b11a91ffdd57a7af66ab4ead7', blockNumber: 1234, address: '0xde0B295669a9FD93d5F28D9Ec85E40f4cb697BAe' },{...}] ``` 参数 topics是怎么获取的呢?

从cURL中提取的数组中获取值

<div class="post-text" itemprop="text"> <p>I have following url.</p> <pre><code>$url="https://graph.facebook.com/v2.8/page_id?fields=albums%7Bphotos.fields(source)%7D&amp;access_token=access_token"; </code></pre> <p>and getting data like this.</p> <pre><code>$ch=curl_init(); CURL_SETOPT($ch,CURLOPT_URL,$url); CURL_SETOPT($ch,CURLOPT_RETURNTRANSFER, 1); $json=json_decode(curl_exec($ch),true); </code></pre> <p>when I print the data it looks like below.</p> <pre><code>Array ( [albums] =&gt; Array ( [data] =&gt; Array ( [0] =&gt; Array ( [photos] =&gt; Array ( [data] =&gt; Array ( [0] =&gt; Array ( [source] =&gt; https://scontent.xx.fbcdn.net/v/t1.0-9/15622392_1822020618075402_5390943482972338844_n.png?oh=e51cddbae2c4f9ca6926487207349674&amp;oe=58F32530 [id] =&gt; 1822020618075402 ) [1] =&gt; Array ( [source] =&gt; https://scontent.xx.fbcdn.net/v/t1.0-9/14695531_1788596578084473_7400591108780706934_n.jpg?oh=08e6f8301fd574edab84724005b5dcbd&amp;oe=58DBBEB5 [id] =&gt; 1788596578084473 ) [2] =&gt; Array ( [source] =&gt; https://scontent.xx.fbcdn.net/v/t1.0-9/14729405_1787260094884788_470106074060850845_n.jpg?oh=a9cae794a571078709ddede6a0a25fb7&amp;oe=58ECA3E5 [id] =&gt; 1787260094884788 ) [3] =&gt; Array ( [source] =&gt; https://scontent.xx.fbcdn.net/v/t1.0-9/s720x720/14088463_1761208347489963_7246779259418379868_n.jpg?oh=3b86b61bd6eed58068d1ff55776fa5de&amp;oe=58F47DEA [id] =&gt; 1761208347489963 ) [4] =&gt; Array ( [source] =&gt; https://scontent.xx.fbcdn.net/v/t31.0-8/s720x720/14125030_1758545434422921_4678448833207945291_o.jpg?oh=0b7f1455568f2ea36c80824c4531d820&amp;oe=58FA25E0 [id] =&gt; 1758545434422921 ) [5] =&gt; Array ( [source] =&gt; https://scontent.xx.fbcdn.net/v/t1.0-9/14067692_1755506721393459_3688009157574505621_n.jpg?oh=3fdf992a10562e7a62222424bbd7d284&amp;oe=58DA3F4A [id] =&gt; 1755506721393459 ) [6] =&gt; Array ( [source] =&gt; https://scontent.xx.fbcdn.net/v/t1.0-9/13882196_1747456648865133_5440996625655127273_n.jpg?oh=b0f40cfee6858cd45f62e55630f2ac74&amp;oe=58EF172F [id] =&gt; 1747456648865133 ) [7] =&gt; Array ( [source] =&gt; https://scontent.xx.fbcdn.net/v/t1.0-9/13782279_1745152582428873_8951006239758371779_n.jpg?oh=d329a7d4dd75975302708a147cf3f0e9&amp;oe=58F14A03 [id] =&gt; 1745152582428873 ) [8] =&gt; Array ( [source] =&gt; https://scontent.xx.fbcdn.net/v/t1.0-9/13659216_1740388646238600_1705878934725863431_n.jpg?oh=1ed9492d4ae713587a96edf4f38893b1&amp;oe=58DB8EE7 [id] =&gt; 1740388646238600 ) [9] =&gt; Array ( [source] =&gt; https://scontent.xx.fbcdn.net/v/t1.0-9/10885434_1516104578667009_8707702519302744521_n.jpg?oh=515cce8abab01bcdca68f14388664ae5&amp;oe=58E0AEEB [id] =&gt; 1516104578667009 ) [10] =&gt; Array ( [source] =&gt; https://scontent.xx.fbcdn.net/v/t1.0-9/1937451_1505417943069006_8760716891932748781_n.jpg?oh=7a2a2daef9b1be7d3c98b35748893ea6&amp;oe=58DCA006 [id] =&gt; 1505417943069006 ) [11] =&gt; Array ( [source] =&gt; https://scontent.xx.fbcdn.net/v/t1.0-0/p180x540/10696291_1494026260874841_6924391974289072931_n.jpg?oh=df5d849e389d80c69c82118066445aa1&amp;oe=58E08143 [id] =&gt; 1494026260874841 ) [12] =&gt; Array ( [source] =&gt; https://scontent.xx.fbcdn.net/v/t1.0-9/10171825_1493583504252450_5141485588957894327_n.jpg?oh=17b0b20487ebb34be29621c355dba628&amp;oe=58F0739D [id] =&gt; 1493583504252450 ) [13] =&gt; Array ( [source] =&gt; https://scontent.xx.fbcdn.net/v/t1.0-9/1513735_1492709627673171_1477328081447762519_n.jpg?oh=3012a617a0d48c4c736fc1e1ee428b26&amp;oe=58EEAE38 [id] =&gt; 1492709627673171 ) [14] =&gt; Array ( [source] =&gt; https://scontent.xx.fbcdn.net/v/t1.0-9/s720x720/1515003_1490905571186910_3127181473382908591_n.png?oh=83bcf6d52c83ecc05d40b478afe71cd9&amp;oe=58F6D6B2 [id] =&gt; 1490905571186910 ) [15] =&gt; Array ( [source] =&gt; https://scontent.xx.fbcdn.net/v/t1.0-9/970678_1488554404755360_7889648772961232584_n.jpg?oh=3447943aeb630d6cfee3961e9bf8a444&amp;oe=58E08CFE [id] =&gt; 1488554404755360 ) [16] =&gt; Array ( [source] =&gt; https://scontent.xx.fbcdn.net/v/t1.0-9/10676246_1487619861515481_8080018536585231766_n.jpg?oh=c8e143320188e22170c1f28fa52fcfae&amp;oe=58E6C546 [id] =&gt; 1487619861515481 ) [17] =&gt; Array ( [source] =&gt; https://scontent.xx.fbcdn.net/v/t1.0-9/q82/s720x720/10689897_1486654284945372_4989681801007970605_n.jpg?oh=d67a02472ce4aff6c32d443377a21e9a&amp;oe=58E73B16 [id] =&gt; 1486654284945372 ) [18] =&gt; Array ( [source] =&gt; https://scontent.xx.fbcdn.net/v/t31.0-0/p180x540/10750146_1485256888418445_36234076640555733_o.jpg?oh=5e486c35cee8f4ecba8743948e6e4cb3&amp;oe=58F9C0CE [id] =&gt; 1485256888418445 ) [19] =&gt; Array ( [source] =&gt; https://scontent.xx.fbcdn.net/v/t1.0-9/560161_1484719421805525_2089957304428778741_n.jpg?oh=099d53b6aacfaa10b7a119c48179c1c3&amp;oe=58E21E6C [id] =&gt; 1484719421805525 ) [20] =&gt; Array ( [source] =&gt; https://scontent.xx.fbcdn.net/v/t1.0-9/s720x720/1377050_1484034435207357_151327894676844014_n.jpg?oh=83eb8c6b25412b067b4a000fa5f97a99&amp;oe=58F7DB51 [id] =&gt; 1484034435207357 ) ) [paging] =&gt; Array ( [cursors] =&gt; Array ( [before] =&gt; MTgyMjAyMDYxODA3NTQwMgZDZD [after] =&gt; MTQ4NDAzNDQzNTIwNzM1NwZDZD ) ) ) [id] =&gt; 1484035021873965 ) [1] =&gt; Array ( [photos] =&gt; Array ( [data] =&gt; Array ( [0] =&gt; Array ( [source] =&gt; https://scontent.xx.fbcdn.net/v/t1.0-9/13782058_1742422396035225_5477589171813279082_n.png?oh=364dda35704379d15336ab1f9144659d&amp;oe=58EA49E7 [id] =&gt; 1742422396035225 ) [1] =&gt; Array ( [source] =&gt; https://scontent.xx.fbcdn.net/v/t1.0-9/10350506_1484031238541010_5203658133196952315_n.jpg?oh=26dbeba4df1f650e4acbea3a1aad5164&amp;oe=58EC962B [id] =&gt; 1484031238541010 ) ) [paging] =&gt; Array ( [cursors] =&gt; Array ( [before] =&gt; MTc0MjQyMjM5NjAzNTIyNQZDZD [after] =&gt; MTQ4NDAzMTIzODU0MTAxMAZDZD ) ) ) [id] =&gt; 1484031228541011 ) [2] =&gt; Array ( [photos] =&gt; Array ( [data] =&gt; Array ( [0] =&gt; Array ( [source] =&gt; https://scontent.xx.fbcdn.net/v/t1.0-9/13669028_1742420099368788_169584588534858741_n.jpg?oh=2ceec7f3f1890dfff93dfd097d9da11b&amp;oe=58E9A3B8 [id] =&gt; 1742420099368788 ) [1] =&gt; Array ( [source] =&gt; https://scontent.xx.fbcdn.net/v/t1.0-9/s720x720/10687154_1481995178744616_1243763385874632903_n.jpg?oh=0ed79383008455b3326d174dd5935b4b&amp;oe=58FBB705 [id] =&gt; 1481995178744616 ) ) [paging] =&gt; Array ( [cursors] =&gt; Array ( [before] =&gt; MTc0MjQyMDA5OTM2ODc4OAZDZD [after] =&gt; MTQ4MTk5NTE3ODc0NDYxNgZDZD ) ) ) [id] =&gt; 1481995338744600 ) ) [paging] =&gt; Array ( [cursors] =&gt; Array ( [before] =&gt; MTQ4NDAzNTAyMTg3Mzk2NQZDZD [after] =&gt; MTQ4MTk5NTMzODc0NDYwMAZDZD ) ) ) [id] =&gt; page_id ) </code></pre> <p>Now i want <em>source</em> from array and put this into an <em>image tag</em>. like below.</p> <pre><code>&lt;img src="url_from the array for each picture"/&gt; </code></pre> <p>I am trying like this, but not getting source.</p> <pre><code>foreach($json as $key){ echo $key['source']; } </code></pre> <p><strong>How can i get source in loop and display all images?</strong></p> </div>

Android使用Webrtc进行降噪增益,如何适配64位so

Android使用Webrtc进行降噪增益编译成32位so测试正常,但是编译64位so报错,arm64-v8a的so文件报错,是需要64位的源码编译吗还是需要改什么东西,附错误信息,急求大神解答。 *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** 2019-05-21 17:21:06.190 13887-13887/? A/DEBUG: Build fingerprint: 'Nokia/Panda_00CN/PDA:9/PPR1.180610.011/00CN_2_15B:user/release-keys' 2019-05-21 17:21:06.190 13887-13887/? A/DEBUG: Revision: '0' 2019-05-21 17:21:06.190 13887-13887/? A/DEBUG: ABI: 'arm64' 2019-05-21 17:21:06.190 13887-13887/? A/DEBUG: pid: 12202, tid: 13878, name: Thread-35 >>> com.xx.xx<<< 2019-05-21 17:21:06.190 13887-13887/? A/DEBUG: signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x5b5cb298 2019-05-21 17:21:06.190 13887-13887/? A/DEBUG: x0 000000005b5cb294 x1 0000000000000003 x2 00000000000000ff x3 0000000000000003 2019-05-21 17:21:06.191 13887-13887/? A/DEBUG: x4 0000000000001f40 x5 0000000000000003 x6 0000000000001f40 x7 0000000000000000 2019-05-21 17:21:06.191 13887-13887/? A/DEBUG: x8 0000000000000003 x9 0000000008000000 x10 0000000000430000 x11 0000007183dfc688 2019-05-21 17:21:06.191 13887-13887/? A/DEBUG: x12 0000007209bb8410 x13 dff7b546ac046781 x14 0000007206b68000 x15 0000007206b68000 2019-05-21 17:21:06.191 13887-13887/? A/DEBUG: x16 000000715ae2cc88 x17 000000715ae09e7c x18 0000000000000000 x19 000000005b5cb100 2019-05-21 17:21:06.191 13887-13887/? A/DEBUG: x20 0000000000000000 x21 00000000000000ff x22 0000000000001f40 x23 0000000000000003 2019-05-21 17:21:06.191 13887-13887/? A/DEBUG: x24 0000000000000018 x25 0000007159f2a588 x26 000000714082b4a0 x27 0000000000000001 2019-05-21 17:21:06.191 13887-13887/? A/DEBUG: x28 0000000000000000 x29 0000007159f28ee0 2019-05-21 17:21:06.191 13887-13887/? A/DEBUG: sp 0000007159f28eb0 lr 000000715ae08da0 pc 000000715ae09e84 2019-05-21 17:21:06.262 413-9844/? E/AudioALSAPlaybackHandlerBase: -getHardwareBufferInfo(), pcm_get_htimestamp fail, ret = -1, pcm_get_error = 2019-05-21 17:21:06.263 13887-13887/? A/DEBUG: backtrace: 2019-05-21 17:21:06.263 13887-13887/? A/DEBUG: #00 pc 0000000000006e84 /data/app/com.xx.xx-U5O1pzNUtbiwoTPGd6O-UA==/split_config.arm64_v8a.apk (offset 0x1c000) (WebRtcAgc_InitDigital+8) 2019-05-21 17:21:06.263 13887-13887/? A/DEBUG: #01 pc 0000000000005d9c /data/app/com.xx.xx-U5O1pzNUtbiwoTPGd6O-UA==/split_config.arm64_v8a.apk (offset 0x1c000) (WebRtcAgc_Init+48) 2019-05-21 17:21:06.263 13887-13887/? A/DEBUG: #02 pc 0000000000033534 /data/app/com.xx.xx-U5O1pzNUtbiwoTPGd6O-UA==/oat/arm64/base.odex (offset 0x33000) (com.xx.xx.util.AgcNsUtils.init+164) 2019-05-21 17:21:06.263 13887-13887/? A/DEBUG: #03 pc 000000000055cd88 /system/lib64/libart.so (art_quick_invoke_stub+584) 2019-05-21 17:21:06.263 13887-13887/? A/DEBUG: #04 pc 00000000000cf740 /system/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+200) 2019-05-21 17:21:06.263 13887-13887/? A/DEBUG: #05 pc 00000000002823b8 /system/lib64/libart.so (art::interpreter::ArtInterpreterToCompiledCodeBridge(art::Thread*, art::ArtMethod*, art::ShadowFrame*, unsigned short, art::JValue*)+344) 2019-05-21 17:21:06.263 13887-13887/? A/DEBUG: #06 pc 000000000027d480 /system/lib64/libart.so (bool art::interpreter::DoCall<true, false>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*)+752) 2019-05-21 17:21:06.263 13887-13887/? A/DEBUG: #07 pc 000000000052fa0c /system/lib64/libart.so (MterpInvokeVirtualQuickRange+420) 2019-05-21 17:21:06.263 13887-13887/? A/DEBUG: #08 pc 0000000000553194 /system/lib64/libart.so (ExecuteMterpImpl+30100) 2019-05-21 17:21:06.263 13887-13887/? A/DEBUG: #09 pc 00000000002146b8 /data/app/com..xx.xx-U5O1pzNUtbiwoTPGd6O-UA==/oat/arm64/base.vdex (com.xx.xx.AgcNsUtils.prepare+44) 2019-05-21 17:21:06.263 13887-13887/? A/DEBUG: #10 pc 0000000000255e70 /system/lib64/libart.so (_ZN3art11interpreterL7ExecuteEPNS_6ThreadERKNS_20CodeItemDataAccessorERNS_11ShadowFrameENS_6JValueEb.llvm.1181525464+496) 2019-05-21 17:21:06.263 13887-13887/? A/DEBUG: #11 pc 000000000025b9f0 /system/lib64/libart.so (art::interpreter::ArtInterpreterToInterpreterBridge(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame*, art::JValue*)+216) 2019-05-21 17:21:06.263 13887-13887/? A/DEBUG: #12 pc 000000000027c358 /system/lib64/libart.so (bool art::interpreter::DoCall<false, false>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*)+920) 2019-05-21 17:21:06.263 13887-13887/? A/DEBUG: #13 pc 000000000052f6f0 /system/lib64/libart.so (MterpInvokeVirtualQuick+584) 2019-05-21 17:21:06.263 13887-13887/? A/DEBUG: #14 pc 0000000000553114 /system/lib64/libart.so (ExecuteMterpImpl+29972) 2019-05-21 17:21:06.263 13887-13887/? A/DEBUG: #15 pc 00000000002bc446 /data/app/.xx.xx-U5O1pzNUtbiwoTPGd6O-UA==/oat/arm64/base.vdex (com.xx.xx.AudioRecorder.a+26) 2019-05-21 17:21:06.263 13887-13887/? A/DEBUG: #16 pc 0000000000255e70 /system/lib64/libart.so (_ZN3art11interpreterL7ExecuteEPNS_6ThreadERKNS_20CodeItemDataAccessorERNS_11ShadowFrameENS_6JValueEb.llvm.1181525464+496) 2019-05-21 17:21:06.263 13887-13887/? A/DEBUG: #17 pc 000000000025b9f0 /system/lib64/libart.so (art::interpreter::ArtInterpreterToInterpreterBridge(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame*, art::JValue*)+216) 2019-05-21 17:21:06.264 13887-13887/? A/DEBUG: #18 pc 000000000027c358 /system/lib64/libart.so (bool art::interpreter::DoCall<false, false>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*)+920) 2019-05-21 17:21:06.264 13887-13887/? A/DEBUG: #19 pc 000000000052d9e0 /system/lib64/libart.so (MterpInvokeDirect+296) 2019-05-21 17:21:06.264 13887-13887/? A/DEBUG: #20 pc 000000000054f494 /system/lib64/libart.so (ExecuteMterpImpl+14484) 2019-05-21 17:21:06.264 13887-13887/? A/DEBUG: #21 pc 00000000002bc388 /data/app/com.allinone.callerid-U5O1pzNUtbiwoTPGd6O-UA==/oat/arm64/base.vdex (com.allinone.callerid.util.recorder.AudioRecorder.a) 2019-05-21 17:21:06.264 13887-13887/? A/DEBUG: #22 pc 0000000000255e70 /system/lib64/libart.so (_ZN3art11interpreterL7ExecuteEPNS_6ThreadERKNS_20CodeItemDataAccessorERNS_11ShadowFrameENS_6JValueEb.llvm.1181525464+496) 2019-05-21 17:21:06.264 13887-13887/? A/DEBUG: #23 pc 000000000025b9f0 /system/lib64/libart.so (art::interpreter::ArtInterpreterToInterpreterBridge(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame*, art::JValue*)+216) 2019-05-21 17:21:06.264 13887-13887/? A/DEBUG: #24 pc 000000000027c358 /system/lib64/libart.so (bool art::interpreter::DoCall<false, false>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*)+920) 2019-05-21 17:21:06.264 13887-13887/? A/DEBUG: #25 pc 000000000052dba4 /system/lib64/libart.so (MterpInvokeStatic+204) 2019-05-21 17:21:06.264 13887-13887/? A/DEBUG: #26 pc 000000000054f514 /system/lib64/libart.so (ExecuteMterpImpl+14612) 2019-05-21 17:21:06.264 13887-13887/? A/DEBUG: #27 pc 00000000002bbfe8 /data/app/com.allinone.callerid-U5O1pzNUtbiwoTPGd6O-UA==/oat/arm64/base.vdex (com.allinone.callerid.util.recorder.e.run+12) 2019-05-21 17:21:06.264 13887-13887/? A/DEBUG: #28 pc 0000000000255e70 /system/lib64/libart.so (_ZN3art11interpreterL7ExecuteEPNS_6ThreadERKNS_20CodeItemDataAccessorERNS_11ShadowFrameENS_6JValueEb.llvm.1181525464+496) 2019-05-21 17:21:06.264 13887-13887/? A/DEBUG: #29 pc 000000000051cde0 /system/lib64/libart.so (artQuickToInterpreterBridge+1032) 2019-05-21 17:21:06.264 13887-13887/? A/DEBUG: #30 pc 0000000000565efc /system/lib64/libart.so (art_quick_to_interpreter_bridge+92) 2019-05-21 17:21:06.264 13887-13887/? A/DEBUG: #31 pc 000000000025cfa8 /system/framework/arm64/boot.oat (offset 0x114000) (java.lang.Thread.run+72) 2019-05-21 17:21:06.264 13887-13887/? A/DEBUG: #32 pc 000000000055cd88 /system/lib64/libart.so (art_quick_invoke_stub+584) 2019-05-21 17:21:06.264 13887-13887/? A/DEBUG: #33 pc 00000000000cf740 /system/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+200) 2019-05-21 17:21:06.264 13887-13887/? A/DEBUG: #34 pc 00000000004633d0 /system/lib64/libart.so (art::(anonymous namespace)::InvokeWithArgArray(art::ScopedObjectAccessAlreadyRunnable const&, art::ArtMethod*, art::(anonymous namespace)::ArgArray*, art::JValue*, char const*)+104) 2019-05-21 17:21:06.264 13887-13887/? A/DEBUG: #35 pc 0000000000464498 /system/lib64/libart.so (art::InvokeVirtualOrInterfaceWithJValues(art::ScopedObjectAccessAlreadyRunnable const&, _jobject*, _jmethodID*, jvalue*)+424) 2019-05-21 17:21:06.264 13887-13887/? A/DEBUG: #36 pc 000000000048f808 /system/lib64/libart.so (art::Thread::CreateCallback(void*)+1120) 2019-05-21 17:21:06.264 13887-13887/? A/DEBUG: #37 pc 0000000000083114 /system/lib64/libc.so (__pthread_start(void*)+36) 2019-05-21 17:21:06.264 13887-13887/? A/DEBUG: #38 pc 00000000000233bc /system/lib64/libc.so (__start_thread+68) 2019-05-21 17:21:06.455 413-9844/? E/AudioALSAPlaybackHandlerBase: -getHardwareBufferInfo(), pcm_get_htimestamp fail, ret = -1, pcm_get_error =

Golang将Jenkins与Dep结合使用

<div class="post-text" itemprop="text"> <p>I use the following code to install <code>dep</code> on <code>jenkins</code></p> <pre><code>withEnv(["GOPATH=${JENKINS_HOME}/jobs/${JOB_NAME}/builds/${BUILD_ID}"]) { checkout scm sh "go version" sh 'wget https://raw.githubusercontent.com/golang/dep/master/install.sh' sh 'sh ./install.sh' sh "dep ensure" </code></pre> <p>I see in the log that it <strong>copy the bin</strong> but when it comes to command <code>dep ensure</code> we got error that dep not found, how to overcome this ? </p> <pre><code>13:33:41 Fetching https://github.com/golang/dep/releases/latest.. 13:33:42 Release Tag = v0.5.0 13:33:42 Fetching https://github.com/golang/dep/releases/tag/v0.5.0.. 13:33:42 Fetching https://github.com/golang/dep/releases/download/v0.5.0/dep-linux-amd64.. 13:33:51 Setting executable permissions. 13:33:51 Moving executable to /var/jenkins_home/jobs/go-voter/test/builds/22/bin/dep [Pipeline] sh 13:33:53 + dep ensure 13:33:53 /home/jenkins/workspace/go-voter_test@tmp/durable-16613f28/script.sh: 1: /home/jenkins/workspace/go-voter_test@tmp/durable- </code></pre> <p><strong>16613f28/script.sh: dep: not found</strong></p> <p>As written in the log I see that the tool were installed in the bin <code>22/bin/dep</code>, is it related somehow to the <strong>path</strong> ? if so, how should I configure it in jenkins ? </p> </div>

IDA动态调试.text .data段等无法进去 ——Command "JumpSegment" failed

**先赋值权限** ``` C:\Users>adb shell 2|root@generic:/ # cd /data/local/tmp root@generic:/data/local/tmp # ls as user user1 root@generic:/data/local/tmp # chmod 777 user root@generic:/data/local/tmp # chmod 777 user1 root@generic:/data/local/tmp # chmod 777 as root@generic:/data/local/tmp # ./as IDA Android 32-bit remote debug server(ST) v1.22. Hex-Rays (c) 2004-2017 Listening on 0.0.0.0:23946... ========================================================= [1] Accepting connection from 127.0.0.1... ``` -------------------------------------- **转发端口:** ``` C:\Users>adb forward tcp:23946 tcp:23946 ``` -------------------------------------- ## **_打开IDA加载进程后不是直接进入.text而是进入.linker_** ``` linker:B6F26A40 _start linker:B6F26A40 MOV R0, SP linker:B6F26A44 MOV R1, #0 linker:B6F26A48 BLX unk_B6F28BC0 linker:B6F26A4C MOV PC, R0 linker:B6F26A4C ; ------------------------------------------------------ ``` -------------------------------------- ## 然后通过 Ctrl+s 查看所有的段,找到.text段双击会显示“_Command "JumpSegment" failed_”,后来发现其他很多的段双击都是这样 **环境:** IDA6.8/7.0(试了两个版本) ndk17-20(试了4个版本) Android模拟器 (试了很多个不同的版本。。) ---------------------------------------------- JNI里边就一个.c文件和Android.mk、Application.mk **关键代码**: Android.mk ``` LOCAL_PATH := $(call my-dir) include $(CLEAR_VARS) LOCAL_ARM_MODE := arm LOCAL_MODULE := user LOCAL_SRC_FILES := userinfo.c include $(BUILD_EXECUTABLE) ``` Application.mk ``` APP_ABI := x86 armeabi-v7a ``` 大概就是这样了。。。 有没有大神帮帮忙,困惑两天了。。谢谢!!! **下边附图** ![图片说明](https://img-ask.csdn.net/upload/201910/24/1571923580_55812.png) ++++++++++++++++++++++++++++++++ ![图片说明](https://img-ask.csdn.net/upload/201910/24/1571923601_431091.png) ++++++++++++++++++++++++++++++++ ![图片说明](https://img-ask.csdn.net/upload/201910/24/1571923611_182225.png) ++++++++++++++++++++++++++++++++ ![图片说明](https://img-ask.csdn.net/upload/201910/24/1571923739_186171.png)![图片说明](https://img-ask.csdn.net/upload/201910/24/1571923747_891882.png) 试了很多方法了。。 不同版本的ndk编译后的user有时候还会出现“error: only position independent executables (PIE) are supported.” 这个搜到的说是AndroidServer第17个字节02修改为03、安卓换成5.0以下版本就行了(但我发现字节本来就是03,而且也根本不行。。) 求。。大神指点一下。。谢谢! --------------------- 已解决。。 最后还是ndk版本问题 换为ndk-10就行了!!!

从php中获取url的值

<div class="post-text" itemprop="text"> <p>i have passed a value through my url by using javascript, and i tried to access that variable in another page by using php <code>$_POST</code> but it is not working</p> <pre><code>&lt;a data-room-type-id="&lt;?php echo $rooms-&gt;id; ?&gt;" class="btn-book-now" href=""&gt;&lt;?php echo $rooms-&gt;name; ?&gt;&lt;/a&gt; </code></pre> <p>I want to transfer the value data-room-type-id, below showing the javascript used for transfer value</p> <p></p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"> <div class="snippet-code"> <pre class="snippet-code-js lang-js prettyprint-override"><code>tjq('.room-list').on('click', '.btn-book-now', function(e) { e.preventDefault(); if (acc_data.booking_url) { alert(acc_data.booking_url); //var room_type_id = tjq(this).data('room-type-id'); var roomid = tjq(this).data('room-type-id'); alert("roomid = "+roomid); var room_type_id = '79'; alert(room_type_id); tjq('input[name="action"]').remove(); //booking_data = tjq("#check_availability_form").serialize(); booking_data = 'accommodation_id=45&amp;_wpnonce=32da73f035&amp;date_from=10%2F26%2F2016&amp;date_to=10%2F28%2F2016&amp;rooms=1&amp;adults=1&amp;kids=0&amp;child_ages%5B%5D=0'; alert(booking_data); var form = tjq('&lt;form method="get" action="' + acc_data.booking_url + '"&gt;&lt;/form&gt;'); form.append('&lt;input type="hidden" name="booking_data" value="' + booking_data + '&amp;room_type_id=' + room_type_id + '&amp;roomid=' + roomid + '"&gt;'); /*if ( acc_data.lang ) { form.append('&lt;input type="hidden" name="lang" value="' + acc_data.lang + '"&gt;'); }*/ tjq("body").append(form); form.submit(); } else { alert(acc_data.msg_no_booking_page); } return false; });</code></pre> </div> </div> <p>and javascript used in the code is above.</p> <p>but in another page i can't retrieve the value roomid</p> <p>the url is look this</p> <p><a href="http://www.medhyaftravel.com/accommodation-booking/?booking_data=accommodation_id%3D45%26_wpnonce%3D32da73f035%26date_from%3D10%252F26%252F2016%26date_to%3D10%252F28%252F2016%26rooms%3D1%26adults%3D1%26kids%3D0%26child_ages%255B%255D%3D0%26room_type_id%3D79%26roomid%3D59903" rel="nofollow">http://www.medhyaftravel.com/accommodation-booking/?booking_data=accommodation_id%3D45%26_wpnonce%3D32da73f035%26date_from%3D10%252F26%252F2016%26date_to%3D10%252F28%252F2016%26rooms%3D1%26adults%3D1%26kids%3D0%26child_ages%255B%255D%3D0%26room_type_id%3D79%26roomid%3D59903</a></p> </div>

程序员的兼职技能课

获取讲师答疑方式: 在付费视频第一节(触摸命令_ALL)片头有二维码及加群流程介绍 限时福利 原价99元,今日仅需39元!购课添加小助手(微信号:csdn590)按提示还可领取价值800元的编程大礼包! 讲师介绍: 苏奕嘉&nbsp;前阿里UC项目工程师 脚本开发平台官方认证满级(六级)开发者。 我将如何教会你通过【定制脚本】赚到你人生的第一桶金? 零基础程序定制脚本开发课程,是完全针对零脚本开发经验的小白而设计,课程内容共分为3大阶段: ①前期将带你掌握Q开发语言和界面交互开发能力; ②中期通过实战来制作有具体需求的定制脚本; ③后期将解锁脚本的更高阶玩法,打通任督二脉; ④应用定制脚本合法赚取额外收入的完整经验分享,带你通过程序定制脚本开发这项副业,赚取到你的第一桶金!

Windows版YOLOv4目标检测实战:训练自己的数据集

课程演示环境:Windows10; cuda 10.2; cudnn7.6.5; Python3.7; VisualStudio2019; OpenCV3.4 需要学习ubuntu系统上YOLOv4的同学请前往:《YOLOv4目标检测实战:训练自己的数据集》 课程链接:https://edu.csdn.net/course/detail/28745 YOLOv4来了!速度和精度双提升! 与 YOLOv3 相比,新版本的 AP (精度)和 FPS (每秒帧率)分别提高了 10% 和 12%。 YOLO系列是基于深度学习的端到端实时目标检测方法。本课程将手把手地教大家使用labelImg标注和使用YOLOv4训练自己的数据集。课程实战分为两个项目:单目标检测(足球目标检测)和多目标检测(足球和梅西同时检测)。 本课程的YOLOv4使用AlexyAB/darknet,在Windows系统上做项目演示。包括:安装软件环境、安装YOLOv4、标注自己的数据集、整理自己的数据集、修改配置文件、训练自己的数据集、测试训练出的网络模型、性能统计(mAP计算)和先验框聚类分析。还将介绍改善YOLOv4目标检测性能的技巧。 除本课程《Windows版YOLOv4目标检测实战:训练自己的数据集》外,本人将推出有关YOLOv4目标检测的系列课程。请持续关注该系列的其它视频课程,包括: 《Windows版YOLOv4目标检测实战:人脸口罩佩戴检测》 《Windows版YOLOv4目标检测实战:中国交通标志识别》 《Windows版YOLOv4目标检测:原理与源码解析》

lena全身原图(非256*256版本,而是全身原图)

lena全身原图(非256*256版本,而是全身原图) lena原图很有意思,我们通常所用的256*256图片是在lena原图上截取了头部部分的256*256正方形得到的. 原图是花花公子杂志上的一个

快速入门Android开发 视频 教程 android studio

这是一门快速入门Android开发课程,顾名思义是让大家能快速入门Android开发。 学完能让你学会如下知识点: Android的发展历程 搭建Java开发环境 搭建Android开发环境 Android Studio基础使用方法 Android Studio创建项目 项目运行到模拟器 项目运行到真实手机 Android中常用控件 排查开发中的错误 Android中请求网络 常用Android开发命令 快速入门Gradle构建系统 项目实战:看美图 常用Android Studio使用技巧 项目签名打包 如何上架市场

Java调用微信支付

Java 使用微信支付 一. 准备工作 1.

汽车租赁管理系统需求分析规格说明书

汽车租赁管理系统需求分析规格说明书,这只是一个模板,如果有不会的可以借鉴一下,还是蛮详细的。。。。

C/C++跨平台研发从基础到高阶实战系列套餐

一 专题从基础的C语言核心到c++ 和stl完成基础强化; 二 再到数据结构,设计模式完成专业计算机技能强化; 三 通过跨平台网络编程,linux编程,qt界面编程,mfc编程,windows编程,c++与lua联合编程来完成应用强化 四 最后通过基于ffmpeg的音视频播放器,直播推流,屏幕录像,

程序员的算法通关课:知己知彼(第一季)

【超实用课程内容】 程序员对于算法一直又爱又恨!特别是在求职面试时,算法类问题绝对是不可逃避的提问点!本门课程作为算法面试系列的第一季,会从“知己知彼”的角度,聊聊关于算法面试的那些事~ 【哪些人适合学习这门课程?】 求职中的开发者,对于面试算法阶段缺少经验 想了解实际工作中算法相关知识 在职程序员,算法基础薄弱,急需充电 【超人气讲师】 孙秀洋&nbsp;| 服务器端工程师 硕士毕业于哈工大计算机科学与技术专业,ACM亚洲区赛铜奖获得者,先后在腾讯和百度从事一线技术研发,对算法和后端技术有深刻见解。 【课程如何观看?】 PC端:https://edu.csdn.net/course/detail/27272 移动端:CSDN 学院APP(注意不是CSDN APP哦) 本课程为录播课,课程无限观看时长,但是大家可以抓紧时间学习后一起讨论哦~

机器学习初学者必会的案例精讲

通过六个实际的编码项目,带领同学入门人工智能。这些项目涉及机器学习(回归,分类,聚类),深度学习(神经网络),底层数学算法,Weka数据挖掘,利用Git开源项目实战等。

Python入门视频精讲

Python入门视频培训课程以通俗易懂的方式讲解Python核心技术,Python基础,Python入门。适合初学者的教程,让你少走弯路! 课程内容包括:1.Python简介和安装 、2.第一个Python程序、PyCharm的使用 、3.Python基础、4.函数、5.高级特性、6.面向对象、7.模块、8.异常处理和IO操作、9.访问数据库MySQL。教学全程采用笔记+代码案例的形式讲解,通俗易懂!!!

我以为我对Mysql事务很熟,直到我遇到了阿里面试官

太惨了,面试又被吊打

深度学习原理+项目实战+算法详解+主流框架(套餐)

深度学习系列课程从深度学习基础知识点开始讲解一步步进入神经网络的世界再到卷积和递归神经网络,详解各大经典网络架构。实战部分选择当下最火爆深度学习框架PyTorch与Tensorflow/Keras,全程实战演示框架核心使用与建模方法。项目实战部分选择计算机视觉与自然语言处理领域经典项目,从零开始详解算法原理,debug模式逐行代码解读。适合准备就业和转行的同学们加入学习! 建议按照下列课程顺序来进行学习 (1)掌握深度学习必备经典网络架构 (2)深度框架实战方法 (3)计算机视觉与自然语言处理项目实战。(按照课程排列顺序即可)

Java62数据提取代码

利用苹果手机微信下面的wx.data文件提取出62数据,通过62可以实现不同设备直接登陆,可以通过文件流的方式用脚本上传到服务器进行解析

Python代码实现飞机大战

文章目录经典飞机大战一.游戏设定二.我方飞机三.敌方飞机四.发射子弹五.发放补给包六.主模块 经典飞机大战 源代码以及素材资料(图片,音频)可从下面的github中下载: 飞机大战源代码以及素材资料github项目地址链接 ————————————————————————————————————————————————————————— 不知道大家有没有打过飞机,喜不喜欢打飞机。当我第一次接触这个东西的时候,我的内心是被震撼到的。第一次接触打飞机的时候作者本人是身心愉悦的,因为周边的朋友都在打飞机, 每

2018年全国大学生计算机技能应用大赛决赛 大题

2018年全国大学生计算机技能应用大赛决赛大题,程序填空和程序设计(侵删)

Lena图像处理测试专业用图,高清完整全身原图

Lena图像处理测试专业用图,高清完整全身原图,该图片很好的包含了平坦区域、阴影和纹理等细节,这些都有益于测试各种不同的图像处理算法。它是一幅很好的测试照片!其次,由于这是一个非常有魅力女人的照片。

MySQL数据库面试题(2020最新版)

文章目录数据库基础知识为什么要使用数据库什么是SQL?什么是MySQL?数据库三大范式是什么mysql有关权限的表都有哪几个MySQL的binlog有有几种录入格式?分别有什么区别?数据类型mysql有哪些数据类型引擎MySQL存储引擎MyISAM与InnoDB区别MyISAM索引与InnoDB索引的区别?InnoDB引擎的4大特性存储引擎选择索引什么是索引?索引有哪些优缺点?索引使用场景(重点)...

verilog实现地铁系统售票

使用 verilog 实现地铁售票

Python+OpenCV计算机视觉

Python+OpenCV计算机视觉系统全面的介绍。

Python可以这样学(第四季:数据分析与科学计算可视化)

董付国老师系列教材《Python程序设计(第2版)》(ISBN:9787302436515)、《Python可以这样学》(ISBN:9787302456469)配套视频,在教材基础上又增加了大量内容,通过实例讲解numpy、scipy、pandas、statistics、matplotlib等标准库和扩展库用法。

150讲轻松搞定Python网络爬虫

【为什么学爬虫?】 &nbsp; &nbsp; &nbsp; &nbsp;1、爬虫入手容易,但是深入较难,如何写出高效率的爬虫,如何写出灵活性高可扩展的爬虫都是一项技术活。另外在爬虫过程中,经常容易遇到被反爬虫,比如字体反爬、IP识别、验证码等,如何层层攻克难点拿到想要的数据,这门课程,你都能学到! &nbsp; &nbsp; &nbsp; &nbsp;2、如果是作为一个其他行业的开发者,比如app开发,web开发,学习爬虫能让你加强对技术的认知,能够开发出更加安全的软件和网站 【课程设计】 一个完整的爬虫程序,无论大小,总体来说可以分成三个步骤,分别是: 网络请求:模拟浏览器的行为从网上抓取数据。 数据解析:将请求下来的数据进行过滤,提取我们想要的数据。 数据存储:将提取到的数据存储到硬盘或者内存中。比如用mysql数据库或者redis等。 那么本课程也是按照这几个步骤循序渐进的进行讲解,带领学生完整的掌握每个步骤的技术。另外,因为爬虫的多样性,在爬取的过程中可能会发生被反爬、效率低下等。因此我们又增加了两个章节用来提高爬虫程序的灵活性,分别是: 爬虫进阶:包括IP代理,多线程爬虫,图形验证码识别、JS加密解密、动态网页爬虫、字体反爬识别等。 Scrapy和分布式爬虫:Scrapy框架、Scrapy-redis组件、分布式爬虫等。 通过爬虫进阶的知识点我们能应付大量的反爬网站,而Scrapy框架作为一个专业的爬虫框架,使用他可以快速提高我们编写爬虫程序的效率和速度。另外如果一台机器不能满足你的需求,我们可以用分布式爬虫让多台机器帮助你快速爬取数据。 &nbsp; 从基础爬虫到商业化应用爬虫,本套课程满足您的所有需求! 【课程服务】 专属付费社群+每周三讨论会+1v1答疑

获取Linux下Ftp目录树并逐步绑定到treeview

在linux下抓取目录树,双击后获取该节点子节点(逐步生成)。另外有两个类,一个是windows下的(一次性获取目录树),一个是linux下的(足部获取目录树)

YOLOv3目标检测实战系列课程

《YOLOv3目标检测实战系列课程》旨在帮助大家掌握YOLOv3目标检测的训练、原理、源码与网络模型改进方法。 本课程的YOLOv3使用原作darknet(c语言编写),在Ubuntu系统上做项目演示。 本系列课程包括三门课: (1)《YOLOv3目标检测实战:训练自己的数据集》 包括:安装darknet、给自己的数据集打标签、整理自己的数据集、修改配置文件、训练自己的数据集、测试训练出的网络模型、性能统计(mAP计算和画出PR曲线)和先验框聚类。 (2)《YOLOv3目标检测:原理与源码解析》讲解YOLOv1、YOLOv2、YOLOv3的原理、程序流程并解析各层的源码。 (3)《YOLOv3目标检测:网络模型改进方法》讲解YOLOv3的改进方法,包括改进1:不显示指定类别目标的方法 (增加功能) ;改进2:合并BN层到卷积层 (加快推理速度) ; 改进3:使用GIoU指标和损失函数 (提高检测精度) ;改进4:tiny YOLOv3 (简化网络模型)并介绍 AlexeyAB/darknet项目。

手把手实现Java图书管理系统(附源码)

【超实用课程内容】 本课程演示的是一套基于Java的SSM框架实现的图书管理系统,主要针对计算机相关专业的正在做毕设的学生与需要项目实战练习的java人群。详细介绍了图书管理系统的实现,包括:环境搭建、系统业务、技术实现、项目运行、功能演示、系统扩展等,以通俗易懂的方式,手把手的带你从零开始运行本套图书管理系统,该项目附带全部源码可作为毕设使用。 【课程如何观看?】 PC端:https://edu.csdn.net/course/detail/27513 移动端:CSDN 学院APP(注意不是CSDN APP哦) 本课程为录播课,课程2年有效观看时长,大家可以抓紧时间学习后一起讨论哦~ 【学员专享增值服务】 源码开放 课件、课程案例代码完全开放给你,你可以根据所学知识,自行修改、优化

微信小程序开发实战之番茄时钟开发

微信小程序番茄时钟视频教程,本课程将带着各位学员开发一个小程序初级实战类项目,针对只看过官方文档而又无从下手的开发者来说,可以作为一个较好的练手项目,对于有小程序开发经验的开发者而言,可以更好加深对小程序各类组件和API 的理解,为更深层次高难度的项目做铺垫。

Java 最常见的 200+ 面试题:面试必备

这份面试清单是从我 2015 年做了 TeamLeader 之后开始收集的,一方面是给公司招聘用,另一方面是想用它来挖掘在 Java 技术栈中,还有那些知识点是我不知道的,我想找到这些技术盲点,然后修复它,以此来提高自己的技术水平。虽然我是从 2009 年就开始参加编程工作了,但我依旧觉得自己现在要学的东西很多,并且学习这些知识,让我很有成就感和满足感,那所以何乐而不为呢? 说回面试的事,这份面试...

Java基础知识面试题(2020最新版)

文章目录Java概述何为编程什么是Javajdk1.5之后的三大版本JVM、JRE和JDK的关系什么是跨平台性?原理是什么Java语言有哪些特点什么是字节码?采用字节码的最大好处是什么什么是Java程序的主类?应用程序和小程序的主类有何不同?Java应用程序与小程序之间有那些差别?Java和C++的区别Oracle JDK 和 OpenJDK 的对比基础语法数据类型Java有哪些数据类型switc...

三个项目玩转深度学习(附1G源码)

从事大数据与人工智能开发与实践约十年,钱老师亲自见证了大数据行业的发展与人工智能的从冷到热。事实证明,计算机技术的发展,算力突破,海量数据,机器人技术等,开启了第四次工业革命的序章。深度学习图像分类一直是人工智能的经典任务,是智慧零售、安防、无人驾驶等机器视觉应用领域的核心技术之一,掌握图像分类技术是机器视觉学习的重中之重。针对现有线上学习的特点与实际需求,我们开发了人工智能案例实战系列课程。打造:以项目案例实践为驱动的课程学习方式,覆盖了智能零售,智慧交通等常见领域,通过基础学习、项目案例实践、社群答疑,三维立体的方式,打造最好的学习效果。

微信小程序 实例汇总 完整项目源代码

微信小程序 实例汇总 完整项目源代码

基于西门子S7—1200的单部六层电梯设计程序,1部6层电梯

基于西门子S7—1200的单部六层电梯设计程序,1部6层电梯。 本系统控制六层电梯, 采用集选控制方式。 为了完成设定的控制任务, 主要根据电梯输入/输出点数确定PLC 的机型。 根据电梯控制的要求,

相关热词 c#对文件改写权限 c#中tostring c#支付宝回掉 c#转换成数字 c#判断除法是否有模 c# 横向chart c#控件选择多个 c#报表如何锁定表头 c#分级显示数据 c# 不区分大小写替换
立即提问
相关内容推荐