FindBugs Bug Detector Report

The following document contains the results of FindBugs Report

FindBugs Version is 1.1.1

Threshold is Low

Effort is Default

Summary

ClassesBugsErrorsMissing Classes
278871735

Files

ClassBugs
org.apache.servicemix.maven.plugin.jbi.AbstractDeployableMojo7
org.apache.servicemix.maven.plugin.jbi.AbstractJbiMojo1
org.apache.servicemix.maven.plugin.jbi.GenerateComponentDescriptorMojo9
org.apache.servicemix.maven.plugin.jbi.GenerateComponentMojo7
org.apache.servicemix.maven.plugin.jbi.GenerateServiceAssemblyDescriptorMojo12
org.apache.servicemix.maven.plugin.jbi.GenerateServiceAssemblyDescriptorMojo$Connection1
org.apache.servicemix.maven.plugin.jbi.GenerateServiceAssemblyMojo1
org.apache.servicemix.maven.plugin.jbi.GenerateServiceUnitDescriptorMojo7
org.apache.servicemix.maven.plugin.jbi.GenerateServiceUnitMojo5
org.apache.servicemix.maven.plugin.jbi.GenerateSharedLibraryDescriptorMojo5
org.apache.servicemix.maven.plugin.jbi.GenerateSharedLibraryMojo9
org.apache.servicemix.maven.plugin.jbi.JbiProjectDeployerMojo5
org.apache.servicemix.maven.plugin.jbi.JbiProjectDeployerMojo$ArtifactDepthComparator2
org.apache.servicemix.maven.plugin.jbi.JbiProjectDeployerMojo$JbiDeployableArtifact2
org.apache.servicemix.maven.plugin.jbi.JbiResolutionListener1
org.apache.servicemix.maven.plugin.jbi.JbiServiceFileAnalyzer1
org.apache.servicemix.maven.plugin.jbi.JbiServiceUnitDescriptorWriter1
org.apache.servicemix.maven.plugin.jbi.ServiceMixEmbeddedMojo6
org.apache.servicemix.maven.plugin.jbi.ServiceMixMojo5

org.apache.servicemix.maven.plugin.jbi.AbstractDeployableMojo

BugCategoryDetailsLine
Unwritten field: org.apache.servicemix.maven.plugin.jbi.AbstractDeployableMojo.containerNameCORRECTNESSUWF_UNWRITTEN_FIELDNot available
Unwritten field: org.apache.servicemix.maven.plugin.jbi.AbstractDeployableMojo.hostCORRECTNESSUWF_UNWRITTEN_FIELDNot available
Unwritten field: org.apache.servicemix.maven.plugin.jbi.AbstractDeployableMojo.jmxDomainNameCORRECTNESSUWF_UNWRITTEN_FIELDNot available
Unwritten field: org.apache.servicemix.maven.plugin.jbi.AbstractDeployableMojo.jndiPathCORRECTNESSUWF_UNWRITTEN_FIELDNot available
Unwritten field: org.apache.servicemix.maven.plugin.jbi.AbstractDeployableMojo.passwordCORRECTNESSUWF_UNWRITTEN_FIELDNot available
Unwritten field: org.apache.servicemix.maven.plugin.jbi.AbstractDeployableMojo.serverProtocolCORRECTNESSUWF_UNWRITTEN_FIELDNot available
Unwritten field: org.apache.servicemix.maven.plugin.jbi.AbstractDeployableMojo.usernameCORRECTNESSUWF_UNWRITTEN_FIELDNot available

org.apache.servicemix.maven.plugin.jbi.AbstractJbiMojo

BugCategoryDetailsLine
org.apache.servicemix.maven.plugin.jbi.AbstractJbiMojo.getClassLoader() creates a java.net.URLClassLoader classloader, which should be performed within a doPrivileged blockBAD_PRACTICEDP_CREATE_CLASSLOADER_INSIDE_DO_PRIVILEGED293

org.apache.servicemix.maven.plugin.jbi.GenerateComponentDescriptorMojo

BugCategoryDetailsLine
Read of unwritten field defaultBootstrapFile in org.apache.servicemix.maven.plugin.jbi.GenerateComponentDescriptorMojo.injectBootStrap()CORRECTNESSNP_UNWRITTEN_FIELD187
Unwritten field: org.apache.servicemix.maven.plugin.jbi.GenerateComponentDescriptorMojo.bootstrapClassLoaderDelegationCORRECTNESSUWF_UNWRITTEN_FIELDNot available
Unwritten field: org.apache.servicemix.maven.plugin.jbi.GenerateComponentDescriptorMojo.componentCORRECTNESSUWF_UNWRITTEN_FIELDNot available
Unwritten field: org.apache.servicemix.maven.plugin.jbi.GenerateComponentDescriptorMojo.componentClassLoaderDelegationCORRECTNESSUWF_UNWRITTEN_FIELDNot available
Unwritten field: org.apache.servicemix.maven.plugin.jbi.GenerateComponentDescriptorMojo.defaultBootstrapFileCORRECTNESSUWF_UNWRITTEN_FIELDNot available
Unwritten field: org.apache.servicemix.maven.plugin.jbi.GenerateComponentDescriptorMojo.descriptionCORRECTNESSUWF_UNWRITTEN_FIELDNot available
Unwritten field: org.apache.servicemix.maven.plugin.jbi.GenerateComponentDescriptorMojo.generatedDescriptorLocationCORRECTNESSUWF_UNWRITTEN_FIELDNot available
Unwritten field: org.apache.servicemix.maven.plugin.jbi.GenerateComponentDescriptorMojo.nameCORRECTNESSUWF_UNWRITTEN_FIELDNot available
Unwritten field: org.apache.servicemix.maven.plugin.jbi.GenerateComponentDescriptorMojo.typeCORRECTNESSUWF_UNWRITTEN_FIELDNot available

org.apache.servicemix.maven.plugin.jbi.GenerateComponentMojo

BugCategoryDetailsLine
Read of unwritten field jarArchiver in org.apache.servicemix.maven.plugin.jbi.GenerateComponentMojo.createArchive(java.io.File)CORRECTNESSNP_UNWRITTEN_FIELD123
Read of unwritten field jarArchiver in org.apache.servicemix.maven.plugin.jbi.GenerateComponentMojo.createArchive(java.io.File)CORRECTNESSNP_UNWRITTEN_FIELD125
Read of unwritten field jbiSourceDirectory in org.apache.servicemix.maven.plugin.jbi.GenerateComponentMojo.createArchive(java.io.File)CORRECTNESSNP_UNWRITTEN_FIELD124
Unwritten field: org.apache.servicemix.maven.plugin.jbi.GenerateComponentMojo.installerNameCORRECTNESSUWF_UNWRITTEN_FIELDNot available
Unwritten field: org.apache.servicemix.maven.plugin.jbi.GenerateComponentMojo.jarArchiverCORRECTNESSUWF_UNWRITTEN_FIELDNot available
Unwritten field: org.apache.servicemix.maven.plugin.jbi.GenerateComponentMojo.jbiSourceDirectoryCORRECTNESSUWF_UNWRITTEN_FIELDNot available
Unwritten field: org.apache.servicemix.maven.plugin.jbi.GenerateComponentMojo.outputDirectoryCORRECTNESSUWF_UNWRITTEN_FIELDNot available

org.apache.servicemix.maven.plugin.jbi.GenerateServiceAssemblyDescriptorMojo

BugCategoryDetailsLine
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 pathCORRECTNESSNP_NULL_ON_SOME_PATH_EXCEPTION399
Read of unwritten field jbiConnectionsFile in org.apache.servicemix.maven.plugin.jbi.GenerateServiceAssemblyDescriptorMojo.getConnections()CORRECTNESSNP_UNWRITTEN_FIELD241
Read of unwritten field jbiConnectionsFile in org.apache.servicemix.maven.plugin.jbi.GenerateServiceAssemblyDescriptorMojo.parseConnectionsXml()CORRECTNESSNP_UNWRITTEN_FIELD254
Read of unwritten field jbiConnectionsFile in org.apache.servicemix.maven.plugin.jbi.GenerateServiceAssemblyDescriptorMojo.parseConnectionsXml()CORRECTNESSNP_UNWRITTEN_FIELD320
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)CORRECTNESSRCN_REDUNDANT_NULLCHECK_WOULD_HAVE_BEEN_A_NPE399
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 caughtSTYLEREC_CATCH_EXCEPTION319
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 caughtSTYLEREC_CATCH_EXCEPTION370
Field not initialized in constructor: org.apache.servicemix.maven.plugin.jbi.GenerateServiceAssemblyDescriptorMojo.listenerSTYLEUWF_FIELD_NOT_INITIALIZED_IN_CONSTRUCTORNot available
Unwritten field: org.apache.servicemix.maven.plugin.jbi.GenerateServiceAssemblyDescriptorMojo.descriptionCORRECTNESSUWF_UNWRITTEN_FIELDNot available
Unwritten field: org.apache.servicemix.maven.plugin.jbi.GenerateServiceAssemblyDescriptorMojo.generatedDescriptorLocationCORRECTNESSUWF_UNWRITTEN_FIELDNot available
Unwritten field: org.apache.servicemix.maven.plugin.jbi.GenerateServiceAssemblyDescriptorMojo.jbiConnectionsFileCORRECTNESSUWF_UNWRITTEN_FIELDNot available
Unwritten field: org.apache.servicemix.maven.plugin.jbi.GenerateServiceAssemblyDescriptorMojo.nameCORRECTNESSUWF_UNWRITTEN_FIELDNot available

org.apache.servicemix.maven.plugin.jbi.GenerateServiceAssemblyDescriptorMojo$Connection

BugCategoryDetailsLine
Should org.apache.servicemix.maven.plugin.jbi.GenerateServiceAssemblyDescriptorMojo$Connection be a _static_ inner class?PERFORMANCESIC_INNER_SHOULD_BE_STATICNot available

org.apache.servicemix.maven.plugin.jbi.GenerateServiceAssemblyMojo

BugCategoryDetailsLine
Unwritten field: org.apache.servicemix.maven.plugin.jbi.GenerateServiceAssemblyMojo.workDirectoryCORRECTNESSUWF_UNWRITTEN_FIELDNot available

org.apache.servicemix.maven.plugin.jbi.GenerateServiceUnitDescriptorMojo

BugCategoryDetailsLine
Read of unwritten field jbiServicesFile in org.apache.servicemix.maven.plugin.jbi.GenerateServiceUnitDescriptorMojo.getServiceUnitAnalyzer()CORRECTNESSNP_UNWRITTEN_FIELD198
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 caughtSTYLEREC_CATCH_EXCEPTION186
Unwritten field: org.apache.servicemix.maven.plugin.jbi.GenerateServiceUnitDescriptorMojo.descriptionCORRECTNESSUWF_UNWRITTEN_FIELDNot available
Unwritten field: org.apache.servicemix.maven.plugin.jbi.GenerateServiceUnitDescriptorMojo.generatedDescriptorLocationCORRECTNESSUWF_UNWRITTEN_FIELDNot available
Unwritten field: org.apache.servicemix.maven.plugin.jbi.GenerateServiceUnitDescriptorMojo.jbiServicesFileCORRECTNESSUWF_UNWRITTEN_FIELDNot available
Unwritten field: org.apache.servicemix.maven.plugin.jbi.GenerateServiceUnitDescriptorMojo.nameCORRECTNESSUWF_UNWRITTEN_FIELDNot available
Unwritten field: org.apache.servicemix.maven.plugin.jbi.GenerateServiceUnitDescriptorMojo.serviceUnitArtifactsDirCORRECTNESSUWF_UNWRITTEN_FIELDNot available

org.apache.servicemix.maven.plugin.jbi.GenerateServiceUnitMojo

BugCategoryDetailsLine
Read of unwritten field jarArchiver in org.apache.servicemix.maven.plugin.jbi.GenerateServiceUnitMojo.createArchive(java.io.File)CORRECTNESSNP_UNWRITTEN_FIELD117
Unwritten field: org.apache.servicemix.maven.plugin.jbi.GenerateServiceUnitMojo.jarArchiverCORRECTNESSUWF_UNWRITTEN_FIELDNot available
Unwritten field: org.apache.servicemix.maven.plugin.jbi.GenerateServiceUnitMojo.outputDirectoryCORRECTNESSUWF_UNWRITTEN_FIELDNot available
Unwritten field: org.apache.servicemix.maven.plugin.jbi.GenerateServiceUnitMojo.serviceUnitLocationCORRECTNESSUWF_UNWRITTEN_FIELDNot available
Unwritten field: org.apache.servicemix.maven.plugin.jbi.GenerateServiceUnitMojo.serviceUnitNameCORRECTNESSUWF_UNWRITTEN_FIELDNot available

org.apache.servicemix.maven.plugin.jbi.GenerateSharedLibraryDescriptorMojo

BugCategoryDetailsLine
Unwritten field: org.apache.servicemix.maven.plugin.jbi.GenerateSharedLibraryDescriptorMojo.classLoaderDelegationCORRECTNESSUWF_UNWRITTEN_FIELDNot available
Unwritten field: org.apache.servicemix.maven.plugin.jbi.GenerateSharedLibraryDescriptorMojo.descriptionCORRECTNESSUWF_UNWRITTEN_FIELDNot available
Unwritten field: org.apache.servicemix.maven.plugin.jbi.GenerateSharedLibraryDescriptorMojo.generatedDescriptorLocationCORRECTNESSUWF_UNWRITTEN_FIELDNot available
Unwritten field: org.apache.servicemix.maven.plugin.jbi.GenerateSharedLibraryDescriptorMojo.nameCORRECTNESSUWF_UNWRITTEN_FIELDNot available
Unwritten field: org.apache.servicemix.maven.plugin.jbi.GenerateSharedLibraryDescriptorMojo.versionCORRECTNESSUWF_UNWRITTEN_FIELDNot available

org.apache.servicemix.maven.plugin.jbi.GenerateSharedLibraryMojo

BugCategoryDetailsLine
Read of unwritten field jarArchiver in org.apache.servicemix.maven.plugin.jbi.GenerateSharedLibraryMojo.createArchive(java.io.File)CORRECTNESSNP_UNWRITTEN_FIELD130
Read of unwritten field jarArchiver in org.apache.servicemix.maven.plugin.jbi.GenerateSharedLibraryMojo.createArchive(java.io.File)CORRECTNESSNP_UNWRITTEN_FIELD132
Read of unwritten field jbiSourceDirectory in org.apache.servicemix.maven.plugin.jbi.GenerateSharedLibraryMojo.createArchive(java.io.File)CORRECTNESSNP_UNWRITTEN_FIELD131
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 caughtSTYLEREC_CATCH_EXCEPTION138
Unwritten field: org.apache.servicemix.maven.plugin.jbi.GenerateSharedLibraryMojo.jarArchiverCORRECTNESSUWF_UNWRITTEN_FIELDNot available
Unwritten field: org.apache.servicemix.maven.plugin.jbi.GenerateSharedLibraryMojo.jarNameCORRECTNESSUWF_UNWRITTEN_FIELDNot available
Unwritten field: org.apache.servicemix.maven.plugin.jbi.GenerateSharedLibraryMojo.jbiSourceDirectoryCORRECTNESSUWF_UNWRITTEN_FIELDNot available
Unwritten field: org.apache.servicemix.maven.plugin.jbi.GenerateSharedLibraryMojo.outputDirectoryCORRECTNESSUWF_UNWRITTEN_FIELDNot available
Unwritten field: org.apache.servicemix.maven.plugin.jbi.GenerateSharedLibraryMojo.sharedLibraryNameCORRECTNESSUWF_UNWRITTEN_FIELDNot available

org.apache.servicemix.maven.plugin.jbi.JbiProjectDeployerMojo

BugCategoryDetailsLine
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 caughtSTYLEREC_CATCH_EXCEPTION161
Unwritten field: org.apache.servicemix.maven.plugin.jbi.JbiProjectDeployerMojo.deferExceptionsCORRECTNESSUWF_UNWRITTEN_FIELDNot available
Unwritten field: org.apache.servicemix.maven.plugin.jbi.JbiProjectDeployerMojo.deployChildrenCORRECTNESSUWF_UNWRITTEN_FIELDNot available
Unwritten field: org.apache.servicemix.maven.plugin.jbi.JbiProjectDeployerMojo.deployDependenciesCORRECTNESSUWF_UNWRITTEN_FIELDNot available
Unwritten field: org.apache.servicemix.maven.plugin.jbi.JbiProjectDeployerMojo.forceUpdateCORRECTNESSUWF_UNWRITTEN_FIELDNot available

org.apache.servicemix.maven.plugin.jbi.JbiProjectDeployerMojo$ArtifactDepthComparator

BugCategoryDetailsLine
org.apache.servicemix.maven.plugin.jbi.JbiProjectDeployerMojo$ArtifactDepthComparator implements Comparator but not SerializableBAD_PRACTICESE_COMPARATOR_SHOULD_BE_SERIALIZABLENot available
Should org.apache.servicemix.maven.plugin.jbi.JbiProjectDeployerMojo$ArtifactDepthComparator be a _static_ inner class?PERFORMANCESIC_INNER_SHOULD_BE_STATICNot available

org.apache.servicemix.maven.plugin.jbi.JbiProjectDeployerMojo$JbiDeployableArtifact

BugCategoryDetailsLine
org.apache.servicemix.maven.plugin.jbi.JbiProjectDeployerMojo$JbiDeployableArtifact defines equals and uses Object.hashCode()BAD_PRACTICEHE_EQUALS_USE_HASHCODE378-382
Should org.apache.servicemix.maven.plugin.jbi.JbiProjectDeployerMojo$JbiDeployableArtifact be a _static_ inner class?PERFORMANCESIC_INNER_SHOULD_BE_STATICNot available

org.apache.servicemix.maven.plugin.jbi.JbiResolutionListener

BugCategoryDetailsLine
Useless control flow in org.apache.servicemix.maven.plugin.jbi.JbiResolutionListener.includeArtifact(org.apache.maven.artifact.Artifact)STYLEUCF_USELESS_CONTROL_FLOW110

org.apache.servicemix.maven.plugin.jbi.JbiServiceFileAnalyzer

BugCategoryDetailsLine
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 caughtSTYLEREC_CATCH_EXCEPTION106

org.apache.servicemix.maven.plugin.jbi.JbiServiceUnitDescriptorWriter

BugCategoryDetailsLine
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 iteratorPERFORMANCEWMI_WRONG_MAP_ITERATOR72

org.apache.servicemix.maven.plugin.jbi.ServiceMixEmbeddedMojo

BugCategoryDetailsLine
org.apache.servicemix.maven.plugin.jbi.ServiceMixEmbeddedMojo.execute() might ignore java.lang.ExceptionBAD_PRACTICEDE_MIGHT_IGNORE68
Read of unwritten field servicemixConfig in org.apache.servicemix.maven.plugin.jbi.ServiceMixEmbeddedMojo.startServiceMix()CORRECTNESSNP_UNWRITTEN_FIELD80
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 caughtSTYLEREC_CATCH_EXCEPTION61
Unwritten field: org.apache.servicemix.maven.plugin.jbi.ServiceMixEmbeddedMojo.servicemixConfigCORRECTNESSUWF_UNWRITTEN_FIELDNot available
Unconditional wait in org.apache.servicemix.maven.plugin.jbi.ServiceMixEmbeddedMojo.execute()MT_CORRECTNESSUW_UNCOND_WAIT59
Wait not in loop in org.apache.servicemix.maven.plugin.jbi.ServiceMixEmbeddedMojo.execute()MT_CORRECTNESSWA_NOT_IN_LOOP59

org.apache.servicemix.maven.plugin.jbi.ServiceMixMojo

BugCategoryDetailsLine
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 caughtSTYLEREC_CATCH_EXCEPTION85
Unwritten field: org.apache.servicemix.maven.plugin.jbi.ServiceMixMojo.deploymentDirectoryCORRECTNESSUWF_UNWRITTEN_FIELDNot available
Unwritten field: org.apache.servicemix.maven.plugin.jbi.ServiceMixMojo.installDirectoryCORRECTNESSUWF_UNWRITTEN_FIELDNot available
Unwritten field: org.apache.servicemix.maven.plugin.jbi.ServiceMixMojo.rootDirectoryCORRECTNESSUWF_UNWRITTEN_FIELDNot available
Unwritten field: org.apache.servicemix.maven.plugin.jbi.ServiceMixMojo.cleanStartCORRECTNESSUWF_UNWRITTEN_FIELDNot available