Criei um app
public EnderecoRetornoDTO buscarEndereco(@Valid BuscarCepDTO dto) { try { log.info("Metodo que busca o endereco pelo cep nos correios"); AtendeClienteService service = new AtendeClienteService(); AtendeCliente atendeCliente = service.getAtendeClientePort(); EnderecoERP resultado = atendeCliente.consultaCEP(retornaApenasDigitos(dto.getCep())); return EnderecoRetornoDTO.builder().bairro(rTrimLtrim(resultado.getBairro())) .cidade(rTrimLtrim(resultado.getCidade())).tipoLogradouro(rTrimLtrim(tipoLogradouro(resultado))) .logradouro(rTrimLtrim(logradouro(resultado))).estado(rTrimLtrim(resultado.getUf())) .complemento(rTrimLtrim(complemento(resultado))).build(); } catch (Exception e) { log.error(e.getMessage(), e); throw new GeralException("Erro em buscar endereco pelo cep nos correios !"); } }
O erro dá quando é executado este metodo: AtendeCliente atendeCliente = service.getAtendeClientePort();
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>br.com.ghnetsoft.correios.sigepi</groupId> <artifactId>correiossigepi</artifactId> <version>0.0.1</version> <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>2.3.5.RELEASE</version> <relativePath /> </parent> <properties> <java.version>1.8</java.version> </properties> <dependencies> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> </dependency> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-devtools</artifactId> <scope>runtime</scope> </dependency> <dependency> <groupId>org.projectlombok</groupId> <artifactId>lombok</artifactId> <optional>true</optional> </dependency> <dependency> <groupId>org.apache.commons</groupId> <artifactId>commons-lang3</artifactId> </dependency> <dependency> <groupId>com.sun.xml.ws</groupId> <artifactId>jaxws-ri</artifactId> <version>2.3.0</version> <type>pom</type> <exclusions> <exclusion> <groupId>com.sun.xml.ws</groupId> <artifactId>rt</artifactId> </exclusion> </exclusions> </dependency> </dependencies> <build> <finalName>${project.artifactId}</finalName> <plugins> <plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> </plugin> <plugin> <groupId>org.jacoco</groupId> <artifactId>jacoco-maven-plugin</artifactId> <version>0.8.4</version> <executions> <execution> <goals> <goal>prepare-agent</goal> </goals> </execution> <execution> <id>report</id> <phase>prepare-package</phase> <goals> <goal>report</goal> </goals> </execution> </executions> </plugin> <!-- <plugin> <groupId>org.jfrog.buildinfo</groupId> <artifactId>artifactory-maven-plugin</artifactId> <version>3.2.0</version> <inherited>false</inherited> <executions> <execution> <id>build-info</id> <goals> <goal>publish</goal> </goals> <configuration> <deployProperties> <gradle>awesome</gradle> <review.team>qa</review.team> </deployProperties> <publisher> <contextUrl>http://20.36.209.130/artifactory/</contextUrl> <username>admin</username> <password>admin</password> <repoKey>libs-release-local</repoKey> <snapshotRepoKey>libs-snapshot-local</snapshotRepoKey> </publisher> </configuration> </execution> </executions> </plugin> --> </plugins> </build> </project>
com.sun.xml.ws.spi.db.DatabindingException: com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 82 counts of IllegalAnnotationExceptions Duas classes têm o mesmo nome do tipo XML "{http://cliente.bean.master.sigep.bsb.correios.com.br/}cancelarPedidoScol". Use @XmlType.name e @XmlType.namespace para atribuir outros nomes a elas. this problem is related to the following location: at br.com.ghnetsoft.correios.sigepi.correiosigepi.CancelarPedidoScol at public javax.xml.bind.JAXBElement br.com.ghnetsoft.correios.sigepi.correiosigepi.ObjectFactory.createCancelarPedidoScol(br.com.ghnetsoft.correios.sigepi.correiosigepi.CancelarPedidoScol) at br.com.ghnetsoft.correios.sigepi.correiosigepi.ObjectFactory this problem is related to the following location: at br.com.correios.bsb.sigep.master.bean.cliente.CancelarPedidoScol Duas classes têm o mesmo nome do tipo XML "{http://cliente.bean.master.sigep.bsb.correios.com.br/}cancelarPedidoScolResponse". Use @XmlType.name e @XmlType.namespace para atribuir outros nomes a elas. this problem is related to the following location: at br.com.ghnetsoft.correios.sigepi.correiosigepi.CancelarPedidoScolResponse at public javax.xml.bind.JAXBElement br.com.ghnetsoft.correios.sigepi.correiosigepi.ObjectFactory.createCancelarPedidoScolResponse(br.com.ghnetsoft.correios.sigepi.correiosigepi.CancelarPedidoScolResponse) at br.com.ghnetsoft.correios.sigepi.correiosigepi.ObjectFactory this problem is related to the following location: at br.com.correios.bsb.sigep.master.bean.cliente.CancelarPedidoScolResponse Duas classes têm o mesmo nome do tipo XML "{http://cliente.bean.master.sigep.bsb.correios.com.br/}solicitaEtiquetas". Use @XmlType.name e @XmlType.namespace para atribuir outros nomes a elas. this problem is related to the following location: at br.com.ghnetsoft.correios.sigepi.correiosigepi.SolicitaEtiquetas at public javax.xml.bind.JAXBElement br.com.ghnetsoft.correios.sigepi.correiosigepi.ObjectFactory.createSolicitaEtiquetas(br.com.ghnetsoft.correios.sigepi.correiosigepi.SolicitaEtiquetas) at br.com.ghnetsoft.correios.sigepi.correiosigepi.ObjectFactory this problem is related to the following location: at br.com.correios.bsb.sigep.master.bean.cliente.SolicitaEtiquetas Duas classes têm o mesmo nome do tipo XML "{http://cliente.bean.master.sigep.bsb.correios.com.br/}solicitaEtiquetasResponse". Use @XmlType.name e @XmlType.namespace para atribuir outros nomes a elas. this problem is related to the following location: at br.com.ghnetsoft.correios.sigepi.correiosigepi.SolicitaEtiquetasResponse at public javax.xml.bind.JAXBElement br.com.ghnetsoft.correios.sigepi.correiosigepi.ObjectFactory.createSolicitaEtiquetasResponse(br.com.ghnetsoft.correios.sigepi.correiosigepi.SolicitaEtiquetasResponse) at br.com.ghnetsoft.correios.sigepi.correiosigepi.ObjectFactory this problem is related to the following location: at br.com.correios.bsb.sigep.master.bean.cliente.SolicitaEtiquetasResponse Duas classes têm o mesmo nome do tipo XML "{http://cliente.bean.master.sigep.bsb.correios.com.br/}bloquearObjeto". Use @XmlType.name e @XmlType.namespace para atribuir outros nomes a elas. this problem is related to the following location: at br.com.ghnetsoft.correios.sigepi.correiosigepi.BloquearObjeto at public br.com.ghnetsoft.correios.sigepi.correiosigepi.BloquearObjeto br.com.ghnetsoft.correios.sigepi.correiosigepi.ObjectFactory.createBloquearObjeto() at br.com.ghnetsoft.correios.sigepi.correiosigepi.ObjectFactory this problem is related to the following location: at br.com.correios.bsb.sigep.master.bean.cliente.BloquearObjeto Duas classes têm o mesmo nome do tipo XML "{http://cliente.bean.master.sigep.bsb.correios.com.br/}bloquearObjetoResponse". Use @XmlType.name e @XmlType.namespace para atribuir outros nomes a elas. this problem is related to the following location: at br.com.ghnetsoft.correios.sigepi.correiosigepi.BloquearObjetoResponse at public br.com.ghnetsoft.correios.sigepi.correiosigepi.BloquearObjetoResponse br.com.ghnetsoft.correios.sigepi.correiosigepi.ObjectFactory.createBloquearObjetoResponse() at br.com.ghnetsoft.correios.sigepi.correiosigepi.ObjectFactory this problem is related to the following location: at br.com.correios.bsb.sigep.master.bean.cliente.BloquearObjetoResponse Duas classes têm o mesmo nome do tipo XML "{http://cliente.bean.master.sigep.bsb.correios.com.br/}buscaContrato". Use @XmlType.name e @XmlType.namespace para atribuir outros nomes a elas. this problem is related to the following location: at br.com.ghnetsoft.correios.sigepi.correiosigepi.BuscaContrato at public javax.xml.bind.JAXBElement br.com.ghnetsoft.correios.sigepi.correiosigepi.ObjectFactory.createBuscaContrato(br.com.ghnetsoft.correios.sigepi.correiosigepi.BuscaContrato) at br.com.ghnetsoft.correios.sigepi.correiosigepi.ObjectFactory this problem is related to the following location: at br.com.correios.bsb.sigep.master.bean.cliente.BuscaContrato Duas classes têm o mesmo nome do tipo XML "{http://cliente.bean.master.sigep.bsb.correios.com.br/}buscaContratoResponse". Use @XmlType.name e @XmlType.namespace para atribuir outros nomes a elas. this problem is related to the following location: at br.com.ghnetsoft.correios.sigepi.correiosigepi.BuscaContratoResponse at public br.com.ghnetsoft.correios.sigepi.correiosigepi.BuscaContratoResponse br.com.ghnetsoft.correios.sigepi.correiosigepi.ObjectFactory.createBuscaContratoResponse() at br.com.ghnetsoft.correios.sigepi.correiosigepi.ObjectFactory this problem is related to the following location: at br.com.correios.bsb.sigep.master.bean.cliente.BuscaContratoResponse Duas classes têm o mesmo nome do tipo XML "{http://cliente.bean.master.sigep.bsb.correios.com.br/}solicitaXmlPlp". Use @XmlType.name e @XmlType.namespace para atribuir outros nomes a elas. this problem is related to the following location: at br.com.ghnetsoft.correios.sigepi.correiosigepi.SolicitaXmlPlp at public br.com.ghnetsoft.correios.sigepi.correiosigepi.SolicitaXmlPlp br.com.ghnetsoft.correios.sigepi.correiosigepi.ObjectFactory.createSolicitaXmlPlp() at br.com.ghnetsoft.correios.sigepi.correiosigepi.ObjectFactory this problem is related to the following location: at br.com.correios.bsb.sigep.master.bean.cliente.SolicitaXmlPlp Duas classes têm o mesmo nome do tipo XML "{http://cliente.bean.master.sigep.bsb.correios.com.br/}solicitaXmlPlpResponse". Use @XmlType.name e @XmlType.namespace para atribuir outros nomes a elas. this problem is related to the following location: at br.com.ghnetsoft.correios.sigepi.correiosigepi.SolicitaXmlPlpResponse at public javax.xml.bind.JAXBElement br.com.ghnetsoft.correios.sigepi.correiosigepi.ObjectFactory.createSolicitaXmlPlpResponse(br.com.ghnetsoft.correios.sigepi.correiosigepi.SolicitaXmlPlpResponse) at br.com.ghnetsoft.correios.sigepi.correiosigepi.ObjectFactory this problem is related to the following location: at br.com.correios.bsb.sigep.master.bean.cliente.SolicitaXmlPlpResponse Duas classes têm o mesmo nome do tipo XML "{http://cliente.bean.master.sigep.bsb.correios.com.br/}validarPostagemReversa". Use @XmlType.name e @XmlType.namespace para atribuir outros nomes a elas. this problem is related to the following location: at br.com.ghnetsoft.correios.sigepi.correiosigepi.ValidarPostagemReversa at public javax.xml.bind.JAXBElement br.com.ghnetsoft.correios.sigepi.correiosigepi.ObjectFactory.createValidarPostagemReversa(br.com.ghnetsoft.correios.sigepi.correiosigepi.ValidarPostagemReversa) at br.com.ghnetsoft.correios.sigepi.correiosigepi.ObjectFactory this problem is related to the following location: at br.com.correios.bsb.sigep.master.bean.cliente.ValidarPostagemReversa Duas classes têm o mesmo nome do tipo XML "{http://cliente.bean.master.sigep.bsb.correios.com.br/}validarPostagemReversaResponse". Use @XmlType.name e @XmlType.namespace para atribuir outros nomes a elas. this problem is related to the following location: at br.com.ghnetsoft.correios.sigepi.correiosigepi.ValidarPostagemReversaResponse at public javax.xml.bind.JAXBElement br.com.ghnetsoft.correios.sigepi.correiosigepi.ObjectFactory.createValidarPostagemReversaResponse(br.com.ghnetsoft.correios.sigepi.correiosigepi.ValidarPostagemReversaResponse) at br.com.ghnetsoft.correios.sigepi.correiosigepi.ObjectFactory this problem is related to the following location: at br.com.correios.bsb.sigep.master.bean.cliente.ValidarPostagemReversaResponse Duas classes têm o mesmo nome do tipo XML "{http://cliente.bean.master.sigep.bsb.correios.com.br/}pesquisarServicosAdicionais". Use @XmlType.name e @XmlType.namespace para atribuir outros nomes a elas. this problem is related to the following location: at br.com.ghnetsoft.correios.sigepi.correiosigepi.PesquisarServicosAdicionais at public javax.xml.bind.JAXBElement br.com.ghnetsoft.correios.sigepi.correiosigepi.ObjectFactory.createPesquisarServicosAdicionais(br.com.ghnetsoft.correios.sigepi.correiosigepi.PesquisarServicosAdicionais) at br.com.ghnetsoft.correios.sigepi.correiosigepi.ObjectFactory this problem is related to the following location: at br.com.correios.bsb.sigep.master.bean.cliente.PesquisarServicosAdicionais Duas classes têm o mesmo nome do tipo XML "{http://cliente.bean.master.sigep.bsb.correios.com.br/}pesquisarServicosAdicionaisResponse". Use @XmlType.name e @XmlType.namespace para atribuir outros nomes a elas. this problem is related to the following location: at br.com.ghnetsoft.correios.sigepi.correiosigepi.PesquisarServicosAdicionaisResponse at public javax.xml.bind.JAXBElement br.com.ghnetsoft.correios.sigepi.correiosigepi.ObjectFactory.createPesquisarServicosAdicionaisResponse(br.com.ghnetsoft.correios.sigepi.correiosigepi.PesquisarServicosAdicionaisResponse) at br.com.ghnetsoft.correios.sigepi.correiosigepi.ObjectFactory this problem is related to the following location: at br.com.correios.bsb.sigep.mast... com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 82 counts of IllegalAnnotationExceptions Duas classes têm o mesmo nome do tipo XML "{http://cliente.bean.master.sigep.bsb.correios.com.br/}cancelarPedidoScol". Use @XmlType.name e @XmlType.namespace para atribuir outros nomes a elas. this problem is related to the following location: at br.com.ghnetsoft.correios.sigepi.correiosigepi.CancelarPedidoScol at public javax.xml.bind.JAXBElement br.com.ghnetsoft.correios.sigepi.correiosigepi.ObjectFactory.createCancelarPedidoScol(br.com.ghnetsoft.correios.sigepi.correiosigepi.CancelarPedidoScol) at br.com.ghnetsoft.correios.sigepi.correiosigepi.ObjectFactory this problem is related to the following location: at br.com.correios.bsb.sigep.master.bean.cliente.CancelarPedidoScol Duas classes têm o mesmo nome do tipo XML "{http://cliente.bean.master.sigep.bsb.correios.com.br/}cancelarPedidoScolResponse". Use @XmlType.name e @XmlType.namespace para atribuir outros nomes a elas. this problem is related to the following location: at br.com.ghnetsoft.correios.sigepi.correiosigepi.CancelarPedidoScolResponse at public javax.xml.bind.JAXBElement br.com.ghnetsoft.correios.sigepi.correiosigepi.ObjectFactory.createCancelarPedidoScolResponse(br.com.ghnetsoft.correios.sigepi.correiosigepi.CancelarPedidoScolResponse) at br.com.ghnetsoft.correios.sigepi.correiosigepi.ObjectFactory this problem is related to the following location: at br.com.correios.bsb.sigep.master.bean.cliente.CancelarPedidoScolResponse Duas classes têm o mesmo nome do tipo XML "{http://cliente.bean.master.sigep.bsb.correios.com.br/}solicitaEtiquetas". Use @XmlType.name e @XmlType.namespace para atribuir outros nomes a elas. this problem is related to the following location: at br.com.ghnetsoft.correios.sigepi.correiosigepi.SolicitaEtiquetas at public javax.xml.bind.JAXBElement br.com.ghnetsoft.correios.sigepi.correiosigepi.ObjectFactory.createSolicitaEtiquetas(br.com.ghnetsoft.correios.sigepi.correiosigepi.SolicitaEtiquetas) at br.com.ghnetsoft.correios.sigepi.correiosigepi.ObjectFactory this problem is related to the following location: at br.com.correios.bsb.sigep.master.bean.cliente.SolicitaEtiquetas Duas classes têm o mesmo nome do tipo XML "{http://cliente.bean.master.sigep.bsb.correios.com.br/}solicitaEtiquetasResponse". Use @XmlType.name e @XmlType.namespace para atribuir outros nomes a elas. this problem is related to the following location: at br.com.ghnetsoft.correios.sigepi.correiosigepi.SolicitaEtiquetasResponse at public javax.xml.bind.JAXBElement br.com.ghnetsoft.correios.sigepi.correiosigepi.ObjectFactory.createSolicitaEtiquetasResponse(br.com.ghnetsoft.correios.sigepi.correiosigepi.SolicitaEtiquetasResponse) at br.com.ghnetsoft.correios.sigepi.correiosigepi.ObjectFactory this problem is related to the following location: at br.com.correios.bsb.sigep.master.bean.cliente.SolicitaEtiquetasResponse Duas classes têm o mesmo nome do tipo XML "{http://cliente.bean.master.sigep.bsb.correios.com.br/}bloquearObjeto". Use @XmlType.name e @XmlType.namespace para atribuir outros nomes a elas. this problem is related to the following location: at br.com.ghnetsoft.correios.sigepi.correiosigepi.BloquearObjeto at public br.com.ghnetsoft.correios.sigepi.correiosigepi.BloquearObjeto br.com.ghnetsoft.correios.sigepi.correiosigepi.ObjectFactory.createBloquearObjeto() at br.com.ghnetsoft.correios.sigepi.correiosigepi.ObjectFactory this problem is related to the following location: at br.com.correios.bsb.sigep.master.bean.cliente.BloquearObjeto Duas classes têm o mesmo nome do tipo XML "{http://cliente.bean.master.sigep.bsb.correios.com.br/}bloquearObjetoResponse". Use @XmlType.name e @XmlType.namespace para atribuir outros nomes a elas. this problem is related to the following location: at br.com.ghnetsoft.correios.sigepi.correiosigepi.BloquearObjetoResponse at public br.com.ghnetsoft.correios.sigepi.correiosigepi.BloquearObjetoResponse br.com.ghnetsoft.correios.sigepi.correiosigepi.ObjectFactory.createBloquearObjetoResponse() at br.com.ghnetsoft.correios.sigepi.correiosigepi.ObjectFactory this problem is related to the following location: at br.com.correios.bsb.sigep.master.bean.cliente.BloquearObjetoResponse Duas classes têm o mesmo nome do tipo XML "{http://cliente.bean.master.sigep.bsb.correios.com.br/}buscaContrato". Use @XmlType.name e @XmlType.namespace para atribuir outros nomes a elas. this problem is related to the following location: at br.com.ghnetsoft.correios.sigepi.correiosigepi.BuscaContrato at public javax.xml.bind.JAXBElement br.com.ghnetsoft.correios.sigepi.correiosigepi.ObjectFactory.createBuscaContrato(br.com.ghnetsoft.correios.sigepi.correiosigepi.BuscaContrato) at br.com.ghnetsoft.correios.sigepi.correiosigepi.ObjectFactory this problem is related to the following location: at br.com.correios.bsb.sigep.master.bean.cliente.BuscaContrato Duas classes têm o mesmo nome do tipo XML "{http://cliente.bean.master.sigep.bsb.correios.com.br/}buscaContratoResponse". Use @XmlType.name e @XmlType.namespace para atribuir outros nomes a elas. this problem is related to the following location: at br.com.ghnetsoft.correios.sigepi.correiosigepi.BuscaContratoResponse at public br.com.ghnetsoft.correios.sigepi.correiosigepi.BuscaContratoResponse br.com.ghnetsoft.correios.sigepi.correiosigepi.ObjectFactory.createBuscaContratoResponse() at br.com.ghnetsoft.correios.sigepi.correiosigepi.ObjectFactory this problem is related to the following location: at br.com.correios.bsb.sigep.master.bean.cliente.BuscaContratoResponse Duas classes têm o mesmo nome do tipo XML "{http://cliente.bean.master.sigep.bsb.correios.com.br/}solicitaXmlPlp". Use @XmlType.name e @XmlType.namespace para atribuir outros nomes a elas. this problem is related to the following location: at br.com.ghnetsoft.correios.sigepi.correiosigepi.SolicitaXmlPlp at public br.com.ghnetsoft.correios.sigepi.correiosigepi.SolicitaXmlPlp br.com.ghnetsoft.correios.sigepi.correiosigepi.ObjectFactory.createSolicitaXmlPlp() at br.com.ghnetsoft.correios.sigepi.correiosigepi.ObjectFactory this problem is related to the following location: at br.com.correios.bsb.sigep.master.bean.cliente.SolicitaXmlPlp Duas classes têm o mesmo nome do tipo XML "{http://cliente.bean.master.sigep.bsb.correios.com.br/}solicitaXmlPlpResponse". Use @XmlType.name e @XmlType.namespace para atribuir outros nomes a elas. this problem is related to the following location: at br.com.ghnetsoft.correios.sigepi.correiosigepi.SolicitaXmlPlpResponse at public javax.xml.bind.JAXBElement br.com.ghnetsoft.correios.sigepi.correiosigepi.ObjectFactory.createSolicitaXmlPlpResponse(br.com.ghnetsoft.correios.sigepi.correiosigepi.SolicitaXmlPlpResponse) at br.com.ghnetsoft.correios.sigepi.correiosigepi.ObjectFactory this problem is related to the following location: at br.com.correios.bsb.sigep.master.bean.cliente.SolicitaXmlPlpResponse Duas classes têm o mesmo nome do tipo XML "{http://cliente.bean.master.sigep.bsb.correios.com.br/}validarPostagemReversa". Use @XmlType.name e @XmlType.namespace para atribuir outros nomes a elas. this problem is related to the following location: at br.com.ghnetsoft.correios.sigepi.correiosigepi.ValidarPostagemReversa at public javax.xml.bind.JAXBElement br.com.ghnetsoft.correios.sigepi.correiosigepi.ObjectFactory.createValidarPostagemReversa(br.com.ghnetsoft.correios.sigepi.correiosigepi.ValidarPostagemReversa) at br.com.ghnetsoft.correios.sigepi.correiosigepi.ObjectFactory this problem is related to the following location: at br.com.correios.bsb.sigep.master.bean.cliente.ValidarPostagemReversa Duas classes têm o mesmo nome do tipo XML "
O que pode ser ?