使用AFNetWorking 上传字符串,请求失败,Request failed: 请求太大

我要把图片换成nsdata,然后再用base64encoding,把encoding后生成的字符串上传到
服务器,就出这个问题,
报错信息:err:Error Domain=com.alamofire.error.serialization.response Code=-1011 "Request failed: 请求太大 (413)"
我同事用的ASIHTTPRequest库就没问题,请问如何解决?
代码:

 UIImage *img = [self createThumbnailWithSourceImge:sourceImg andNewSize:sz];

       data  = UIImageJPEGRepresentation(img, 0.01);
        NSString *encodedSTR  = [data base64Encoding];
                NSString *currentUrl = @"/app/b/test";
        NSString *urlStr = [NSString stringWithFormat:@"%@%@?picStr=%@",BASEURL,currentUrl,encodedSTR];
        NSURL *url = [NSURL URLWithString:urlStr];
        NSURLRequest *request = [NSURLRequest requestWithURL:url];
                 AFHTTPRequestOperation *op = [[AFHTTPRequestOperation alloc]initWithRequest:request];
    op.responseSerializer = [AFJSONResponseSerializer serializer];
    [op setCompletionBlockWithSuccess:^(AFHTTPRequestOperation *operation, id responseObject) {
//        NSLog(@"success:%@",responseObject);
        successBlock(responseObject);
    } failure:^(AFHTTPRequestOperation *operation, NSError *error) {
        failureBlock(error);
    }];
    [op start];


     //   [manager POST:urlStr parameters:nil
     //         success:^(AFHTTPRequestOperation *operation, id responseObject) {
        //          NSLog(@"success:%@",responseObject);
         //     } failure:^(AFHTTPRequestOperation *operation, NSError *error) {
         //         NSLog(@"err:%@",error);
         //     }];
ios

5个回答

使用AFNetworking 2.0 请求数据时出现错误 Request failed: unacceptable content-type: text/html 解决方法

添加一行

manager.responseSerializer.acceptableContentTypes = [NSSet setWithObject:@"text/html"];
即可

整个代码为:

复制代码
AFHTTPRequestOperationManager *manager = [AFHTTPRequestOperationManager manager];
manager.responseSerializer.acceptableContentTypes = [NSSet setWithObject:@"text/html"];
NSDictionary *parameters = @{@"foo":@"bar"};
[manager POST:@"http://example.com/resources.json" parameters:parameters success:^(AFHTTPRequestOperation *operation, id responseObject) {
NSLog(@"JSON: %@",responseObject);
} failure:^(AFHTTPRequestOperation *operation, NSError *error) {
NSLog(@"Error:%@",error);
}];
复制代码

peterchen149
peterchen149 不是报“unacceptable content-type: text/html“,是”Request failed: request too large (413)“请求太大
4 年多之前 回复
  • 这是NSURLSessionTask的一个bug. 用流处理下reuest请求就可以了。以下代码是解决Status Code: 411 (需要内容长度头 (Length required)的方法,可以参考下。

    // Prepare a temporary file to store the multipart request prior to sending it to the server due to an alleged
    // bug in NSURLSessionTask.
    NSString* tmpFilename = [NSString stringWithFormat:@"%f", [NSDate timeIntervalSinceReferenceDate]];
    NSURL* tmpFileUrl = [NSURL fileURLWithPath:[NSTemporaryDirectory() stringByAppendingPathComponent:tmpFilename]];
    
    AFHTTPRequestSerializer *requestSerializer = [AFHTTPRequestSerializer serializer];
    
    // Create a multipart form request.
    NSMutableURLRequest *request = [requestSerializer multipartFormRequestWithMethod:@"POST" URLString:uploadUrl parameters:parameter constructingBodyWithBlock:^(id<AFMultipartFormData> formData) {
    
        [formData appendPartWithFileURL:[NSURL fileURLWithPath:path] name:name fileName:fileName mimeType:contentType error:nil];
    
    } error:nil];
    
    // Dump multipart request into the temporary file.
    [requestSerializer requestWithMultipartFormRequest:request writingStreamContentsToFile:tmpFileUrl completionHandler:^(NSError *error) {
    
        // Once the multipart form is serialized into a temporary file, we can initialize
        // the actual HTTP request using session manager.
    
        // Create default session manager.
        AFURLSessionManager *manager = [[AFURLSessionManager alloc] initWithSessionConfiguration:[NSURLSessionConfiguration defaultSessionConfiguration]];
        manager.responseSerializer = [AFHTTPResponseSerializer serializer]; //很重要,去掉会出现Content-Type错误
    
        // Show progress.
        NSProgress *progress = nil;
    
        // Here note that we are submitting the initial multipart request. We are, however,
        // forcing the body stream to be read from the temporary file.
        NSURLSessionUploadTask *uploadTask = [manager uploadTaskWithRequest:request fromFile:tmpFileUrl progress:&progress completionHandler:^(NSURLResponse *response, id responseObject, NSError *error) {
    
            // Cleanup: remove temporary file.
            [[NSFileManager defaultManager] removeItemAtURL:tmpFileUrl error:nil];
    
            // Do something with the result.
            if (error) {
    
                NSLog(@"upload Error: %@", error);
                result (nil,error);
    
            }else
            {
                NSDictionary *jsonValue = [NSJSONSerialization JSONObjectWithData:responseObject options:NSJSONReadingMutableLeaves error:NULL];
                NSLog(@"upload Success: %@", jsonValue);
    
                result (jsonValue,error);
            }
        }];
    

// // Add the observer monitoring the upload progress.
// [progress addObserver:self forKeyPath:@"fractionCompleted" options:NSKeyValueObservingOptionNew context:NULL];

    // Start the file upload.
    [uploadTask resume];

[参考链接](https://github.com/AFNetworking/AFNetworking/issues/1398 "")
ghf00123
ghf00123 细看了楼主的问题,感觉和我的不一样,所以上述解决办法可能不太适合楼主,但可以参考一下。
4 年多之前 回复

请问楼主最后是怎么解决的,我上传清晰点的图片就报Request failed: request too large (413)

Victor8910
Victor8910 你解决这个问题了嘛?
3 年多之前 回复

楼主怎么解决的啊

Victor8910
Victor8910 你解决这个问题了嘛?
3 年多之前 回复

楼主怎么解决的啊

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
安装完成Oracle之后,无法登录,不知道该如何配置,求助大佬
安装完成Oracle之后,无法登录,不知道该如何配置,求助大佬 附上安装图 ``` Oracle Database 11g Express Edition Configuration ------------------------------------------------- This will configure on-boot properties of Oracle Database 11g Express Edition. The following questions will determine whether the database should be starting upon system boot, the ports it will use, and the passwords that will be used for database accounts. Press <Enter> to accept the defaults. Ctrl-C will abort. Specify the HTTP port that will be used for Oracle Application Express [8080]:7070 /etc/init.d/oracle-xe: line 362: netstat: command not found Specify a port that will be used for the database listener [1521]: /etc/init.d/oracle-xe: line 405: netstat: command not found Specify a password to be used for database accounts. Note that the same password will be used for SYS and SYSTEM. Oracle recommends the use of different passwords for each database account. This can be done after initial configuration: Confirm the password: Do you want Oracle Database 11g Express Edition to be started on boot (y/n) [y]:y /bin/sed: can't read /u01/app/oracle/product/11.2.0/xe/network/admin/listener.ora: No such file or directory /bin/sed: can't read /u01/app/oracle/product/11.2.0/xe/network/admin/listener.ora: No such file or directory /bin/chown: invalid user: 'oracle:dba' sed: can't read /u01/app/oracle/product/11.2.0/xe/config/scripts/postDBCreation.sql: No such file or directory /bin/chown: invalid user: 'oracle:dba' /bin/sed: can't read /u01/app/oracle/product/11.2.0/xe/network/admin/tnsnames.ora: No such file or directory /bin/sed: can't read /u01/app/oracle/product/11.2.0/xe/network/admin/tnsnames.ora: No such file or directory /bin/chown: invalid user: 'oracle:dba' /bin/chown: invalid user: 'oracle:dba' Starting Oracle Net Listener...Done Configuring database...Done /bin/chmod: cannot access '/u01/app/oracle/oradata': No such file or directory /bin/chmod: cannot access '/u01/app/oracle/diag': No such file or directory /bin/chown: invalid user: 'oracle:dba' Starting Oracle Database 11g Express Edition instance...Done Installation completed successfully. root@jingsongchan:/home/jingsongchan# sudo service oracle-xe start Job for oracle-xe.service failed because the control process exited with error code. See "systemctl status oracle-xe.service" and "journalctl -xe" for details. root@jingsongchan:/home/jingsongchan# systemctl status oracle-xe.service ● oracle-xe.service - SYSV: This is a program that is responsible for taking car Loaded: loaded (/etc/init.d/oracle-xe; generated) Active: failed (Result: exit-code) since Thu 2019-09-05 18:43:04 CST; 22s ago Docs: man:systemd-sysv-generator(8) Process: 3861 ExecStart=/etc/init.d/oracle-xe start (code=exited, status=1/FAI 9月 05 18:43:04 jingsongchan su[3872]: FAILED su for oracle by root 9月 05 18:43:04 jingsongchan su[3872]: - ??? root:oracle 9月 05 18:43:04 jingsongchan oracle-xe[3861]: Starting Oracle Database 11g Expre 9月 05 18:43:04 jingsongchan su[3878]: No passwd entry for user 'oracle' 9月 05 18:43:04 jingsongchan su[3878]: FAILED su for oracle by root 9月 05 18:43:04 jingsongchan su[3878]: - ??? root:oracle 9月 05 18:43:04 jingsongchan oracle-xe[3861]: Failed to start Oracle Net Listene 9月 05 18:43:04 jingsongchan systemd[1]: oracle-xe.service: Control process exit 9月 05 18:43:04 jingsongchan systemd[1]: oracle-xe.service: Failed with result ' 9月 05 18:43:04 jingsongchan systemd[1]: Failed to start SYSV: This is a program lines 1-16/16 (END)...skipping... ● oracle-xe.service - SYSV: This is a program that is responsible for taking car Loaded: loaded (/etc/init.d/oracle-xe; generated) Active: failed (Result: exit-code) since Thu 2019-09-05 18:43:04 CST; 22s ago Docs: man:systemd-sysv-generator(8) Process: 3861 ExecStart=/etc/init.d/oracle-xe start (code=exited, status=1/FAI 9月 05 18:43:04 jingsongchan su[3872]: FAILED su for oracle by root 9月 05 18:43:04 jingsongchan su[3872]: - ??? root:oracle 9月 05 18:43:04 jingsongchan oracle-xe[3861]: Starting Oracle Database 11g Expre 9月 05 18:43:04 jingsongchan su[3878]: No passwd entry for user 'oracle' 9月 05 18:43:04 jingsongchan su[3878]: FAILED su for oracle by root 9月 05 18:43:04 jingsongchan su[3878]: - ??? root:oracle 9月 05 18:43:04 jingsongchan oracle-xe[3861]: Failed to start Oracle Net Listene 9月 05 18:43:04 jingsongchan systemd[1]: oracle-xe.service: Control process exit 9月 05 18:43:04 jingsongchan systemd[1]: oracle-xe.service: Failed with result ' 9月 05 18:43:04 jingsongchan systemd[1]: Failed to start SYSV: This is a program ~ ~ ~ ~ ~ ~ ~ ~ lines 1-16/16 (END)...skipping... ● oracle-xe.service - SYSV: This is a program that is responsible for taking car Loaded: loaded (/etc/init.d/oracle-xe; generated) Active: failed (Result: exit-code) since Thu 2019-09-05 18:43:04 CST; 22s ago Docs: man:systemd-sysv-generator(8) Process: 3861 ExecStart=/etc/init.d/oracle-xe start (code=exited, status=1/FAI 9月 05 18:43:04 jingsongchan su[3872]: FAILED su for oracle by root 9月 05 18:43:04 jingsongchan su[3872]: - ??? root:oracle 9月 05 18:43:04 jingsongchan oracle-xe[3861]: Starting Oracle Database 11g Expre 9月 05 18:43:04 jingsongchan su[3878]: No passwd entry for user 'oracle' 9月 05 18:43:04 jingsongchan su[3878]: FAILED su for oracle by root 9月 05 18:43:04 jingsongchan su[3878]: - ??? root:oracle 9月 05 18:43:04 jingsongchan oracle-xe[3861]: Failed to start Oracle Net Listene 9月 05 18:43:04 jingsongchan systemd[1]: oracle-xe.service: Control process exit 9月 05 18:43:04 jingsongchan systemd[1]: oracle-xe.service: Failed with result ' 9月 05 18:43:04 jingsongchan systemd[1]: Failed to start SYSV: This is a program ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ lines 1-16/16 (END)...skipping... ● oracle-xe.service - SYSV: This is a program that is responsible for taking car Loaded: loaded (/etc/init.d/oracle-xe; generated) Active: failed (Result: exit-code) since Thu 2019-09-05 18:43:04 CST; 22s ago Docs: man:systemd-sysv-generator(8) Process: 3861 ExecStart=/etc/init.d/oracle-xe start (code=exited, status=1/FAI 9月 05 18:43:04 jingsongchan su[3872]: FAILED su for oracle by root 9月 05 18:43:04 jingsongchan su[3872]: - ??? root:oracle 9月 05 18:43:04 jingsongchan oracle-xe[3861]: Starting Oracle Database 11g Expre 9月 05 18:43:04 jingsongchan su[3878]: No passwd entry for user 'oracle' 9月 05 18:43:04 jingsongchan su[3878]: FAILED su for oracle by root 9月 05 18:43:04 jingsongchan su[3878]: - ??? root:oracle 9月 05 18:43:04 jingsongchan oracle-xe[3861]: Failed to start Oracle Net Listene 9月 05 18:43:04 jingsongchan systemd[1]: oracle-xe.service: Control process exit 9月 05 18:43:04 jingsongchan systemd[1]: oracle-xe.service: Failed with result ' 9月 05 18:43:04 jingsongchan systemd[1]: Failed to start SYSV: This is a program ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ lines 1-16/16 (END)...skipping... ● oracle-xe.service - SYSV: This is a program that is responsible for taking care Loaded: loaded (/etc/init.d/oracle-xe; generated) Active: failed (Result: exit-code) since Thu 2019-09-05 18:43:04 CST; 22s ago Docs: man:systemd-sysv-generator(8) Process: 3861 ExecStart=/etc/init.d/oracle-xe start (code=exited, status=1/FAILU 9月 05 18:43:04 jingsongchan su[3872]: FAILED su for oracle by root 9月 05 18:43:04 jingsongchan su[3872]: - ??? root:oracle 9月 05 18:43:04 jingsongchan oracle-xe[3861]: Starting Oracle Database 11g Express 9月 05 18:43:04 jingsongchan su[3878]: No passwd entry for user 'oracle' 9月 05 18:43:04 jingsongchan su[3878]: FAILED su for oracle by root 9月 05 18:43:04 jingsongchan su[3878]: - ??? root:oracle 9月 05 18:43:04 jingsongchan oracle-xe[3861]: Failed to start Oracle Net Listener 9月 05 18:43:04 jingsongchan systemd[1]: oracle-xe.service: Control process exited 9月 05 18:43:04 jingsongchan systemd[1]: oracle-xe.service: Failed with result 'ex 9月 05 18:43:04 jingsongchan systemd[1]: Failed to start SYSV: This is a program t ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ lines 1-16/16 (END)...skipping... ● oracle-xe.service - SYSV: This is a program that is responsible for taking care of Loaded: loaded (/etc/init.d/oracle-xe; generated) Active: failed (Result: exit-code) since Thu 2019-09-05 18:43:04 CST; 22s ago Docs: man:systemd-sysv-generator(8) Process: 3861 ExecStart=/etc/init.d/oracle-xe start (code=exited, status=1/FAILURE) 9月 05 18:43:04 jingsongchan su[3872]: FAILED su for oracle by root 9月 05 18:43:04 jingsongchan su[3872]: - ??? root:oracle 9月 05 18:43:04 jingsongchan oracle-xe[3861]: Starting Oracle Database 11g Express Edi 9月 05 18:43:04 jingsongchan su[3878]: No passwd entry for user 'oracle' 9月 05 18:43:04 jingsongchan su[3878]: FAILED su for oracle by root 9月 05 18:43:04 jingsongchan su[3878]: - ??? root:oracle 9月 05 18:43:04 jingsongchan oracle-xe[3861]: Failed to start Oracle Net Listener usin 9月 05 18:43:04 jingsongchan systemd[1]: oracle-xe.service: Control process exited, co 9月 05 18:43:04 jingsongchan systemd[1]: oracle-xe.service: Failed with result 'exit-c 9月 05 18:43:04 jingsongchan systemd[1]: Failed to start SYSV: This is a program that ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ lines 1-16/16 (END)...skipping... ● oracle-xe.service - SYSV: This is a program that is responsible for taking care of Loaded: loaded (/etc/init.d/oracle-xe; generated) Active: failed (Result: exit-code) since Thu 2019-09-05 18:43:04 CST; 22s ago Docs: man:systemd-sysv-generator(8) Process: 3861 ExecStart=/etc/init.d/oracle-xe start (code=exited, status=1/FAILURE) 9月 05 18:43:04 jingsongchan su[3872]: FAILED su for oracle by root 9月 05 18:43:04 jingsongchan su[3872]: - ??? root:oracle 9月 05 18:43:04 jingsongchan oracle-xe[3861]: Starting Oracle Database 11g Express Edition 9月 05 18:43:04 jingsongchan su[3878]: No passwd entry for user 'oracle' 9月 05 18:43:04 jingsongchan su[3878]: FAILED su for oracle by root 9月 05 18:43:04 jingsongchan su[3878]: - ??? root:oracle 9月 05 18:43:04 jingsongchan oracle-xe[3861]: Failed to start Oracle Net Listener using /u 9月 05 18:43:04 jingsongchan systemd[1]: oracle-xe.service: Control process exited, code=e 9月 05 18:43:04 jingsongchan systemd[1]: oracle-xe.service: Failed with result 'exit-code' 9月 05 18:43:04 jingsongchan systemd[1]: Failed to start SYSV: This is a program that is r ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ lines 1-16/16 (END)...skipping... ● oracle-xe.service - SYSV: This is a program that is responsible for taking care of Loaded: loaded (/etc/init.d/oracle-xe; generated) Active: failed (Result: exit-code) since Thu 2019-09-05 18:43:04 CST; 22s ago Docs: man:systemd-sysv-generator(8) Process: 3861 ExecStart=/etc/init.d/oracle-xe start (code=exited, status=1/FAILURE) 9月 05 18:43:04 jingsongchan su[3872]: FAILED su for oracle by root 9月 05 18:43:04 jingsongchan su[3872]: - ??? root:oracle 9月 05 18:43:04 jingsongchan oracle-xe[3861]: Starting Oracle Database 11g Express Edition insta 9月 05 18:43:04 jingsongchan su[3878]: No passwd entry for user 'oracle' 9月 05 18:43:04 jingsongchan su[3878]: FAILED su for oracle by root 9月 05 18:43:04 jingsongchan su[3878]: - ??? root:oracle 9月 05 18:43:04 jingsongchan oracle-xe[3861]: Failed to start Oracle Net Listener using /u01/app 9月 05 18:43:04 jingsongchan systemd[1]: oracle-xe.service: Control process exited, code=exited 9月 05 18:43:04 jingsongchan systemd[1]: oracle-xe.service: Failed with result 'exit-code'. 9月 05 18:43:04 jingsongchan systemd[1]: Failed to start SYSV: This is a program that is respons ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ lines 1-16/16 (END)...skipping... ● oracle-xe.service - SYSV: This is a program that is responsible for taking care of Loaded: loaded (/etc/init.d/oracle-xe; generated) Active: failed (Result: exit-code) since Thu 2019-09-05 18:43:04 CST; 22s ago Docs: man:systemd-sysv-generator(8) Process: 3861 ExecStart=/etc/init.d/oracle-xe start (code=exited, status=1/FAILURE) 9月 05 18:43:04 jingsongchan su[3872]: FAILED su for oracle by root 9月 05 18:43:04 jingsongchan su[3872]: - ??? root:oracle 9月 05 18:43:04 jingsongchan oracle-xe[3861]: Starting Oracle Database 11g Express Edition instance. 9月 05 18:43:04 jingsongchan su[3878]: No passwd entry for user 'oracle' 9月 05 18:43:04 jingsongchan su[3878]: FAILED su for oracle by root 9月 05 18:43:04 jingsongchan su[3878]: - ??? root:oracle 9月 05 18:43:04 jingsongchan oracle-xe[3861]: Failed to start Oracle Net Listener using /u01/app/orac 9月 05 18:43:04 jingsongchan systemd[1]: oracle-xe.service: Control process exited, code=exited statu 9月 05 18:43:04 jingsongchan systemd[1]: oracle-xe.service: Failed with result 'exit-code'. 9月 05 18:43:04 jingsongchan systemd[1]: Failed to start SYSV: This is a program that is responsible ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ lines 1-16/16 (END)...skipping... ● oracle-xe.service - SYSV: This is a program that is responsible for taking care of Loaded: loaded (/etc/init.d/oracle-xe; generated) Active: failed (Result: exit-code) since Thu 2019-09-05 18:43:04 CST; 22s ago Docs: man:systemd-sysv-generator(8) Process: 3861 ExecStart=/etc/init.d/oracle-xe start (code=exited, status=1/FAILURE) 9月 05 18:43:04 jingsongchan su[3872]: FAILED su for oracle by root 9月 05 18:43:04 jingsongchan su[3872]: - ??? root:oracle 9月 05 18:43:04 jingsongchan oracle-xe[3861]: Starting Oracle Database 11g Express Edition instance. 9月 05 18:43:04 jingsongchan su[3878]: No passwd entry for user 'oracle' 9月 05 18:43:04 jingsongchan su[3878]: FAILED su for oracle by root 9月 05 18:43:04 jingsongchan su[3878]: - ??? root:oracle 9月 05 18:43:04 jingsongchan oracle-xe[3861]: Failed to start Oracle Net Listener using /u01/app/oracle/pro 9月 05 18:43:04 jingsongchan systemd[1]: oracle-xe.service: Control process exited, code=exited status=1 9月 05 18:43:04 jingsongchan systemd[1]: oracle-xe.service: Failed with result 'exit-code'. 9月 05 18:43:04 jingsongchan systemd[1]: Failed to start SYSV: This is a program that is responsible for ta ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ lines 1-16/16 (END)...skipping... ● oracle-xe.service - SYSV: This is a program that is responsible for taking care of Loaded: loaded (/etc/init.d/oracle-xe; generated) Active: failed (Result: exit-code) since Thu 2019-09-05 18:43:04 CST; 22s ago Docs: man:systemd-sysv-generator(8) Process: 3861 ExecStart=/etc/init.d/oracle-xe start (code=exited, status=1/FAILURE) 9月 05 18:43:04 jingsongchan su[3872]: FAILED su for oracle by root 9月 05 18:43:04 jingsongchan su[3872]: - ??? root:oracle 9月 05 18:43:04 jingsongchan oracle-xe[3861]: Starting Oracle Database 11g Express Edition instance. 9月 05 18:43:04 jingsongchan su[3878]: No passwd entry for user 'oracle' 9月 05 18:43:04 jingsongchan su[3878]: FAILED su for oracle by root 9月 05 18:43:04 jingsongchan su[3878]: - ??? root:oracle 9月 05 18:43:04 jingsongchan oracle-xe[3861]: Failed to start Oracle Net Listener using /u01/app/oracle/produc 9月 05 18:43:04 jingsongchan systemd[1]: oracle-xe.service: Control process exited, code=exited status=1 9月 05 18:43:04 jingsongchan systemd[1]: oracle-xe.service: Failed with result 'exit-code'. 9月 05 18:43:04 jingsongchan systemd[1]: Failed to start SYSV: This is a program that is responsible for takin ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ lines 1-16/16 (END) ● oracle-xe.service - SYSV: This is a program that is responsible for taking care of Loaded: loaded (/etc/init.d/oracle-xe; generated) Active: failed (Result: exit-code) since Thu 2019-09-05 18:43:04 CST; 22s ago Docs: man:systemd-sysv-generator(8) Process: 3861 ExecStart=/etc/init.d/oracle-xe start (code=exited, status=1/FAILURE) 9月 05 18:43:04 jingsongchan su[3872]: FAILED su for oracle by root 9月 05 18:43:04 jingsongchan su[3872]: - ??? root:oracle 9月 05 18:43:04 jingsongchan oracle-xe[3861]: Starting Oracle Database 11g Express Edition instance. 9月 05 18:43:04 jingsongchan su[3878]: No passwd entry for user 'oracle' 9月 05 18:43:04 jingsongchan su[3878]: FAILED su for oracle by root 9月 05 18:43:04 jingsongchan su[3878]: - ??? root:oracle 9月 05 18:43:04 jingsongchan oracle-xe[3861]: Failed to start Oracle Net Listener using /u01/app/oracle/product/ 9月 05 18:43:04 jingsongchan systemd[1]: oracle-xe.service: Control process exited, code=exited status=1 9月 05 18:43:04 jingsongchan systemd[1]: oracle-xe.service: Failed with result 'exit-code'. 9月 05 18:43:04 jingsongchan systemd[1]: Failed to start SYSV: This is a program that is responsible for taking ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ lines 1-16/16 (END) ● oracle-xe.service - SYSV: This is a program that is responsible for taking care of Loaded: loaded (/etc/init.d/oracle-xe; generated) Active: failed (Result: exit-code) since Thu 2019-09-05 18:43:04 CST; 22s ago Docs: man:systemd-sysv-generator(8) Process: 3861 ExecStart=/etc/init.d/oracle-xe start (code=exited, status=1/FAILURE) 9月 05 18:43:04 jingsongchan su[3872]: FAILED su for oracle by root 9月 05 18:43:04 jingsongchan su[3872]: - ??? root:oracle 9月 05 18:43:04 jingsongchan oracle-xe[3861]: Starting Oracle Database 11g Express Edition instance. 9月 05 18:43:04 jingsongchan su[3878]: No passwd entry for user 'oracle' 9月 05 18:43:04 jingsongchan su[3878]: FAILED su for oracle by root 9月 05 18:43:04 jingsongchan su[3878]: - ??? root:oracle 9月 05 18:43:04 jingsongchan oracle-xe[3861]: Failed to start Oracle Net Listener using /u01/app/oracle/product/1 9月 05 18:43:04 jingsongchan systemd[1]: oracle-xe.service: Control process exited, code=exited status=1 9月 05 18:43:04 jingsongchan systemd[1]: oracle-xe.service: Failed with result 'exit-code'. 9月 05 18:43:04 jingsongchan systemd[1]: Failed to start SYSV: This is a program that is responsible for taking c ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ lines 1-16/16 (END) ● oracle-xe.service - SYSV: This is a program that is responsible for taking care of Loaded: loaded (/etc/init.d/oracle-xe; generated) Active: failed (Result: exit-code) since Thu 2019-09-05 18:43:04 CST; 22s ago Docs: man:systemd-sysv-generator(8) Process: 3861 ExecStart=/etc/init.d/oracle-xe start (code=exited, status=1/FAILURE) 9月 05 18:43:04 jingsongchan su[3872]: FAILED su for oracle by root 9月 05 18:43:04 jingsongchan su[3872]: - ??? root:oracle 9月 05 18:43:04 jingsongchan oracle-xe[3861]: Starting Oracle Database 11g Express Edition instance. 9月 05 18:43:04 jingsongchan su[3878]: No passwd entry for user 'oracle' 9月 05 18:43:04 jingsongchan su[3878]: FAILED su for oracle by root 9月 05 18:43:04 jingsongchan su[3878]: - ??? root:oracle 9月 05 18:43:04 jingsongchan oracle-xe[3861]: Failed to start Oracle Net Listener using /u01/app/oracle/product/11 9月 05 18:43:04 jingsongchan systemd[1]: oracle-xe.service: Control process exited, code=exited status=1 9月 05 18:43:04 jingsongchan systemd[1]: oracle-xe.service: Failed with result 'exit-code'. 9月 05 18:43:04 jingsongchan systemd[1]: Failed to start SYSV: This is a program that is responsible for taking ca ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ lines 1-16/16 (END) ● oracle-xe.service - SYSV: This is a program that is responsible for taking care of Loaded: loaded (/etc/init.d/oracle-xe; generated) Active: failed (Result: exit-code) since Thu 2019-09-05 18:43:04 CST; 22s ago Docs: man:systemd-sysv-generator(8) Process: 3861 ExecStart=/etc/init.d/oracle-xe start (code=exited, status=1/FAILURE) 9月 05 18:43:04 jingsongchan su[3872]: FAILED su for oracle by root 9月 05 18:43:04 jingsongchan su[3872]: - ??? root:oracle 9月 05 18:43:04 jingsongchan oracle-xe[3861]: Starting Oracle Database 11g Express Edition instance. 9月 05 18:43:04 jingsongchan su[3878]: No passwd entry for user 'oracle' 9月 05 18:43:04 jingsongchan su[3878]: FAILED su for oracle by root 9月 05 18:43:04 jingsongchan su[3878]: - ??? root:oracle 9月 05 18:43:04 jingsongchan oracle-xe[3861]: Failed to start Oracle Net Listener using /u01/app/oracle/product/11. 9月 05 18:43:04 jingsongchan systemd[1]: oracle-xe.service: Control process exited, code=exited status=1 9月 05 18:43:04 jingsongchan systemd[1]: oracle-xe.service: Failed with result 'exit-code'. 9月 05 18:43:04 jingsongchan systemd[1]: Failed to start SYSV: This is a program that is responsible for taking car ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ lines 1-16/16 (END) ● oracle-xe.service - SYSV: This is a program that is responsible for taking care of Loaded: loaded (/etc/init.d/oracle-xe; generated) Active: failed (Result: exit-code) since Thu 2019-09-05 18:43:04 CST; 22s ago Docs: man:systemd-sysv-generator(8) Process: 3861 ExecStart=/etc/init.d/oracle-xe start (code=exited, status=1/FAILURE) 9月 05 18:43:04 jingsongchan su[3872]: FAILED su for oracle by root 9月 05 18:43:04 jingsongchan su[3872]: - ??? root:oracle 9月 05 18:43:04 jingsongchan oracle-xe[3861]: Starting Oracle Database 11g Express Edition instance. 9月 05 18:43:04 jingsongchan su[3878]: No passwd entry for user 'oracle' 9月 05 18:43:04 jingsongchan su[3878]: FAILED su for oracle by root 9月 05 18:43:04 jingsongchan su[3878]: - ??? root:oracle 9月 05 18:43:04 jingsongchan oracle-xe[3861]: Failed to start Oracle Net Listener using /u01/app/oracle/product/11.2 9月 05 18:43:04 jingsongchan systemd[1]: oracle-xe.service: Control process exited, code=exited status=1 9月 05 18:43:04 jingsongchan systemd[1]: oracle-xe.service: Failed with result 'exit-code'. 9月 05 18:43:04 jingsongchan systemd[1]: Failed to start SYSV: This is a program that is responsible for taking care ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ lines 1-16/16 (END) ● oracle-xe.service - SYSV: This is a program that is responsible for taking care of Loaded: loaded (/etc/init.d/oracle-xe; generated) Active: failed (Result: exit-code) since Thu 2019-09-05 18:43:04 CST; 22s ago Docs: man:systemd-sysv-generator(8) Process: 3861 ExecStart=/etc/init.d/oracle-xe start (code=exited, status=1/FAILURE) 9月 05 18:43:04 jingsongchan su[3872]: FAILED su for oracle by root 9月 05 18:43:04 jingsongchan su[3872]: - ??? root:oracle 9月 05 18:43:04 jingsongchan oracle-xe[3861]: Starting Oracle Database 11g Express Edition instance. 9月 05 18:43:04 jingsongchan su[3878]: No passwd entry for user 'oracle' 9月 05 18:43:04 jingsongchan su[3878]: FAILED su for oracle by root 9月 05 18:43:04 jingsongchan su[3878]: - ??? root:oracle 9月 05 18:43:04 jingsongchan oracle-xe[3861]: Failed to start Oracle Net Listener using /u01/app/oracle/product/11.2. 9月 05 18:43:04 jingsongchan systemd[1]: oracle-xe.service: Control process exited, code=exited status=1 9月 05 18:43:04 jingsongchan systemd[1]: oracle-xe.service: Failed with result 'exit-code'. 9月 05 18:43:04 jingsongchan systemd[1]: Failed to start SYSV: This is a program that is responsible for taking care ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ lines 1-16/16 (END) ● oracle-xe.service - SYSV: This is a program that is responsible for taking care of Loaded: loaded (/etc/init.d/oracle-xe; generated) Active: failed (Result: exit-code) since Thu 2019-09-05 18:43:04 CST; 22s ago Docs: man:systemd-sysv-generator(8) Process: 3861 ExecStart=/etc/init.d/oracle-xe start (code=exited, status=1/FAILURE) 9月 05 18:43:04 jingsongchan su[3872]: FAILED su for oracle by root 9月 05 18:43:04 jingsongchan su[3872]: - ??? root:oracle 9月 05 18:43:04 jingsongchan oracle-xe[3861]: Starting Oracle Database 11g Express Edition instance. 9月 05 18:43:04 jingsongchan su[3878]: No passwd entry for user 'oracle' 9月 05 18:43:04 jingsongchan su[3878]: FAILED su for oracle by root 9月 05 18:43:04 jingsongchan su[3878]: - ??? root:oracle 9月 05 18:43:04 jingsongchan oracle-xe[3861]: Failed to start Oracle Net Listener using /u01/app/oracle/product/11.2.0 9月 05 18:43:04 jingsongchan systemd[1]: oracle-xe.service: Control process exited, code=exited status=1 9月 05 18:43:04 jingsongchan systemd[1]: oracle-xe.service: Failed with result 'exit-code'. 9月 05 18:43:04 jingsongchan systemd[1]: Failed to start SYSV: This is a program that is responsible for taking care o ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ lines 1-16/16 (END) ● oracle-xe.service - SYSV: This is a program that is responsible for taking care of Loaded: loaded (/etc/init.d/oracle-xe; generated) Active: failed (Result: exit-code) since Thu 2019-09-05 18:43:04 CST; 22s ago Docs: man:systemd-sysv-generator(8) Process: 3861 ExecStart=/etc/init.d/oracle-xe start (code=exited, status=1/FAILURE) 9月 05 18:43:04 jingsongchan su[3872]: FAILED su for oracle by root 9月 05 18:43:04 jingsongchan su[3872]: - ??? root:oracle 9月 05 18:43:04 jingsongchan oracle-xe[3861]: Starting Oracle Database 11g Express Edition instance. 9月 05 18:43:04 jingsongchan su[3878]: No passwd entry for user 'oracle' 9月 05 18:43:04 jingsongchan su[3878]: FAILED su for oracle by root 9月 05 18:43:04 jingsongchan su[3878]: - ??? root:oracle 9月 05 18:43:04 jingsongchan oracle-xe[3861]: Failed to start Oracle Net Listener using /u01/app/oracle/product/11.2.0 9月 05 18:43:04 jingsongchan systemd[1]: oracle-xe.service: Control process exited, code=exited status=1 9月 05 18:43:04 jingsongchan systemd[1]: oracle-xe.service: Failed with result 'exit-code'. 9月 05 18:43:04 jingsongchan systemd[1]: Failed to start SYSV: This is a program that is responsible for taking care o ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ lines 1-16/16 (END) ● oracle-xe.service - SYSV: This is a program that is responsible for taking care of Loaded: loaded (/etc/init.d/oracle-xe; generated) Active: failed (Result: exit-code) since Thu 2019-09-05 18:43:04 CST; 22s ago Docs: man:systemd-sysv-generator(8) Process: 3861 ExecStart=/etc/init.d/oracle-xe start (code=exited, status=1/FAILURE) 9月 05 18:43:04 jingsongchan su[3872]: FAILED su for oracle by root 9月 05 18:43:04 jingsongchan su[3872]: - ??? root:oracle 9月 05 18:43:04 jingsongchan oracle-xe[3861]: Starting Oracle Database 11g Express Edition instance. 9月 05 18:43:04 jingsongchan su[3878]: No passwd entry for user 'oracle' 9月 05 18:43:04 jingsongchan su[3878]: FAILED su for oracle by root 9月 05 18:43:04 jingsongchan su[3878]: - ??? root:oracle 9月 05 18:43:04 jingsongchan oracle-xe[3861]: Failed to start Oracle Net Listener using /u01/app/oracle/product/11.2.0/x 9月 05 18:43:04 jingsongchan systemd[1]: oracle-xe.service: Control process exited, code=exited status=1 9月 05 18:43:04 jingsongchan systemd[1]: oracle-xe.service: Failed with result 'exit-code'. 9月 05 18:43:04 jingsongchan systemd[1]: Failed to start SYSV: This is a program that is responsible for taking care of. ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ lines 1-16/16 (END) ● oracle-xe.service - SYSV: This is a program that is responsible for taking care of Loaded: loaded (/etc/init.d/oracle-xe; generated) Active: failed (Result: exit-code) since Thu 2019-09-05 18:43:04 CST; 22s ago Docs: man:systemd-sysv-generator(8) Process: 3861 ExecStart=/etc/init.d/oracle-xe start (code=exited, status=1/FAILURE) 9月 05 18:43:04 jingsongchan su[3872]: FAILED su for oracle by root 9月 05 18:43:04 jingsongchan su[3872]: - ??? root:oracle 9月 05 18:43:04 jingsongchan oracle-xe[3861]: Starting Oracle Database 11g Express Edition instance. 9月 05 18:43:04 jingsongchan su[3878]: No passwd entry for user 'oracle' 9月 05 18:43:04 jingsongchan su[3878]: FAILED su for oracle by root 9月 05 18:43:04 jingsongchan su[3878]: - ??? root:oracle 9月 05 18:43:04 jingsongchan oracle-xe[3861]: Failed to start Oracle Net Listener using /u01/app/oracle/product/11.2.0/xe 9月 05 18:43:04 jingsongchan systemd[1]: oracle-xe.service: Control process exited, code=exited status=1 9月 05 18:43:04 jingsongchan systemd[1]: oracle-xe.service: Failed with result 'exit-code'. 9月 05 18:43:04 jingsongchan systemd[1]: Failed to start SYSV: This is a program that is responsible for taking care of. ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ lines 1-16/16 (END) ● oracle-xe.service - SYSV: This is a program that is responsible for taking care of Loaded: loaded (/etc/init.d/oracle-xe; generated) Active: failed (Result: exit-code) since Thu 2019-09-05 18:43:04 CST; 22s ago Docs: man:systemd-sysv-generator(8) Process: 3861 ExecStart=/etc/init.d/oracle-xe start (code=exited, status=1/FAILURE) 9月 05 18:43:04 jingsongchan su[3872]: FAILED su for oracle by root 9月 05 18:43:04 jingsongchan su[3872]: - ??? root:oracle 9月 05 18:43:04 jingsongchan oracle-xe[3861]: Starting Oracle Database 11g Express Edition instance. 9月 05 18:43:04 jingsongchan su[3878]: No passwd entry for user 'oracle' 9月 05 18:43:04 jingsongchan su[3878]: FAILED su for oracle by root 9月 05 18:43:04 jingsongchan su[3878]: - ??? root:oracle 9月 05 18:43:04 jingsongchan oracle-xe[3861]: Failed to start Oracle Net Listener using /u01/app/oracle/product/11.2.0/xe/b 9月 05 18:43:04 jingsongchan systemd[1]: oracle-xe.service: Control process exited, code=exited status=1 9月 05 18:43:04 jingsongchan systemd[1]: oracle-xe.service: Failed with result 'exit-code'. 9月 05 18:43:04 jingsongchan systemd[1]: Failed to start SYSV: This is a program that is responsible for taking care of. ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ lines 1-16/16 (END) ● oracle-xe.service - SYSV: This is a program that is responsible for taking care of Loaded: loaded (/etc/init.d/oracle-xe; generated) Active: failed (Result: exit-code) since Thu 2019-09-05 18:43:04 CST; 22s ago Docs: man:systemd-sysv-generator(8) Process: 3861 ExecStart=/etc/init.d/oracle-xe start (code=exited, status=1/FAILURE) 9月 05 18:43:04 jingsongchan su[3872]: FAILED su for oracle by root 9月 05 18:43:04 jingsongchan su[3872]: - ??? root:oracle 9月 05 18:43:04 jingsongchan oracle-xe[3861]: Starting Oracle Database 11g Express Edition instance. 9月 05 18:43:04 jingsongchan su[3878]: No passwd entry for user 'oracle' 9月 05 18:43:04 jingsongchan su[3878]: FAILED su for oracle by root 9月 05 18:43:04 jingsongchan su[3878]: - ??? root:oracle 9月 05 18:43:04 jingsongchan oracle-xe[3861]: Failed to start Oracle Net Listener using /u01/app/oracle/product/11.2.0/xe/bin 9月 05 18:43:04 jingsongchan systemd[1]: oracle-xe.service: Control process exited, code=exited status=1 9月 05 18:43:04 jingsongchan systemd[1]: oracle-xe.service: Failed with result 'exit-code'. 9月 05 18:43:04 jingsongchan systemd[1]: Failed to start SYSV: This is a program that is responsible for taking care of. ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ lines 1-16/16 (END) ● oracle-xe.service - SYSV: This is a program that is responsible for taking care of Loaded: loaded (/etc/init.d/oracle-xe; generated) Active: failed (Result: exit-code) since Thu 2019-09-05 18:43:04 CST; 22s ago Docs: man:systemd-sysv-generator(8) Process: 3861 ExecStart=/etc/init.d/oracle-xe start (code=exited, status=1/FAILURE) 9月 05 18:43:04 jingsongchan su[3872]: FAILED su for oracle by root 9月 05 18:43:04 jingsongchan su[3872]: - ??? root:oracle 9月 05 18:43:04 jingsongchan oracle-xe[3861]: Starting Oracle Database 11g Express Edition instance. 9月 05 18:43:04 jingsongchan su[3878]: No passwd entry for user 'oracle' 9月 05 18:43:04 jingsongchan su[3878]: FAILED su for oracle by root 9月 05 18:43:04 jingsongchan su[3878]: - ??? root:oracle 9月 05 18:43:04 jingsongchan oracle-xe[3861]: Failed to start Oracle Net Listener using /u01/app/oracle/product/11.2.0/xe/bin/ 9月 05 18:43:04 jingsongchan systemd[1]: oracle-xe.service: Control process exited, code=exited status=1 9月 05 18:43:04 jingsongchan systemd[1]: oracle-xe.service: Failed with result 'exit-code'. 9月 05 18:43:04 jingsongchan systemd[1]: Failed to start SYSV: This is a program that is responsible for taking care of. ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ lines 1-16/16 (END) ● oracle-xe.service - SYSV: This is a program that is responsible for taking care of Loaded: loaded (/etc/init.d/oracle-xe; generated) Active: failed (Result: exit-code) since Thu 2019-09-05 18:43:04 CST; 22s ago Docs: man:systemd-sysv-generator(8) Process: 3861 ExecStart=/etc/init.d/oracle-xe start (code=exited, status=1/FAILURE) 9月 05 18:43:04 jingsongchan su[3872]: FAILED su for oracle by root 9月 05 18:43:04 jingsongchan su[3872]: - ??? root:oracle 9月 05 18:43:04 jingsongchan oracle-xe[3861]: Starting Oracle Database 11g Express Edition instance. 9月 05 18:43:04 jingsongchan su[3878]: No passwd entry for user 'oracle' 9月 05 18:43:04 jingsongchan su[3878]: FAILED su for oracle by root 9月 05 18:43:04 jingsongchan su[3878]: - ??? root:oracle 9月 05 18:43:04 jingsongchan oracle-xe[3861]: Failed to start Oracle Net Listener using /u01/app/oracle/product/11.2.0/xe/bin/t 9月 05 18:43:04 jingsongchan systemd[1]: oracle-xe.service: Control process exited, code=exited status=1 9月 05 18:43:04 jingsongchan systemd[1]: oracle-xe.service: Failed with result 'exit-code'. 9月 05 18:43:04 jingsongchan systemd[1]: Failed to start SYSV: This is a program that is responsible for taking care of. ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ lines 1-16/16 (END) ● oracle-xe.service - SYSV: This is a program that is responsible for taking care of Loaded: loaded (/etc/init.d/oracle-xe; generated) Active: failed (Result: exit-code) since Thu 2019-09-05 18:43:04 CST; 22s ago Docs: man:systemd-sysv-generator(8) Process: 3861 ExecStart=/etc/init.d/oracle-xe start (code=exited, status=1/FAILURE) 9月 05 18:43:04 jingsongchan su[3872]: FAILED su for oracle by root 9月 05 18:43:04 jingsongchan su[3872]: - ??? root:oracle 9月 05 18:43:04 jingsongchan oracle-xe[3861]: Starting Oracle Database 11g Express Edition instance. 9月 05 18:43:04 jingsongchan su[3878]: No passwd entry for user 'oracle' 9月 05 18:43:04 jingsongchan su[3878]: FAILED su for oracle by root 9月 05 18:43:04 jingsongchan su[3878]: - ??? root:oracle 9月 05 18:43:04 jingsongchan oracle-xe[3861]: Failed to start Oracle Net Listener using /u01/app/oracle/product/11.2.0/xe/bin/tn 9月 05 18:43:04 jingsongchan systemd[1]: oracle-xe.service: Control process exited, code=exited status=1 9月 05 18:43:04 jingsongchan systemd[1]: oracle-xe.service: Failed with result 'exit-code'. 9月 05 18:43:04 jingsongchan systemd[1]: Failed to start SYSV: This is a program that is responsible for taking care of. ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ lines 1-16/16 (END) ● oracle-xe.service - SYSV: This is a program that is responsible for taking care of Loaded: loaded (/etc/init.d/oracle-xe; generated) Active: failed (Result: exit-code) since Thu 2019-09-05 18:43:04 CST; 22s ago Docs: man:systemd-sysv-generator(8) Process: 3861 ExecStart=/etc/init.d/oracle-xe start (code=exited, status=1/FAILURE) 9月 05 18:43:04 jingsongchan su[3872]: FAILED su for oracle by root 9月 05 18:43:04 jingsongchan su[3872]: - ??? root:oracle 9月 05 18:43:04 jingsongchan oracle-xe[3861]: Starting Oracle Database 11g Express Edition instance. 9月 05 18:43:04 jingsongchan su[3878]: No passwd entry for user 'oracle' 9月 05 18:43:04 jingsongchan su[3878]: FAILED su for oracle by root 9月 05 18:43:04 jingsongchan su[3878]: - ??? root:oracle 9月 05 18:43:04 jingsongchan oracle-xe[3861]: Failed to start Oracle Net Listener using /u01/app/oracle/product/11.2.0/xe/bin/tns 9月 05 18:43:04 jingsongchan systemd[1]: oracle-xe.service: Control process exited, code=exited status=1 9月 05 18:43:04 jingsongchan systemd[1]: oracle-xe.service: Failed with result 'exit-code'. 9月 05 18:43:04 jingsongchan systemd[1]: Failed to start SYSV: This is a program that is responsible for taking care of. ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ lines 1-16/16 (END) ● oracle-xe.service - SYSV: This is a program that is responsible for taking care of Loaded: loaded (/etc/init.d/oracle-xe; generated) Active: failed (Result: exit-code) since Thu 2019-09-05 18:43:04 CST; 22s ago Docs: man:systemd-sysv-generator(8) Process: 3861 ExecStart=/etc/init.d/oracle-xe start (code=exited, status=1/FAILURE) 9月 05 18:43:04 jingsongchan su[3872]: FAILED su for oracle by root 9月 05 18:43:04 jingsongchan su[3872]: - ??? root:oracle 9月 05 18:43:04 jingsongchan oracle-xe[3861]: Starting Oracle Database 11g Express Edition instance. 9月 05 18:43:04 jingsongchan su[3878]: No passwd entry for user 'oracle' 9月 05 18:43:04 jingsongchan su[3878]: FAILED su for oracle by root 9月 05 18:43:04 jingsongchan su[3878]: - ??? root:oracle 9月 05 18:43:04 jingsongchan oracle-xe[3861]: Failed to start Oracle Net Listener using /u01/app/oracle/product/11.2.0/xe/bin/tnsl 9月 05 18:43:04 jingsongchan systemd[1]: oracle-xe.service: Control process exited, code=exited status=1 9月 05 18:43:04 jingsongchan systemd[1]: oracle-xe.service: Failed with result 'exit-code'. 9月 05 18:43:04 jingsongchan systemd[1]: Failed to start SYSV: This is a program that is responsible for taking care of. ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ lines 1-16/16 (END) ● oracle-xe.service - SYSV: This is a program that is responsible for taking care of Loaded: loaded (/etc/init.d/oracle-xe; generated) Active: failed (Result: exit-code) since Thu 2019-09-05 18:43:04 CST; 22s ago Docs: man:systemd-sysv-generator(8) Process: 3861 ExecStart=/etc/init.d/oracle-xe start (code=exited, status=1/FAILURE) 9月 05 18:43:04 jingsongchan su[3872]: FAILED su for oracle by root 9月 05 18:43:04 jingsongchan su[3872]: - ??? root:oracle 9月 05 18:43:04 jingsongchan oracle-xe[3861]: Starting Oracle Database 11g Express Edition instance. 9月 05 18:43:04 jingsongchan su[3878]: No passwd entry for user 'oracle' 9月 05 18:43:04 jingsongchan su[3878]: FAILED su for oracle by root 9月 05 18:43:04 jingsongchan su[3878]: - ??? root:oracle 9月 05 18:43:04 jingsongchan oracle-xe[3861]: Failed to start Oracle Net Listener using /u01/app/oracle/product/11.2.0/xe/bin/tnsls 9月 05 18:43:04 jingsongchan systemd[1]: oracle-xe.service: Control process exited, code=exited status=1 9月 05 18:43:04 jingsongchan systemd[1]: oracle-xe.service: Failed with result 'exit-code'. 9月 05 18:43:04 jingsongchan systemd[1]: Failed to start SYSV: This is a program that is responsible for taking care of. ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ lines 1-16/16 (END) ● oracle-xe.service - SYSV: This is a program that is responsible for taking care of Loaded: loaded (/etc/init.d/oracle-xe; generated) Active: failed (Result: exit-code) since Thu 2019-09-05 18:43:04 CST; 22s ago Docs: man:systemd-sysv-generator(8) Process: 3861 ExecStart=/etc/init.d/oracle-xe start (code=exited, status=1/FAILURE) 9月 05 18:43:04 jingsongchan su[3872]: FAILED su for oracle by root 9月 05 18:43:04 jingsongchan su[3872]: - ??? root:oracle 9月 05 18:43:04 jingsongchan oracle-xe[3861]: Starting Oracle Database 11g Express Edition instance. 9月 05 18:43:04 jingsongchan su[3878]: No passwd entry for user 'oracle' 9月 05 18:43:04 jingsongchan su[3878]: FAILED su for oracle by root 9月 05 18:43:04 jingsongchan su[3878]: - ??? root:oracle 9月 05 18:43:04 jingsongchan oracle-xe[3861]: Failed to start Oracle Net Listener using /u01/app/oracle/product/11.2.0/xe/bin/tnslsn 9月 05 18:43:04 jingsongchan systemd[1]: oracle-xe.service: Control process exited, code=exited status=1 9月 05 18:43:04 jingsongchan systemd[1]: oracle-xe.service: Failed with result 'exit-code'. 9月 05 18:43:04 jingsongchan systemd[1]: Failed to start SYSV: This is a program that is responsible for taking care of. ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ lines 1-16/16 (END) ● oracle-xe.service - SYSV: This is a program that is responsible for taking care of Loaded: loaded (/etc/init.d/oracle-xe; generated) Active: failed (Result: exit-code) since Thu 2019-09-05 18:43:04 CST; 22s ago Docs: man:systemd-sysv-generator(8) Process: 3861 ExecStart=/etc/init.d/oracle-xe start (code=exited, status=1/FAILURE) 9月 05 18:43:04 jingsongchan su[3872]: FAILED su for oracle by root 9月 05 18:43:04 jingsongchan su[3872]: - ??? root:oracle 9月 05 18:43:04 jingsongchan oracle-xe[3861]: Starting Oracle Database 11g Express Edition instance. 9月 05 18:43:04 jingsongchan su[3878]: No passwd entry for user 'oracle' 9月 05 18:43:04 jingsongchan su[3878]: FAILED su for oracle by root 9月 05 18:43:04 jingsongchan su[3878]: - ??? root:oracle 9月 05 18:43:04 jingsongchan oracle-xe[3861]: Failed to start Oracle Net Listener using /u01/app/oracle/product/11.2.0/xe/bin/tnslsnr 9月 05 18:43:04 jingsongchan systemd[1]: oracle-xe.service: Control process exited, code=exited status=1 9月 05 18:43:04 jingsongchan systemd[1]: oracle-xe.service: Failed with result 'exit-code'. 9月 05 18:43:04 jingsongchan systemd[1]: Failed to start SYSV: This is a program that is responsible for taking care of. ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ lines 1-16/16 (END) ● oracle-xe.service - SYSV: This is a program that is responsible for taking care of Loaded: loaded (/etc/init.d/oracle-xe; generated) Active: failed (Result: exit-code) since Thu 2019-09-05 18:43:04 CST; 22s ago Docs: man:systemd-sysv-generator(8) Process: 3861 ExecStart=/etc/init.d/oracle-xe start (code=exited, status=1/FAILURE) 9月 05 18:43:04 jingsongchan su[3872]: FAILED su for oracle by root 9月 05 18:43:04 jingsongchan su[3872]: - ??? root:oracle 9月 05 18:43:04 jingsongchan oracle-xe[3861]: Starting Oracle Database 11g Express Edition instance. 9月 05 18:43:04 jingsongchan su[3878]: No passwd entry for user 'oracle' 9月 05 18:43:04 jingsongchan su[3878]: FAILED su for oracle by root 9月 05 18:43:04 jingsongchan su[3878]: - ??? root:oracle 9月 05 18:43:04 jingsongchan oracle-xe[3861]: Failed to start Oracle Net Listener using /u01/app/oracle/product/11.2.0/xe/bin/tnslsnr 9月 05 18:43:04 jingsongchan systemd[1]: oracle-xe.service: Control process exited, code=exited status=1 9月 05 18:43:04 jingsongchan systemd[1]: oracle-xe.service: Failed with result 'exit-code'. 9月 05 18:43:04 jingsongchan systemd[1]: Failed to start SYSV: This is a program that is responsible for taking care of. ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ lines 1-16/16 (END) ● oracle-xe.service - SYSV: This is a program that is responsible for taking care of Loaded: loaded (/etc/init.d/oracle-xe; generated) Active: failed (Result: exit-code) since Thu 2019-09-05 18:43:04 CST; 22s ago Docs: man:systemd-sysv-generator(8) Process: 3861 ExecStart=/etc/init.d/oracle-xe start (code=exited, status=1/FAILURE) 9月 05 18:43:04 jingsongchan su[3872]: FAILED su for oracle by root 9月 05 18:43:04 jingsongchan su[3872]: - ??? root:oracle 9月 05 18:43:04 jingsongchan oracle-xe[3861]: Starting Oracle Database 11g Express Edition instance. 9月 05 18:43:04 jingsongchan su[3878]: No passwd entry for user 'oracle' 9月 05 18:43:04 jingsongchan su[3878]: FAILED su for oracle by root 9月 05 18:43:04 jingsongchan su[3878]: - ??? root:oracle 9月 05 18:43:04 jingsongchan oracle-xe[3861]: Failed to start Oracle Net Listener using /u01/app/oracle/product/11.2.0/xe/bin/tnslsnr a 9月 05 18:43:04 jingsongchan systemd[1]: oracle-xe.service: Control process exited, code=exited status=1 9月 05 18:43:04 jingsongchan systemd[1]: oracle-xe.service: Failed with result 'exit-code'. 9月 05 18:43:04 jingsongchan systemd[1]: Failed to start SYSV: This is a program that is responsible for taking care of. ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ lines 1-16/16 (END) ● oracle-xe.service - SYSV: This is a program that is responsible for taking care of Loaded: loaded (/etc/init.d/oracle-xe; generated) Active: failed (Result: exit-code) since Thu 2019-09-05 18:43:04 CST; 22s ago Docs: man:systemd-sysv-generator(8) Process: 3861 ExecStart=/etc/init.d/oracle-xe start (code=exited, status=1/FAILURE) 9月 05 18:43:04 jingsongchan su[3872]: FAILED su for oracle by root 9月 05 18:43:04 jingsongchan su[3872]: - ??? root:oracle 9月 05 18:43:04 jingsongchan oracle-xe[3861]: Starting Oracle Database 11g Express Edition instance. 9月 05 18:43:04 jingsongchan su[3878]: No passwd entry for user 'oracle' 9月 05 18:43:04 jingsongchan su[3878]: FAILED su for oracle by root 9月 05 18:43:04 jingsongchan su[3878]: - ??? root:oracle 9月 05 18:43:04 jingsongchan oracle-xe[3861]: Failed to start Oracle Net Listener using /u01/app/oracle/product/11.2.0/xe/bin/tnslsnr and 9月 05 18:43:04 jingsongchan systemd[1]: oracle-xe.service: Control process exited, code=exited status=1 9月 05 18:43:04 jingsongchan systemd[1]: oracle-xe.service: Failed with result 'exit-code'. 9月 05 18:43:04 jingsongchan systemd[1]: Failed to start SYSV: This is a program that is responsible for taking care of. ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ lines 1-16/16 (END) ● oracle-xe.service - SYSV: This is a program that is responsible for taking care of Loaded: loaded (/etc/init.d/oracle-xe; generated) Active: failed (Result: exit-code) since Thu 2019-09-05 18:43:04 CST; 22s ago Docs: man:systemd-sysv-generator(8) Process: 3861 ExecStart=/etc/init.d/oracle-xe start (code=exited, status=1/FAILURE) 9月 05 18:43:04 jingsongchan su[3872]: FAILED su for oracle by root 9月 05 18:43:04 jingsongchan su[3872]: - ??? root:oracle 9月 05 18:43:04 jingsongchan oracle-xe[3861]: Starting Oracle Database 11g Express Edition instance. 9月 05 18:43:04 jingsongchan su[3878]: No passwd entry for user 'oracle' 9月 05 18:43:04 jingsongchan su[3878]: FAILED su for oracle by root 9月 05 18:43:04 jingsongchan su[3878]: - ??? root:oracle 9月 05 18:43:04 jingsongchan oracle-xe[3861]: Failed to start Oracle Net Listener using /u01/app/oracle/product/11.2.0/xe/bin/tnslsnr and Or 9月 05 18:43:04 jingsongchan systemd[1]: oracle-xe.service: Control process exited, code=exited status=1 9月 05 18:43:04 jingsongchan systemd[1]: oracle-xe.service: Failed with result 'exit-code'. 9月 05 18:43:04 jingsongchan systemd[1]: Failed to start SYSV: This is a program that is responsible for taking care of. ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ lines 1-16/16 (END) ● oracle-xe.service - SYSV: This is a program that is responsible for taking care of Loaded: loaded (/etc/init.d/oracle-xe; generated) Active: failed (Result: exit-code) since Thu 2019-09-05 18:43:04 CST; 22s ago Docs: man:systemd-sysv-generator(8) Process: 3861 ExecStart=/etc/init.d/oracle-xe start (code=exited, status=1/FAILURE) 9月 05 18:43:04 jingsongchan su[3872]: FAILED su for oracle by root 9月 05 18:43:04 jingsongchan su[3872]: - ??? root:oracle 9月 05 18:43:04 jingsongchan oracle-xe[3861]: Starting Oracle Database 11g Express Edition instance. 9月 05 18:43:04 jingsongchan su[3878]: No passwd entry for user 'oracle' 9月 05 18:43:04 jingsongchan su[3878]: FAILED su for oracle by root 9月 05 18:43:04 jingsongchan su[3878]: - ??? root:oracle 9月 05 18:43:04 jingsongchan oracle-xe[3861]: Failed to start Oracle Net Listener using /u01/app/oracle/product/11.2.0/xe/bin/tnslsnr and Orac 9月 05 18:43:04 jingsongchan systemd[1]: oracle-xe.service: Control process exited, code=exited status=1 9月 05 18:43:04 jingsongchan systemd[1]: oracle-xe.service: Failed with result 'exit-code'. 9月 05 18:43:04 jingsongchan systemd[1]: Failed to start SYSV: This is a program that is responsible for taking care of. ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ lines 1-16/16 (END) ● oracle-xe.service - SYSV: This is a program that is responsible for taking care of Loaded: loaded (/etc/init.d/oracle-xe; generated) Active: failed (Result: exit-code) since Thu 2019-09-05 18:43:04 CST; 22s ago Docs: man:systemd-sysv-generator(8) Process: 3861 ExecStart=/etc/init.d/oracle-xe start (code=exited, status=1/FAILURE) 9月 05 18:43:04 jingsongchan su[3872]: FAILED su for oracle by root 9月 05 18:43:04 jingsongchan su[3872]: - ??? root:oracle 9月 05 18:43:04 jingsongchan oracle-xe[3861]: Starting Oracle Database 11g Express Edition instance. 9月 05 18:43:04 jingsongchan su[3878]: No passwd entry for user 'oracle' 9月 05 18:43:04 jingsongchan su[3878]: FAILED su for oracle by root 9月 05 18:43:04 jingsongchan su[3878]: - ??? root:oracle 9月 05 18:43:04 jingsongchan oracle-xe[3861]: Failed to start Oracle Net Listener using /u01/app/oracle/product/11.2.0/xe/bin/tnslsnr and Oracle 9月 05 18:43:04 jingsongchan systemd[1]: oracle-xe.service: Control process exited, code=exited status=1 9月 05 18:43:04 jingsongchan systemd[1]: oracle-xe.service: Failed with result 'exit-code'. 9月 05 18:43:04 jingsongchan systemd[1]: Failed to start SYSV: This is a program that is responsible for taking care of. ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ lines 1-16/16 (END) ● oracle-xe.service - SYSV: This is a program that is responsible for taking care of Loaded: loaded (/etc/init.d/oracle-xe; generated) Active: failed (Result: exit-code) since Thu 2019-09-05 18:43:04 CST; 22s ago Docs: man:systemd-sysv-generator(8) Process: 3861 ExecStart=/etc/init.d/oracle-xe start (code=exited, status=1/FAILURE) 9月 05 18:43:04 jingsongchan su[3872]: FAILED su for oracle by root 9月 05 18:43:04 jingsongchan su[3872]: - ??? root:oracle 9月 05 18:43:04 jingsongchan oracle-xe[3861]: Starting Oracle Database 11g Express Edition instance. 9月 05 18:43:04 jingsongchan su[3878]: No passwd entry for user 'oracle' 9月 05 18:43:04 jingsongchan su[3878]: FAILED su for oracle by root 9月 05 18:43:04 jingsongchan su[3878]: - ??? root:oracle 9月 05 18:43:04 jingsongchan oracle-xe[3861]: Failed to start Oracle Net Listener using /u01/app/oracle/product/11.2.0/xe/bin/tnslsnr and Oracle 9月 05 18:43:04 jingsongchan systemd[1]: oracle-xe.service: Control process exited, code=exited status=1 9月 05 18:43:04 jingsongchan systemd[1]: oracle-xe.service: Failed with result 'exit-code'. 9月 05 18:43:04 jingsongchan systemd[1]: Failed to start SYSV: This is a program that is responsible for taking care of. ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ lines 1-16/16 (END) ● oracle-xe.service - SYSV: This is a program that is responsible for taking care of Loaded: loaded (/etc/init.d/oracle-xe; generated) Active: failed (Result: exit-code) since Thu 2019-09-05 18:43:04 CST; 22s ago Docs: man:systemd-sysv-generator(8) Process: 3861 ExecStart=/etc/init.d/oracle-xe start (code=exited, status=1/FAILURE) 9月 05 18:43:04 jingsongchan su[3872]: FAILED su for oracle by root 9月 05 18:43:04 jingsongchan su[3872]: - ??? root:oracle 9月 05 18:43:04 jingsongchan oracle-xe[3861]: Starting Oracle Database 11g Express Edition instance. 9月 05 18:43:04 jingsongchan su[3878]: No passwd entry for user 'oracle' 9月 05 18:43:04 jingsongchan su[3878]: FAILED su for oracle by root 9月 05 18:43:04 jingsongchan su[3878]: - ??? root:oracle 9月 05 18:43:04 jingsongchan oracle-xe[3861]: Failed to start Oracle Net Listener using /u01/app/oracle/product/11.2.0/xe/bin/tnslsnr and Oracle E 9月 05 18:43:04 jingsongchan systemd[1]: oracle-xe.service: Control process exited, code=exited status=1 9月 05 18:43:04 jingsongchan systemd[1]: oracle-xe.service: Failed with result 'exit-code'. 9月 05 18:43:04 jingsongchan systemd[1]: Failed to start SYSV: This is a program that is responsible for taking care of. ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ lines 1-16/16 (END) ● oracle-xe.service - SYSV: This is a program that is responsible for taking care of Loaded: loaded (/etc/init.d/oracle-xe; generated) Active: failed (Result: exit-code) since Thu 2019-09-05 18:43:04 CST; 22s ago Docs: man:systemd-sysv-generator(8) Process: 3861 ExecStart=/etc/init.d/oracle-xe start (code=exited, status=1/FAILURE) 9月 05 18:43:04 jingsongchan su[3872]: FAILED su for oracle by root 9月 05 18:43:04 jingsongchan su[3872]: - ??? root:oracle 9月 05 18:43:04 jingsongchan oracle-xe[3861]: Starting Oracle Database 11g Express Edition instance. 9月 05 18:43:04 jingsongchan su[3878]: No passwd entry for user 'oracle' 9月 05 18:43:04 jingsongchan su[3878]: FAILED su for oracle by root 9月 05 18:43:04 jingsongchan su[3878]: - ??? root:oracle 9月 05 18:43:04 jingsongchan oracle-xe[3861]: Failed to start Oracle Net Listener using /u01/app/oracle/product/11.2.0/xe/bin/tnslsnr and Oracle Ex 9月 05 18:43:04 jingsongchan systemd[1]: oracle-xe.service: Control process exited, code=exited status=1 9月 05 18:43:04 jingsongchan systemd[1]: oracle-xe.service: Failed with result 'exit-code'. 9月 05 18:43:04 jingsongchan systemd[1]: Failed to start SYSV: This is a program that is responsible for taking care of. ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ lines 1-16/16 (END) ● oracle-xe.service - SYSV: This is a program that is responsible for taking care of Loaded: loaded (/etc/init.d/oracle-xe; generated) Active: failed (Result: exit-code) since Thu 2019-09-05 18:43:04 CST; 22s ago Docs: man:systemd-sysv-generator(8) Process: 3861 ExecStart=/etc/init.d/oracle-xe start (code=exited, status=1/FAILURE) 9月 05 18:43:04 jingsongchan su[3872]: FAILED su for oracle by root 9月 05 18:43:04 jingsongchan su[3872]: - ??? root:oracle 9月 05 18:43:04 jingsongchan oracle-xe[3861]: Starting Oracle Database 11g Express Edition instance. 9月 05 18:43:04 jingsongchan su[3878]: No passwd entry for user 'oracle' 9月 05 18:43:04 jingsongchan su[3878]: FAILED su for oracle by root 9月 05 18:43:04 jingsongchan su[3878]: - ??? root:oracle 9月 05 18:43:04 jingsongchan oracle-xe[3861]: Failed to start Oracle Net Listener using /u01/app/oracle/product/11.2.0/xe/bin/tnslsnr and Oracle Exp 9月 05 18:43:04 jingsongchan systemd[1]: oracle-xe.service: Control process exited, code=exited status=1 9月 05 18:43:04 jingsongchan systemd[1]: oracle-xe.service: Failed with result 'exit-code'. 9月 05 18:43:04 jingsongchan systemd[1]: Failed to start SYSV: This is a program that is responsible for taking care of. ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ lines 1-16/16 (END) ● oracle-xe.service - SYSV: This is a program that is responsible for taking care of Loaded: loaded (/etc/init.d/oracle-xe; generated) Active: failed (Result: exit-code) since Thu 2019-09-05 18:43:04 CST; 22s ago Docs: man:systemd-sysv-generator(8) Process: 3861 ExecStart=/etc/init.d/oracle-xe start (code=exited, status=1/FAILURE) 9月 05 18:43:04 jingsongchan su[3872]: FAILED su for oracle by root 9月 05 18:43:04 jingsongchan su[3872]: - ??? root:oracle 9月 05 18:43:04 jingsongchan oracle-xe[3861]: Starting Oracle Database 11g Express Edition instance. 9月 05 18:43:04 jingsongchan su[3878]: No passwd entry for user 'oracle' 9月 05 18:43:04 jingsongchan su[3878]: FAILED su for oracle by root 9月 05 18:43:04 jingsongchan su[3878]: - ??? root:oracle 9月 05 18:43:04 jingsongchan oracle-xe[3861]: Failed to start Oracle Net Listener using /u01/app/oracle/product/11.2.0/xe/bin/tnslsnr and Oracle Exp 9月 05 18:43:04 jingsongchan systemd[1]: oracle-xe.service: Control process exited, code=exited status=1 9月 05 18:43:04 jingsongchan systemd[1]: oracle-xe.service: Failed with result 'exit-code'. 9月 05 18:43:04 jingsongchan systemd[1]: Failed to start SYSV: This is a program that is responsible for taking care of. ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ lines 1-16/16 (END) ● oracle-xe.service - SYSV: This is a program that is responsible for taking care of Loaded: loaded (/etc/init.d/oracle-xe; generated) Active: failed (Result: exit-code) since Thu 2019-09-05 18:43:04 CST; 22s ago Docs: man:systemd-sysv-generator(8) Process: 3861 ExecStart=/etc/init.d/oracle-xe start (code=exited, status=1/FAILURE) 9月 05 18:43:04 jingsongchan su[3872]: FAILED su for oracle by root 9月 05 18:43:04 jingsongchan su[3872]: - ??? root:oracle 9月 05 18:43:04 jingsongchan oracle-xe[3861]: Starting Oracle Database 11g Express Edition instance. 9月 05 18:43:04 jingsongchan su[3878]: No passwd entry for user 'oracle' 9月 05 18:43:04 jingsongchan su[3878]: FAILED su for oracle by root 9月 05 18:43:04 jingsongchan su[3878]: - ??? root:oracle 9月 05 18:43:04 jingsongchan oracle-xe[3861]: Failed to start Oracle Net Listener using /u01/app/oracle/product/11.2.0/xe/bin/tnslsnr and Oracle Exp 9月 05 18:43:04 jingsongchan systemd[1]: oracle-xe.service: Control process exited, code=exited status=1 9月 05 18:43:04 jingsongchan systemd[1]: oracle-xe.service: Failed with result 'exit-code'. 9月 05 18:43:04 jingsongchan systemd[1]: Failed to start SYSV: This is a program that is responsible for taking care of. ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ```
matlab做数学建模,有这么段代码,这有错么?
结果实在是跑不对 selftimeform = [14.7:0.05:15.7]; x=[1.03650000000000,1.06990000000000,1.10380000000000,1.13830000000000,1.17320000000000,1.20870000000000,1.24480000000000,1.28150000000000,1.31890000000000,1.35680000000000,1.39550000000000,1.43490000000000,1.47510000000000,1.51600000000000,1.55770000000000,1.60030000000000,1.64380000000000,1.68820000000000,1.73370000000000,1.78010000000000,1.82770000000000] y=[0.497300000000000,0.502900000000000,0.508500000000000,0.514200000000000,0.519800000000000,0.525500000000000,0.531100000000000,0.536800000000000,0.542600000000000,0.548300000000000,0.554100000000000,0.559800000000000,0.565700000000000,0.571500000000000,0.577400000000000,0.583300000000000,0.589200000000000,0.595200000000000,0.601300000000000,0.607400000000000,0.613500000000000] yingchang = sqrt(x.^2+y.^2) N=107; %N为15年4月18日与1月1日的日期之差 derta=23.45*sin(360*(284+N)/365)*pi/180; %赤纬角 omiga=15*(selftimeform-(120-111.02)/15-12)*pi/180; %计算时角 for j=1:21 for fai=1:90 fenzi = sin(derta)*(sin(fai*pi/180)*sin(fai*pi/180))+cos(derta)*cos(fai*pi/180)*sin(fai*pi/180)*cos(omiga(j))-sin(derta) fenmu = sqrt(1-(sin(derta)*sin(fai*pi/180)+cos(derta)*cos(omiga(j))*cos(fai*pi/180))*(sin(derta)*sin(fai*pi/180)+cos(derta)*cos(omiga(j))*cos(fai*pi/180)))*cos(fai*pi/180) f(j,fai) = fenzi/fenmu - x(j)/yingchang(j) end end fai = 1:1:90 plot(fai,f(1,fai)) haha = f(1,fai) 求大神指点一二
OpenGL导入3D模型,为什么显示的都是2D的,怎样才能显示3D的?
![图片说明](https://img-ask.csdn.net/upload/201606/02/1464845112_770082.png) 如图所示,我用OpenGL打开一个3D模型,为什么都显示的是这样的2D平面图,怎样才能显示3D效果,代码如下: #include"obj.h" #include<GL\glut.h> #include<iostream> man obj; void myDisplay() { glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BITS); obj.Man_View(); } void myInit() { glClearColor(1.0, 1.0, 1.0, 0.0); glColor3f(0.5, 0.5, 0.5); glMatrixMode(GL_PROJECTION); glLoadIdentity(); gluPerspective(30.0, 64 / 48.0, 2.0, 4.0); glMatrixMode(GL_MODELVIEW); glLoadIdentity(); gluLookAt(0.0, 0.0, 3.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0); glEnable(GL_TEXTURE_2D); glEnable(GL_DEPTH_TEST); } void main(int argc, char ** argv) { obj.In_File("man.obj"); glutInit(&argc, argv); glutInitDisplayMode(GLUT_DEPTH | GLUT_RGB); glutInitWindowSize(640.0, 480.0); glutInitWindowPosition(0.0, 0.0); glutCreateWindow("man"); glutDisplayFunc(myDisplay); myInit(); glutMainLoop(); } #include"obj.h" #include<fstream> #include<GL\glut.h> #include<iostream> man::man() {} man::~man() {} void man::In_File(char * FileName) { std::fstream in(FileName); char buffer[1024]; while (in.getline(buffer, 1024)) { if (buffer[0] == 'v') { if (buffer[1] == 't') { Vte V1; sscanf_s(buffer, "vt %lf %lf", &V1.u, &V1.v); Vt.push_back(V1); } else { if (buffer[1] == 'n') { Normal n; sscanf_s(buffer, "vn %lf %lf %lf", &n.x, &n.y, &n.z); Nor.push_back(n); } else { Vertex V2; sscanf_s(buffer, "v %lf %lf %lf", &V2.x, &V2.y, &V2.z); Ve.push_back(V2); } } } if (buffer[0] == 'f') { FaIndex F1 = { 0 }; VtIndex Vt1 = { 0 }; VnIndex Vn1 = { 0 }; sscanf_s(buffer, "f %d/%d/%d %d/%d/%d %d/%d/%d %d/%d/%d", &F1.a, &Vt1.a, &Vn1.a, &F1.b, &Vt1.b, &Vn1.b, &F1.c, &Vt1.c, &Vn1.c, &F1.d, &Vt1.d, &Vn1.d); VtI.push_back(Vt1); VnI.push_back(Vn1); FaI.push_back(F1); } } } void man::Man_View() { for (unsigned int i = 0; i < FaI.size(); i++) { if (FaI[i].d == 0) { glBegin(GL_TRIANGLES); Vertex v1 = Ve[FaI[i].a - 1]; Vertex v2 = Ve[FaI[i].b - 1]; Vertex v3 = Ve[FaI[i].c - 1]; Normal n1 = Nor[VnI[i].a - 1]; Normal n2 = Nor[VnI[i].b - 1]; Normal n3 = Nor[VnI[i].c - 1]; Vte vte1 = Vt[VtI[i].a - 1]; Vte vte2 = Vt[VtI[i].b - 1]; Vte vte3 = Vt[VtI[i].c - 1]; glNormal3b(n1.x, n1.y, n1.z); glTexCoord2d(vte1.u, vte1.v); glVertex3d(v1.x, v1.y, v1.z); glNormal3b(n2.x, n2.y, n2.z); glTexCoord2d(vte2.u, vte2.v); glVertex3d(v2.x, v2.y, v2.z); glNormal3b(n3.x, n3.y, n3.z); glTexCoord2d(vte3.u, vte3.v); glVertex3d(v3.x, v3.y, v3.z); glEnd(); } else { glBegin(GL_POLYGON); Vertex v1 = Ve[FaI[i].a - 1]; Vertex v2 = Ve[FaI[i].b - 1]; Vertex v3 = Ve[FaI[i].c - 1]; Vertex v4 = Ve[FaI[i].d - 1]; Normal n1 = Nor[VnI[i].a - 1]; Normal n2 = Nor[VnI[i].b - 1]; Normal n3 = Nor[VnI[i].c - 1]; Normal n4 = Nor[VnI[i].d - 1]; Vte vte1 = Vt[VtI[i].a - 1]; Vte vte2 = Vt[VtI[i].b - 1]; Vte vte3 = Vt[VtI[i].c - 1]; Vte vte4 = Vt[VtI[i].d - 1]; glNormal3b(n1.x, n1.y, n1.z); glTexCoord2d(vte1.u, vte1.v); glVertex3d(v1.x, v1.y, v1.z); glNormal3b(n2.x, n2.y, n2.z); glTexCoord2d(vte2.u, vte2.v); glVertex3d(v2.x, v2.y, v2.z); glNormal3b(n3.x, n3.y, n3.z); glTexCoord2d(vte3.u, vte3.v); glVertex3d(v3.x, v3.y, v3.z); glNormal3b(n4.x, n4.y, n4.z); glTexCoord2d(vte4.u, vte4.v); glVertex3d(v4.x, v4.y, v4.z); glEnd(); } } glFlush(); } #ifndef OBJ_H #define OBJ_H #include<vector> typedef struct { double x, y, z; }Vertex, Normal; struct Vte { double u, v; }; typedef struct { int a, b, c, d; }FaIndex, VtIndex, VnIndex; class man { public: man(); ~man(); void In_File(char *); void Man_View(); private: std::vector <Vertex> Ve; std::vector <Normal> Nor; std::vector <Vte> Vt; std::vector <FaIndex> FaI; std::vector <VtIndex> VtI; std::vector <VnIndex> VnI; }; #endif 求OpenGL高手解答。
用这个MATLAB代码生成十字阵时,如何把我需要的阵元数,信号频率等信息加进去
如题,求问这个代码中还能加入阵元数,频率,声速等信息吗?如何添加? ``` close all clear all N = 19; % M = 10; [ux,uy] = meshgrid(-1:1/100:1); psix = pi*ux; psiy = pi*uy; Beam1 = sinc(1/pi*N*psix/2)./sinc(1/pi*psix/2); Beam2= sinc(1/pi*N*psiy/2)./sinc(1/pi*psiy/2); Beam=Beam1+Beam2; Beam = abs(Beam)/max(max(abs(Beam))); theta_x=uy*90; fai_x=ux*180; mesh(fai_x,theta_x,Beam); xlabel('x','Fontsize',12); ylabel('y','Fontsize',12); zlabel('波束图','Fontsize',12); title('Response of planar array, N=M=10, dx=dy=\lambda/2, uniform weight') ``` 谢谢各位大佬
music算法的改进方案,结果不对,这是为什么?
基于圆阵的music算法,想做一些改进,希望能识别出比较近的角度或是去相干,试了几种方法,但效果都不对,希望大神帮忙看一下。 ``` clc; clear all; M=7; %相位模式数 N=16; %阵元数 r=1/(4*sin(pi/N)); %圆阵半径 snapshots=1024; %快拍数 SNR=20; %信噪比 targets=3; %信源数 angle=[30 50 70 20 150 25]*pi/180; %方位角 w=[pi/3 pi/4 pi/6].'; %信号频率(频率相同则相干信号) W=zeros(N,2*M+1); for p=1:2*M+1 for i=1:N W(i,p)=1/N.*exp(j*2*pi*(p-8)*(i-1)/N); end end %生成矩阵V V=zeros(2*M+1,2*M+1); for p=1:2*M+1 for q=1:2*M+1 V(p,q)=1/sqrt(2*M+1).*exp(-j*(q-8)*2*pi*(p-8)/(2*M+1)); end end %生成矩阵C C=eye(2*M+1,2*M+1); for n=1:M+1 C(n,n)=j^(-M+n-1); end for n=(M+2):(2*M+1) C(n,n)=j^(M-n+1); end %生成矩阵F F=V'*C*W'; %生成矩阵A for k=1:snapshots fai0=2*pi*rand(1,targets);%设置到达信号的随机相位 for p=1:targets for q=1:N beta(q)=2*pi*(q-1)/N; A(q,p)=exp(j*(2*pi*r.*sin(angle(p,2)).*cos(angle(p,1)-beta(q))+fai0(1,p))); %方向矩阵 end end end S=10.^(SNR/20)*exp(j*w*[1:snapshots]); %信号 X=A*S+(randn(N,snapshots)+i*randn(N,snapshots))/sqrt(2); %加入噪声后的信号 X=F*X; Rx=X*X'./snapshots; %计算矩阵Y的自相关矩阵Rx %% 原来的程序 Rx=real(Rx); [e_vector,e_value]=eig(Rx); %对Rx进行特征分解 [EVA,I]=sort(e_value); % 调整Rx的特征值排列顺序,并调整相应的特征向量,按从大到小排列 EVA=fliplr(EVA); e_vector=fliplr(e_vector); G=e_vector(:,targets+1:2*M+1); %生成噪声的特征向量 %% %%自己改的程序 根据书上的方法 J=fliplr(eye(2*M+1)); Rx=Rx+J*conj(Rx)*J; [U,S,V1]=svd(Rx); Vu=V1(:,targets+1:2*M+1); S((2*M+1-targets):2*M+1,(2*M+1-targets):2*M+1)=0; Ss=S; R1=U*Ss*conj(V1); [Uu,Sss,V2]=svd(R1); Vuu=V2(:,targets+1:2*M+1); G=(Vu+Vuu)/2; G=real(G); %这句根据原来程序中G是实数矩阵写的 %% %% 另一种修改方法 将原来程序的自相关矩阵重构成托普利兹矩阵 这里的15根据Rx的维度写的,也可以是2*M+1 dd=zeros(2*15-1); for i=-(15-1):(15-1) d=sum(diag(Rx,i))/(15-abs(i));%每一对角线取平均 dd(i+15)=d; end for k=1:15 Rx(k,k)=dd(15); end for i=1:14 for k=1:(15-i) Rx(k+i,k)=dd(15-i); Rx(k,k+i)=dd(15+i); end end Rx=real(Rx); [e_vector,e_value]=eig(Rx); [EVA,I]=sort(e_value); EVA=fliplr(EVA); e_vector=fliplr(e_vector); G=e_vector(:,targets+1:2*M+1); %% %进行二维谱峰搜索 a1=zeros(N,1); for theta=0:90 %俯仰角 for fai=0:360 %方位角 for q=1:N beta1(q)=2*pi*(q-1)/N; a1(q,:)=exp(j*2*pi*r.*sin(theta/180*pi).*cos(fai/180*pi-beta1(q))); end b=F*a1; P(theta+1,fai+1)=1/norm(b.'*G*G.'*b); %norm((G'*b),2); end end %绘制二维功率谱图 figure(1); xx=0:360;%方位角 yy=0:90;%俯仰角 [X1,Y1]=meshgrid(xx,yy); mesh(X1,Y1,20*log10(P)); xlabel('方位角(度)'); ylabel('俯仰角(度)'); zlabel('空间谱(dB)'); title('均匀圆阵的二维DOA估计'); ``` 比如将第三个角度改成(70,25),原来的程序就不能很好的识别出来。大神帮忙看一下是程序哪里错了,还是这个方向错了,谢谢解答。
启动tomcat后,只要有数据操作mysql服务就自动关闭?
今天把项目部署到服务器上时,报了一个error。 后来检查发现,mysql服务停止了,但是之前服务已经启动了。经过几次测试发现,没启动tomcat时,使用Navicat对数据库操作不会有问题,只要启动项目,一有数据操作就会自动停止mysql服务,这是什么情况? 错误信息如下: 2017-11-01 08:49:35,007 ERROR [com.alibaba.druid.pool.DruidDataSource] - create connection error, url: jdbc:mysql://192.168.251.229:3306/creditteaching?useUnico de=true&characterEncoding=utf-8, errorCode 0, state 08S01 com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link fai lure The last packet sent successfully to the server was 0 milliseconds ago. The driv er has not received any packets from the server. at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct orAccessorImpl.java:57) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC onstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:526) at com.mysql.jdbc.Util.handleNewInstance(Util.java:409) at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1 127) at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:356) at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2502) at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2 539) at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2321) at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:832) at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct orAccessorImpl.java:57) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC onstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:526) at com.mysql.jdbc.Util.handleNewInstance(Util.java:409) at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:417) at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java :344) at com.alibaba.druid.filter.FilterChainImpl.connection_connect(FilterCha inImpl.java:148) at com.alibaba.druid.filter.stat.StatFilter.connection_connect(StatFilte r.java:211) at com.alibaba.druid.filter.FilterChainImpl.connection_connect(FilterCha inImpl.java:142) at com.alibaba.druid.pool.DruidAbstractDataSource.createPhysicalConnecti on(DruidAbstractDataSource.java:1410) at com.alibaba.druid.pool.DruidAbstractDataSource.createPhysicalConnecti on(DruidAbstractDataSource.java:1464) at com.alibaba.druid.pool.DruidDataSource$CreateConnectionThread.run(Dru idDataSource.java:1969) Caused by: java.net.ConnectException: Connection refused: connect at java.net.DualStackPlainSocketImpl.connect0(Native Method) at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketI mpl.java:79) at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.ja va:339) at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocket Impl.java:200) at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java :182) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172) at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392) at java.net.Socket.connect(Socket.java:579) at java.net.Socket.connect(Socket.java:528) at java.net.Socket.<init>(Socket.java:425) at java.net.Socket.<init>(Socket.java:241) at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.ja va:258) at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:306) ... 18 more 数据源使用的时druid,配置信息如下: <bean id="dataSource" class="com.alibaba.druid.pool.DruidDataSource" init-method="init" destroy-method="close"> <!-- 数据源驱动类可不写,Druid默认会自动根据URL识别DriverClass --> <property name="driverClassName" value="${jdbc.driver}" /> <!-- 基本属性 url、user、password --> <property name="url" value="${jdbc.url}" /> <property name="username" value="${jdbc.username}" /> <property name="password" value="${jdbc.password}" /> <!-- 配置初始化大小、最小、最大 --> <property name="initialSize" value="1" /> <property name="minIdle" value="3" /> <property name="maxActive" value="20" /> <!-- 配置获取连接等待超时的时间 --> <property name="maxWait" value="60000" /> <!-- 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒 --> <property name="timeBetweenEvictionRunsMillis" value="60000" /> <!-- 配置一个连接在池中最小生存的时间,单位是毫秒 --> <property name="minEvictableIdleTimeMillis" value="300000" /> <property name="validationQuery" value="${jdbc.testSql}" /> <property name="testWhileIdle" value="true" /> <property name="testOnBorrow" value="false" /> <property name="testOnReturn" value="false" /> <!-- 打开PSCache,并且指定每个连接上PSCache的大小(Oracle使用) <property name="poolPreparedStatements" value="true" /> <property name="maxPoolPreparedStatementPerConnectionSize" value="20" /> --> <!-- 配置监控统计拦截的filters --> <property name="filters" value="stat" /> </bean>
如何对含有u(k)的表达式进行系统辨识。
希望大神们可以教教我。。。 书上的例子都是y(k)=a1*y(k-1)+a2*y(k-2)+b1*u(k-1)+b2*u(k-2)+v(k)这种类似形式的。 如果是y(k)=a1*y(k-1)+a2*y(k-2)+b1*u(k)+b2*u(k-1)+b3*u(k-2)+v(k)这种形式的话。利用matlab进行递推最小二乘辨识和递推极大似然辨识的话程序该怎么编写呢?小白一个,希望大佬教教我![图片说明](https://img-ask.csdn.net/upload/201810/10/1539186918_665097.png)例如上图的差分方程,我该怎么弄呢? 下面是我的代码。。。存在错误,但不懂怎么改正。很懵逼 clear all close all %%%%%%%%%产生仿真数据%%%%%%%%% n = 2; total = 1000; sigma = 1;%噪声变量的均方根 %M序列作为输入 y1 = 1; y2 = 1; y3 = 1; y4 = 0; for i = 1:total; x1 = xor(y3,y4); x2 = y1; x3 = y2; x4 = y3; y(i) = y4; if y(i)>0.5,u(i) = -1; else u(i) = 1; end y1 = x1; y2= x2; y3 = x3; y4 = x4; end figure(1); stem(u),grid on %%%%%%%%%%系统输出%%%%%%%%%% y(1)=0;y(2)=0; v=sigma*randn(total,1);%噪声 y(1)=1;y(2)=0.01; for k=3:total y(k) = (-0.1538)*y(k-1)-0.3846*y(k-2)+0.3846*u(k)+0.7692*u(k-1)+0.3846*u(k-2)+1*v(k)+0*v(k-1)+0*v(k-2); end %%%%%%%%%初始化%%%%%%%%% theta0=0.001*ones(7,1); e1(1)=(-0.1538)-theta0(1); e2(1)=(-0.3846)-theta0(2);%误差初始化 e3(1)=0.3846-theta0(3); e4(1)=0.7692-theta0(4); e5(1)=0.3846-theta0(5); e6(1)=0-theta0(6); e7(1)=0-theta0(7); a_hat(1)=theta0(1); a_hat(2)=theta0(2); b_hat(1)=theta0(3); b_hat(2)=theta0(4); b_hat(3)=theta0(5); c_hat(1)=theta0(6); c_hat(2)=theta0(7); P0=eye(7,7);%矩阵P初始化 for i=1:n yf(i)=0.1;uf(i)=0.1;vf(i)=0.1; fai0(i,1)=-yf(i); fai0(n+i,1)=uf(i); fai0(2*n+i,1)=vf(i); end e(1)=1.0; e(2)=1.0; %%%%%%递推算法%%%%%% for i=n+1:total pusai=[-y(i-1);-y(i-2);u(i);u(i-1);u(i-2);e(i-1);e(i-2)]; C=zeros(n*3,n*3); Q=zeros(3*n,1); Q(1)=-y(i-1); Q(n+1)=u(i-1); Q(2*n+1)=e(i-1); for j=1:n C(1,j)=-c_hat(j); c(n+1,n+j)=-c_hat(j); c(2*n+1,2*n+j)=-c_hat(j); if j>1 C(j,j-1)=1.0; C(n+j,n+j-1)=1.0; C(2*n+j,2*n+j-1)=1.0; end end fai=C*fai0+Q; K=P0*fai*inv(fai'*P0*fai+1); P=[eye(7,7)-K*fai']*P0; e(i)=y(i)-pusai'*theta0; theta=theta0+K*e(i); P0=P; theta0=theta; fai0=fai; a_hat(1)=theta(1); a_hat(2)=theta(2); b_hat(1)=theta(3); b_hat(2)=theta(4); b_hat(3)=theta(5); c_hat(1)=theta(6); c_hat(2)=theta(7); e1(i)=(-0.1538)-a_hat(1); e2(i)=(-0.3846)-a_hat(2); e3(i)=0.3846-b_hat(1); e4(i)=0.7692-b_hat(2);e5(i)=b_hat(3); e6(i)=0-c_hat(1);e7(i)=0-c_hat(2); end figure(2) plot(e1); hold on plot(e2); hold on plot(e3); hold on plot(e4); hold on plot(e5); hold on plot(e6); hold on plot(e7); title('Parameter Estimation Error'); xlabel('times'); ylabel('error'); hold off figure(3) plot(e); title('Output Error'); xlabel('times'); ylabel('error');
初学习mpi 各线程单独计算出一个矩阵 不知如何传输 请大家帮忙!
DO 700 I=1,NPOINT ! IF(INFB.EQ.1) THEN AMN=SIN(KM*(A+X(I)))*SIN(KN*(B+Y(I))) ! ELSE ! AMN=cos(KM*(A+X(I)))*cos(KN*(B+Y(I))) ! ENDIF DO 750 L=1,LAY+1 S(L,I)=S(L,I)+AMN*FAI(L) 750 CONTINUE 700 CONTINUE 1 continue u=1 do I=1,NPOINT do L=1,LAY+1 p(U)=s(L,I) u=u+1 enddo enddo ! final ITAG=110 IF (MYID.NE.0) THEN KOUNT=GCOUNT(MYID) IDEST=0 Mcount=L*I CALL MPI_SEND ( p(U),Mcount, MPI_REAL8, IDEST, ITAG, & & COMM, IERR) ELSE DO ISRC=1,NPROC-1 ISTART1=GSTART(ISRC) KOUNT1=GCOUNT(ISRC) CALL MPI_RECV ( p(U),Mcount, MPI_REAL8, ISRC, ITAG, & & COMM, ISTATUS, IERR) ENDDO ENDIF 这是其中的一部分 想问下大家应该怎么传输这样一个完整的矩阵
纠结的了一上午ssh的问题
2010-6-6 11:05:07 org.apache.catalina.core.AprLifecycleListener init 信息: Loaded APR based Apache Tomcat Native library 1.1.19. 2010-6-6 11:05:07 org.apache.catalina.core.AprLifecycleListener init 信息: APR capabilities: IPv6 [true], sendfile [true], accept filters [false], rand om [true]. 2010-6-6 11:05:08 org.apache.coyote.http11.Http11AprProtocol init 信息: Initializing Coyote HTTP/1.1 on http-8080 2010-6-6 11:05:08 org.apache.coyote.ajp.AjpAprProtocol init 信息: Initializing Coyote AJP/1.3 on ajp-8009 2010-6-6 11:05:08 org.apache.catalina.startup.Catalina load 信息: Initialization processed in 1494 ms 2010-6-6 11:05:08 org.apache.catalina.core.StandardService start 信息: Starting service Catalina 2010-6-6 11:05:08 org.apache.catalina.core.StandardEngine start 信息: Starting Servlet Engine: Apache Tomcat/6.0.24 2010-6-6 11:05:08 org.apache.catalina.startup.HostConfig deployDescriptor 信息: Deploying configuration descriptor host-manager.xml 2010-6-6 11:05:09 org.apache.catalina.startup.HostConfig deployDescriptor 信息: Deploying configuration descriptor manager.xml 2010-6-6 11:05:09 org.apache.catalina.startup.HostConfig deployDirectory 信息: Deploying web application directory docs 2010-6-6 11:05:09 org.apache.catalina.startup.HostConfig deployDirectory 信息: Deploying web application directory examples 2010-6-6 11:05:09 org.apache.catalina.core.ApplicationContext log 信息: ContextListener: contextInitialized() 2010-6-6 11:05:09 org.apache.catalina.core.ApplicationContext log 信息: SessionListener: contextInitialized() 2010-6-6 11:05:09 org.apache.catalina.startup.HostConfig deployDirectory 信息: Deploying web application directory ROOT 2010-6-6 11:05:09 org.apache.catalina.startup.HostConfig deployDirectory 信息: Deploying web application directory test_online 2010-6-6 11:05:11 org.apache.catalina.core.ApplicationContext log 信息: Initializing Spring root WebApplicationContext 2010-06-06 11:05:11 Root WebApplicationContext: initialization started 2010-06-06 11:05:12 Refreshing org.springframework.web.context.support.XmlWebApp licationContext@8cd4db: display name [Root WebApplicationContext]; startup date [Sun Jun 06 11:05:12 CST 2010]; root of context hierarchy 2010-06-06 11:05:12 Looking for matching resources in directory tree [C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\test_online\WEB-INF\classes ] 2010-06-06 11:05:12 Searching directory [C:\Program Files\Apache Software Founda tion\Tomcat 6.0\webapps\test_online\WEB-INF\classes] for files matching pattern [C:/Program Files/Apache Software Foundation/Tomcat 6.0/webapps/test_online/WEB- INF/classes/bean-*.xml] 2010-06-06 11:05:12 Resolved location pattern [classpath:bean-*.xml] to resource s [file [C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\test_onl ine\WEB-INF\classes\bean-action.xml], file [C:\Program Files\Apache Software Fou ndation\Tomcat 6.0\webapps\test_online\WEB-INF\classes\bean-hibernate.xml], file [C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\test_online\WEB -INF\classes\bean-service.xml]] 2010-06-06 11:05:12 Loading XML bean definitions from file [C:\Program Files\Apa che Software Foundation\Tomcat 6.0\webapps\test_online\WEB-INF\classes\bean-acti on.xml] 2010-06-06 11:05:13 Using JAXP provider [org.apache.xerces.jaxp.DocumentBuilderF actoryImpl] 2010-06-06 11:05:14 Loading schema mappings from [META-INF/spring.schemas] 2010-06-06 11:05:14 Loaded schema mappings: {http://www.springframework.org/sche ma/lang/spring-lang.xsd=org/springframework/scripting/config/spring-lang-2.5.xsd , http://www.springframework.org/schema/lang/spring-lang-2.5.xsd=org/springframe work/scripting/config/spring-lang-2.5.xsd, http://www.springframework.org/schema /context/spring-context-2.5.xsd=org/springframework/context/config/spring-contex t-2.5.xsd, http://www.springframework.org/schema/context/spring-context.xsd=org/ springframework/context/config/spring-context-2.5.xsd, http://www.springframewor k.org/schema/aop/spring-aop.xsd=org/springframework/aop/config/spring-aop-2.5.xs d, http://www.springframework.org/schema/util/spring-util-2.0.xsd=org/springfram ework/beans/factory/xml/spring-util-2.0.xsd, http://www.springframework.org/sche ma/util/spring-util-2.5.xsd=org/springframework/beans/factory/xml/spring-util-2. 5.xsd, http://www.springframework.org/schema/tx/spring-tx-2.0.xsd=org/springfram ework/transaction/config/spring-tx-2.0.xsd, http://www.springframework.org/schem a/tool/spring-tool-2.0.xsd=org/springframework/beans/factory/xml/spring-tool-2.0 .xsd, http://www.springframework.org/schema/tx/spring-tx-2.5.xsd=org/springframe work/transaction/config/spring-tx-2.5.xsd, http://www.springframework.org/schema /beans/spring-beans-2.0.xsd=org/springframework/beans/factory/xml/spring-beans-2 .0.xsd, http://www.springframework.org/schema/tool/spring-tool-2.5.xsd=org/sprin gframework/beans/factory/xml/spring-tool-2.5.xsd, http://www.springframework.org /schema/beans/spring-beans-2.5.xsd=org/springframework/beans/factory/xml/spring- beans-2.5.xsd, http://www.springframework.org/schema/beans/spring-beans.xsd=org/ springframework/beans/factory/xml/spring-beans-2.5.xsd, http://www.springframewo rk.org/schema/jee/spring-jee.xsd=org/springframework/ejb/config/spring-jee-2.5.x sd, http://www.springframework.org/schema/tool/spring-tool.xsd=org/springframewo rk/beans/factory/xml/spring-tool-2.5.xsd, http://www.springframework.org/schema/ tx/spring-tx.xsd=org/springframework/transaction/config/spring-tx-2.5.xsd, http: //www.springframework.org/schema/jee/spring-jee-2.0.xsd=org/springframework/ejb/ config/spring-jee-2.0.xsd, http://www.springframework.org/schema/aop/spring-aop- 2.0.xsd=org/springframework/aop/config/spring-aop-2.0.xsd, http://www.springfram ework.org/schema/aop/spring-aop-2.5.xsd=org/springframework/aop/config/spring-ao p-2.5.xsd, http://www.springframework.org/schema/jee/spring-jee-2.5.xsd=org/spri ngframework/ejb/config/spring-jee-2.5.xsd, http://www.springframework.org/schema /lang/spring-lang-2.0.xsd=org/springframework/scripting/config/spring-lang-2.0.x sd, http://www.springframework.org/schema/util/spring-util.xsd=org/springframewo rk/beans/factory/xml/spring-util-2.5.xsd} 2010-06-06 11:05:14 Found XML schema [http://www.springframework.org/schema/bean s/spring-beans-2.0.xsd] in classpath: org/springframework/beans/factory/xml/spri ng-beans-2.0.xsd 2010-06-06 11:05:14 Loading bean definitions 2010-06-06 11:05:14 No XML 'id' specified - using 'LoginAction' as bean name and [] as aliases 2010-06-06 11:05:14 No XML 'id' specified - using 'CheckAction' as bean name and [] as aliases 2010-06-06 11:05:14 Loading XML bean definitions from file [C:\Program Files\Apa che Software Foundation\Tomcat 6.0\webapps\test_online\WEB-INF\classes\bean-hibe rnate.xml] 2010-06-06 11:05:14 Using JAXP provider [org.apache.xerces.jaxp.DocumentBuilderF actoryImpl] 2010-06-06 11:05:14 Found XML schema [http://www.springframework.org/schema/bean s/spring-beans-2.5.xsd] in classpath: org/springframework/beans/factory/xml/spri ng-beans-2.5.xsd 2010-06-06 11:05:14 Loading bean definitions 2010-06-06 11:05:14 Loading XML bean definitions from file [C:\Program Files\Apa che Software Foundation\Tomcat 6.0\webapps\test_online\WEB-INF\classes\bean-serv ice.xml] 2010-06-06 11:05:14 Using JAXP provider [org.apache.xerces.jaxp.DocumentBuilderF actoryImpl] 2010-06-06 11:05:14 Found XML schema [http://www.springframework.org/schema/bean s/spring-beans-2.0.xsd] in classpath: org/springframework/beans/factory/xml/spri ng-beans-2.0.xsd 2010-06-06 11:05:14 Loading bean definitions 2010-06-06 11:05:14 No XML 'id' specified - using 'UserCheckService' as bean nam e and [] as aliases 2010-06-06 11:05:14 No XML 'id' specified - using 'build' as bean name and [] as aliases 2010-06-06 11:05:14 Loaded 9 bean definitions from location pattern [classpath:b ean-*.xml] 2010-06-06 11:05:14 Bean factory for application context [org.springframework.we b.context.support.XmlWebApplicationContext@8cd4db]: org.springframework.beans.fa ctory.support.DefaultListableBeanFactory@3087f9 2010-06-06 11:05:14 9 beans defined in org.springframework.web.context.support.X mlWebApplicationContext@8cd4db: display name [Root WebApplicationContext]; start up date [Sun Jun 06 11:05:12 CST 2010]; root of context hierarchy 2010-06-06 11:05:15 Unable to locate MessageSource with name 'messageSource': us ing default [org.springframework.context.support.DelegatingMessageSource@137e2dc ] 2010-06-06 11:05:15 Unable to locate ApplicationEventMulticaster with name 'appl icationEventMulticaster': using default [org.springframework.context.event.Simpl eApplicationEventMulticaster@16e1111] 2010-06-06 11:05:15 Unable to locate ThemeSource with name 'themeSource': using default [org.springframework.ui.context.support.ResourceBundleThemeSource@5b5df0 ] 2010-06-06 11:05:15 Pre-instantiating singletons in org.springframework.beans.fa ctory.support.DefaultListableBeanFactory@3087f9: defining beans [LoginAction,Che ckAction,dataSource,sessionFactory,TestDAO,StudentsDAO,QuesttionDAO,UserCheckSer vice,build]; root of factory hierarchy 2010-06-06 11:05:15 Creating shared instance of singleton bean 'dataSource' 2010-06-06 11:05:15 Creating instance of bean 'dataSource' 2010-06-06 11:05:15 Eagerly caching bean 'dataSource' to allow for resolving pot ential circular references 2010-06-06 11:05:15 Finished creating instance of bean 'dataSource' 2010-06-06 11:05:15 Creating shared instance of singleton bean 'sessionFactory' 2010-06-06 11:05:15 Creating instance of bean 'sessionFactory' 2010-06-06 11:05:15 Eagerly caching bean 'sessionFactory' to allow for resolving potential circular references 2010-06-06 11:05:15 Returning cached instance of singleton bean 'dataSource' 2010-06-06 11:05:15 Invoking afterPropertiesSet() on bean with name 'sessionFact ory' 2010-06-06 11:05:15 Hibernate 3.2.7 2010-06-06 11:05:15 hibernate.properties not found 2010-06-06 11:05:15 Bytecode provider name : cglib 2010-06-06 11:05:15 using JDK 1.4 java.sql.Timestamp handling 2010-06-06 11:05:16 trying to resolve system-id [http://hibernate.sourceforge.ne t/hibernate-mapping-3.0.dtd] 2010-06-06 11:05:16 recognized hibernate namespace; attempting to resolve on cla sspath under org/hibernate/ 2010-06-06 11:05:16 located [http://hibernate.sourceforge.net/hibernate-mapping- 3.0.dtd] in classpath 2010-06-06 11:05:17 Mapping class: pro.ncbuct.bean.Questtion -> questtion 2010-06-06 11:05:17 Mapped property: id -> id 2010-06-06 11:05:17 Mapped property: title -> title 2010-06-06 11:05:17 Mapped property: score -> score 2010-06-06 11:05:17 Mapped property: answer -> answer 2010-06-06 11:05:17 Mapped property: option1 -> option1 2010-06-06 11:05:17 Mapped property: option2 -> option2 2010-06-06 11:05:17 Mapped property: option3 -> option3 2010-06-06 11:05:17 Mapped property: option4 -> option4 2010-06-06 11:05:17 trying to resolve system-id [http://hibernate.sourceforge.ne t/hibernate-mapping-3.0.dtd] 2010-06-06 11:05:17 recognized hibernate namespace; attempting to resolve on cla sspath under org/hibernate/ 2010-06-06 11:05:17 located [http://hibernate.sourceforge.net/hibernate-mapping- 3.0.dtd] in classpath 2010-06-06 11:05:17 Mapping class: pro.ncbuct.bean.Students -> students 2010-06-06 11:05:17 Mapped property: id -> id 2010-06-06 11:05:17 Mapped property: name -> name 2010-06-06 11:05:17 Mapped property: loginNum -> login_num 2010-06-06 11:05:17 Mapped property: num -> num 2010-06-06 11:05:17 trying to resolve system-id [http://hibernate.sourceforge.ne t/hibernate-mapping-3.0.dtd] 2010-06-06 11:05:17 recognized hibernate namespace; attempting to resolve on cla sspath under org/hibernate/ 2010-06-06 11:05:17 located [http://hibernate.sourceforge.net/hibernate-mapping- 3.0.dtd] in classpath 2010-06-06 11:05:17 Mapping class: pro.ncbuct.bean.Test -> test 2010-06-06 11:05:17 Mapped property: id -> id 2010-06-06 11:05:17 Mapped property: userId -> user_id 2010-06-06 11:05:17 Mapped property: questId -> quest_id 2010-06-06 11:05:17 Mapped property: SAns -> s_ans 2010-06-06 11:05:17 Mapped property: testScore -> test_score 2010-06-06 11:05:17 processing extends queue 2010-06-06 11:05:17 processing collection mappings 2010-06-06 11:05:17 processing native query and ResultSetMapping mappings 2010-06-06 11:05:17 processing association property references 2010-06-06 11:05:17 processing foreign key constraints 2010-06-06 11:05:17 Building new Hibernate SessionFactory 2010-06-06 11:05:17 Preparing to build session factory with filters : {} 2010-06-06 11:05:17 processing extends queue 2010-06-06 11:05:17 processing collection mappings 2010-06-06 11:05:17 processing native query and ResultSetMapping mappings 2010-06-06 11:05:17 processing association property references 2010-06-06 11:05:17 processing foreign key constraints 2010-06-06 11:05:17 Initializing connection provider: org.springframework.orm.hi bernate3.LocalDataSourceConnectionProvider 2010-06-06 11:05:18 RDBMS: MySQL, version: 5.1.45-community 2010-06-06 11:05:18 JDBC driver: MySQL-AB JDBC Driver, version: mysql-connector- java-5.0.8 ( Revision: ${svn.Revision} ) 2010-06-06 11:05:18 Using dialect: org.hibernate.dialect.MySQLDialect 2010-06-06 11:05:18 Transaction strategy: org.springframework.orm.hibernate3.Spr ingTransactionFactory 2010-06-06 11:05:18 No TransactionManagerLookup configured (in JTA environment, use of read-write or transactional second-level cache is not recommended) 2010-06-06 11:05:18 Automatic flush during beforeCompletion(): disabled 2010-06-06 11:05:18 Automatic session close at end of transaction: disabled 2010-06-06 11:05:18 JDBC batch size: 15 2010-06-06 11:05:18 JDBC batch updates for versioned data: disabled 2010-06-06 11:05:18 Scrollable result sets: enabled 2010-06-06 11:05:18 Wrap result sets: disabled 2010-06-06 11:05:18 JDBC3 getGeneratedKeys(): enabled 2010-06-06 11:05:18 Connection release mode: auto 2010-06-06 11:05:18 Maximum outer join fetch depth: 2 2010-06-06 11:05:18 Default batch fetch size: 1 2010-06-06 11:05:18 Generate SQL with comments: disabled 2010-06-06 11:05:18 Order SQL updates by primary key: disabled 2010-06-06 11:05:18 Order SQL inserts for batching: disabled 2010-06-06 11:05:18 Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFa ctory 2010-06-06 11:05:18 Using ASTQueryTranslatorFactory 2010-06-06 11:05:18 Query language substitutions: {} 2010-06-06 11:05:18 JPA-QL strict compliance: disabled 2010-06-06 11:05:18 Second-level cache: enabled 2010-06-06 11:05:18 Query cache: disabled 2010-06-06 11:05:18 Cache provider: org.hibernate.cache.NoCacheProvider 2010-06-06 11:05:18 Optimize cache for minimal puts: disabled 2010-06-06 11:05:18 Structured second-level cache entries: disabled 2010-06-06 11:05:18 Statistics: disabled 2010-06-06 11:05:18 Deleted entity synthetic identifier rollback: disabled 2010-06-06 11:05:18 Default entity-mode: pojo 2010-06-06 11:05:18 Named query checking : enabled 2010-06-06 11:05:18 building session factory 2010-06-06 11:05:18 Session factory constructed with filter configurations : {} 2010-06-06 11:05:18 instantiating session factory with properties: {java.runtime .name=Java(TM) SE Runtime Environment, sun.boot.library.path=C:\Program Files\Ja va\jdk1.6.0_18\jre\bin, java.vm.version=16.0-b13, shared.loader=, java.vm.vendor =Sun Microsystems Inc., java.vendor.url=http://java.sun.com/, path.separator=;, java.vm.name=Java HotSpot(TM) Client VM, tomcat.util.buf.StringCache.byte.enable d=true, file.encoding.pkg=sun.io, user.country=CN, sun.java.launcher=SUN_STANDAR D, sun.os.patch.level=, java.vm.specification.name=Java Virtual Machine Specific ation, user.dir=C:\Program Files\Apache Software Foundation\Tomcat 6.0\bin, java .runtime.version=1.6.0_18-b07, java.awt.graphicsenv=sun.awt.Win32GraphicsEnviron ment, hibernate.current_session_context_class=org.springframework.orm.hibernate3 .SpringSessionContext, java.endorsed.dirs=C:\Program Files\Apache Software Found ation\Tomcat 6.0/common/endorsed, os.arch=x86, java.io.tmpdir=C:\Program Files\A pache Software Foundation\Tomcat 6.0\temp, line.separator= , java.vm.specification.vendor=Sun Microsystems Inc., user.variant=, java.naming .factory.url.pkgs=org.apache.naming, os.name=Windows 7, sun.jnu.encoding=GBK, ja va.library.path=C:\Program Files\Java\jdk1.6.0_18\bin;C:\Program Files\Apache So ftware Foundation\Tomcat 6.0\bin, java.specification.name=Java Platform API Spec ification, java.class.version=50.0, sun.management.compiler=HotSpot Client Compi ler, hibernate.transaction.factory_class=org.springframework.orm.hibernate3.Spri ngTransactionFactory, os.version=6.1, sun.io.useCanonCaches=false, user.home=C:\ Documents and Settings\Administrator, catalina.useNaming=true, user.timezone=Asi a/Shanghai, java.awt.printerjob=sun.awt.windows.WPrinterJob, java.specification. version=1.6, file.encoding=GBK, catalina.home=C:\Program Files\Apache Software F oundation\Tomcat 6.0, user.name=Administrator, java.class.path=C:\Program Files\ Apache Software Foundation\Tomcat 6.0/bin/bootstrap.jar;C:\Program Files\Java\jd k1.6.0_18/lib/tools.jar, hibernate.bytecode.use_reflection_optimizer=false, java .naming.factory.initial=org.apache.naming.java.javaURLContextFactory, package.de finition=sun.,java.,org.apache.catalina.,org.apache.coyote.,org.apache.tomcat.,o rg.apache.jasper., java.vm.specification.version=1.0, sun.arch.data.model=32, ja va.home=C:\Program Files\Java\jdk1.6.0_18\jre, hibernate.dialect=org.hibernate.d ialect.MySQLDialect, java.specification.vendor=Sun Microsystems Inc., user.langu age=zh, awt.toolkit=sun.awt.windows.WToolkit, java.vm.info=mixed mode, java.vers ion=1.6.0_18, java.ext.dirs=C:\Program Files\Java\jdk1.6.0_18\jre\lib\ext;C:\Win dows\Sun\Java\lib\ext, sun.boot.class.path=C:\Program Files\Java\jdk1.6.0_18\jre \lib\resources.jar;C:\Program Files\Java\jdk1.6.0_18\jre\lib\rt.jar;C:\Program F iles\Java\jdk1.6.0_18\jre\lib\sunrsasign.jar;C:\Program Files\Java\jdk1.6.0_18\j re\lib\jsse.jar;C:\Program Files\Java\jdk1.6.0_18\jre\lib\jce.jar;C:\Program Fil es\Java\jdk1.6.0_18\jre\lib\charsets.jar;C:\Program Files\Java\jdk1.6.0_18\jre\c lasses, java.vendor=Sun Microsystems Inc., server.loader=, catalina.base=C:\Prog ram Files\Apache Software Foundation\Tomcat 6.0, file.separator=\, java.vendor.u rl.bug=http://java.sun.com/cgi-bin/bugreport.cgi, hibernate.connection.provider_ class=org.springframework.orm.hibernate3.LocalDataSourceConnectionProvider, comm on.loader=${catalina.base}/lib,${catalina.base}/lib/*.jar,${catalina.home}/lib,$ {catalina.home}/lib/*.jar, sun.cpu.endian=little, sun.io.unicode.encoding=Unicod eLittle, package.access=sun.,org.apache.catalina.,org.apache.coyote.,org.apache. tomcat.,org.apache.jasper.,sun.beans., sun.desktop=windows, sun.cpu.isalist=pent ium_pro+mmx pentium_pro pentium+mmx pentium i486 i386 i86} 2010-06-06 11:05:19 Destroying singletons in org.springframework.beans.factory.s upport.DefaultListableBeanFactory@3087f9: defining beans [LoginAction,CheckActio n,dataSource,sessionFactory,TestDAO,StudentsDAO,QuesttionDAO,UserCheckService,bu ild]; root of factory hierarchy 2010-06-06 11:05:19 Context initialization failed org.springframework.beans.factory.BeanCreationException: Error creating bean wit h name 'sessionFactory' defined in file [C:\Program Files\Apache Software Founda tion\Tomcat 6.0\webapps\test_online\WEB-INF\classes\bean-hibernate.xml]: Invocat ion of init method failed; nested exception is org.hibernate.HibernateException: Unable to instantiate default tuplizer [org.hibernate.tuple.entity.PojoEntityTu plizer] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory .initializeBean(AbstractAutowireCapableBeanFactory.java:1338) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory .doCreateBean(AbstractAutowireCapableBeanFactory.java:473) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory $1.run(AbstractAutowireCapableBeanFactory.java:409) at java.security.AccessController.doPrivileged(Native Method) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory .createBean(AbstractAutowireCapableBeanFactory.java:380) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(Ab stractBeanFactory.java:264) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSi ngleton(DefaultSingletonBeanRegistry.java:222) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(Abst ractBeanFactory.java:261) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(Abstra ctBeanFactory.java:185) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(Abstra ctBeanFactory.java:164) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInst antiateSingletons(DefaultListableBeanFactory.java:423) at org.springframework.context.support.AbstractApplicationContext.finishBeanFac toryInitialization(AbstractApplicationContext.java:728) at org.springframework.context.support.AbstractApplicationContext.refresh(Abstr actApplicationContext.java:380) at org.springframework.web.context.ContextLoader.createWebApplicationContext(Co ntextLoader.java:255) at org.springframework.web.context.ContextLoader.initWebApplicationContext(Cont extLoader.java:199) at org.springframework.web.context.ContextLoaderListener.contextInitialized(Con textLoaderListener.java:45) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java: 3972) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4467) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:7 91) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:526) at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1041) at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:964 ) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:502) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:321) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppor t.java:119) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053) at org.apache.catalina.core.StandardHost.start(StandardHost.java:722) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443) at org.apache.catalina.core.StandardService.start(StandardService.java:516) at org.apache.catalina.core.StandardServer.start(StandardServer.java:710) at org.apache.catalina.startup.Catalina.start(Catalina.java:593) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39 ) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl .java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414) Caused by: org.hibernate.HibernateException: Unable to instantiate default tupli zer [org.hibernate.tuple.entity.PojoEntityTuplizer] at org.hibernate.tuple.entity.EntityTuplizerFactory.constructTuplizer(EntityTup lizerFactory.java:110) at org.hibernate.tuple.entity.EntityTuplizerFactory.constructDefaultTuplizer(En tityTuplizerFactory.java:135) at org.hibernate.tuple.entity.EntityEntityModeToTuplizerMapping.<init>(EntityEn tityModeToTuplizerMapping.java:56) at org.hibernate.tuple.entity.EntityMetamodel.<init>(EntityMetamodel.java:323) at org.hibernate.persister.entity.AbstractEntityPersister.<init>(AbstractEntity Persister.java:433) at org.hibernate.persister.entity.SingleTableEntityPersister.<init>(SingleTable EntityPersister.java:109) at org.hibernate.persister.PersisterFactory.createClassPersister(PersisterFacto ry.java:55) at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:231) at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1313) at org.springframework.orm.hibernate3.LocalSessionFactoryBean.newSessionFactory (LocalSessionFactoryBean.java:814) at org.springframework.orm.hibernate3.LocalSessionFactoryBean.buildSessionFacto ry(LocalSessionFactoryBean.java:732) at org.springframework.orm.hibernate3.AbstractSessionFactoryBean.afterPropertie sSet(AbstractSessionFactoryBean.java:211) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory .invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1369) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory .initializeBean(AbstractAutowireCapableBeanFactory.java:1335) ... 39 more Caused by: java.lang.reflect.InvocationTargetException at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAcces sorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstruc torAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:513) at org.hibernate.tuple.entity.EntityTuplizerFactory.constructTuplizer(EntityTup lizerFactory.java:107) ... 52 more Caused by: java.lang.NoClassDefFoundError: org/objectweb/asm/CodeVisitor at net.sf.cglib.core.KeyFactory$Generator.generateClass(KeyFactory.java:165) at net.sf.cglib.core.DefaultGeneratorStrategy.generate(DefaultGeneratorStrategy .java:25) at net.sf.cglib.core.AbstractClassGenerator.create(AbstractClassGenerator.java: 216) at net.sf.cglib.core.KeyFactory$Generator.create(KeyFactory.java:145) at net.sf.cglib.core.KeyFactory.create(KeyFactory.java:117) at net.sf.cglib.core.KeyFactory.create(KeyFactory.java:108) at net.sf.cglib.core.KeyFactory.create(KeyFactory.java:104) at net.sf.cglib.proxy.Enhancer.<clinit>(Enhancer.java:69) at org.hibernate.proxy.pojo.cglib.CGLIBLazyInitializer.getProxyFactory(CGLIBLaz yInitializer.java:117) at org.hibernate.proxy.pojo.cglib.CGLIBProxyFactory.postInstantiate(CGLIBProxyF actory.java:43) at org.hibernate.tuple.entity.PojoEntityTuplizer.buildProxyFactory(PojoEntityTu plizer.java:188) at org.hibernate.tuple.entity.AbstractEntityTuplizer.<init>(AbstractEntityTupli zer.java:128) at org.hibernate.tuple.entity.PojoEntityTuplizer.<init>(PojoEntityTuplizer.java :78) ... 57 more Caused by: java.lang.ClassNotFoundException: org.objectweb.asm.CodeVisitor at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.jav a:1484) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.jav a:1329) ... 70 more 2010-6-6 11:05:19 org.apache.catalina.core.StandardContext listenerStart 严重: Exception sending context initialized event to listener instance of class or g.springframework.web.context.ContextLoaderListener org.springframework.beans.factory.BeanCreationException: Error creating bean wit h name 'sessionFactory' defined in file [C:\Program Files\Apache Software Founda tion\Tomcat 6.0\webapps\test_online\WEB-INF\classes\bean-hibernate.xml]: Invocat ion of init method failed; nested exception is org.hibernate.HibernateException: Unable to instantiate default tuplizer [org.hibernate.tuple.entity.PojoEntityTu plizer] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory .initializeBean(AbstractAutowireCapableBeanFactory.java:1338) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory .doCreateBean(AbstractAutowireCapableBeanFactory.java:473) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory $1.run(AbstractAutowireCapableBeanFactory.java:409) at java.security.AccessController.doPrivileged(Native Method) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory .createBean(AbstractAutowireCapableBeanFactory.java:380) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(Ab stractBeanFactory.java:264) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSi ngleton(DefaultSingletonBeanRegistry.java:222) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(Abst ractBeanFactory.java:261) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(Abstra ctBeanFactory.java:185) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(Abstra ctBeanFactory.java:164) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInst antiateSingletons(DefaultListableBeanFactory.java:423) at org.springframework.context.support.AbstractApplicationContext.finishBeanFac toryInitialization(AbstractApplicationContext.java:728) at org.springframework.context.support.AbstractApplicationContext.refresh(Abstr actApplicationContext.java:380) at org.springframework.web.context.ContextLoader.createWebApplicationContext(Co ntextLoader.java:255) at org.springframework.web.context.ContextLoader.initWebApplicationContext(Cont extLoader.java:199) at org.springframework.web.context.ContextLoaderListener.contextInitialized(Con textLoaderListener.java:45) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java: 3972) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4467) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:7 91) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:526) at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1041) at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:964 ) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:502) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:321) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppor t.java:119) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053) at org.apache.catalina.core.StandardHost.start(StandardHost.java:722) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443) at org.apache.catalina.core.StandardService.start(StandardService.java:516) at org.apache.catalina.core.StandardServer.start(StandardServer.java:710) at org.apache.catalina.startup.Catalina.start(Catalina.java:593) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39 ) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl .java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414) Caused by: org.hibernate.HibernateException: Unable to instantiate default tupli zer [org.hibernate.tuple.entity.PojoEntityTuplizer] at org.hibernate.tuple.entity.EntityTuplizerFactory.constructTuplizer(EntityTup lizerFactory.java:110) at org.hibernate.tuple.entity.EntityTuplizerFactory.constructDefaultTuplizer(En tityTuplizerFactory.java:135) at org.hibernate.tuple.entity.EntityEntityModeToTuplizerMapping.<init>(EntityEn tityModeToTuplizerMapping.java:56) at org.hibernate.tuple.entity.EntityMetamodel.<init>(EntityMetamodel.java:323) at org.hibernate.persister.entity.AbstractEntityPersister.<init>(AbstractEntity Persister.java:433) at org.hibernate.persister.entity.SingleTableEntityPersister.<init>(SingleTable EntityPersister.java:109) at org.hibernate.persister.PersisterFactory.createClassPersister(PersisterFacto ry.java:55) at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:231) at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1313) at org.springframework.orm.hibernate3.LocalSessionFactoryBean.newSessionFactory (LocalSessionFactoryBean.java:814) at org.springframework.orm.hibernate3.LocalSessionFactoryBean.buildSessionFacto ry(LocalSessionFactoryBean.java:732) at org.springframework.orm.hibernate3.AbstractSessionFactoryBean.afterPropertie sSet(AbstractSessionFactoryBean.java:211) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory .invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1369) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory .initializeBean(AbstractAutowireCapableBeanFactory.java:1335) ... 39 more Caused by: java.lang.reflect.InvocationTargetException at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAcces sorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstruc torAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:513) at org.hibernate.tuple.entity.EntityTuplizerFactory.constructTuplizer(EntityTup lizerFactory.java:107) ... 52 more Caused by: java.lang.NoClassDefFoundError: org/objectweb/asm/CodeVisitor at net.sf.cglib.core.KeyFactory$Generator.generateClass(KeyFactory.java:165) at net.sf.cglib.core.DefaultGeneratorStrategy.generate(DefaultGeneratorStrategy .java:25) at net.sf.cglib.core.AbstractClassGenerator.create(AbstractClassGenerator.java: 216) at net.sf.cglib.core.KeyFactory$Generator.create(KeyFactory.java:145) at net.sf.cglib.core.KeyFactory.create(KeyFactory.java:117) at net.sf.cglib.core.KeyFactory.create(KeyFactory.java:108) at net.sf.cglib.core.KeyFactory.create(KeyFactory.java:104) at net.sf.cglib.proxy.Enhancer.<clinit>(Enhancer.java:69) at org.hibernate.proxy.pojo.cglib.CGLIBLazyInitializer.getProxyFactory(CGLIBLaz yInitializer.java:117) at org.hibernate.proxy.pojo.cglib.CGLIBProxyFactory.postInstantiate(CGLIBProxyF actory.java:43) at org.hibernate.tuple.entity.PojoEntityTuplizer.buildProxyFactory(PojoEntityTu plizer.java:188) at org.hibernate.tuple.entity.AbstractEntityTuplizer.<init>(AbstractEntityTupli zer.java:128) at org.hibernate.tuple.entity.PojoEntityTuplizer.<init>(PojoEntityTuplizer.java :78) ... 57 more Caused by: java.lang.ClassNotFoundException: org.objectweb.asm.CodeVisitor at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.jav a:1484) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.jav a:1329) ... 70 more 2010-6-6 11:05:19 org.apache.catalina.core.StandardContext start 严重: Error listenerStart 2010-6-6 11:05:19 org.apache.catalina.core.StandardContext start 严重: Context [/test_online] startup failed due to previous errors 2010-6-6 11:05:19 org.apache.catalina.core.ApplicationContext log 信息: Closing Spring root WebApplicationContext 2010-6-6 11:05:19 org.apache.catalina.loader.WebappClassLoader clearReferencesJd bc 严重: A web application registered the JBDC driver [com.mysql.jdbc.Driver] but fai led to unregister it when the web application was stopped. To prevent a memory l eak, the JDBC Driver has been forcibly unregistered. 2010-6-6 11:05:19 org.apache.catalina.loader.WebappClassLoader clearReferencesTh reads 严重: A web application appears to have started a thread named [Timer-0] but has f ailed to stop it. This is very likely to create a memory leak. 2010-6-6 11:05:19 org.apache.catalina.loader.WebappClassLoader clearReferencesTh reads 严重: A web application appears to have started a thread named [MySQL Statement Ca ncellation Timer] but has failed to stop it. This is very likely to create a mem ory leak. 2010-6-6 11:05:19 org.apache.catalina.loader.WebappClassLoader clearThreadLocalM ap 严重: A web application created a ThreadLocal with key of type [null] (value [com. sun.faces.config.ConfigureListener$1@18c4d8e]) and a value of type [null] (value [null]) but failed to remove it when the web application was stopped. To preven t a memory leak, the ThreadLocal has been forcibly removed. 2010-6-6 11:05:19 org.apache.catalina.loader.WebappClassLoader clearThreadLocalM ap 严重: A web application created a ThreadLocal with key of type [org.springframewor k.core.NamedThreadLocal] (value [Prototype beans currently in creation]) and a v alue of type [null] (value [null]) but failed to remove it when the web applicat ion was stopped. To prevent a memory leak, the ThreadLocal has been forcibly rem oved.
Java学习的正确打开方式
在博主认为,对于入门级学习java的最佳学习方法莫过于视频+博客+书籍+总结,前三者博主将淋漓尽致地挥毫于这篇博客文章中,至于总结在于个人,实际上越到后面你会发现学习的最好方式就是阅读参考官方文档其次就是国内的书籍,博客次之,这又是一个层次了,这里暂时不提后面再谈。博主将为各位入门java保驾护航,各位只管冲鸭!!!上天是公平的,只要不辜负时间,时间自然不会辜负你。 何谓学习?博主所理解的学习,它
大学四年自学走来,这些私藏的实用工具/学习网站我贡献出来了
大学四年,看课本是不可能一直看课本的了,对于学习,特别是自学,善于搜索网上的一些资源来辅助,还是非常有必要的,下面我就把这几年私藏的各种资源,网站贡献出来给你们。主要有:电子书搜索、实用工具、在线视频学习网站、非视频学习网站、软件下载、面试/求职必备网站。 注意:文中提到的所有资源,文末我都给你整理好了,你们只管拿去,如果觉得不错,转发、分享就是最大的支持了。 一、PDF搜索网站推荐 对于大部
linux系列之常用运维命令整理笔录
本博客记录工作中需要的linux运维命令,大学时候开始接触linux,会一些基本操作,可是都没有整理起来,加上是做开发,不做运维,有些命令忘记了,所以现在整理成博客,当然vi,文件操作等就不介绍了,慢慢积累一些其它拓展的命令,博客不定时更新 顺便拉下票,我在参加csdn博客之星竞选,欢迎投票支持,每个QQ或者微信每天都可以投5票,扫二维码即可,http://m234140.nofollow.ax.
Vue + Spring Boot 项目实战(十四):用户认证方案与完善的访问拦截
本篇文章主要讲解 token、session 等用户认证方案的区别并分析常见误区,以及如何通过前后端的配合实现完善的访问拦截,为下一步权限控制的实现打下基础。
比特币原理详解
一、什么是比特币 比特币是一种电子货币,是一种基于密码学的货币,在2008年11月1日由中本聪发表比特币白皮书,文中提出了一种去中心化的电子记账系统,我们平时的电子现金是银行来记账,因为银行的背后是国家信用。去中心化电子记账系统是参与者共同记账。比特币可以防止主权危机、信用风险。其好处不多做赘述,这一层面介绍的文章很多,本文主要从更深层的技术原理角度进行介绍。 二、问题引入  假设现有4个人
程序员接私活怎样防止做完了不给钱?
首先跟大家说明一点,我们做 IT 类的外包开发,是非标品开发,所以很有可能在开发过程中会有这样那样的需求修改,而这种需求修改很容易造成扯皮,进而影响到费用支付,甚至出现做完了项目收不到钱的情况。 那么,怎么保证自己的薪酬安全呢? 我们在开工前,一定要做好一些证据方面的准备(也就是“讨薪”的理论依据),这其中最重要的就是需求文档和验收标准。一定要让需求方提供这两个文档资料作为开发的基础。之后开发
网页实现一个简单的音乐播放器(大佬别看。(⊙﹏⊙))
今天闲着无事,就想写点东西。然后听了下歌,就打算写个播放器。 于是乎用h5 audio的加上js简单的播放器完工了。 欢迎 改进 留言。 演示地点跳到演示地点 html代码如下`&lt;!DOCTYPE html&gt; &lt;html&gt; &lt;head&gt; &lt;title&gt;music&lt;/title&gt; &lt;meta charset="utf-8"&gt
Python十大装B语法
Python 是一种代表简单思想的语言,其语法相对简单,很容易上手。不过,如果就此小视 Python 语法的精妙和深邃,那就大错特错了。本文精心筛选了最能展现 Python 语法之精妙的十个知识点,并附上详细的实例代码。如能在实战中融会贯通、灵活使用,必将使代码更为精炼、高效,同时也会极大提升代码B格,使之看上去更老练,读起来更优雅。 1. for - else 什么?不是 if 和 else 才
数据库优化 - SQL优化
前面一篇文章从实例的角度进行数据库优化,通过配置一些参数让数据库性能达到最优。但是一些“不好”的SQL也会导致数据库查询变慢,影响业务流程。本文从SQL角度进行数据库优化,提升SQL运行效率。 判断问题SQL 判断SQL是否有问题时可以通过两个表象进行判断: 系统级别表象 CPU消耗严重 IO等待严重 页面响应时间过长
2019年11月中国大陆编程语言排行榜
2019年11月2日,我统计了某招聘网站,获得有效程序员招聘数据9万条。针对招聘信息,提取编程语言关键字,并统计如下: 编程语言比例 rank pl_ percentage 1 java 33.62% 2 c/c++ 16.42% 3 c_sharp 12.82% 4 javascript 12.31% 5 python 7.93% 6 go 7.25% 7
通俗易懂地给女朋友讲:线程池的内部原理
餐厅的约会 餐盘在灯光的照耀下格外晶莹洁白,女朋友拿起红酒杯轻轻地抿了一小口,对我说:“经常听你说线程池,到底线程池到底是个什么原理?”我楞了一下,心里想女朋友今天是怎么了,怎么突然问出这么专业的问题,但做为一个专业人士在女朋友面前也不能露怯啊,想了一下便说:“我先给你讲讲我前同事老王的故事吧!” 大龄程序员老王 老王是一个已经北漂十多年的程序员,岁数大了,加班加不动了,升迁也无望,于是拿着手里
经典算法(5)杨辉三角
写在前面: 我是 扬帆向海,这个昵称来源于我的名字以及女朋友的名字。我热爱技术、热爱开源、热爱编程。技术是开源的、知识是共享的。 这博客是对自己学习的一点点总结及记录,如果您对 Java、算法 感兴趣,可以关注我的动态,我们一起学习。 用知识改变命运,让我们的家人过上更好的生活。 目录一、杨辉三角的介绍二、杨辉三角的算法思想三、代码实现1.第一种写法2.第二种写法 一、杨辉三角的介绍 百度
腾讯算法面试题:64匹马8个跑道需要多少轮才能选出最快的四匹?
昨天,有网友私信我,说去阿里面试,彻底的被打击到了。问了为什么网上大量使用ThreadLocal的源码都会加上private static?他被难住了,因为他从来都没有考虑过这个问题。无独有偶,今天笔者又发现有网友吐槽了一道腾讯的面试题,我们一起来看看。 腾讯算法面试题:64匹马8个跑道需要多少轮才能选出最快的四匹? 在互联网职场论坛,一名程序员发帖求助到。二面腾讯,其中一个算法题:64匹
面试官:你连RESTful都不知道我怎么敢要你?
面试官:了解RESTful吗? 我:听说过。 面试官:那什么是RESTful? 我:就是用起来很规范,挺好的 面试官:是RESTful挺好的,还是自我感觉挺好的 我:都挺好的。 面试官:… 把门关上。 我:… 要干嘛?先关上再说。 面试官:我说出去把门关上。 我:what ?,夺门而去 文章目录01 前言02 RESTful的来源03 RESTful6大原则1. C-S架构2. 无状态3.统一的接
SQL-小白最佳入门sql查询一
一 说明 如果是初学者,建议去网上寻找安装Mysql的文章安装,以及使用navicat连接数据库,以后的示例基本是使用mysql数据库管理系统; 二 准备前提 需要建立一张学生表,列分别是id,名称,年龄,学生信息;本示例中文章篇幅原因SQL注释略; 建表语句: CREATE TABLE `student` ( `id` int(11) NOT NULL AUTO_INCREMENT, `
项目中的if else太多了,该怎么重构?
介绍 最近跟着公司的大佬开发了一款IM系统,类似QQ和微信哈,就是聊天软件。我们有一部分业务逻辑是这样的 if (msgType = "文本") { // dosomething } else if(msgType = "图片") { // doshomething } else if(msgType = "视频") { // doshomething } else { // dosho
漫话:什么是平衡(AVL)树?这应该是把AVL树讲的最好的文章了
这篇文章通过对话的形式,由浅入深带你读懂 AVL 树,看完让你保证理解 AVL 树的各种操作,如果觉得不错,别吝啬你的赞哦。 1、若它的左子树不为空,则左子树上所有的节点值都小于它的根节点值。 2、若它的右子树不为空,则右子树上所有的节点值均大于它的根节点值。 3、它的左右子树也分别可以充当为二叉查找树。 例如: 例如,我现在想要查找数值为14的节点。由于二叉查找树的特性,我们可...
“狗屁不通文章生成器”登顶GitHub热榜,分分钟写出万字形式主义大作
一、垃圾文字生成器介绍 最近在浏览GitHub的时候,发现了这样一个骨骼清奇的雷人项目,而且热度还特别高。 项目中文名:狗屁不通文章生成器 项目英文名:BullshitGenerator 根据作者的介绍,他是偶尔需要一些中文文字用于GUI开发时测试文本渲染,因此开发了这个废话生成器。但由于生成的废话实在是太过富于哲理,所以最近已经被小伙伴们给玩坏了。 他的文风可能是这样的: 你发现,
程序员:我终于知道post和get的区别
IT界知名的程序员曾说:对于那些月薪三万以下,自称IT工程师的码农们,其实我们从来没有把他们归为我们IT工程师的队伍。他们虽然总是以IT工程师自居,但只是他们一厢情愿罢了。 此话一出,不知激起了多少(码农)程序员的愤怒,却又无可奈何,于是码农问程序员。 码农:你知道get和post请求到底有什么区别? 程序员:你看这篇就知道了。 码农:你月薪三万了? 程序员:嗯。 码农:你是怎么做到的? 程序员:
《程序人生》系列-这个程序员只用了20行代码就拿了冠军
你知道的越多,你不知道的越多 点赞再看,养成习惯GitHub上已经开源https://github.com/JavaFamily,有一线大厂面试点脑图,欢迎Star和完善 前言 这一期不算《吊打面试官》系列的,所有没前言我直接开始。 絮叨 本来应该是没有这期的,看过我上期的小伙伴应该是知道的嘛,双十一比较忙嘛,要值班又要去帮忙拍摄年会的视频素材,还得搞个程序员一天的Vlog,还要写BU
开源并不是你认为的那些事
点击上方蓝字 关注我们开源之道导读所以 ————想要理清开源是什么?先要厘清开源不是什么,名正言顺是句中国的古代成语,概念本身的理解非常之重要。大部分生物多样性的起源,...
加快推动区块链技术和产业创新发展,2019可信区块链峰会在京召开
      11月8日,由中国信息通信研究院、中国通信标准化协会、中国互联网协会、可信区块链推进计划联合主办,科技行者协办的2019可信区块链峰会将在北京悠唐皇冠假日酒店开幕。   区块链技术被认为是继蒸汽机、电力、互联网之后,下一代颠覆性的核心技术。如果说蒸汽机释放了人类的生产力,电力解决了人类基本的生活需求,互联网彻底改变了信息传递的方式,区块链作为构造信任的技术有重要的价值。   1
程序员把地府后台管理系统做出来了,还有3.0版本!12月7号最新消息:已在开发中有github地址
第一幕:缘起 听说阎王爷要做个生死簿后台管理系统,我们派去了一个程序员…… 996程序员做的梦: 第一场:团队招募 为了应对地府管理危机,阎王打算找“人”开发一套地府后台管理系统,于是就在地府总经办群中发了项目需求。 话说还是中国电信的信号好,地府都是满格,哈哈!!! 经常会有外行朋友问:看某网站做的不错,功能也简单,你帮忙做一下? 而这次,面对这样的需求,这个程序员
网易云6亿用户音乐推荐算法
网易云音乐是音乐爱好者的集聚地,云音乐推荐系统致力于通过 AI 算法的落地,实现用户千人千面的个性化推荐,为用户带来不一样的听歌体验。 本次分享重点介绍 AI 算法在音乐推荐中的应用实践,以及在算法落地过程中遇到的挑战和解决方案。 将从如下两个部分展开: AI 算法在音乐推荐中的应用 音乐场景下的 AI 思考 从 2013 年 4 月正式上线至今,网易云音乐平台持续提供着:乐屏社区、UGC
【技巧总结】位运算装逼指南
位算法的效率有多快我就不说,不信你可以去用 10 亿个数据模拟一下,今天给大家讲一讲位运算的一些经典例子。不过,最重要的不是看懂了这些例子就好,而是要在以后多去运用位运算这些技巧,当然,采用位运算,也是可以装逼的,不信,你往下看。我会从最简单的讲起,一道比一道难度递增,不过居然是讲技巧,那么也不会太难,相信你分分钟看懂。 判断奇偶数 判断一个数是基于还是偶数,相信很多人都做过,一般的做法的代码如下
《C++ Primer》学习笔记(六):C++模块设计——函数
专栏C++学习笔记 《C++ Primer》学习笔记/习题答案 总目录 https://blog.csdn.net/TeFuirnever/article/details/100700212 —————————————————————————————————————————————————————— 《C++ Primer》习题参考答案:第6章 - C++模块设计——函数 文章目录专栏C+...
8年经验面试官详解 Java 面试秘诀
    作者 | 胡书敏 责编 | 刘静 出品 | CSDN(ID:CSDNnews) 本人目前在一家知名外企担任架构师,而且最近八年来,在多家外企和互联网公司担任Java技术面试官,前后累计面试了有两三百位候选人。在本文里,就将结合本人的面试经验,针对Java初学者、Java初级开发和Java开发,给出若干准备简历和准备面试的建议。   Java程序员准备和投递简历的实
面试官如何考察你的思维方式?
1.两种思维方式在求职面试中,经常会考察这种问题:北京有多少量特斯拉汽车? 某胡同口的煎饼摊一年能卖出多少个煎饼? 深圳有多少个产品经理? 一辆公交车里能装下多少个乒乓球? 一
so easy! 10行代码写个"狗屁不通"文章生成器
前几天,GitHub 有个开源项目特别火,只要输入标题就可以生成一篇长长的文章。背后实现代码一定很复杂吧,里面一定有很多高深莫测的机器学习等复杂算法不过,当我看了源代码之后这程序不到50
知乎高赞:中国有什么拿得出手的开源软件产品?(整理自本人原创回答)
知乎高赞:中国有什么拿得出手的开源软件产品? 在知乎上,有个问题问“中国有什么拿得出手的开源软件产品(在 GitHub 等社区受欢迎度较好的)?” 事实上,还不少呢~ 本人于2019.7.6进行了较为全面的 回答 - Bravo Yeung,获得该问题下回答中得最高赞(236赞和1枚专业勋章),对这些受欢迎的 Github 开源项目分类整理如下: 分布式计算、云平台相关工具类 1.SkyWalk
MySQL数据库总结
文章目录一、数据库简介二、MySQL数据类型(5.5版本)三、Sql语句(1)Sql语句简介(2)数据定义语言DDLcreate,alter,drop(3)数据操纵语言DMLupdate,insert,delete(4)数据控制语言DCLgrant,revoke(5)数据查询语言DQLselect(6)分组查询与分页查询group by,limit四、完整性约束(单表)五、多表查询六、MySQL数
20行Python代码爬取王者荣耀全英雄皮肤
引言 王者荣耀大家都玩过吧,没玩过的也应该听说过,作为时下最火的手机MOBA游戏,咳咳,好像跑题了。我们今天的重点是爬取王者荣耀所有英雄的所有皮肤,而且仅仅使用20行Python代码即可完成。 准备工作 爬取皮肤本身并不难,难点在于分析,我们首先得得到皮肤图片的url地址,话不多说,我们马上来到王者荣耀的官网: 我们点击英雄资料,然后随意地选择一位英雄,接着F12打开调试台,找到英雄原皮肤的图片
中年危机,35 岁定律,见鬼去吧!
中年危机,35 岁定律,相信你都听说过,每次触及还会让你感到丝丝焦虑,毕竟时间这把杀猪刀不会放过任何一个人。中年危机或 35 岁定律是客观存在的,你迟早都会遭遇的,那你是否有信心战胜它呢? 中年危机之所以让人害怕,一则是你没有把握打赢这场遭遇战,再则中年是一个输不起的阶段。古人云:知己知彼,百战不殆。恐惧,主要源自对敌人和自己的不了解,不知道敌人的优劣势,也不清楚自己的长短板,常常以己之所短攻彼...
程序设计的5个底层逻辑,决定你能走多快
阿里妹导读:肉眼看计算机是由CPU、内存、显示器这些硬件设备组成,但大部分人从事的是软件开发工作。计算机底层原理就是连通硬件和软件的桥梁,理解计算机底层原理才能在程序设计这条路上越走越快,越走越轻松。从操作系统层面去理解高级编程语言的执行过程,会发现好多软件设计都是同一种套路,很多语言特性都依赖于底层机制,今天董鹏为你一一揭秘。 结合 CPU 理解一行 Java 代码是怎么执行的 根据冯·诺...
张小龙-年薪近3亿的微信之父,他是如何做到的?
张小龙生于湖南邵东魏家桥镇, 家庭主要特点:穷。 不仅自己穷,亲戚也都很穷,可以说穷以类聚。爷爷做过铜匠,总的来说,标准的劳动阶级出身。 家有兄弟两人, 一个小龙,一个小虎。 小虎好动,与邻里打成一片, 小龙好静,喜好读书。 “文静的像个妹子。”张小龙的表哥如是说。 穷文富武,做个读书郎是个不错的选择。 87年至94年, 华中科技大学本硕连读。 本科就读电信系, 不喜欢上课
阿里靠什么武功秘籍渡过“双十一“的天量冲击
双十一大概会产生多大的数据量呢,可能大家没概念,举个例子央视拍了这么多年电视新闻节目,几十年下来他存了大概80P的数据。而今年双11一天,阿里要处理970P的数据,做为一个IT人,笔者认为今年”双十一“阿里最大的技术看点有有以下两个: 阿里的数据库,也就是刚刚拿下TPC冠军的OcceanBase,处理峰值也达到了骇人听闻的6100万次/秒, 阿里核心系统百分百上云了。 如果把信息系统比做一个武
西游记团队中如果需要裁掉一个人,会先裁掉谁?
2019年互联网寒冬,大批企业开始裁员,下图是网上流传的一张截图: 裁员不可避免,那如何才能做到不管大环境如何变化,自身不受影响呢? 我们先来看一个有意思的故事,如果西游记取经团队需要裁员一名,会裁掉谁呢,为什么? 西游记团队组成: 1.唐僧 作为团队teamleader,有很坚韧的品性和极高的原则性,不达目的不罢休,遇到任何问题,都没有退缩过,又很得上司支持和赏识(直接得到唐太宗的任命,既给
iOS Bug 太多,苹果终于坐不住了!
开源的 Android 和闭源的 iOS,作为用户的你,更偏向哪一个呢? 整理 | 屠敏 出品 | CSDN(ID:CSDNnews) 毋庸置疑,当前移动设备操作系统市场中,Android 和 iOS 作为两大阵营,在相互竞争的同时不断演进。不过一直以来,开源的 Android 吸引了无数的手机厂商涌入其中,为其生态带来了百花齐放的盛景,但和神秘且闭源的 iOS 系统相比,不少网友...
究竟你适不适合买Mac?
我清晰的记得,刚买的macbook pro回到家,开机后第一件事情,就是上了淘宝网,花了500元钱,找了一个上门维修电脑的师傅,上门给我装了一个windows系统。。。。。。 表砍我。。。 当时买mac的初衷,只是想要个固态硬盘的笔记本,用来运行一些复杂的扑克软件。而看了当时所有的SSD笔记本后,最终决定,还是买个好(xiong)看(da)的。 已经有好几个朋友问我mba怎么样了,所以今天尽量客观...
Zookeeper的基本命令大全
1、列出节点 ls path ls -s path //包含该节点的详细信息,如子节点总数等 2、查看节点状态 stat path cZxid = 0x14f //创建节点的ID ctime = Thu Nov 07 01:02:53 CST 2019 //节点的创建时间 mZxid = 0x14f //修改节点ID mtime = Thu Nov 07 01:02:53 CST 2019 ...
程序员一般通过什么途径接私活?
二哥,你好,我想知道一般程序猿都如何接私活,我也想接,能告诉我一些方法吗? 上面是一个读者“烦不烦”问我的一个问题。其实不止是“烦不烦”,还有很多读者问过我类似这样的问题。 我接的私活不算多,挣到的钱也没有多少,加起来不到 20W。说实话,这个数目说出来我是有点心虚的,毕竟太少了,大家轻喷。但我想,恰好配得上“一般程序员”这个称号啊。毕竟苍蝇再小也是肉,我也算是有经验的人了。 唾弃接私活、做外...
相关热词 c# 输入ip c# 乱码 报表 c#选择结构应用基本算法 c# 收到udp包后回包 c#oracle 头文件 c# 序列化对象 自定义 c# tcp 心跳 c# ice连接服务端 c# md5 解密 c# 文字导航控件
立即提问