008.day06

day06笔记

一、业务场景分析

1. 需求内容

模拟顾客来到商场,浏览挑选商品,完成支付,离开商场的过程

2. 模型设计

根据需要,分析得出可以初步使用四个对象进行场景构建

  • 顾客
  • 商品
  • 店员
  • 商场

3. 详细设计

具体分析每个实体类应该具有的属性和行为,并初步定义填充

1422552-20180720175829528-2104445983.png

1. 顾客
  • 属性:金额,标识
  • 行为:进入商场,离开商场,浏览商品,挑选商品,支付买单
2. 商品
  • 属性:编号,名称,价格,库存,生产日期
  • 行为
3. 店员
  • 属性:
  • 行为:欢迎顾客,介绍商品,订单信息
4. 商场
  • 属性:名称,类型,地点
  • 行为

4. 业务实现

1. 分析业务流程

1422552-20180720191131216-907834436.png

2. 代码实现
        // 实例化一个商场对象
        Mall mall = new Mall("森马", "西部硅谷");
        // 实例化一个顾客对象
        Customer customer = new Customer("sand", 500f);
        // 进入商场
        customer.in(mall);
        // 实例化一个店员对象
        Service service = new Service();
        // 店员接待
        service.welcome();
        // 实例化一个商品对象
        Product product = new Product("01", "运动T恤", 200f, 20, "2018年5月");
        // 顾客浏览商品
        customer.serach(product);
        // 商品介绍,购买引导
        service.showProduct();
        // 初始化工具类
        Scanner scanner = new Scanner(System.in);
        // 读取用户的选择->使用true/false字符串
        boolean select = scanner.nextBoolean();
        // 发起购买
        if (select) {
            // 顾客付钱
            boolean result = customer.pay(product);
            if (result) {
                // 提供小票
                service.showOrder(customer,product);
            }else {
                // 支付失败
                System.out.println("下次再来");
            }
        }
        // 释放资源
        scanner.close();
        // 离开商场
        customer.leave();

二、Java数组

最近本的集合类型,可以装多个数据或引用类型的对象,数组本身也是引用类型

  • 定义方式:数据类型/引用类型[] 变量名称;
  • 定义方式:数据类型/引用类型 变量名称[];
int[] a;
int a[];// 不推荐使用
  • 存储方式:内存中的连续地址,引用指向首个元素地址
  • 静态初始化:在初始化时,数组中的元素已经确定
  • 动态初始化:指定数组长度,默认使用零值初始化
int[] a = new int[] {1,2,3,4,5};// 静态初始化标准形式 
int[] a = {5,6,7,8,9};// 静态初始化简写形式
int[] a = new int[5];// 动态初始化
  • 数组元素取用方式:通过索引下标->非负整数,从0开始,代表第一项
a[0] = 10;
System.out.println(a[1]);
  • 基本数据类型传递为值传递,数组及引用类型为地址传递
  • 使用final修饰的数组为引用不可变
final int[] a = new int[5];
int[] b = new int[3];
a[0] = 5;// 编译通过
a = b;// 编译不通过
  • 数组遍历方式:普通for循环,使用length属性获得数组的长度
  • 数组下标范围:0->length-1

三、异常

程序出现较为严重的问题,会触发java的异常处理机制

  • 预编译阶段(程序运行之前):进行异常检查(针对于可能出现异常的工具类等)
  • 运行时异常:在程序运行时出现的异常,如果没有手动处理,会出现异常提示信息
  • 数组下标越界:ArrayIndexOutOfBoundsException
int[] a = new 
  • 越界异常的原因:超出数组变量的管辖范围
  • 空指针异常:元素未实例化(在内存当中未分配空间)时,却调用了其中的方法或属性

四、扩展知识点

使用String中的toCharArray方法可以将某个字符串转换为一个字符数组,数组中的每个元素为字符串中的单个字符

        Scanner scanner = new Scanner(System.in);
        String number = scanner.nextLine();
        char[] a = number.toCharArray();
        for (char c : a) {
            System.out.println(c);
        }
        scanner.close();

转载于:https://www.cnblogs.com/yokii/p/9342816.html

06-17 03:01:00.882 1875 1875 D vendor.oplus.hardware.wifi-aidl-service: filePath is /vendor/bin/cat 06-17 03:01:00.882 1875 1875 D vendor.oplus.hardware.wifi-aidl-service: the in_command is:/vendor/bin/cat /sys/kernel/kiwi_v2/power_stats 06-17 03:01:00.882 1875 1875 E vendor.oplus.hardware.wifi-aidl-service: wifiPopen error 06-17 03:01:00.882 3198 7415 E OplusWifiHalServiceAidlImpl: IOplusWifiService.executeDriverCommandWithResult failed: android.os.ServiceSpecificException: (code 0) 06-17 03:01:00.883 1875 1875 D vendor.oplus.hardware.wifi-aidl-service: filePath is /vendor/bin/cat 06-17 03:01:00.883 1875 1875 D vendor.oplus.hardware.wifi-aidl-service: the in_command is:/vendor/bin/cat /sys/kernel/peach/power_stats 06-17 03:01:00.883 1875 1875 E vendor.oplus.hardware.wifi-aidl-service: wifiPopen error 06-17 03:01:00.883 3198 7415 E OplusWifiHalServiceAidlImpl: IOplusWifiService.executeDriverCommandWithResult failed: android.os.ServiceSpecificException: (code 0) 06-17 03:01:00.883 1875 1875 D vendor.oplus.hardware.wifi-aidl-service: filePath is /vendor/bin/cat 06-17 03:01:00.883 1875 1875 D vendor.oplus.hardware.wifi-aidl-service: the in_command is:/vendor/bin/cat /sys/kernel/peach_v2/power_stats 06-17 03:01:00.883 1875 1875 E vendor.oplus.hardware.wifi-aidl-service: wifiPopen error 06-17 03:01:00.884 3198 7415 E OplusWifiHalServiceAidlImpl: IOplusWifiService.executeDriverCommandWithResult failed: android.os.ServiceSpecificException: (code 0) 06-17 03:01:00.884 3198 7415 D OplusWifiPowerStatsManager: strStartIndex = 36 strEndIndex= 74 06-17 03:01:00.884 3198 7415 D OplusWifiPowerStatsManager: wlan fw idle time from open wifi : -1525478740 06-17 03:01:00.884 3198 7415 D OplusWifiPowerService: mSoftApIface is null 06-17 03:01:00.885 3198 7415 V OplusWifiPowerMcsTrxInfor: *****---> map:{wlan0_on_time=3842, wlan0_idleTimeMillis=3223, wlan0_tx_time=339, wlan0_rx_time=280, wlan0_on_time_scan=2108, wlan0_on_time_nan_scan=0, wlan0_on_time_bg_scan=0, wlan0_on_time_roam_scan=0, wlan0_on_time_pno_scan=320, wlan0_on_time_hs20_scan=0} 06-17 03:01:00.892 3198 7415 D OplusBatteryManager: getPsyBatteryRm: 1402 06-17 03:01:00.892 3198 7415 D OplusWifiPowerService: mStartBatteryCapacity = 1402 06-17 03:01:00.892 3198 7415 D OplusWifiPowerLogCollect: diable wifi collect power log , mIsEnableQcomCollectLog = 0 06-17 03:01:00.899 3198 3198 D OplusTetheringNotification: onReceive: action: android.intent.action.SCREEN_OFF 06-17 03:01:00.903 29625 29625 D StyleCardEventMonitor: onScrolled: dx = 0dy = 0 06-17 03:01:00.932 3198 4624 W OplusStorageManagerFeature: mScreenReceiver action:android.intent.action.SCREEN_OFF 06-17 03:01:00.933 5775 7147 I metis_v2_AppSwitchStateManager: isScreenOn:false isScreenIsLock:true,deviceState:,deviceTypeName [base|com.oplus.metis|1.5.5-f48228a] 06-17 03:01:00.934 3198 4624 W OplusStorageManagerFeature: turn screenOff, maintPrepared:false 06-17 03:01:00.935 3198 4624 W OplusStorageManagerFeature: sendToTarget over,paramStr:4 06-17 03:01:00.944 29625 29625 D StyleCardEventMonitor: onScrolled: dx = 0dy = 0 06-17 03:01:00.946 3198 4624 I OplusStorageManagerFeature: FsReserveSpace data partition fstype:f2fs 06-17 03:01:00.947 3198 4624 I OplusStorageManagerFeature: FsReserveSpace data device path:/dev/block/dm-98 06-17 03:01:00.952 3198 7415 D OplusBatteryManager: getPsyBatteryRm: 1400 06-17 03:01:00.953 1875 1875 D vendor.oplus.hardware.wifi-aidl-service: filePath is /vendor/bin/cat 06-17 03:01:00.953 1875 1875 D vendor.oplus.hardware.wifi-aidl-service: the in_command is:/vendor/bin/cat /sys/kernel/wifi/power_stats 06-17 03:01:00.953 1875 1875 E vendor.oplus.hardware.wifi-aidl-service: wifiPopen error 06-17 03:01:00.953 3198 7415 E OplusWifiHalServiceAidlImpl: IOplusWifiService.executeDriverCommandWithResult failed: android.os.ServiceSpecificException: (code 0) 06-17 03:01:00.954 1875 1875 D vendor.oplus.hardware.wifi-aidl-service: filePath is /vendor/bin/cat 06-17 03:01:00.954 1875 1875 D vendor.oplus.hardware.wifi-aidl-service: the in_command is:/vendor/bin/cat /sys/kernel/qca6390/power_stats 06-17 03:01:00.954 1875 1875 E vendor.oplus.hardware.wifi-aidl-service: wifiPopen error 06-17 03:01:00.954 3198 7415 E OplusWifiHalServiceAidlImpl: IOplusWifiService.executeDriverCommandWithResult failed: android.os.ServiceSpecificException: (code 0) 06-17 03:01:00.954 1875 1875 D vendor.oplus.hardware.wifi-aidl-service: filePath is /vendor/bin/cat 06-17 03:01:00.954 1875 1875 D vendor.oplus.hardware.wifi-aidl-service: the in_command is:/vendor/bin/cat /sys/kernel/qca6750/power_stats 06-17 03:01:00.954 1875 1875 E vendor.oplus.hardware.wifi-aidl-service: wifiPopen error 06-17 03:01:00.955 3198 7415 E OplusWifiHalServiceAidlImpl: IOplusWifiService.executeDriverCommandWithResult failed: android.os.ServiceSpecificException: (code 0) 06-17 03:01:00.955 1875 1875 D vendor.oplus.hardware.wifi-aidl-service: filePath is /vendor/bin/cat 06-17 03:01:00.955 1875 1875 D vendor.oplus.hardware.wifi-aidl-service: the in_command is:/vendor/bin/cat /sys/kernel/qca6490/power_stats 06-17 03:01:00.966 3198 4624 E OplusStorageManagerFeature: FsReserveSpace read data label failed.java.nio.file.NotLinkException: /dev/block/dm-98 06-17 03:01:00.966 3198 4624 E OplusStorageManagerFeature: at sun.nio.fs.UnixFileSystemProvider.readSymbolicLink(UnixFileSystemProvider.java:515) 06-17 03:01:00.966 3198 4624 E OplusStorageManagerFeature: at java.nio.file.Files.readSymbolicLink(Files.java:1432) 06-17 03:01:00.966 3198 4624 E OplusStorageManagerFeature: at com.android.server.storage.OplusStorageManagerFeature.onMessageFsReserveSpace(OplusStorageManagerFeature.java:2159) 06-17 03:01:00.966 3198 4624 E OplusStorageManagerFeature: at com.android.server.storage.OplusStorageManagerFeature.onStorageManagerMessageHandle(OplusStorageManagerFeature.java:1521) 06-17 03:01:00.966 3198 4624 E OplusStorageManagerFeature: at com.android.server.StorageManagerService$StorageManagerServiceHandler.handleMessage(StorageManagerService.java:790) 06-17 03:01:00.966 3198 4624 E OplusStorageManagerFeature: at android.os.Handler.dispatchMessage(Handler.java:107) 06-17 03:01:00.966 3198 4624 E OplusStorageManagerFeature: at android.os.Looper.loopOnce(Looper.java:282) 06-17 03:01:00.966 3198 4624 E OplusStorageManagerFeature: at android.os.Looper.loop(Looper.java:387) 06-17 03:01:00.966 3198 4624 E OplusStorageManagerFeature: at android.os.HandlerThread.run(HandlerThread.java:85) 06-17 03:01:00.966 3198 4624 I OplusStorageManagerFeature: FsReserveSpace data label:dm-98 06-17 03:01:00.966 1875 1875 D vendor.oplus.hardware.wifi-aidl-service: the buf of executeDriverCommand is POWER DEBUG STATS 06-17 03:01:00.966 1875 1875 D vendor.oplus.hardware.wifi-aidl-service: , remain_len is 4096 06-17 03:01:00.970 1875 1875 D vendor.oplus.hardware.wifi-aidl-service: the buf of executeDriverCommand is ================= 06-17 03:01:00.970 1875 1875 D vendor.oplus.hardware.wifi-aidl-service: , remain_len is 4078 06-17 03:01:00.970 1875 1875 D vendor.oplus.hardware.wifi-aidl-service: the buf of executeDriverCommand is cumulative_sleep_time_ms: -1525478678 06-17 03:01:00.970 1875 1875 D vendor.oplus.hardware.wifi-aidl-service: , remain_len is 4060 06-17 03:01:00.970 1875 1875 D vendor.oplus.hardware.wifi-aidl-service: the buf of executeDriverCommand is cumulative_total_on_time_ms: 317414745 06-17 03:01:00.970 1875 1875 D vendor.oplus.hardware.wifi-aidl-service: , remain_len is 4022 06-17 03:01:00.970 1875 1875 D vendor.oplus.hardware.wifi-aidl-service: the buf of executeDriverCommand is deep_sleep_enter_counter: 2178774 06-17 03:01:00.970 1875 1875 D vendor.oplus.hardware.wifi-aidl-service: , remain_len is 3983 06-17 03:01:00.970 1875 1875 D vendor.oplus.hardware.wifi-aidl-service: the buf of executeDriverCommand is last_deep_sleep_enter_tstamp_ms: 0 06-17 03:01:00.970 1875 1875 D vendor.oplus.hardware.wifi-aidl-service: , remain_len is 3949 06-17 03:01:00.970 1875 1875 D vendor.oplus.hardware.wifi-aidl-service: the buf of executeDriverCommand is debug_register_fmt: 0 06-17 03:01:00.970 1875 1875 D vendor.oplus.hardware.wifi-aidl-service: , remain_len is 3914 06-17 03:01:00.971 1875 1875 D vendor.oplus.hardware.wifi-aidl-service: the buf of executeDriverCommand is num_debug_register: 20 06-17 03:01:00.971 1875 1875 D vendor.oplus.hardware.wifi-aidl-service: , remain_len is 3892 06-17 03:01:00.971 1875 1875 D vendor.oplus.hardware.wifi-aidl-service: the buf of executeDriverCommand is debug_registers[0]: 0x0 06-17 03:01:00.971 1875 1875 D vendor.oplus.hardware.wifi-aidl-service: , remain_len is 3869 06-17 03:01:00.971 1875 1875 D vendor.oplus.hardware.wifi-aidl-service: the buf of executeDriverCommand is debug_registers[1]: 0x76a269e 06-17 03:01:00.971 1875 1875 D vendor.oplus.hardware.wifi-aidl-service: , remain_len is 3845 06-17 03:01:00.971 1875 1875 D vendor.oplus.hardware.wifi-aidl-service: the buf of executeDriverCommand is debug_registers[2]: 0x68713 06-17 03:01:00.971 1875 1875 D vendor.oplus.hardware.wifi-aidl-service: , remain_len is 3815 06-17 03:01:00.971 1875 1875 D vendor.oplus.hardware.wifi-aidl-service: the buf of executeDriverCommand is debug_registers[3]: 0x23513dc6 06-17 03:01:00.971 1875 1875 D vendor.oplus.hardware.wifi-aidl-service: , remain_len is 3787 06-17 03:01:00.971 1875 1875 D vendor.oplus.hardware.wifi-aidl-service: the buf of executeDriverCommand is debug_registers[4]: 0xc2705 06-17 03:01:00.971 1875 1875 D vendor.oplus.hardware.wifi-aidl-service: , remain_len is 3756 06-17 03:01:00.971 1875 1875 D vendor.oplus.hardware.wifi-aidl-service: the buf of executeDriverCommand is debug_registers[5]: 0x107784 06-17 03:01:00.971 1875 1875 D vendor.oplus.hardware.wifi-aidl-service: , remain_len is 3728 06-17 03:01:00.971 1875 1875 D vendor.oplus.hardware.wifi-aidl-service: the buf of executeDriverCommand is debug_registers[6]: 0x0 06-17 03:01:00.971 1875 1875 D vendor.oplus.hardware.wifi-aidl-service: , remain_len is 3699 06-17 03:01:00.971 1875 1875 D vendor.oplus.hardware.wifi-aidl-service: the buf of executeDriverCommand is debug_registers[7]: 0x0 06-17 03:01:00.971 1875 1875 D vendor.oplus.hardware.wifi-aidl-service: , remain_len is 3675 06-17 03:01:00.971 1875 1875 D vendor.oplus.hardware.wifi-aidl-service: the buf of executeDriverCommand is debug_registers[8]: 0x8d354b65 06-17 03:01:00.971 1875 1875 D vendor.oplus.hardware.wifi-aidl-service: , remain_len is 3651 06-17 03:01:00.971 1875 1875 D vendor.oplus.hardware.wifi-aidl-service: the buf of executeDriverCommand is debug_registers[9]: 0x84da 06-17 03:01:00.971 1875 1875 D vendor.oplus.hardware.wifi-aidl-service: , remain_len is 3620 06-17 03:01:00.971 1875 1875 D vendor.oplus.hardware.wifi-aidl-service: the buf of executeDriverCommand is debug_registers[10]: 0x0 06-17 03:01:00.971 1875 1875 D vendor.oplus.hardware.wifi-aidl-service: , remain_len is 3593 06-17 03:01:00.971 1875 1875 D vendor.oplus.hardware.wifi-aidl-service: the buf of executeDriverCommand is debug_registers[11]: 0xb303011 06-17 03:01:00.971 1875 1875 D vendor.oplus.hardware.wifi-aidl-service: , remain_len is 3568 06-17 03:01:00.971 1875 1875 D vendor.oplus.hardware.wifi-aidl-service: the buf of executeDriverCommand is debug_registers[12]: 0xd14ab 06-17 03:01:00.971 1875 1875 D vendor.oplus.hardware.wifi-aidl-service: , remain_len is 3537 06-17 03:01:00.971 1875 1875 D vendor.oplus.hardware.wifi-aidl-service: the buf of executeDriverCommand is debug_registers[13]: 0x3cc35b3a 06-17 03:01:00.971 1875 1875 D vendor.oplus.hardware.wifi-aidl-service: , remain_len is 3508 06-17 03:01:00.971 1875 1875 D vendor.oplus.hardware.wifi-aidl-service: the buf of executeDriverCommand is debug_registers[14]: 0xd271b 06-17 03:01:00.971 1875 1875 D vendor.oplus.hardware.wifi-aidl-service: , remain_len is 3476 06-17 03:01:00.971 1875 1875 D vendor.oplus.hardware.wifi-aidl-service: the buf of executeDriverCommand is debug_registers[15]: 0xd76f6 06-17 03:01:00.971 1875 1875 D vendor.oplus.hardware.wifi-aidl-service: , remain_len is 3447 06-17 03:01:00.971 1875 1875 D vendor.oplus.hardware.wifi-aidl-service: the buf of executeDriverCommand is debug_registers[16]: 0x0 06-17 03:01:00.971 1875 1875 D vendor.oplus.hardware.wifi-aidl-service: , remain_len is 3418 06-17 03:01:00.971 1875 1875 D vendor.oplus.hardware.wifi-aidl-service: the buf of executeDriverCommand is debug_registers[17]: 0x0 06-17 03:01:00.971 1875 1875 D vendor.oplus.hardware.wifi-aidl-service: , remain_len is 3393 06-17 03:01:00.971 1875 1875 D vendor.oplus.hardware.wifi-aidl-service: the buf of executeDriverCommand is debug_registers[18]: 0x6ffed24b 06-17 03:01:00.971 1875 1875 D vendor.oplus.hardware.wifi-aidl-service: , remain_len is 3368 06-17 03:01:00.971 1875 1875 D vendor.oplus.hardware.wifi-aidl-service: the buf of executeDriverCommand is debug_registers[19]: 0x51cf 06-17 03:01:00.971 1875 1875 D vendor.oplus.hardware.wifi-aidl-service: , remain_len is 3336 06-17 03:01:00.972 3198 7415 D OplusWifiPowerStatsManager: getQcomFwActiviteTime = POWER DEBUG STATS 06-17 03:01:00.972 3198 7415 D OplusWifiPowerStatsManager: ================= 06-17 03:01:00.972 3198 7415 D OplusWifiPowerStatsManager: cumulative_sleep_time_ms: -1525478678 06-17 03:01:00.972 3198 7415 D OplusWifiPowerStatsManager: cumulative_total_on_time_ms: 317414745 06-17 03:01:00.972 3198 7415 D OplusWifiPowerStatsManager: deep_sleep_enter_counter: 2178774 06-17 03:01:00.972 3198 7415 D OplusWifiPowerStatsManager: last_deep_sleep_enter_tstamp_ms: 0 06-17 03:01:00.972 3198 7415 D OplusWifiPowerStatsManager: debug_register_fmt: 0 06-17 03:01:00.972 3198 7415 D OplusWifiPowerStatsManager: num_debug_register: 20 06-17 03:01:00.972 3198 7415 D OplusWifiPowerStatsManager: debug_registers[0]: 0x0 06-17 03:01:00.972 3198 7415 D OplusWifiPowerStatsManager: debug_registers[1]: 0x76a269e 06-17 03:01:00.972 3198 7415 D OplusWifiPowerStatsManager: debug_registers[2]: 0x68713 06-17 03:01:00.972 3198 7415 D OplusWifiPowerStatsManager: debug_registers[3]: 0x23513dc6 06-17 03:01:00.972 3198 7415 D OplusWifiPowerStatsManager: debug_registers[4]: 0xc2705 06-17 03:01:00.972 3198 7415 D OplusWifiPowerStatsManager: debug_registers[5]: 0x107784 06-17 03:01:00.972 3198 7415 D OplusWifiPowerStatsManager: debug_registers[6]: 0x0 06-17 03:01:00.972 3198 7415 D OplusWifiPowerStatsManager: debug_registers[7]: 0x0 06-17 03:01:00.972 3198 7415 D OplusWifiPowerStatsManager: debug_registers[8]: 0x8d354b65 06-17 03:01:00.972 3198 7415 D OplusWifiPowerStatsManager: debug_registers[9]: 0x84da 06-17 03:01:00.972 3198 7415 D OplusWifiPowerStatsManager: debug_registers[10]: 0x0 06-17 03:01:00.972 3198 7415 D OplusWifiPowerStatsManager: debug_registers[11]: 0xb303011 06-17 03:01:00.972 3198 7415 D OplusWifiPowerStatsManager: debug_registers[12]: 0xd14ab 06-17 03:01:00.972 3198 7415 D OplusWifiPowerStatsManager: debug_registers[13]: 0x3cc35b3a 06-17 03:01:00.972 3198 7415 D OplusWifiPowerStatsManager: debug_registers[14]: 0xd271b 06-17 03:01:00.972 3198 7415 D OplusWifiPowerStatsManager: debug_registers[15]: 0xd76f6 06-17 03:01:00.972 3198 7415 D OplusWifiPowerStatsManager: debug_registers[16]: 0x0 06-17 03:01:00.972 3198 7415 D OplusWifiPowerStatsManager: debug_registers[17]: 0x0 06-17 03:01:00.972 3198 7415 D OplusWifiPowerStatsManager: debug_registers[18]: 0x6ffed24b 06-17 03:01:00.972 3198 7415 D OplusWifiPowerStatsManager: debug_registers[19]: 0x51cf 06-17 03:01:00.973 1875 1875 D vendor.oplus.hardware.wifi-aidl-service: filePath is /vendor/bin/cat 06-17 03:01:00.973 1875 1875 D vendor.oplus.hardware.wifi-aidl-service: the in_command is:/vendor/bin/cat /sys/kernel/kiwi_v2/power_stats 06-17 03:01:00.973 1875 1875 E vendor.oplus.hardware.wifi-aidl-service: wifiPopen error 06-17 03:01:00.973 3198 7415 E OplusWifiHalServiceAidlImpl: IOplusWifiService.executeDriverCommandWithResult failed: android.os.ServiceSpecificException: (code 0) 06-17 03:01:00.973 1875 1875 D vendor.oplus.hardware.wifi-aidl-service: filePath is /vendor/bin/cat 06-17 03:01:00.973 1875 1875 D vendor.oplus.hardware.wifi-aidl-service: the in_command is:/vendor/bin/cat /sys/kernel/peach/power_stats 06-17 03:01:00.973 1875 1875 E vendor.oplus.hardware.wifi-aidl-service: wifiPopen error 06-17 03:01:00.973 3198 7415 E OplusWifiHalServiceAidlImpl: IOplusWifiService.executeDriverCommandWithResult failed: android.os.ServiceSpecificException: (code 0) 06-17 03:01:00.974 1875 1875 D vendor.oplus.hardware.wifi-aidl-service: filePath is /vendor/bin/cat 06-17 03:01:00.974 1875 1875 D vendor.oplus.hardware.wifi-aidl-service: the in_command is:/vendor/bin/cat /sys/kernel/peach_v2/power_stats 06-17 03:01:00.974 1875 1875 E vendor.oplus.hardware.wifi-aidl-service: wifiPopen error 06-17 03:01:00.975 3198 7415 E OplusWifiHalServiceAidlImpl: IOplusWifiService.executeDriverCommandWithResult failed: android.os.ServiceSpecificException: (code 0) 06-17 03:01:00.975 3198 7415 D OplusWifiPowerStatsManager: strStartIndex = 36 strEndIndex= 74 06-17 03:01:00.975 3198 7415 D OplusWifiPowerStatsManager: wlan fw idle time from open wifi : -1525478678 06-17 03:01:00.977 29625 29625 D StyleCardEventMonitor: onScrolled: dx = 0dy = 0 06-17 03:01:00.994 1248 1253 I android.system.suspend-service: Last release wakelock name = PowerManagerService.Broadcasts 06-17 03:01:00.994 1248 1253 I android.system.suspend-service: mAutosuspendEnabled=1 06-17 03:01:00.994 1248 15298 I android.system.suspend-service: Start checking autosuspend client... 06-17 03:01:00.995 1248 15298 I android.system.suspend-service: autosuspend client checking completed. 06-17 03:01:00.995 1248 15298 I android.system.suspend-service: Start checking autosuspend client... 06-17 03:01:00.995 1248 15298 I android.system.suspend-service: autosuspend client checking completed. 06-17 03:01:00.995 1248 15298 I android.system.suspend-service: Android start to suspend... 06-17 03:01:01.010 29625 29625 D StyleCardEventMonitor: onScrolled: dx = 0dy = 0 06-17 03:01:01.043 29625 29625 D StyleCardEventMonitor: onScrolled: dx = 0dy = 0 06-17 03:01:03.977 1249 12660 I keystore2: system/security/keystore2/watchdog/src/lib.rs:319 - Watchdog thread idle -> terminating. Have a great day. 06-17 03:01:03.980 1798 14927 I QC2Comp : [avcD_34552] Stats: Pending(0) i/p-done(0) Works: Q: 0/Done 0|Work-Rate: Q(0.0/s Avg=0.0/s) Done(0.000/s Avg=0.000/s)| Stream: 30.00fps 0.0Kbps 06-17 03:01:03.980 1798 14927 I QC2Comp : [avcD_34552] Mem-usage: | Total: 0.000 MB 06-17 03:01:03.980 1971 2397 D VRR [OTI]: handleIdle from 0 to 1 06-17 03:01:03.981 1971 2397 D VRR [OTI-HW]: isStateReady 0 06-17 03:01:03.981 1971 2397 D VRR [OTI-HW]: rate range: min {id=1, hwcId=1, resolution=1080x2412, vsyncRate=60.00 Hz, dpi=391.89x392.72, group=0, vrrConfig=N/A} cur {id=0, hwcId=0, resolution=1080x2412, vsyncRate=120.00 Hz, dpi=391.89x392.72, group=0, vrrConfig=N/A} max {id=0, hwcId=0, resolution=1080x2412, vsyncRate=120.00 Hz, dpi=391.89x392.72, group=0, vrrConfig=N/A} 06-17 03:01:03.981 1971 2397 D VRR [OTI-HW]: keep rate. 06-17 03:01:03.991 1629 1709 E minksocket: MinkIPC_QRTR_Service: client with node 1 port 5d78 went down 06-17 03:01:03.992 3613 3617 E Diag_Lib: [IMS_AP]"ims-rtp-daemon ims_rtp_qmi_handler_thread_func waiting on select thread>" 06-17 03:01:03.996 7560 7764 W Looper : Slow delivery took 2901ms SysUiBg h=com.android.systemui.appops.AppOpsControllerImpl$H c=com.android.systemui.appops.AppOpsControllerImpl$H$1@88bc2b2 m=0 06-17 03:01:03.996 7560 7764 W Looper : Drained 06-17 03:01:03.996 10127 14685 D gaia-GaiaConnectChecker: start connect check++ 06-17 03:01:03.997 1001 6750 D CustomLogManagerService: WorkHandler msg.what :5 06-17 03:01:04.000 16127 8880 D QualityProtectService: handleMessage: 2 06-17 03:01:04.000 16127 8880 I QualityProtectService: mStartReason: performance_data_collect 06-17 03:01:04.000 16127 8880 I QualityProtectProcessorManager: already startMonitor, do nothing 06-17 03:01:04.000 16127 8880 D QualityProtectService: perfDataReportCheck not ok 06-17 03:01:04.001 10127 16667 D gaia-GaiaConnectChecker: start connect check++ 06-17 03:01:04.002 2162 2162 E AwakeServiceAnr4Main: [anrCheckRunnable],start execute check runnable. 06-17 03:01:04.008 7560 10306 I PluginSeedling--Origin: OSenseManager-->isMEMHighPressure oldState:false newState: false isMEMHighPressure:false 06-17 03:01:04.009 1629 1709 E minksocket: MinkIPC_QRTR_Service: client with node 1 port 5d79 went down 06-17 03:01:04.009 3613 3617 E Diag_Lib: [IMS_AP]"ims-rtp-daemon ims_rtp_qmi_handler_thread_func waiting on select thread>" 06-17 03:01:04.011 3198 7464 E OplusUIFirst_TS: Failed to connect bpf bin: -1 06-17 03:01:04.011 12802 13808 E AwakeServiceAnr4UI: [linkToMainProcess],receive callback,isAwakeUIServiceInit=true 06-17 03:01:04.015 29625 29625 D StyleCardEventMonitor: onScrolled: dx = 0dy = 0 06-17 03:01:04.017 1629 1709 E minksocket: MinkIPC_QRTR_Service: client with node 1 port 5d7a went down 06-17 03:01:04.017 3613 3617 E Diag_Lib: [IMS_AP]"ims-rtp-daemon ims_rtp_qmi_handler_thread_func waiting on select thread>" 06-17 03:01:04.020 3198 7438 D CompatChangeReporter: Compat change id reported: 151861875; UID 10125; state: ENABLED 06-17 03:01:04.020 7560 7567 I ndroid.systemui: gc_priority_optimize ctrlAppThreadUx sharedAppUxFd=892pid=7560tid=7567value=130 ret=2 06-17 03:01:04.024 1629 1709 E minksocket: MinkIPC_QRTR_Service: client with node 1 port 5d7b went down 06-17 03:01:04.025 3613 3617 E Diag_Lib: [IMS_AP]"ims-rtp-daemon ims_rtp_qmi_handler_thread_func waiting on select thread>" 06-17 03:01:04.036 1001 6750 D CustomLogManagerService: curTemp:270 limit:390 06-17 03:01:04.036 1001 6750 D CustomLogManagerService: checkUploadStatus: isSceenOn=false activeNetType=1 isCharging=false isUploading:false temperatureLimit:false 06-17 03:01:04.036 1001 6750 D CustomLogManagerService: sys.log.customer=false 06-17 03:01:04.036 1001 6750 D CustomLogManagerService: isHaveCustomLogCollecting :false 06-17 03:01:04.037 3198 4624 W libc : Unable to set property "persist.sys.oppo.fsReservedBlocks" to "283438": PROP_ERROR_READ_DATA (0x8) 06-17 03:01:04.043 3198 7438 V GrammaticalInflectionUtils: AttributionSource: android.content.AttributionSource@c67bc4f2 does not have READ_SYSTEM_GRAMMATICAL_GENDER permission. 06-17 03:01:04.045 7560 7567 I ndroid.systemui: gc_priority_optimize ctrlAppThreadUx sharedAppUxFd=892pid=7560tid=7567value=768 ret=0 06-17 03:01:04.048 29625 29625 D StyleCardEventMonitor: onScrolled: dx = 0dy = 0 06-17 03:01:04.049 1561 30360 E TetherController: property_get sys.radio.data.modem_share_flag return 0, 1! 06-17 03:01:04.050 3198 3198 W Looper : Slow delivery took 2828ms main h=android.os.Handler c=com.android.server.theia.TheiaSystemJankDecteor$1@95930c8 m=0 06-17 03:01:04.050 3198 3502 D VRR [OPlusGameStatusManager]: handleMessage: 7004 06-17 03:01:04.050 3198 3502 D VRR [OPlusGameStatusManager]: handleBrightnessDone 06-17 03:01:04.050 3198 7437 D OplusOwmMonitorCenter: apName Sync to OWM in Helper: 06-17 03:01:04.050 3198 4624 E AndroidRuntime: *** FATAL EXCEPTION IN SYSTEM PROCESS: StorageManagerService 06-17 03:01:04.050 3198 4624 E AndroidRuntime: java.lang.RuntimeException: failed to set system property "persist.sys.oppo.fsReservedBlocks" to "283438" (check logcat for reason) 06-17 03:01:04.050 3198 4624 E AndroidRuntime: at android.os.SystemProperties.native_set(Native Method) 06-17 03:01:04.050 3198 4624 E AndroidRuntime: at android.os.SystemProperties.set(SystemProperties.java:267) 06-17 03:01:04.050 3198 4624 E AndroidRuntime: at com.android.server.storage.OplusStorageManagerFeature.onMessageFsReserveSpace(OplusStorageManagerFeature.java:2229) 06-17 03:01:04.050 3198 4624 E AndroidRuntime: at com.android.server.storage.OplusStorageManagerFeature.onStorageManagerMessageHandle(OplusStorageManagerFeature.java:1521) 06-17 03:01:04.050 3198 4624 E AndroidRuntime: at com.android.server.StorageManagerService$StorageManagerServiceHandler.handleMessage(StorageManagerService.java:790) 06-17 03:01:04.050 3198 4624 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:107) 06-17 03:01:04.050 3198 4624 E AndroidRuntime: at android.os.Looper.loopOnce(Looper.java:282) 06-17 03:01:04.050 3198 4624 E AndroidRuntime: at android.os.Looper.loop(Looper.java:387) 06-17 03:01:04.050 3198 4624 E AndroidRuntime: at android.os.HandlerThread.run(HandlerThread.java:85) 06-17 03:01:04.050 3198 7365 I MR2ServiceImpl: Updating composite discovery preference | preference: RouteDiscoveryRequest{ preferredFeatures={}, activeScan=false }, active routers: [] 06-17 03:01:04.051 3198 7603 I Osense-PsiDetector: 1915,234,4581,7679,41,270,251,1807,1964,620,1141,0,8,7618
07-09
index.jsp报错D:\Tomcat\apache-tomcat-9.0.106\bin\catalina.bat run [2025-07-01 03:55:59,898] Artifact day06_html:war exploded: Waiting for server connection to start artifact deployment... Using CATALINA_BASE: "C:\Users\qwert\AppData\Local\JetBrains\IntelliJIdea2023.2\tomcat\ddea4547-3ed0-45cb-b5a4-7fcfab64cce9" Using CATALINA_HOME: "D:\Tomcat\apache-tomcat-9.0.106" Using CATALINA_TMPDIR: "D:\Tomcat\apache-tomcat-9.0.106\temp" Using JRE_HOME: "D:\Java\jdk" Using CLASSPATH: "D:\Tomcat\apache-tomcat-9.0.106\bin\bootstrap.jar;D:\Tomcat\apache-tomcat-9.0.106\bin\tomcat-juli.jar" Using CATALINA_OPTS: "" 01-Jul-2025 15:56:00.873 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Server.服务器版本: Apache Tomcat/9.0.106 01-Jul-2025 15:56:00.874 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log 服务器构建: Jun 5 2025 19:02:30 UTC 01-Jul-2025 15:56:00.874 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log 服务器版本号: 9.0.106.0 01-Jul-2025 15:56:00.874 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log 操作系统名称: Windows 10 01-Jul-2025 15:56:00.874 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log OS.版本: 10.0 01-Jul-2025 15:56:00.874 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log 架构: amd64 01-Jul-2025 15:56:00.874 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Java 环境变量: D:\Java\jdk\jre 01-Jul-2025 15:56:00.874 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Java虚拟机版本: 1.8.0_202-b08 01-Jul-2025 15:56:00.874 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log JVM.供应商: Oracle Corporation 01-Jul-2025 15:56:00.875 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_BASE: C:\Users\qwert\AppData\Local\JetBrains\IntelliJIdea2023.2\tomcat\ddea4547-3ed0-45cb-b5a4-7fcfab64cce9 01-Jul-2025 15:56:00.875 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_HOME: D:\Tomcat\apache-tomcat-9.0.106 01-Jul-2025 15:56:00.875 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log 命令行参数: -Djava.util.logging.config.file=C:\Users\qwert\AppData\Local\JetBrains\IntelliJIdea2023.2\tomcat\ddea4547-3ed0-45cb-b5a4-7fcfab64cce9\conf\logging.properties 01-Jul-2025 15:56:00.875 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log 命令行参数: -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager 01-Jul-2025 15:56:00.875 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log 命令行参数: -Dcom.sun.management.jmxremote= 01-Jul-2025 15:56:00.875 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log 命令行参数: -Dcom.sun.management.jmxremote.port=1099 01-Jul-2025 15:56:00.875 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log 命令行参数: -Dcom.sun.management.jmxremote.ssl=false 01-Jul-2025 15:56:00.875 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log 命令行参数: -Dcom.sun.management.jmxremote.password.file=C:\Users\qwert\AppData\Local\JetBrains\IntelliJIdea2023.2\tomcat\ddea4547-3ed0-45cb-b5a4-7fcfab64cce9\jmxremote.password 01-Jul-2025 15:56:00.875 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log 命令行参数: -Dcom.sun.management.jmxremote.access.file=C:\Users\qwert\AppData\Local\JetBrains\IntelliJIdea2023.2\tomcat\ddea4547-3ed0-45cb-b5a4-7fcfab64cce9\jmxremote.access 01-Jul-2025 15:56:00.875 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log 命令行参数: -Djava.rmi.server.hostname=127.0.0.1 01-Jul-2025 15:56:00.875 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log 命令行参数: -Djdk.tls.ephemeralDHKeySize=2048 01-Jul-2025 15:56:00.875 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log 命令行参数: -Djava.protocol.handler.pkgs=org.apache.catalina.webresources 01-Jul-2025 15:56:00.875 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log 命令行参数: -Dsun.io.useCanonCaches=false 01-Jul-2025 15:56:00.875 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log 命令行参数: -Dignore.endorsed.dirs= 01-Jul-2025 15:56:00.875 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log 命令行参数: -Dcatalina.base=C:\Users\qwert\AppData\Local\JetBrains\IntelliJIdea2023.2\tomcat\ddea4547-3ed0-45cb-b5a4-7fcfab64cce9 01-Jul-2025 15:56:00.875 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log 命令行参数: -Dcatalina.home=D:\Tomcat\apache-tomcat-9.0.106 01-Jul-2025 15:56:00.875 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log 命令行参数: -Djava.io.tmpdir=D:\Tomcat\apache-tomcat-9.0.106\temp 01-Jul-2025 15:56:00.877 信息 [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent 使用APR版本[1.7.4]加载了基于APR的Apache Tomcat本机库[1.3.1]。 01-Jul-2025 15:56:00.878 信息 [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent APR功能:IPv6[true]、sendfile[true]、accept filters[false]、random[true]、UDS [true]。 01-Jul-2025 15:56:00.878 信息 [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent APR/OpenSSL配置:useAprConnector[false],useOpenSSL[true] 01-Jul-2025 15:56:00.881 信息 [main] org.apache.catalina.core.AprLifecycleListener.initializeSSL OpenSSL成功初始化 [OpenSSL 3.0.14 4 Jun 2024] 01-Jul-2025 15:56:01.008 信息 [main] org.apache.coyote.AbstractProtocol.init 初始化协议处理器 ["http-nio-8080"] 01-Jul-2025 15:56:01.017 信息 [main] org.apache.catalina.startup.Catalina.load 服务器在[252]毫秒内初始化 01-Jul-2025 15:56:01.030 信息 [main] org.apache.catalina.core.StandardService.startInternal 正在启动服务[Catalina] 01-Jul-2025 15:56:01.030 信息 [main] org.apache.catalina.core.StandardEngine.startInternal 正在启动 Servlet 引擎:[Apache Tomcat/9.0.106] 01-Jul-2025 15:56:01.038 信息 [main] org.apache.coyote.AbstractProtocol.start 开始协议处理句柄["http-nio-8080"] 01-Jul-2025 15:56:01.046 信息 [main] org.apache.catalina.startup.Catalina.start [29]毫秒后服务器启动 Connected to server [2025-07-01 03:56:01,432] Artifact day06_html:war exploded: Artifact is being deployed, please wait... [2025-07-01 03:56:01,678] Artifact day06_html:war exploded: Artifact is deployed successfully [2025-07-01 03:56:01,678] Artifact day06_html:war exploded: Deploy took 246 milliseconds 01-Jul-2025 15:56:11.048 信息 [Catalina-utility-2] org.apache.catalina.startup.HostConfig.deployDirectory 把web 应用程序部署到目录 [D:\Tomcat\apache-tomcat-9.0.106\webapps\manager] 01-Jul-2025 15:56:11.078 信息 [Catalina-utility-2] org.apache.catalina.startup.HostConfig.deployDirectory Web应用程序目录[D:\Tomcat\apache-tomcat-9.0.106\webapps\manager]的部署已在[30]毫秒内完成 D:\Tomcat\apache-tomcat-9.0.106\bin\catalina.bat stop Using CATALINA_BASE: "C:\Users\qwert\AppData\Local\JetBrains\IntelliJIdea2023.2\tomcat\ddea4547-3ed0-45cb-b5a4-7fcfab64cce9" Using CATALINA_HOME: "D:\Tomcat\apache-tomcat-9.0.106" Using CATALINA_TMPDIR: "D:\Tomcat\apache-tomcat-9.0.106\temp" Using JRE_HOME: "D:\Java\jdk" Using CLASSPATH: "D:\Tomcat\apache-tomcat-9.0.106\bin\bootstrap.jar;D:\Tomcat\apache-tomcat-9.0.106\bin\tomcat-juli.jar" Using CATALINA_OPTS: "" 01-Jul-2025 16:05:02.693 信息 [main] org.apache.catalina.core.StandardServer.await 通过关闭端口接收到有效的关闭命令。正在停止服务器实例。 01-Jul-2025 16:05:02.693 信息 [main] org.apache.coyote.AbstractProtocol.pause 暂停ProtocolHandler["http-nio-8080"] 01-Jul-2025 16:05:03.220 信息 [main] org.apache.catalina.core.StandardService.stopInternal 正在停止服务[Catalina] 01-Jul-2025 16:05:03.229 信息 [main] org.apache.coyote.AbstractProtocol.stop 正在停止ProtocolHandler ["http-nio-8080"] 01-Jul-2025 16:05:03.231 信息 [main] org.apache.coyote.AbstractProtocol.destroy 正在销毁协议处理器 ["http-nio-8080"] Disconnected from server
07-02
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符  | 博主筛选后可见
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值