The following document contains the results of FindBugs Report
FindBugs Version is 1.1.1
Threshold is Low
Effort is Default
Classes | Bugs | Errors | Missing Classes |
---|---|---|---|
278 | 87 | 17 | 35 |
Bug | Category | Details | Line |
---|---|---|---|
Unwritten field: org.apache.servicemix.maven.plugin.jbi.AbstractDeployableMojo.containerName | CORRECTNESS | UWF_UNWRITTEN_FIELD | Not available |
Unwritten field: org.apache.servicemix.maven.plugin.jbi.AbstractDeployableMojo.host | CORRECTNESS | UWF_UNWRITTEN_FIELD | Not available |
Unwritten field: org.apache.servicemix.maven.plugin.jbi.AbstractDeployableMojo.jmxDomainName | CORRECTNESS | UWF_UNWRITTEN_FIELD | Not available |
Unwritten field: org.apache.servicemix.maven.plugin.jbi.AbstractDeployableMojo.jndiPath | CORRECTNESS | UWF_UNWRITTEN_FIELD | Not available |
Unwritten field: org.apache.servicemix.maven.plugin.jbi.AbstractDeployableMojo.password | CORRECTNESS | UWF_UNWRITTEN_FIELD | Not available |
Unwritten field: org.apache.servicemix.maven.plugin.jbi.AbstractDeployableMojo.serverProtocol | CORRECTNESS | UWF_UNWRITTEN_FIELD | Not available |
Unwritten field: org.apache.servicemix.maven.plugin.jbi.AbstractDeployableMojo.username | CORRECTNESS | UWF_UNWRITTEN_FIELD | Not available |
Bug | Category | Details | Line |
---|---|---|---|
org.apache.servicemix.maven.plugin.jbi.AbstractJbiMojo.getClassLoader() creates a java.net.URLClassLoader classloader, which should be performed within a doPrivileged block | BAD_PRACTICE | DP_CREATE_CLASSLOADER_INSIDE_DO_PRIVILEGED | 293 |
Bug | Category | Details | Line |
---|---|---|---|
Read of unwritten field defaultBootstrapFile in org.apache.servicemix.maven.plugin.jbi.GenerateComponentDescriptorMojo.injectBootStrap() | CORRECTNESS | NP_UNWRITTEN_FIELD | 187 |
Unwritten field: org.apache.servicemix.maven.plugin.jbi.GenerateComponentDescriptorMojo.bootstrapClassLoaderDelegation | CORRECTNESS | UWF_UNWRITTEN_FIELD | Not available |
Unwritten field: org.apache.servicemix.maven.plugin.jbi.GenerateComponentDescriptorMojo.component | CORRECTNESS | UWF_UNWRITTEN_FIELD | Not available |
Unwritten field: org.apache.servicemix.maven.plugin.jbi.GenerateComponentDescriptorMojo.componentClassLoaderDelegation | CORRECTNESS | UWF_UNWRITTEN_FIELD | Not available |
Unwritten field: org.apache.servicemix.maven.plugin.jbi.GenerateComponentDescriptorMojo.defaultBootstrapFile | CORRECTNESS | UWF_UNWRITTEN_FIELD | Not available |
Unwritten field: org.apache.servicemix.maven.plugin.jbi.GenerateComponentDescriptorMojo.description | CORRECTNESS | UWF_UNWRITTEN_FIELD | Not available |
Unwritten field: org.apache.servicemix.maven.plugin.jbi.GenerateComponentDescriptorMojo.generatedDescriptorLocation | CORRECTNESS | UWF_UNWRITTEN_FIELD | Not available |
Unwritten field: org.apache.servicemix.maven.plugin.jbi.GenerateComponentDescriptorMojo.name | CORRECTNESS | UWF_UNWRITTEN_FIELD | Not available |
Unwritten field: org.apache.servicemix.maven.plugin.jbi.GenerateComponentDescriptorMojo.type | CORRECTNESS | UWF_UNWRITTEN_FIELD | Not available |
Bug | Category | Details | Line |
---|---|---|---|
Read of unwritten field jarArchiver in org.apache.servicemix.maven.plugin.jbi.GenerateComponentMojo.createArchive(java.io.File) | CORRECTNESS | NP_UNWRITTEN_FIELD | 123 |
Read of unwritten field jarArchiver in org.apache.servicemix.maven.plugin.jbi.GenerateComponentMojo.createArchive(java.io.File) | CORRECTNESS | NP_UNWRITTEN_FIELD | 125 |
Read of unwritten field jbiSourceDirectory in org.apache.servicemix.maven.plugin.jbi.GenerateComponentMojo.createArchive(java.io.File) | CORRECTNESS | NP_UNWRITTEN_FIELD | 124 |
Unwritten field: org.apache.servicemix.maven.plugin.jbi.GenerateComponentMojo.installerName | CORRECTNESS | UWF_UNWRITTEN_FIELD | Not available |
Unwritten field: org.apache.servicemix.maven.plugin.jbi.GenerateComponentMojo.jarArchiver | CORRECTNESS | UWF_UNWRITTEN_FIELD | Not available |
Unwritten field: org.apache.servicemix.maven.plugin.jbi.GenerateComponentMojo.jbiSourceDirectory | CORRECTNESS | UWF_UNWRITTEN_FIELD | Not available |
Unwritten field: org.apache.servicemix.maven.plugin.jbi.GenerateComponentMojo.outputDirectory | CORRECTNESS | UWF_UNWRITTEN_FIELD | Not available |
Bug | Category | Details | Line |
---|---|---|---|
Possible null pointer dereference of artifactProject in org.apache.servicemix.maven.plugin.jbi.GenerateServiceAssemblyDescriptorMojo.getComponentName(org.apache.maven.project.MavenProject,java.util.Set,org.apache.maven.artifact.Artifact) on exception path | CORRECTNESS | NP_NULL_ON_SOME_PATH_EXCEPTION | 399 |
Read of unwritten field jbiConnectionsFile in org.apache.servicemix.maven.plugin.jbi.GenerateServiceAssemblyDescriptorMojo.getConnections() | CORRECTNESS | NP_UNWRITTEN_FIELD | 241 |
Read of unwritten field jbiConnectionsFile in org.apache.servicemix.maven.plugin.jbi.GenerateServiceAssemblyDescriptorMojo.parseConnectionsXml() | CORRECTNESS | NP_UNWRITTEN_FIELD | 254 |
Read of unwritten field jbiConnectionsFile in org.apache.servicemix.maven.plugin.jbi.GenerateServiceAssemblyDescriptorMojo.parseConnectionsXml() | CORRECTNESS | NP_UNWRITTEN_FIELD | 320 |
Nullcheck of artifactProject at line 402 of value previously dereferenced in org.apache.servicemix.maven.plugin.jbi.GenerateServiceAssemblyDescriptorMojo.getComponentName(org.apache.maven.project.MavenProject,java.util.Set,org.apache.maven.artifact.Artifact) | CORRECTNESS | RCN_REDUNDANT_NULLCHECK_WOULD_HAVE_BEEN_A_NPE | 399 |
Method org.apache.servicemix.maven.plugin.jbi.GenerateServiceAssemblyDescriptorMojo.parseConnectionsXml() catches Exception, but Exception is not thrown in the try block and RuntimeException is not explicitly caught | STYLE | REC_CATCH_EXCEPTION | 319 |
Method org.apache.servicemix.maven.plugin.jbi.GenerateServiceAssemblyDescriptorMojo.getReparsedDependencies() catches Exception, but Exception is not thrown in the try block and RuntimeException is not explicitly caught | STYLE | REC_CATCH_EXCEPTION | 370 |
Field not initialized in constructor: org.apache.servicemix.maven.plugin.jbi.GenerateServiceAssemblyDescriptorMojo.listener | STYLE | UWF_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR | Not available |
Unwritten field: org.apache.servicemix.maven.plugin.jbi.GenerateServiceAssemblyDescriptorMojo.description | CORRECTNESS | UWF_UNWRITTEN_FIELD | Not available |
Unwritten field: org.apache.servicemix.maven.plugin.jbi.GenerateServiceAssemblyDescriptorMojo.generatedDescriptorLocation | CORRECTNESS | UWF_UNWRITTEN_FIELD | Not available |
Unwritten field: org.apache.servicemix.maven.plugin.jbi.GenerateServiceAssemblyDescriptorMojo.jbiConnectionsFile | CORRECTNESS | UWF_UNWRITTEN_FIELD | Not available |
Unwritten field: org.apache.servicemix.maven.plugin.jbi.GenerateServiceAssemblyDescriptorMojo.name | CORRECTNESS | UWF_UNWRITTEN_FIELD | Not available |
Bug | Category | Details | Line |
---|---|---|---|
Should org.apache.servicemix.maven.plugin.jbi.GenerateServiceAssemblyDescriptorMojo$Connection be a _static_ inner class? | PERFORMANCE | SIC_INNER_SHOULD_BE_STATIC | Not available |
Bug | Category | Details | Line |
---|---|---|---|
Unwritten field: org.apache.servicemix.maven.plugin.jbi.GenerateServiceAssemblyMojo.workDirectory | CORRECTNESS | UWF_UNWRITTEN_FIELD | Not available |
Bug | Category | Details | Line |
---|---|---|---|
Read of unwritten field jbiServicesFile in org.apache.servicemix.maven.plugin.jbi.GenerateServiceUnitDescriptorMojo.getServiceUnitAnalyzer() | CORRECTNESS | NP_UNWRITTEN_FIELD | 198 |
Method org.apache.servicemix.maven.plugin.jbi.GenerateServiceUnitDescriptorMojo.generateJbiDescriptor() catches Exception, but Exception is not thrown in the try block and RuntimeException is not explicitly caught | STYLE | REC_CATCH_EXCEPTION | 186 |
Unwritten field: org.apache.servicemix.maven.plugin.jbi.GenerateServiceUnitDescriptorMojo.description | CORRECTNESS | UWF_UNWRITTEN_FIELD | Not available |
Unwritten field: org.apache.servicemix.maven.plugin.jbi.GenerateServiceUnitDescriptorMojo.generatedDescriptorLocation | CORRECTNESS | UWF_UNWRITTEN_FIELD | Not available |
Unwritten field: org.apache.servicemix.maven.plugin.jbi.GenerateServiceUnitDescriptorMojo.jbiServicesFile | CORRECTNESS | UWF_UNWRITTEN_FIELD | Not available |
Unwritten field: org.apache.servicemix.maven.plugin.jbi.GenerateServiceUnitDescriptorMojo.name | CORRECTNESS | UWF_UNWRITTEN_FIELD | Not available |
Unwritten field: org.apache.servicemix.maven.plugin.jbi.GenerateServiceUnitDescriptorMojo.serviceUnitArtifactsDir | CORRECTNESS | UWF_UNWRITTEN_FIELD | Not available |
Bug | Category | Details | Line |
---|---|---|---|
Read of unwritten field jarArchiver in org.apache.servicemix.maven.plugin.jbi.GenerateServiceUnitMojo.createArchive(java.io.File) | CORRECTNESS | NP_UNWRITTEN_FIELD | 117 |
Unwritten field: org.apache.servicemix.maven.plugin.jbi.GenerateServiceUnitMojo.jarArchiver | CORRECTNESS | UWF_UNWRITTEN_FIELD | Not available |
Unwritten field: org.apache.servicemix.maven.plugin.jbi.GenerateServiceUnitMojo.outputDirectory | CORRECTNESS | UWF_UNWRITTEN_FIELD | Not available |
Unwritten field: org.apache.servicemix.maven.plugin.jbi.GenerateServiceUnitMojo.serviceUnitLocation | CORRECTNESS | UWF_UNWRITTEN_FIELD | Not available |
Unwritten field: org.apache.servicemix.maven.plugin.jbi.GenerateServiceUnitMojo.serviceUnitName | CORRECTNESS | UWF_UNWRITTEN_FIELD | Not available |
Bug | Category | Details | Line |
---|---|---|---|
Unwritten field: org.apache.servicemix.maven.plugin.jbi.GenerateSharedLibraryDescriptorMojo.classLoaderDelegation | CORRECTNESS | UWF_UNWRITTEN_FIELD | Not available |
Unwritten field: org.apache.servicemix.maven.plugin.jbi.GenerateSharedLibraryDescriptorMojo.description | CORRECTNESS | UWF_UNWRITTEN_FIELD | Not available |
Unwritten field: org.apache.servicemix.maven.plugin.jbi.GenerateSharedLibraryDescriptorMojo.generatedDescriptorLocation | CORRECTNESS | UWF_UNWRITTEN_FIELD | Not available |
Unwritten field: org.apache.servicemix.maven.plugin.jbi.GenerateSharedLibraryDescriptorMojo.name | CORRECTNESS | UWF_UNWRITTEN_FIELD | Not available |
Unwritten field: org.apache.servicemix.maven.plugin.jbi.GenerateSharedLibraryDescriptorMojo.version | CORRECTNESS | UWF_UNWRITTEN_FIELD | Not available |
Bug | Category | Details | Line |
---|---|---|---|
Read of unwritten field jarArchiver in org.apache.servicemix.maven.plugin.jbi.GenerateSharedLibraryMojo.createArchive(java.io.File) | CORRECTNESS | NP_UNWRITTEN_FIELD | 130 |
Read of unwritten field jarArchiver in org.apache.servicemix.maven.plugin.jbi.GenerateSharedLibraryMojo.createArchive(java.io.File) | CORRECTNESS | NP_UNWRITTEN_FIELD | 132 |
Read of unwritten field jbiSourceDirectory in org.apache.servicemix.maven.plugin.jbi.GenerateSharedLibraryMojo.createArchive(java.io.File) | CORRECTNESS | NP_UNWRITTEN_FIELD | 131 |
Method org.apache.servicemix.maven.plugin.jbi.GenerateSharedLibraryMojo.createArchive(java.io.File) catches Exception, but Exception is not thrown in the try block and RuntimeException is not explicitly caught | STYLE | REC_CATCH_EXCEPTION | 138 |
Unwritten field: org.apache.servicemix.maven.plugin.jbi.GenerateSharedLibraryMojo.jarArchiver | CORRECTNESS | UWF_UNWRITTEN_FIELD | Not available |
Unwritten field: org.apache.servicemix.maven.plugin.jbi.GenerateSharedLibraryMojo.jarName | CORRECTNESS | UWF_UNWRITTEN_FIELD | Not available |
Unwritten field: org.apache.servicemix.maven.plugin.jbi.GenerateSharedLibraryMojo.jbiSourceDirectory | CORRECTNESS | UWF_UNWRITTEN_FIELD | Not available |
Unwritten field: org.apache.servicemix.maven.plugin.jbi.GenerateSharedLibraryMojo.outputDirectory | CORRECTNESS | UWF_UNWRITTEN_FIELD | Not available |
Unwritten field: org.apache.servicemix.maven.plugin.jbi.GenerateSharedLibraryMojo.sharedLibraryName | CORRECTNESS | UWF_UNWRITTEN_FIELD | Not available |
Bug | Category | Details | Line |
---|---|---|---|
Method org.apache.servicemix.maven.plugin.jbi.JbiProjectDeployerMojo.deployProject() catches Exception, but Exception is not thrown in the try block and RuntimeException is not explicitly caught | STYLE | REC_CATCH_EXCEPTION | 161 |
Unwritten field: org.apache.servicemix.maven.plugin.jbi.JbiProjectDeployerMojo.deferExceptions | CORRECTNESS | UWF_UNWRITTEN_FIELD | Not available |
Unwritten field: org.apache.servicemix.maven.plugin.jbi.JbiProjectDeployerMojo.deployChildren | CORRECTNESS | UWF_UNWRITTEN_FIELD | Not available |
Unwritten field: org.apache.servicemix.maven.plugin.jbi.JbiProjectDeployerMojo.deployDependencies | CORRECTNESS | UWF_UNWRITTEN_FIELD | Not available |
Unwritten field: org.apache.servicemix.maven.plugin.jbi.JbiProjectDeployerMojo.forceUpdate | CORRECTNESS | UWF_UNWRITTEN_FIELD | Not available |
Bug | Category | Details | Line |
---|---|---|---|
org.apache.servicemix.maven.plugin.jbi.JbiProjectDeployerMojo$ArtifactDepthComparator implements Comparator but not Serializable | BAD_PRACTICE | SE_COMPARATOR_SHOULD_BE_SERIALIZABLE | Not available |
Should org.apache.servicemix.maven.plugin.jbi.JbiProjectDeployerMojo$ArtifactDepthComparator be a _static_ inner class? | PERFORMANCE | SIC_INNER_SHOULD_BE_STATIC | Not available |
Bug | Category | Details | Line |
---|---|---|---|
org.apache.servicemix.maven.plugin.jbi.JbiProjectDeployerMojo$JbiDeployableArtifact defines equals and uses Object.hashCode() | BAD_PRACTICE | HE_EQUALS_USE_HASHCODE | 378-382 |
Should org.apache.servicemix.maven.plugin.jbi.JbiProjectDeployerMojo$JbiDeployableArtifact be a _static_ inner class? | PERFORMANCE | SIC_INNER_SHOULD_BE_STATIC | Not available |
Bug | Category | Details | Line |
---|---|---|---|
Useless control flow in org.apache.servicemix.maven.plugin.jbi.JbiResolutionListener.includeArtifact(org.apache.maven.artifact.Artifact) | STYLE | UCF_USELESS_CONTROL_FLOW | 110 |
Bug | Category | Details | Line |
---|---|---|---|
Method org.apache.servicemix.maven.plugin.jbi.JbiServiceFileAnalyzer.parseXml(java.io.File) catches Exception, but Exception is not thrown in the try block and RuntimeException is not explicitly caught | STYLE | REC_CATCH_EXCEPTION | 106 |
Bug | Category | Details | Line |
---|---|---|---|
Method org.apache.servicemix.maven.plugin.jbi.JbiServiceUnitDescriptorWriter.write(java.io.File,boolean,String,String,java.util.List,java.util.List,java.util.List) makes inefficient use of keySet iterator instead of entrySet iterator | PERFORMANCE | WMI_WRONG_MAP_ITERATOR | 72 |
Bug | Category | Details | Line |
---|---|---|---|
org.apache.servicemix.maven.plugin.jbi.ServiceMixEmbeddedMojo.execute() might ignore java.lang.Exception | BAD_PRACTICE | DE_MIGHT_IGNORE | 68 |
Read of unwritten field servicemixConfig in org.apache.servicemix.maven.plugin.jbi.ServiceMixEmbeddedMojo.startServiceMix() | CORRECTNESS | NP_UNWRITTEN_FIELD | 80 |
Method org.apache.servicemix.maven.plugin.jbi.ServiceMixEmbeddedMojo.execute() catches Exception, but Exception is not thrown in the try block and RuntimeException is not explicitly caught | STYLE | REC_CATCH_EXCEPTION | 61 |
Unwritten field: org.apache.servicemix.maven.plugin.jbi.ServiceMixEmbeddedMojo.servicemixConfig | CORRECTNESS | UWF_UNWRITTEN_FIELD | Not available |
Unconditional wait in org.apache.servicemix.maven.plugin.jbi.ServiceMixEmbeddedMojo.execute() | MT_CORRECTNESS | UW_UNCOND_WAIT | 59 |
Wait not in loop in org.apache.servicemix.maven.plugin.jbi.ServiceMixEmbeddedMojo.execute() | MT_CORRECTNESS | WA_NOT_IN_LOOP | 59 |
Bug | Category | Details | Line |
---|---|---|---|
Method org.apache.servicemix.maven.plugin.jbi.ServiceMixMojo.execute() catches Exception, but Exception is not thrown in the try block and RuntimeException is not explicitly caught | STYLE | REC_CATCH_EXCEPTION | 85 |
Unwritten field: org.apache.servicemix.maven.plugin.jbi.ServiceMixMojo.deploymentDirectory | CORRECTNESS | UWF_UNWRITTEN_FIELD | Not available |
Unwritten field: org.apache.servicemix.maven.plugin.jbi.ServiceMixMojo.installDirectory | CORRECTNESS | UWF_UNWRITTEN_FIELD | Not available |
Unwritten field: org.apache.servicemix.maven.plugin.jbi.ServiceMixMojo.rootDirectory | CORRECTNESS | UWF_UNWRITTEN_FIELD | Not available |
Unwritten field: org.apache.servicemix.maven.plugin.jbi.ServiceMixMojo.cleanStart | CORRECTNESS | UWF_UNWRITTEN_FIELD | Not available |