{"record":{"id":"b2445d7be668bb6e","repo":"pinpoint-apm/pinpoint","slug":"invalid-application-type-configured-defaulti","errorCode":null,"errorMessage":"Invalid application type configured : {}, defaulting to {}","messagePattern":"Invalid application type configured : (.+?), defaulting to (.+?)","errorType":"console","errorClass":null,"httpStatus":null,"severity":"warning","filePath":"agent-module/profiler/src/main/java/com/navercorp/pinpoint/profiler/context/provider/ConfiguredApplicationTypeProvider.java","lineNumber":58,"sourceCode":"    public ConfiguredApplicationTypeProvider(InstrumentConfig instrumentConfig, ServiceTypeRegistryService serviceTypeRegistryService) {\n        Objects.requireNonNull(instrumentConfig, \"instrumentConfig\");\n        this.serviceTypeRegistryService = Objects.requireNonNull(serviceTypeRegistryService, \"serviceTypeRegistryService\");\n        this.applicationTypeString = instrumentConfig.getApplicationServerType();\n    }\n\n    @Override\n    public ServiceType get() {\n        ServiceType applicationType = serviceTypeRegistryService.findServiceTypeByName(applicationTypeString);\n        if (applicationType == null) {\n            return ServiceType.UNDEFINED;\n        }\n        if (ServiceType.UNDEFINED.equals(applicationType)) {\n            return ServiceType.UNDEFINED;\n        }\n        if (applicationType.isWas()) {\n            return applicationType;\n        }\n        logger.warn(\"Invalid application type configured : {}, defaulting to {}\", applicationType, ServiceType.UNDEFINED);\n        return ServiceType.UNDEFINED;\n    }\n}\n","sourceCodeStart":40,"sourceCodeEnd":62,"githubUrl":"https://github.com/pinpoint-apm/pinpoint/blob/744c3d3075e595656abb1ae331ad2c0e4c9eb996/agent-module/profiler/src/main/java/com/navercorp/pinpoint/profiler/context/provider/ConfiguredApplicationTypeProvider.java#L40-L62","documentation":"WARN in ConfiguredApplicationTypeProvider: the application type resolved from the configured application type name is neither UNDEFINED nor a WAS-type ServiceType, so it is considered invalid and the provider falls back to ServiceType.UNDEFINED. The agent still runs, but the app is not classified as the intended type (e.g. not treated as a WAS node).","triggerScenarios":"Setting profiler.application servicetype (or the configured application type) to a name that resolves to a non-WAS or unknown ServiceType; the lookup returns a type that fails applicationType.isWas().","commonSituations":"Typo in the service type name in pinpoint.config; using a service type valid on the collector but not recognized by the agent; upgrading Pinpoint where a type was renamed.","solutions":["Correct the application service type name in pinpoint.config to a known WAS-type ServiceType (or remove it to use the default).","Check the Pinpoint version's supported ServiceType list for the exact name string.","Accept the UNDEFINED fallback if a non-WAS type is genuinely intended."],"exampleFix":"// before (pinpoint.config)\nprofiler.application.servicetype=UNKNOWN_TYPE_X\n// after\nprofiler.application.servicetype=STAND_ALONE","handlingStrategy":"validation","validationCode":"ServiceType type = ServiceTypeFactory.of(configuredName);\nif (ServiceType.UNDEFINED.equals(type) || !type.isWas()) {\n    logger.warn(\"Configured application type '{}' is not a valid WAS type\", configuredName);\n}","typeGuard":null,"tryCatchPattern":null,"preventionTips":["Copy service type names exactly from the Pinpoint version's ServiceType list.","Validate pinpoint.config in CI before deploying agents.","After upgrading Pinpoint, re-check for renamed service types."],"tags":["configuration","application-type","servicetype"],"backgroundTag":"invalid-enum-value","analyzedSha":"744c3d3075e595656abb1ae331ad2c0e4c9eb996","analyzedAt":"2026-09-07T18:48:45.289Z","contentChangedAt":"2026-09-07T18:48:45.289Z","schemaVersion":2},"datasetVersion":"2026-09-17T15:17:12.973Z"}