Quantcast

Can't get artifact from artifactory though it is cached

classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Can't get artifact from artifactory though it is cached

David Binder
Hi all, first of all I'll introduce myself to stick to usual mailing list newbie politness.

I'm an IT engineer at a french company, I just started artifactory to proxy internet repositories for my company (that's for the maven thing). Other interests of mine are java EE software architecturing and related stuff.

I've came across some problem yesterday as I was trying to create an offline repository for a secured LAN.

I was unable to download a cached artifact

Maven message is :
Downloading: http://localhost:8081/artifactory/plugins-releases/org/codehaus/plexus/plexus/1.0.4/plexus-1.0.4.pom
[INFO] Unable to find resource 'org.codehaus.plexus:plexus:pom:1.0.4' in repository central (http://localhost:8081/artifactory/plugins-releases)
Downloading: http://localhost:8081/artifactory/plugins-snapshots/org/codehaus/plexus/plexus/1.0.4/plexus-1.0.4.pom
[INFO] Unable to find resource 'org.codehaus.plexus:plexus:pom:1.0.4' in repository snapshots (http://localhost:8081/artifactory/plugins-snapshots)
Downloading: http://localhost:8081/artifactory/libs-releases/org/codehaus/plexus/plexus/1.0.4/plexus-1.0.4.pom
[INFO] Unable to find resource 'org.codehaus.plexus:plexus:pom:1.0.4' in repository central (http://localhost:8081/artifactory/libs-releases)
Downloading: http://localhost:8081/artifactory/libs-snapshots/org/codehaus/plexus/plexus/1.0.4/plexus-1.0.4.pom
[INFO] Unable to find resource 'org.codehaus.plexus:plexus:pom:1.0.4' in repository snapshots (http://localhost:8081/artifactory/libs-snapshots)

and artifactory console displayed an exception for each failed atempt :

2010-01-06 09:31:21,305 [btpool0-4] [WARN ] (o.a.j.JcrServiceImpl:38) - Ignoring bad XML stream while importing '/repositories/libs-snapshots/org/codehaus/plexu
s/plexus/1.0.4/plexus-1.0.4.pom/artifactory:xml': Invalid byte 1 of 1-byte UTF-8 sequence..
2010-01-06 09:31:21,305 [btpool0-4] [WARN ] (o.a.r.j.StoringRepoMixin:451) - IO error while trying to save resource libs-snapshots:org/codehaus/plexus/plexus/1.
0.4/plexus-1.0.4.pom'': Invalid byte 1 of 1-byte UTF-8 sequence.
2010-01-06 09:31:21,320 [btpool0-4] [ERROR] (o.a.r.v.i.PomInterceptor:77) - Failed to import file to local storage
com.sun.org.apache.xerces.internal.impl.io.MalformedByteSequenceException: Invalid byte 1 of 1-byte UTF-8 sequence.
        at com.sun.org.apache.xerces.internal.impl.io.UTF8Reader.invalidByte(UTF8Reader.java:674) [na:1.6.0_11]
        at com.sun.org.apache.xerces.internal.impl.io.UTF8Reader.read(UTF8Reader.java:547) [na:1.6.0_11]
        at com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.load(XMLEntityScanner.java:1742) [na:1.6.0_11]
        at com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.skipChar(XMLEntityScanner.java:1416) [na:1.6.0_11]
        at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2784) [na:1.6.0_11]
        at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:648) [na:1.6.0_11]
        at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:140) [na:1.6.0_11]
        at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:510) [na:1.6.0_11]
        at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:807) [na:1.6.0_11]
        at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737) [na:1.6.0_11]
        at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:107) [na:1.6.0_11]
        at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1205) [na:1.6.0_11]
        at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:522) [na:1.6.0_11]
        at javax.xml.parsers.SAXParser.parse(SAXParser.java:395) [na:1.6.0_11]
        at javax.xml.parsers.SAXParser.parse(SAXParser.java:198) [na:1.6.0_11]
        at org.artifactory.jcr.JcrServiceImpl.importXml(JcrServiceImpl.java:656) [artifactory-core-2.1.3.jar:na]
        at sun.reflect.GeneratedMethodAccessor159.invoke(Unknown Source) [na:na]
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [na:1.6.0_11]
        at java.lang.reflect.Method.invoke(Method.java:597) [na:1.6.0_11]
        at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307) [spring-aop-2.5.6.jar:2.5.6]
        at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:198) [spring-aop-2.5.6.jar:2.5.6]
        at $Proxy18.importXml(Unknown Source) [na:na]
        at org.artifactory.jcr.fs.JcrFile.processXmlStream(JcrFile.java:552) [artifactory-core-2.1.3.jar:na]
        at org.artifactory.jcr.fs.JcrFile.setResourceNode(JcrFile.java:506) [artifactory-core-2.1.3.jar:na]
        at org.artifactory.jcr.fs.JcrFile.fillData(JcrFile.java:150) [artifactory-core-2.1.3.jar:na]
        at org.artifactory.repo.jcr.StoringRepoMixin.saveResource(StoringRepoMixin.java:421) [artifactory-core-2.1.3.jar:na]
        at org.artifactory.repo.virtual.VirtualRepo.saveResource(VirtualRepo.java:414) [artifactory-core-2.1.3.jar:na]
        at org.artifactory.repo.virtual.interceptor.PomInterceptor.onBeforeReturn(PomInterceptor.java:73) [artifactory-core-2.1.3.jar:na]
        at org.artifactory.repo.virtual.VirtualRepo.interceptBeforeReturn(VirtualRepo.java:375) [artifactory-core-2.1.3.jar:na]
        at org.artifactory.repo.virtual.VirtualRepoDownloadStrategy.getInfo(VirtualRepoDownloadStrategy.java:112) [artifactory-core-2.1.3.jar:na]
        at org.artifactory.repo.virtual.VirtualRepo.getInfo(VirtualRepo.java:480) [artifactory-core-2.1.3.jar:na]
        at org.artifactory.engine.DownloadServiceImpl.getInfo(DownloadServiceImpl.java:150) [artifactory-core-2.1.3.jar:na]
        at sun.reflect.GeneratedMethodAccessor161.invoke(Unknown Source) [na:na]
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [na:1.6.0_11]
        at java.lang.reflect.Method.invoke(Method.java:597) [na:1.6.0_11]
        at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307) [spring-aop-2.5.6.jar:2.5.6]
        at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182) [spring-aop-2.5.6.jar:2.5.6]
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149) [spring-aop-2.5.6.jar:2.5.6]
        at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106) [spring-tx-2.5.6.jar:2.5.6]
        at org.artifactory.jcr.lock.aop.LockingAdvice.invoke(LockingAdvice.java:72) [artifactory-core-2.1.3.jar:na]
        at org.artifactory.jcr.lock.aop.LockingAdvice.invoke(LockingAdvice.java:45) [artifactory-core-2.1.3.jar:na]
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) [spring-aop-2.5.6.jar:2.5.6]
        at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) [spring-aop-2.5.6.jar:2.5.6]
        at $Proxy36.getInfo(Unknown Source) [na:na]
        at org.artifactory.engine.DownloadServiceImpl.callGetInfoInTransaction(DownloadServiceImpl.java:236) [artifactory-core-2.1.3.jar:na]
        at org.artifactory.engine.DownloadServiceImpl.process(DownloadServiceImpl.java:119) [artifactory-core-2.1.3.jar:na]
        at sun.reflect.GeneratedMethodAccessor160.invoke(Unknown Source) [na:na]
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [na:1.6.0_11]
        at java.lang.reflect.Method.invoke(Method.java:597) [na:1.6.0_11]
        at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307) [spring-aop-2.5.6.jar:2.5.6]
        at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182) [spring-aop-2.5.6.jar:2.5.6]
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149) [spring-aop-2.5.6.jar:2.5.6]
        at org.artifactory.request.aop.RequestAdvice.invoke(RequestAdvice.java:66) [artifactory-core-2.1.3.jar:na]
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) [spring-aop-2.5.6.jar:2.5.6]
        at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) [spring-aop-2.5.6.jar:2.5.6]
        at $Proxy36.process(Unknown Source) [na:na]
        at org.artifactory.webapp.servlet.RepoFilter.execute(RepoFilter.java:112) [artifactory-web-application-2.1.3.jar:na]
        at org.artifactory.webapp.servlet.RepoFilter.doFilter(RepoFilter.java:76) [artifactory-web-application-2.1.3.jar:na]
        at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157) [jetty-6.1.22.jar:6.1.22]
        at org.artifactory.webapp.servlet.AccessFilter.useAuthentication(AccessFilter.java:191) [artifactory-web-application-2.1.3.jar:na]
        at org.artifactory.webapp.servlet.AccessFilter.useAnonymousIfPossible(AccessFilter.java:174) [artifactory-web-application-2.1.3.jar:na]
        at org.artifactory.webapp.servlet.AccessFilter.doFilterInternal(AccessFilter.java:115) [artifactory-web-application-2.1.3.jar:na]
        at org.artifactory.webapp.servlet.AccessFilter.doFilter(AccessFilter.java:91) [artifactory-web-application-2.1.3.jar:na]
        at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157) [jetty-6.1.22.jar:6.1.22]
        at org.artifactory.webapp.servlet.RequestFilter.doFilter(RequestFilter.java:54) [artifactory-web-application-2.1.3.jar:na]
        at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157) [jetty-6.1.22.jar:6.1.22]
        at org.artifactory.webapp.servlet.ArtifactoryFilter.doFilter(ArtifactoryFilter.java:54) [artifactory-web-application-2.1.3.jar:na]
        at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157) [jetty-6.1.22.jar:6.1.22]
        at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:388) [jetty-6.1.22.jar:6.1.22]
        at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216) [jetty-6.1.22.jar:6.1.22]
        at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182) [jetty-6.1.22.jar:6.1.22]
        at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765) [jetty-6.1.22.jar:6.1.22]
        at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:418) [jetty-6.1.22.jar:6.1.22]
        at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230) [jetty-6.1.22.jar:6.1.22]
        at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114) [jetty-6.1.22.jar:6.1.22]
        at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152) [jetty-6.1.22.jar:6.1.22]
        at org.mortbay.jetty.Server.handle(Server.java:326) [jetty-6.1.22.jar:6.1.22]
        at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542) [jetty-6.1.22.jar:6.1.22]
        at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:923) [jetty-6.1.22.jar:6.1.22]
        at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:547) [jetty-6.1.22.jar:6.1.22]
        at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212) [jetty-6.1.22.jar:6.1.22]
        at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404) [jetty-6.1.22.jar:6.1.22]
        at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409) [jetty-6.1.22.jar:6.1.22]
        at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:451) [jetty-util-6.1.22.jar:6.1.22]

In addition :

* I work behind a proxy for network communication
* I use embedded jetty DB
* I use maven 2.2.1

I didn't find any such error in the mailing list archive hope some of you can help me.

Thx

David

------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
_______________________________________________
Artifactory-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/artifactory-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Can't get artifact from artifactory though it is cached

elig
Hi David,

We were unable to reproduce your issue locally.
can you please tell us 1.Does the artifact exist in artifactory? Under which
2.If so ,can you download it manually from the UI or by request addressing your remote repo cache?




On Wed, Jan 6, 2010 at 11:21 AM, David Binder <[hidden email]> wrote:
Hi all, first of all I'll introduce myself to stick to usual mailing list newbie politness.

I'm an IT engineer at a french company, I just started artifactory to proxy internet repositories for my company (that's for the maven thing). Other interests of mine are java EE software architecturing and related stuff.

I've came across some problem yesterday as I was trying to create an offline repository for a secured LAN.

I was unable to download a cached artifact

Maven message is :
Downloading: http://localhost:8081/artifactory/plugins-releases/org/codehaus/plexus/plexus/1.0.4/plexus-1.0.4.pom
[INFO] Unable to find resource 'org.codehaus.plexus:plexus:pom:1.0.4' in repository central (http://localhost:8081/artifactory/plugins-releases)
Downloading: http://localhost:8081/artifactory/plugins-snapshots/org/codehaus/plexus/plexus/1.0.4/plexus-1.0.4.pom
[INFO] Unable to find resource 'org.codehaus.plexus:plexus:pom:1.0.4' in repository snapshots (http://localhost:8081/artifactory/plugins-snapshots)
Downloading: http://localhost:8081/artifactory/libs-releases/org/codehaus/plexus/plexus/1.0.4/plexus-1.0.4.pom
[INFO] Unable to find resource 'org.codehaus.plexus:plexus:pom:1.0.4' in repository central (http://localhost:8081/artifactory/libs-releases)
Downloading: http://localhost:8081/artifactory/libs-snapshots/org/codehaus/plexus/plexus/1.0.4/plexus-1.0.4.pom
[INFO] Unable to find resource 'org.codehaus.plexus:plexus:pom:1.0.4' in repository snapshots (http://localhost:8081/artifactory/libs-snapshots)

and artifactory console displayed an exception for each failed atempt :

2010-01-06 09:31:21,305 [btpool0-4] [WARN ] (o.a.j.JcrServiceImpl:38) - Ignoring bad XML stream while importing '/repositories/libs-snapshots/org/codehaus/plexu
s/plexus/1.0.4/plexus-1.0.4.pom/artifactory:xml': Invalid byte 1 of 1-byte UTF-8 sequence..
2010-01-06 09:31:21,305 [btpool0-4] [WARN ] (o.a.r.j.StoringRepoMixin:451) - IO error while trying to save resource libs-snapshots:org/codehaus/plexus/plexus/1.
0.4/plexus-1.0.4.pom'': Invalid byte 1 of 1-byte UTF-8 sequence.
2010-01-06 09:31:21,320 [btpool0-4] [ERROR] (o.a.r.v.i.PomInterceptor:77) - Failed to import file to local storage
com.sun.org.apache.xerces.internal.impl.io.MalformedByteSequenceException: Invalid byte 1 of 1-byte UTF-8 sequence.
        at com.sun.org.apache.xerces.internal.impl.io.UTF8Reader.invalidByte(UTF8Reader.java:674) [na:1.6.0_11]
        at com.sun.org.apache.xerces.internal.impl.io.UTF8Reader.read(UTF8Reader.java:547) [na:1.6.0_11]
        at com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.load(XMLEntityScanner.java:1742) [na:1.6.0_11]
        at com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.skipChar(XMLEntityScanner.java:1416) [na:1.6.0_11]
        at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2784) [na:1.6.0_11]
        at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:648) [na:1.6.0_11]
        at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:140) [na:1.6.0_11]
        at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:510) [na:1.6.0_11]
        at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:807) [na:1.6.0_11]
        at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737) [na:1.6.0_11]
        at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:107) [na:1.6.0_11]
        at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1205) [na:1.6.0_11]
        at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:522) [na:1.6.0_11]
        at javax.xml.parsers.SAXParser.parse(SAXParser.java:395) [na:1.6.0_11]
        at javax.xml.parsers.SAXParser.parse(SAXParser.java:198) [na:1.6.0_11]
        at org.artifactory.jcr.JcrServiceImpl.importXml(JcrServiceImpl.java:656) [artifactory-core-2.1.3.jar:na]
        at sun.reflect.GeneratedMethodAccessor159.invoke(Unknown Source) [na:na]
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [na:1.6.0_11]
        at java.lang.reflect.Method.invoke(Method.java:597) [na:1.6.0_11]
        at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307) [spring-aop-2.5.6.jar:2.5.6]
        at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:198) [spring-aop-2.5.6.jar:2.5.6]
        at $Proxy18.importXml(Unknown Source) [na:na]
        at org.artifactory.jcr.fs.JcrFile.processXmlStream(JcrFile.java:552) [artifactory-core-2.1.3.jar:na]
        at org.artifactory.jcr.fs.JcrFile.setResourceNode(JcrFile.java:506) [artifactory-core-2.1.3.jar:na]
        at org.artifactory.jcr.fs.JcrFile.fillData(JcrFile.java:150) [artifactory-core-2.1.3.jar:na]
        at org.artifactory.repo.jcr.StoringRepoMixin.saveResource(StoringRepoMixin.java:421) [artifactory-core-2.1.3.jar:na]
        at org.artifactory.repo.virtual.VirtualRepo.saveResource(VirtualRepo.java:414) [artifactory-core-2.1.3.jar:na]
        at org.artifactory.repo.virtual.interceptor.PomInterceptor.onBeforeReturn(PomInterceptor.java:73) [artifactory-core-2.1.3.jar:na]
        at org.artifactory.repo.virtual.VirtualRepo.interceptBeforeReturn(VirtualRepo.java:375) [artifactory-core-2.1.3.jar:na]
        at org.artifactory.repo.virtual.VirtualRepoDownloadStrategy.getInfo(VirtualRepoDownloadStrategy.java:112) [artifactory-core-2.1.3.jar:na]
        at org.artifactory.repo.virtual.VirtualRepo.getInfo(VirtualRepo.java:480) [artifactory-core-2.1.3.jar:na]
        at org.artifactory.engine.DownloadServiceImpl.getInfo(DownloadServiceImpl.java:150) [artifactory-core-2.1.3.jar:na]
        at sun.reflect.GeneratedMethodAccessor161.invoke(Unknown Source) [na:na]
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [na:1.6.0_11]
        at java.lang.reflect.Method.invoke(Method.java:597) [na:1.6.0_11]
        at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307) [spring-aop-2.5.6.jar:2.5.6]
        at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182) [spring-aop-2.5.6.jar:2.5.6]
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149) [spring-aop-2.5.6.jar:2.5.6]
        at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106) [spring-tx-2.5.6.jar:2.5.6]
        at org.artifactory.jcr.lock.aop.LockingAdvice.invoke(LockingAdvice.java:72) [artifactory-core-2.1.3.jar:na]
        at org.artifactory.jcr.lock.aop.LockingAdvice.invoke(LockingAdvice.java:45) [artifactory-core-2.1.3.jar:na]
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) [spring-aop-2.5.6.jar:2.5.6]
        at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) [spring-aop-2.5.6.jar:2.5.6]
        at $Proxy36.getInfo(Unknown Source) [na:na]
        at org.artifactory.engine.DownloadServiceImpl.callGetInfoInTransaction(DownloadServiceImpl.java:236) [artifactory-core-2.1.3.jar:na]
        at org.artifactory.engine.DownloadServiceImpl.process(DownloadServiceImpl.java:119) [artifactory-core-2.1.3.jar:na]
        at sun.reflect.GeneratedMethodAccessor160.invoke(Unknown Source) [na:na]
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [na:1.6.0_11]
        at java.lang.reflect.Method.invoke(Method.java:597) [na:1.6.0_11]
        at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307) [spring-aop-2.5.6.jar:2.5.6]
        at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182) [spring-aop-2.5.6.jar:2.5.6]
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149) [spring-aop-2.5.6.jar:2.5.6]
        at org.artifactory.request.aop.RequestAdvice.invoke(RequestAdvice.java:66) [artifactory-core-2.1.3.jar:na]
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) [spring-aop-2.5.6.jar:2.5.6]
        at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) [spring-aop-2.5.6.jar:2.5.6]
        at $Proxy36.process(Unknown Source) [na:na]
        at org.artifactory.webapp.servlet.RepoFilter.execute(RepoFilter.java:112) [artifactory-web-application-2.1.3.jar:na]
        at org.artifactory.webapp.servlet.RepoFilter.doFilter(RepoFilter.java:76) [artifactory-web-application-2.1.3.jar:na]
        at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157) [jetty-6.1.22.jar:6.1.22]
        at org.artifactory.webapp.servlet.AccessFilter.useAuthentication(AccessFilter.java:191) [artifactory-web-application-2.1.3.jar:na]
        at org.artifactory.webapp.servlet.AccessFilter.useAnonymousIfPossible(AccessFilter.java:174) [artifactory-web-application-2.1.3.jar:na]
        at org.artifactory.webapp.servlet.AccessFilter.doFilterInternal(AccessFilter.java:115) [artifactory-web-application-2.1.3.jar:na]
        at org.artifactory.webapp.servlet.AccessFilter.doFilter(AccessFilter.java:91) [artifactory-web-application-2.1.3.jar:na]
        at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157) [jetty-6.1.22.jar:6.1.22]
        at org.artifactory.webapp.servlet.RequestFilter.doFilter(RequestFilter.java:54) [artifactory-web-application-2.1.3.jar:na]
        at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157) [jetty-6.1.22.jar:6.1.22]
        at org.artifactory.webapp.servlet.ArtifactoryFilter.doFilter(ArtifactoryFilter.java:54) [artifactory-web-application-2.1.3.jar:na]
        at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157) [jetty-6.1.22.jar:6.1.22]
        at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:388) [jetty-6.1.22.jar:6.1.22]
        at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216) [jetty-6.1.22.jar:6.1.22]
        at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182) [jetty-6.1.22.jar:6.1.22]
        at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765) [jetty-6.1.22.jar:6.1.22]
        at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:418) [jetty-6.1.22.jar:6.1.22]
        at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230) [jetty-6.1.22.jar:6.1.22]
        at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114) [jetty-6.1.22.jar:6.1.22]
        at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152) [jetty-6.1.22.jar:6.1.22]
        at org.mortbay.jetty.Server.handle(Server.java:326) [jetty-6.1.22.jar:6.1.22]
        at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542) [jetty-6.1.22.jar:6.1.22]
        at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:923) [jetty-6.1.22.jar:6.1.22]
        at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:547) [jetty-6.1.22.jar:6.1.22]
        at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212) [jetty-6.1.22.jar:6.1.22]
        at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404) [jetty-6.1.22.jar:6.1.22]
        at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409) [jetty-6.1.22.jar:6.1.22]
        at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:451) [jetty-util-6.1.22.jar:6.1.22]

In addition :

* I work behind a proxy for network communication
* I use embedded jetty DB
* I use maven 2.2.1

I didn't find any such error in the mailing list archive hope some of you can help me.

Thx

David

------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev
_______________________________________________
Artifactory-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/artifactory-users



------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
_______________________________________________
Artifactory-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/artifactory-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Can't get artifact from artifactory though it is cached

David Binder
1) plexus parent project artiffact is in repo1 cache under org.codehaus.plexus
2) I' can't reach it using the plugins-releases, libs-snapshotslibs-releases, plugins-snapshots urls but I can with http://localhost:8081/artifactory/repo/org/codehaus/plexus/plexus/1.0.4/plexus-1.0.4.pom (or something like this I'm away from the server right now)

using the faulting url in a brower, I get some "Invalid byte 1 of 1-byte UTF-8 " message

2010/1/6 Eli Givoni <[hidden email]>
Hi David,

We were unable to reproduce your issue locally.
can you please tell us 1.Does the artifact exist in artifactory? Under which
2.If so ,can you download it manually from the UI or by request addressing your remote repo cache?




On Wed, Jan 6, 2010 at 11:21 AM, David Binder <[hidden email]> wrote:
Hi all, first of all I'll introduce myself to stick to usual mailing list newbie politness.

I'm an IT engineer at a french company, I just started artifactory to proxy internet repositories for my company (that's for the maven thing). Other interests of mine are java EE software architecturing and related stuff.

I've came across some problem yesterday as I was trying to create an offline repository for a secured LAN.

I was unable to download a cached artifact

Maven message is :
Downloading: http://localhost:8081/artifactory/plugins-releases/org/codehaus/plexus/plexus/1.0.4/plexus-1.0.4.pom
[INFO] Unable to find resource 'org.codehaus.plexus:plexus:pom:1.0.4' in repository central (http://localhost:8081/artifactory/plugins-releases)
Downloading: http://localhost:8081/artifactory/plugins-snapshots/org/codehaus/plexus/plexus/1.0.4/plexus-1.0.4.pom
[INFO] Unable to find resource 'org.codehaus.plexus:plexus:pom:1.0.4' in repository snapshots (http://localhost:8081/artifactory/plugins-snapshots)
Downloading: http://localhost:8081/artifactory/libs-releases/org/codehaus/plexus/plexus/1.0.4/plexus-1.0.4.pom
[INFO] Unable to find resource 'org.codehaus.plexus:plexus:pom:1.0.4' in repository central (http://localhost:8081/artifactory/libs-releases)
Downloading: http://localhost:8081/artifactory/libs-snapshots/org/codehaus/plexus/plexus/1.0.4/plexus-1.0.4.pom
[INFO] Unable to find resource 'org.codehaus.plexus:plexus:pom:1.0.4' in repository snapshots (http://localhost:8081/artifactory/libs-snapshots)

and artifactory console displayed an exception for each failed atempt :

2010-01-06 09:31:21,305 [btpool0-4] [WARN ] (o.a.j.JcrServiceImpl:38) - Ignoring bad XML stream while importing '/repositories/libs-snapshots/org/codehaus/plexu
s/plexus/1.0.4/plexus-1.0.4.pom/artifactory:xml': Invalid byte 1 of 1-byte UTF-8 sequence..
2010-01-06 09:31:21,305 [btpool0-4] [WARN ] (o.a.r.j.StoringRepoMixin:451) - IO error while trying to save resource libs-snapshots:org/codehaus/plexus/plexus/1.
0.4/plexus-1.0.4.pom'': Invalid byte 1 of 1-byte UTF-8 sequence.
2010-01-06 09:31:21,320 [btpool0-4] [ERROR] (o.a.r.v.i.PomInterceptor:77) - Failed to import file to local storage
com.sun.org.apache.xerces.internal.impl.io.MalformedByteSequenceException: Invalid byte 1 of 1-byte UTF-8 sequence.
        at com.sun.org.apache.xerces.internal.impl.io.UTF8Reader.invalidByte(UTF8Reader.java:674) [na:1.6.0_11]
        at com.sun.org.apache.xerces.internal.impl.io.UTF8Reader.read(UTF8Reader.java:547) [na:1.6.0_11]
        at com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.load(XMLEntityScanner.java:1742) [na:1.6.0_11]
        at com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.skipChar(XMLEntityScanner.java:1416) [na:1.6.0_11]
        at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2784) [na:1.6.0_11]
        at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:648) [na:1.6.0_11]
        at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:140) [na:1.6.0_11]
        at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:510) [na:1.6.0_11]
        at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:807) [na:1.6.0_11]
        at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737) [na:1.6.0_11]
        at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:107) [na:1.6.0_11]
        at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1205) [na:1.6.0_11]
        at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:522) [na:1.6.0_11]
        at javax.xml.parsers.SAXParser.parse(SAXParser.java:395) [na:1.6.0_11]
        at javax.xml.parsers.SAXParser.parse(SAXParser.java:198) [na:1.6.0_11]
        at org.artifactory.jcr.JcrServiceImpl.importXml(JcrServiceImpl.java:656) [artifactory-core-2.1.3.jar:na]
        at sun.reflect.GeneratedMethodAccessor159.invoke(Unknown Source) [na:na]
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [na:1.6.0_11]
        at java.lang.reflect.Method.invoke(Method.java:597) [na:1.6.0_11]
        at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307) [spring-aop-2.5.6.jar:2.5.6]
        at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:198) [spring-aop-2.5.6.jar:2.5.6]
        at $Proxy18.importXml(Unknown Source) [na:na]
        at org.artifactory.jcr.fs.JcrFile.processXmlStream(JcrFile.java:552) [artifactory-core-2.1.3.jar:na]
        at org.artifactory.jcr.fs.JcrFile.setResourceNode(JcrFile.java:506) [artifactory-core-2.1.3.jar:na]
        at org.artifactory.jcr.fs.JcrFile.fillData(JcrFile.java:150) [artifactory-core-2.1.3.jar:na]
        at org.artifactory.repo.jcr.StoringRepoMixin.saveResource(StoringRepoMixin.java:421) [artifactory-core-2.1.3.jar:na]
        at org.artifactory.repo.virtual.VirtualRepo.saveResource(VirtualRepo.java:414) [artifactory-core-2.1.3.jar:na]
        at org.artifactory.repo.virtual.interceptor.PomInterceptor.onBeforeReturn(PomInterceptor.java:73) [artifactory-core-2.1.3.jar:na]
        at org.artifactory.repo.virtual.VirtualRepo.interceptBeforeReturn(VirtualRepo.java:375) [artifactory-core-2.1.3.jar:na]
        at org.artifactory.repo.virtual.VirtualRepoDownloadStrategy.getInfo(VirtualRepoDownloadStrategy.java:112) [artifactory-core-2.1.3.jar:na]
        at org.artifactory.repo.virtual.VirtualRepo.getInfo(VirtualRepo.java:480) [artifactory-core-2.1.3.jar:na]
        at org.artifactory.engine.DownloadServiceImpl.getInfo(DownloadServiceImpl.java:150) [artifactory-core-2.1.3.jar:na]
        at sun.reflect.GeneratedMethodAccessor161.invoke(Unknown Source) [na:na]
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [na:1.6.0_11]
        at java.lang.reflect.Method.invoke(Method.java:597) [na:1.6.0_11]
        at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307) [spring-aop-2.5.6.jar:2.5.6]
        at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182) [spring-aop-2.5.6.jar:2.5.6]
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149) [spring-aop-2.5.6.jar:2.5.6]
        at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106) [spring-tx-2.5.6.jar:2.5.6]
        at org.artifactory.jcr.lock.aop.LockingAdvice.invoke(LockingAdvice.java:72) [artifactory-core-2.1.3.jar:na]
        at org.artifactory.jcr.lock.aop.LockingAdvice.invoke(LockingAdvice.java:45) [artifactory-core-2.1.3.jar:na]
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) [spring-aop-2.5.6.jar:2.5.6]
        at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) [spring-aop-2.5.6.jar:2.5.6]
        at $Proxy36.getInfo(Unknown Source) [na:na]
        at org.artifactory.engine.DownloadServiceImpl.callGetInfoInTransaction(DownloadServiceImpl.java:236) [artifactory-core-2.1.3.jar:na]
        at org.artifactory.engine.DownloadServiceImpl.process(DownloadServiceImpl.java:119) [artifactory-core-2.1.3.jar:na]
        at sun.reflect.GeneratedMethodAccessor160.invoke(Unknown Source) [na:na]
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [na:1.6.0_11]
        at java.lang.reflect.Method.invoke(Method.java:597) [na:1.6.0_11]
        at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307) [spring-aop-2.5.6.jar:2.5.6]
        at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182) [spring-aop-2.5.6.jar:2.5.6]
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149) [spring-aop-2.5.6.jar:2.5.6]
        at org.artifactory.request.aop.RequestAdvice.invoke(RequestAdvice.java:66) [artifactory-core-2.1.3.jar:na]
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) [spring-aop-2.5.6.jar:2.5.6]
        at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) [spring-aop-2.5.6.jar:2.5.6]
        at $Proxy36.process(Unknown Source) [na:na]
        at org.artifactory.webapp.servlet.RepoFilter.execute(RepoFilter.java:112) [artifactory-web-application-2.1.3.jar:na]
        at org.artifactory.webapp.servlet.RepoFilter.doFilter(RepoFilter.java:76) [artifactory-web-application-2.1.3.jar:na]
        at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157) [jetty-6.1.22.jar:6.1.22]
        at org.artifactory.webapp.servlet.AccessFilter.useAuthentication(AccessFilter.java:191) [artifactory-web-application-2.1.3.jar:na]
        at org.artifactory.webapp.servlet.AccessFilter.useAnonymousIfPossible(AccessFilter.java:174) [artifactory-web-application-2.1.3.jar:na]
        at org.artifactory.webapp.servlet.AccessFilter.doFilterInternal(AccessFilter.java:115) [artifactory-web-application-2.1.3.jar:na]
        at org.artifactory.webapp.servlet.AccessFilter.doFilter(AccessFilter.java:91) [artifactory-web-application-2.1.3.jar:na]
        at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157) [jetty-6.1.22.jar:6.1.22]
        at org.artifactory.webapp.servlet.RequestFilter.doFilter(RequestFilter.java:54) [artifactory-web-application-2.1.3.jar:na]
        at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157) [jetty-6.1.22.jar:6.1.22]
        at org.artifactory.webapp.servlet.ArtifactoryFilter.doFilter(ArtifactoryFilter.java:54) [artifactory-web-application-2.1.3.jar:na]
        at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157) [jetty-6.1.22.jar:6.1.22]
        at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:388) [jetty-6.1.22.jar:6.1.22]
        at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216) [jetty-6.1.22.jar:6.1.22]
        at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182) [jetty-6.1.22.jar:6.1.22]
        at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765) [jetty-6.1.22.jar:6.1.22]
        at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:418) [jetty-6.1.22.jar:6.1.22]
        at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230) [jetty-6.1.22.jar:6.1.22]
        at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114) [jetty-6.1.22.jar:6.1.22]
        at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152) [jetty-6.1.22.jar:6.1.22]
        at org.mortbay.jetty.Server.handle(Server.java:326) [jetty-6.1.22.jar:6.1.22]
        at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542) [jetty-6.1.22.jar:6.1.22]
        at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:923) [jetty-6.1.22.jar:6.1.22]
        at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:547) [jetty-6.1.22.jar:6.1.22]
        at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212) [jetty-6.1.22.jar:6.1.22]
        at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404) [jetty-6.1.22.jar:6.1.22]
        at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409) [jetty-6.1.22.jar:6.1.22]
        at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:451) [jetty-util-6.1.22.jar:6.1.22]

In addition :

* I work behind a proxy for network communication
* I use embedded jetty DB
* I use maven 2.2.1

I didn't find any such error in the mailing list archive hope some of you can help me.

Thx

David

------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev
_______________________________________________
Artifactory-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/artifactory-users



------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev
_______________________________________________
Artifactory-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/artifactory-users



------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
_______________________________________________
Artifactory-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/artifactory-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Can't get artifact from artifactory though it is cached

Frederic Simon
Hi,
The valid plexus pom file may come from codehaus remote repo and not repo1. That's why artifactory/repo successfully downloaded it. If you had the codehaus remote repo to the list of repositories in the virtuals ( plugins-releaseslibs-snapshotslibs-releasesplugins-snapshots) or more easily the virtual remote-repos, and make sure it is place before repo1, it may solve your problem.

On Wed, Jan 6, 2010 at 9:44 PM, David Binder <[hidden email]> wrote:
1) plexus parent project artiffact is in repo1 cache under org.codehaus.plexus
2) I' can't reach it using the plugins-releases, libs-snapshotslibs-releases, plugins-snapshots urls but I can with http://localhost:8081/artifactory/repo/org/codehaus/plexus/plexus/1.0.4/plexus-1.0.4.pom (or something like this I'm away from the server right now)

using the faulting url in a brower, I get some "Invalid byte 1 of 1-byte UTF-8 " message

2010/1/6 Eli Givoni <[hidden email]>

Hi David,

We were unable to reproduce your issue locally.
can you please tell us 1.Does the artifact exist in artifactory? Under which
2.If so ,can you download it manually from the UI or by request addressing your remote repo cache?




On Wed, Jan 6, 2010 at 11:21 AM, David Binder <[hidden email]> wrote:
Hi all, first of all I'll introduce myself to stick to usual mailing list newbie politness.

I'm an IT engineer at a french company, I just started artifactory to proxy internet repositories for my company (that's for the maven thing). Other interests of mine are java EE software architecturing and related stuff.

I've came across some problem yesterday as I was trying to create an offline repository for a secured LAN.

I was unable to download a cached artifact

Maven message is :
Downloading: http://localhost:8081/artifactory/plugins-releases/org/codehaus/plexus/plexus/1.0.4/plexus-1.0.4.pom
[INFO] Unable to find resource 'org.codehaus.plexus:plexus:pom:1.0.4' in repository central (http://localhost:8081/artifactory/plugins-releases)
Downloading: http://localhost:8081/artifactory/plugins-snapshots/org/codehaus/plexus/plexus/1.0.4/plexus-1.0.4.pom
[INFO] Unable to find resource 'org.codehaus.plexus:plexus:pom:1.0.4' in repository snapshots (http://localhost:8081/artifactory/plugins-snapshots)
Downloading: http://localhost:8081/artifactory/libs-releases/org/codehaus/plexus/plexus/1.0.4/plexus-1.0.4.pom
[INFO] Unable to find resource 'org.codehaus.plexus:plexus:pom:1.0.4' in repository central (http://localhost:8081/artifactory/libs-releases)
Downloading: http://localhost:8081/artifactory/libs-snapshots/org/codehaus/plexus/plexus/1.0.4/plexus-1.0.4.pom
[INFO] Unable to find resource 'org.codehaus.plexus:plexus:pom:1.0.4' in repository snapshots (http://localhost:8081/artifactory/libs-snapshots)

and artifactory console displayed an exception for each failed atempt :

2010-01-06 09:31:21,305 [btpool0-4] [WARN ] (o.a.j.JcrServiceImpl:38) - Ignoring bad XML stream while importing '/repositories/libs-snapshots/org/codehaus/plexu
s/plexus/1.0.4/plexus-1.0.4.pom/artifactory:xml': Invalid byte 1 of 1-byte UTF-8 sequence..
2010-01-06 09:31:21,305 [btpool0-4] [WARN ] (o.a.r.j.StoringRepoMixin:451) - IO error while trying to save resource libs-snapshots:org/codehaus/plexus/plexus/1.
0.4/plexus-1.0.4.pom'': Invalid byte 1 of 1-byte UTF-8 sequence.
2010-01-06 09:31:21,320 [btpool0-4] [ERROR] (o.a.r.v.i.PomInterceptor:77) - Failed to import file to local storage
com.sun.org.apache.xerces.internal.impl.io.MalformedByteSequenceException: Invalid byte 1 of 1-byte UTF-8 sequence.
        at com.sun.org.apache.xerces.internal.impl.io.UTF8Reader.invalidByte(UTF8Reader.java:674) [na:1.6.0_11]
        at com.sun.org.apache.xerces.internal.impl.io.UTF8Reader.read(UTF8Reader.java:547) [na:1.6.0_11]
        at com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.load(XMLEntityScanner.java:1742) [na:1.6.0_11]
        at com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.skipChar(XMLEntityScanner.java:1416) [na:1.6.0_11]
        at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2784) [na:1.6.0_11]
        at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:648) [na:1.6.0_11]
        at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:140) [na:1.6.0_11]
        at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:510) [na:1.6.0_11]
        at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:807) [na:1.6.0_11]
        at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737) [na:1.6.0_11]
        at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:107) [na:1.6.0_11]
        at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1205) [na:1.6.0_11]
        at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:522) [na:1.6.0_11]
        at javax.xml.parsers.SAXParser.parse(SAXParser.java:395) [na:1.6.0_11]
        at javax.xml.parsers.SAXParser.parse(SAXParser.java:198) [na:1.6.0_11]
        at org.artifactory.jcr.JcrServiceImpl.importXml(JcrServiceImpl.java:656) [artifactory-core-2.1.3.jar:na]
        at sun.reflect.GeneratedMethodAccessor159.invoke(Unknown Source) [na:na]
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [na:1.6.0_11]
        at java.lang.reflect.Method.invoke(Method.java:597) [na:1.6.0_11]
        at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307) [spring-aop-2.5.6.jar:2.5.6]
        at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:198) [spring-aop-2.5.6.jar:2.5.6]
        at $Proxy18.importXml(Unknown Source) [na:na]
        at org.artifactory.jcr.fs.JcrFile.processXmlStream(JcrFile.java:552) [artifactory-core-2.1.3.jar:na]
        at org.artifactory.jcr.fs.JcrFile.setResourceNode(JcrFile.java:506) [artifactory-core-2.1.3.jar:na]
        at org.artifactory.jcr.fs.JcrFile.fillData(JcrFile.java:150) [artifactory-core-2.1.3.jar:na]
        at org.artifactory.repo.jcr.StoringRepoMixin.saveResource(StoringRepoMixin.java:421) [artifactory-core-2.1.3.jar:na]
        at org.artifactory.repo.virtual.VirtualRepo.saveResource(VirtualRepo.java:414) [artifactory-core-2.1.3.jar:na]
        at org.artifactory.repo.virtual.interceptor.PomInterceptor.onBeforeReturn(PomInterceptor.java:73) [artifactory-core-2.1.3.jar:na]
        at org.artifactory.repo.virtual.VirtualRepo.interceptBeforeReturn(VirtualRepo.java:375) [artifactory-core-2.1.3.jar:na]
        at org.artifactory.repo.virtual.VirtualRepoDownloadStrategy.getInfo(VirtualRepoDownloadStrategy.java:112) [artifactory-core-2.1.3.jar:na]
        at org.artifactory.repo.virtual.VirtualRepo.getInfo(VirtualRepo.java:480) [artifactory-core-2.1.3.jar:na]
        at org.artifactory.engine.DownloadServiceImpl.getInfo(DownloadServiceImpl.java:150) [artifactory-core-2.1.3.jar:na]
        at sun.reflect.GeneratedMethodAccessor161.invoke(Unknown Source) [na:na]
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [na:1.6.0_11]
        at java.lang.reflect.Method.invoke(Method.java:597) [na:1.6.0_11]
        at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307) [spring-aop-2.5.6.jar:2.5.6]
        at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182) [spring-aop-2.5.6.jar:2.5.6]
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149) [spring-aop-2.5.6.jar:2.5.6]
        at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106) [spring-tx-2.5.6.jar:2.5.6]
        at org.artifactory.jcr.lock.aop.LockingAdvice.invoke(LockingAdvice.java:72) [artifactory-core-2.1.3.jar:na]
        at org.artifactory.jcr.lock.aop.LockingAdvice.invoke(LockingAdvice.java:45) [artifactory-core-2.1.3.jar:na]
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) [spring-aop-2.5.6.jar:2.5.6]
        at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) [spring-aop-2.5.6.jar:2.5.6]
        at $Proxy36.getInfo(Unknown Source) [na:na]
        at org.artifactory.engine.DownloadServiceImpl.callGetInfoInTransaction(DownloadServiceImpl.java:236) [artifactory-core-2.1.3.jar:na]
        at org.artifactory.engine.DownloadServiceImpl.process(DownloadServiceImpl.java:119) [artifactory-core-2.1.3.jar:na]
        at sun.reflect.GeneratedMethodAccessor160.invoke(Unknown Source) [na:na]
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [na:1.6.0_11]
        at java.lang.reflect.Method.invoke(Method.java:597) [na:1.6.0_11]
        at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307) [spring-aop-2.5.6.jar:2.5.6]
        at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182) [spring-aop-2.5.6.jar:2.5.6]
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149) [spring-aop-2.5.6.jar:2.5.6]
        at org.artifactory.request.aop.RequestAdvice.invoke(RequestAdvice.java:66) [artifactory-core-2.1.3.jar:na]
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) [spring-aop-2.5.6.jar:2.5.6]
        at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) [spring-aop-2.5.6.jar:2.5.6]
        at $Proxy36.process(Unknown Source) [na:na]
        at org.artifactory.webapp.servlet.RepoFilter.execute(RepoFilter.java:112) [artifactory-web-application-2.1.3.jar:na]
        at org.artifactory.webapp.servlet.RepoFilter.doFilter(RepoFilter.java:76) [artifactory-web-application-2.1.3.jar:na]
        at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157) [jetty-6.1.22.jar:6.1.22]
        at org.artifactory.webapp.servlet.AccessFilter.useAuthentication(AccessFilter.java:191) [artifactory-web-application-2.1.3.jar:na]
        at org.artifactory.webapp.servlet.AccessFilter.useAnonymousIfPossible(AccessFilter.java:174) [artifactory-web-application-2.1.3.jar:na]
        at org.artifactory.webapp.servlet.AccessFilter.doFilterInternal(AccessFilter.java:115) [artifactory-web-application-2.1.3.jar:na]
        at org.artifactory.webapp.servlet.AccessFilter.doFilter(AccessFilter.java:91) [artifactory-web-application-2.1.3.jar:na]
        at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157) [jetty-6.1.22.jar:6.1.22]
        at org.artifactory.webapp.servlet.RequestFilter.doFilter(RequestFilter.java:54) [artifactory-web-application-2.1.3.jar:na]
        at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157) [jetty-6.1.22.jar:6.1.22]
        at org.artifactory.webapp.servlet.ArtifactoryFilter.doFilter(ArtifactoryFilter.java:54) [artifactory-web-application-2.1.3.jar:na]
        at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157) [jetty-6.1.22.jar:6.1.22]
        at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:388) [jetty-6.1.22.jar:6.1.22]
        at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216) [jetty-6.1.22.jar:6.1.22]
        at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182) [jetty-6.1.22.jar:6.1.22]
        at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765) [jetty-6.1.22.jar:6.1.22]
        at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:418) [jetty-6.1.22.jar:6.1.22]
        at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230) [jetty-6.1.22.jar:6.1.22]
        at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114) [jetty-6.1.22.jar:6.1.22]
        at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152) [jetty-6.1.22.jar:6.1.22]
        at org.mortbay.jetty.Server.handle(Server.java:326) [jetty-6.1.22.jar:6.1.22]
        at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542) [jetty-6.1.22.jar:6.1.22]
        at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:923) [jetty-6.1.22.jar:6.1.22]
        at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:547) [jetty-6.1.22.jar:6.1.22]
        at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212) [jetty-6.1.22.jar:6.1.22]
        at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404) [jetty-6.1.22.jar:6.1.22]
        at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409) [jetty-6.1.22.jar:6.1.22]
        at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:451) [jetty-util-6.1.22.jar:6.1.22]

In addition :

* I work behind a proxy for network communication
* I use embedded jetty DB
* I use maven 2.2.1

I didn't find any such error in the mailing list archive hope some of you can help me.

Thx

David

------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev
_______________________________________________
Artifactory-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/artifactory-users



------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev
_______________________________________________
Artifactory-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/artifactory-users



------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev
_______________________________________________
Artifactory-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/artifactory-users




--
Co. Founder and Chief Architect
JFrog Ltd
http://www.jfrog.org/
http://twitter.com/freddy33

------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
_______________________________________________
Artifactory-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/artifactory-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Can't get artifact from artifactory though it is cached

David Binder
the artifact is not in codehaus repository (who said weird ?)

I manages to get some log I didn't see cause of the small console I used, it logs the remote download of proxied artifacts may be this can be of some help

2010-01-06 23:08:27,562 [btpool0-7] [INFO ] (o.a.r.HttpRepo      :156) - nexus-indexer: Retrieving 'http://repository.sonatype.org/content/groups/public/org/codehaus/plexus/plexus/1.0.4/plexus-1.0.4.pom'...
2010-01-06 23:08:27,968 [btpool0-7] [INFO ] (o.a.r.HttpRepo      :156) - nexus-indexer: Retrieving 'http://repository.sonatype.org/content/groups/public/org/codehaus/plexus/plexus/1.0.4/plexus-1.0.4.pom.sha1'...
2010-01-06 23:08:27,984 [btpool0-7] [INFO ] (o.a.r.HttpRepo      :173) - nexus-indexer: Retrieved 'http://repository.sonatype.org/content/groups/public/org/codehaus/plexus/plexus/1.0.4/plexus-1.0.4.pom.sha1' with return code: 200.
2010-01-06 23:08:28,265 [btpool0-7] [INFO ] (o.a.r.HttpRepo      :156) - nexus-indexer: Retrieving 'http://repository.sonatype.org/content/groups/public/org/codehaus/plexus/plexus/1.0.4/plexus-1.0.4.pom.md5'...
2010-01-06 23:08:28,281 [btpool0-7] [INFO ] (o.a.r.HttpRepo      :173) - nexus-indexer: Retrieved 'http://repository.sonatype.org/content/groups/public/org/codehaus/plexus/plexus/1.0.4/plexus-1.0.4.pom.md5' with return code: 200.
2010-01-06 23:08:28,296 [btpool0-7] [WARN ] (o.a.c.x.EntityResolvingContentHandler:121) - Received the following error during xml parsing: 'The entity "oslash"was referenced, but not declared.'.
2010-01-06 23:08:28,312 [btpool0-7] [INFO ] (o.a.r.HttpRepo      :173) - nexus-indexer: Retrieved 'http://repository.sonatype.org/content/groups/public/org/codehaus/plexus/plexus/1.0.4/plexus-1.0.4.pom' with return code: 200.
2010-01-06 23:08:28,328 [btpool0-7] [WARN ] (o.a.j.JcrServiceImpl:38) - Ignoring bad XML stream while importing '/repositories/plugins-releases/org/codehaus/plexus/plexus/1.0.4/plexus-1.0.4.pom/artifactory:xml': Invalid byte 1 of 1-byte UTF-8 sequence..
2010-01-06 23:08:28,328 [btpool0-7] [WARN ] (o.a.r.j.StoringRepoMixin:451) - IO error while trying to save resource plugins-releases:org/codehaus/plexus/plexus/1.0.4/plexus-1.0.4.pom'': Invalid byte 1 of 1-byte UTF-8 sequence.

2010/1/6 Frederic Simon <[hidden email]>
Hi,
The valid plexus pom file may come from codehaus remote repo and not repo1. That's why artifactory/repo successfully downloaded it. If you had the codehaus remote repo to the list of repositories in the virtuals ( plugins-releaseslibs-snapshotslibs-releasesplugins-snapshots) or more easily the virtual remote-repos, and make sure it is place before repo1, it may solve your problem.


On Wed, Jan 6, 2010 at 9:44 PM, David Binder <[hidden email]> wrote:
1) plexus parent project artiffact is in repo1 cache under org.codehaus.plexus
2) I' can't reach it using the plugins-releases, libs-snapshotslibs-releases, plugins-snapshots urls but I can with http://localhost:8081/artifactory/repo/org/codehaus/plexus/plexus/1.0.4/plexus-1.0.4.pom (or something like this I'm away from the server right now)

using the faulting url in a brower, I get some "Invalid byte 1 of 1-byte UTF-8 " message

2010/1/6 Eli Givoni <[hidden email]>

Hi David,

We were unable to reproduce your issue locally.
can you please tell us 1.Does the artifact exist in artifactory? Under which
2.If so ,can you download it manually from the UI or by request addressing your remote repo cache?




On Wed, Jan 6, 2010 at 11:21 AM, David Binder <[hidden email]> wrote:
Hi all, first of all I'll introduce myself to stick to usual mailing list newbie politness.

I'm an IT engineer at a french company, I just started artifactory to proxy internet repositories for my company (that's for the maven thing). Other interests of mine are java EE software architecturing and related stuff.

I've came across some problem yesterday as I was trying to create an offline repository for a secured LAN.

I was unable to download a cached artifact

Maven message is :
Downloading: http://localhost:8081/artifactory/plugins-releases/org/codehaus/plexus/plexus/1.0.4/plexus-1.0.4.pom
[INFO] Unable to find resource 'org.codehaus.plexus:plexus:pom:1.0.4' in repository central (http://localhost:8081/artifactory/plugins-releases)
Downloading: http://localhost:8081/artifactory/plugins-snapshots/org/codehaus/plexus/plexus/1.0.4/plexus-1.0.4.pom
[INFO] Unable to find resource 'org.codehaus.plexus:plexus:pom:1.0.4' in repository snapshots (http://localhost:8081/artifactory/plugins-snapshots)
Downloading: http://localhost:8081/artifactory/libs-releases/org/codehaus/plexus/plexus/1.0.4/plexus-1.0.4.pom
[INFO] Unable to find resource 'org.codehaus.plexus:plexus:pom:1.0.4' in repository central (http://localhost:8081/artifactory/libs-releases)
Downloading: http://localhost:8081/artifactory/libs-snapshots/org/codehaus/plexus/plexus/1.0.4/plexus-1.0.4.pom
[INFO] Unable to find resource 'org.codehaus.plexus:plexus:pom:1.0.4' in repository snapshots (http://localhost:8081/artifactory/libs-snapshots)

and artifactory console displayed an exception for each failed atempt :

2010-01-06 09:31:21,305 [btpool0-4] [WARN ] (o.a.j.JcrServiceImpl:38) - Ignoring bad XML stream while importing '/repositories/libs-snapshots/org/codehaus/plexu
s/plexus/1.0.4/plexus-1.0.4.pom/artifactory:xml': Invalid byte 1 of 1-byte UTF-8 sequence..
2010-01-06 09:31:21,305 [btpool0-4] [WARN ] (o.a.r.j.StoringRepoMixin:451) - IO error while trying to save resource libs-snapshots:org/codehaus/plexus/plexus/1.
0.4/plexus-1.0.4.pom'': Invalid byte 1 of 1-byte UTF-8 sequence.
2010-01-06 09:31:21,320 [btpool0-4] [ERROR] (o.a.r.v.i.PomInterceptor:77) - Failed to import file to local storage
com.sun.org.apache.xerces.internal.impl.io.MalformedByteSequenceException: Invalid byte 1 of 1-byte UTF-8 sequence.
        at com.sun.org.apache.xerces.internal.impl.io.UTF8Reader.invalidByte(UTF8Reader.java:674) [na:1.6.0_11]
        at com.sun.org.apache.xerces.internal.impl.io.UTF8Reader.read(UTF8Reader.java:547) [na:1.6.0_11]
        at com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.load(XMLEntityScanner.java:1742) [na:1.6.0_11]
        at com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.skipChar(XMLEntityScanner.java:1416) [na:1.6.0_11]
        at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2784) [na:1.6.0_11]
        at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:648) [na:1.6.0_11]
        at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:140) [na:1.6.0_11]
        at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:510) [na:1.6.0_11]
        at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:807) [na:1.6.0_11]
        at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737) [na:1.6.0_11]
        at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:107) [na:1.6.0_11]
        at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1205) [na:1.6.0_11]
        at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:522) [na:1.6.0_11]
        at javax.xml.parsers.SAXParser.parse(SAXParser.java:395) [na:1.6.0_11]
        at javax.xml.parsers.SAXParser.parse(SAXParser.java:198) [na:1.6.0_11]
        at org.artifactory.jcr.JcrServiceImpl.importXml(JcrServiceImpl.java:656) [artifactory-core-2.1.3.jar:na]
        at sun.reflect.GeneratedMethodAccessor159.invoke(Unknown Source) [na:na]
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [na:1.6.0_11]
        at java.lang.reflect.Method.invoke(Method.java:597) [na:1.6.0_11]
        at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307) [spring-aop-2.5.6.jar:2.5.6]
        at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:198) [spring-aop-2.5.6.jar:2.5.6]
        at $Proxy18.importXml(Unknown Source) [na:na]
        at org.artifactory.jcr.fs.JcrFile.processXmlStream(JcrFile.java:552) [artifactory-core-2.1.3.jar:na]
        at org.artifactory.jcr.fs.JcrFile.setResourceNode(JcrFile.java:506) [artifactory-core-2.1.3.jar:na]
        at org.artifactory.jcr.fs.JcrFile.fillData(JcrFile.java:150) [artifactory-core-2.1.3.jar:na]
        at org.artifactory.repo.jcr.StoringRepoMixin.saveResource(StoringRepoMixin.java:421) [artifactory-core-2.1.3.jar:na]
        at org.artifactory.repo.virtual.VirtualRepo.saveResource(VirtualRepo.java:414) [artifactory-core-2.1.3.jar:na]
        at org.artifactory.repo.virtual.interceptor.PomInterceptor.onBeforeReturn(PomInterceptor.java:73) [artifactory-core-2.1.3.jar:na]
        at org.artifactory.repo.virtual.VirtualRepo.interceptBeforeReturn(VirtualRepo.java:375) [artifactory-core-2.1.3.jar:na]
        at org.artifactory.repo.virtual.VirtualRepoDownloadStrategy.getInfo(VirtualRepoDownloadStrategy.java:112) [artifactory-core-2.1.3.jar:na]
        at org.artifactory.repo.virtual.VirtualRepo.getInfo(VirtualRepo.java:480) [artifactory-core-2.1.3.jar:na]
        at org.artifactory.engine.DownloadServiceImpl.getInfo(DownloadServiceImpl.java:150) [artifactory-core-2.1.3.jar:na]
        at sun.reflect.GeneratedMethodAccessor161.invoke(Unknown Source) [na:na]
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [na:1.6.0_11]
        at java.lang.reflect.Method.invoke(Method.java:597) [na:1.6.0_11]
        at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307) [spring-aop-2.5.6.jar:2.5.6]
        at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182) [spring-aop-2.5.6.jar:2.5.6]
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149) [spring-aop-2.5.6.jar:2.5.6]
        at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106) [spring-tx-2.5.6.jar:2.5.6]
        at org.artifactory.jcr.lock.aop.LockingAdvice.invoke(LockingAdvice.java:72) [artifactory-core-2.1.3.jar:na]
        at org.artifactory.jcr.lock.aop.LockingAdvice.invoke(LockingAdvice.java:45) [artifactory-core-2.1.3.jar:na]
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) [spring-aop-2.5.6.jar:2.5.6]
        at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) [spring-aop-2.5.6.jar:2.5.6]
        at $Proxy36.getInfo(Unknown Source) [na:na]
        at org.artifactory.engine.DownloadServiceImpl.callGetInfoInTransaction(DownloadServiceImpl.java:236) [artifactory-core-2.1.3.jar:na]
        at org.artifactory.engine.DownloadServiceImpl.process(DownloadServiceImpl.java:119) [artifactory-core-2.1.3.jar:na]
        at sun.reflect.GeneratedMethodAccessor160.invoke(Unknown Source) [na:na]
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [na:1.6.0_11]
        at java.lang.reflect.Method.invoke(Method.java:597) [na:1.6.0_11]
        at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307) [spring-aop-2.5.6.jar:2.5.6]
        at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182) [spring-aop-2.5.6.jar:2.5.6]
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149) [spring-aop-2.5.6.jar:2.5.6]
        at org.artifactory.request.aop.RequestAdvice.invoke(RequestAdvice.java:66) [artifactory-core-2.1.3.jar:na]
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) [spring-aop-2.5.6.jar:2.5.6]
        at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) [spring-aop-2.5.6.jar:2.5.6]
        at $Proxy36.process(Unknown Source) [na:na]
        at org.artifactory.webapp.servlet.RepoFilter.execute(RepoFilter.java:112) [artifactory-web-application-2.1.3.jar:na]
        at org.artifactory.webapp.servlet.RepoFilter.doFilter(RepoFilter.java:76) [artifactory-web-application-2.1.3.jar:na]
        at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157) [jetty-6.1.22.jar:6.1.22]
        at org.artifactory.webapp.servlet.AccessFilter.useAuthentication(AccessFilter.java:191) [artifactory-web-application-2.1.3.jar:na]
        at org.artifactory.webapp.servlet.AccessFilter.useAnonymousIfPossible(AccessFilter.java:174) [artifactory-web-application-2.1.3.jar:na]
        at org.artifactory.webapp.servlet.AccessFilter.doFilterInternal(AccessFilter.java:115) [artifactory-web-application-2.1.3.jar:na]
        at org.artifactory.webapp.servlet.AccessFilter.doFilter(AccessFilter.java:91) [artifactory-web-application-2.1.3.jar:na]
        at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157) [jetty-6.1.22.jar:6.1.22]
        at org.artifactory.webapp.servlet.RequestFilter.doFilter(RequestFilter.java:54) [artifactory-web-application-2.1.3.jar:na]
        at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157) [jetty-6.1.22.jar:6.1.22]
        at org.artifactory.webapp.servlet.ArtifactoryFilter.doFilter(ArtifactoryFilter.java:54) [artifactory-web-application-2.1.3.jar:na]
        at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157) [jetty-6.1.22.jar:6.1.22]
        at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:388) [jetty-6.1.22.jar:6.1.22]
        at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216) [jetty-6.1.22.jar:6.1.22]
        at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182) [jetty-6.1.22.jar:6.1.22]
        at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765) [jetty-6.1.22.jar:6.1.22]
        at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:418) [jetty-6.1.22.jar:6.1.22]
        at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230) [jetty-6.1.22.jar:6.1.22]
        at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114) [jetty-6.1.22.jar:6.1.22]
        at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152) [jetty-6.1.22.jar:6.1.22]
        at org.mortbay.jetty.Server.handle(Server.java:326) [jetty-6.1.22.jar:6.1.22]
        at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542) [jetty-6.1.22.jar:6.1.22]
        at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:923) [jetty-6.1.22.jar:6.1.22]
        at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:547) [jetty-6.1.22.jar:6.1.22]
        at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212) [jetty-6.1.22.jar:6.1.22]
        at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404) [jetty-6.1.22.jar:6.1.22]
        at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409) [jetty-6.1.22.jar:6.1.22]
        at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:451) [jetty-util-6.1.22.jar:6.1.22]

In addition :

* I work behind a proxy for network communication
* I use embedded jetty DB
* I use maven 2.2.1

I didn't find any such error in the mailing list archive hope some of you can help me.

Thx

David

------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev
_______________________________________________
Artifactory-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/artifactory-users



------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev
_______________________________________________
Artifactory-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/artifactory-users



------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev
_______________________________________________
Artifactory-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/artifactory-users




--
Co. Founder and Chief Architect
JFrog Ltd
http://www.jfrog.org/
http://twitter.com/freddy33

------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev
_______________________________________________
Artifactory-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/artifactory-users



------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
_______________________________________________
Artifactory-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/artifactory-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Can't get artifact from artifactory though it is cached

David Binder
hey I found why it was screwed
<developer>
      <name>Trygve Laugst&oslash;l</name>
      <id>trygvis</id>
      <email>[hidden email]</email>
      <roles>
        <role>Developer</role>
      </roles>
    </developer>

second line is the problem, at sometime, somehow the pom is parsed and &oslash; is not recognized as a character.



2010/1/6 David Binder <[hidden email]>
the artifact is not in codehaus repository (who said weird ?)

I manages to get some log I didn't see cause of the small console I used, it logs the remote download of proxied artifacts may be this can be of some help

2010-01-06 23:08:27,562 [btpool0-7] [INFO ] (o.a.r.HttpRepo      :156) - nexus-indexer: Retrieving 'http://repository.sonatype.org/content/groups/public/org/codehaus/plexus/plexus/1.0.4/plexus-1.0.4.pom'...
2010-01-06 23:08:27,968 [btpool0-7] [INFO ] (o.a.r.HttpRepo      :156) - nexus-indexer: Retrieving 'http://repository.sonatype.org/content/groups/public/org/codehaus/plexus/plexus/1.0.4/plexus-1.0.4.pom.sha1'...
2010-01-06 23:08:27,984 [btpool0-7] [INFO ] (o.a.r.HttpRepo      :173) - nexus-indexer: Retrieved 'http://repository.sonatype.org/content/groups/public/org/codehaus/plexus/plexus/1.0.4/plexus-1.0.4.pom.sha1' with return code: 200.
2010-01-06 23:08:28,265 [btpool0-7] [INFO ] (o.a.r.HttpRepo      :156) - nexus-indexer: Retrieving 'http://repository.sonatype.org/content/groups/public/org/codehaus/plexus/plexus/1.0.4/plexus-1.0.4.pom.md5'...
2010-01-06 23:08:28,281 [btpool0-7] [INFO ] (o.a.r.HttpRepo      :173) - nexus-indexer: Retrieved 'http://repository.sonatype.org/content/groups/public/org/codehaus/plexus/plexus/1.0.4/plexus-1.0.4.pom.md5' with return code: 200.
2010-01-06 23:08:28,296 [btpool0-7] [WARN ] (o.a.c.x.EntityResolvingContentHandler:121) - Received the following error during xml parsing: 'The entity "oslash"was referenced, but not declared.'.
2010-01-06 23:08:28,312 [btpool0-7] [INFO ] (o.a.r.HttpRepo      :173) - nexus-indexer: Retrieved 'http://repository.sonatype.org/content/groups/public/org/codehaus/plexus/plexus/1.0.4/plexus-1.0.4.pom' with return code: 200.
2010-01-06 23:08:28,328 [btpool0-7] [WARN ] (o.a.j.JcrServiceImpl:38) - Ignoring bad XML stream while importing '/repositories/plugins-releases/org/codehaus/plexus/plexus/1.0.4/plexus-1.0.4.pom/artifactory:xml': Invalid byte 1 of 1-byte UTF-8 sequence..
2010-01-06 23:08:28,328 [btpool0-7] [WARN ] (o.a.r.j.StoringRepoMixin:451) - IO error while trying to save resource plugins-releases:org/codehaus/plexus/plexus/1.0.4/plexus-1.0.4.pom'': Invalid byte 1 of 1-byte UTF-8 sequence.

2010/1/6 Frederic Simon <[hidden email]>

Hi,
The valid plexus pom file may come from codehaus remote repo and not repo1. That's why artifactory/repo successfully downloaded it. If you had the codehaus remote repo to the list of repositories in the virtuals ( plugins-releaseslibs-snapshotslibs-releasesplugins-snapshots) or more easily the virtual remote-repos, and make sure it is place before repo1, it may solve your problem.


On Wed, Jan 6, 2010 at 9:44 PM, David Binder <[hidden email]> wrote:
1) plexus parent project artiffact is in repo1 cache under org.codehaus.plexus
2) I' can't reach it using the plugins-releases, libs-snapshotslibs-releases, plugins-snapshots urls but I can with http://localhost:8081/artifactory/repo/org/codehaus/plexus/plexus/1.0.4/plexus-1.0.4.pom (or something like this I'm away from the server right now)

using the faulting url in a brower, I get some "Invalid byte 1 of 1-byte UTF-8 " message

2010/1/6 Eli Givoni <[hidden email]>

Hi David,

We were unable to reproduce your issue locally.
can you please tell us 1.Does the artifact exist in artifactory? Under which
2.If so ,can you download it manually from the UI or by request addressing your remote repo cache?




On Wed, Jan 6, 2010 at 11:21 AM, David Binder <[hidden email]> wrote:
Hi all, first of all I'll introduce myself to stick to usual mailing list newbie politness.

I'm an IT engineer at a french company, I just started artifactory to proxy internet repositories for my company (that's for the maven thing). Other interests of mine are java EE software architecturing and related stuff.

I've came across some problem yesterday as I was trying to create an offline repository for a secured LAN.

I was unable to download a cached artifact

Maven message is :
Downloading: http://localhost:8081/artifactory/plugins-releases/org/codehaus/plexus/plexus/1.0.4/plexus-1.0.4.pom
[INFO] Unable to find resource 'org.codehaus.plexus:plexus:pom:1.0.4' in repository central (http://localhost:8081/artifactory/plugins-releases)
Downloading: http://localhost:8081/artifactory/plugins-snapshots/org/codehaus/plexus/plexus/1.0.4/plexus-1.0.4.pom
[INFO] Unable to find resource 'org.codehaus.plexus:plexus:pom:1.0.4' in repository snapshots (http://localhost:8081/artifactory/plugins-snapshots)
Downloading: http://localhost:8081/artifactory/libs-releases/org/codehaus/plexus/plexus/1.0.4/plexus-1.0.4.pom
[INFO] Unable to find resource 'org.codehaus.plexus:plexus:pom:1.0.4' in repository central (http://localhost:8081/artifactory/libs-releases)
Downloading: http://localhost:8081/artifactory/libs-snapshots/org/codehaus/plexus/plexus/1.0.4/plexus-1.0.4.pom
[INFO] Unable to find resource 'org.codehaus.plexus:plexus:pom:1.0.4' in repository snapshots (http://localhost:8081/artifactory/libs-snapshots)

and artifactory console displayed an exception for each failed atempt :

2010-01-06 09:31:21,305 [btpool0-4] [WARN ] (o.a.j.JcrServiceImpl:38) - Ignoring bad XML stream while importing '/repositories/libs-snapshots/org/codehaus/plexu
s/plexus/1.0.4/plexus-1.0.4.pom/artifactory:xml': Invalid byte 1 of 1-byte UTF-8 sequence..
2010-01-06 09:31:21,305 [btpool0-4] [WARN ] (o.a.r.j.StoringRepoMixin:451) - IO error while trying to save resource libs-snapshots:org/codehaus/plexus/plexus/1.
0.4/plexus-1.0.4.pom'': Invalid byte 1 of 1-byte UTF-8 sequence.
2010-01-06 09:31:21,320 [btpool0-4] [ERROR] (o.a.r.v.i.PomInterceptor:77) - Failed to import file to local storage
com.sun.org.apache.xerces.internal.impl.io.MalformedByteSequenceException: Invalid byte 1 of 1-byte UTF-8 sequence.
        at com.sun.org.apache.xerces.internal.impl.io.UTF8Reader.invalidByte(UTF8Reader.java:674) [na:1.6.0_11]
        at com.sun.org.apache.xerces.internal.impl.io.UTF8Reader.read(UTF8Reader.java:547) [na:1.6.0_11]
        at com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.load(XMLEntityScanner.java:1742) [na:1.6.0_11]
        at com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.skipChar(XMLEntityScanner.java:1416) [na:1.6.0_11]
        at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2784) [na:1.6.0_11]
        at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:648) [na:1.6.0_11]
        at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:140) [na:1.6.0_11]
        at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:510) [na:1.6.0_11]
        at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:807) [na:1.6.0_11]
        at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737) [na:1.6.0_11]
        at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:107) [na:1.6.0_11]
        at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1205) [na:1.6.0_11]
        at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:522) [na:1.6.0_11]
        at javax.xml.parsers.SAXParser.parse(SAXParser.java:395) [na:1.6.0_11]
        at javax.xml.parsers.SAXParser.parse(SAXParser.java:198) [na:1.6.0_11]
        at org.artifactory.jcr.JcrServiceImpl.importXml(JcrServiceImpl.java:656) [artifactory-core-2.1.3.jar:na]
        at sun.reflect.GeneratedMethodAccessor159.invoke(Unknown Source) [na:na]
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [na:1.6.0_11]
        at java.lang.reflect.Method.invoke(Method.java:597) [na:1.6.0_11]
        at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307) [spring-aop-2.5.6.jar:2.5.6]
        at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:198) [spring-aop-2.5.6.jar:2.5.6]
        at $Proxy18.importXml(Unknown Source) [na:na]
        at org.artifactory.jcr.fs.JcrFile.processXmlStream(JcrFile.java:552) [artifactory-core-2.1.3.jar:na]
        at org.artifactory.jcr.fs.JcrFile.setResourceNode(JcrFile.java:506) [artifactory-core-2.1.3.jar:na]
        at org.artifactory.jcr.fs.JcrFile.fillData(JcrFile.java:150) [artifactory-core-2.1.3.jar:na]
        at org.artifactory.repo.jcr.StoringRepoMixin.saveResource(StoringRepoMixin.java:421) [artifactory-core-2.1.3.jar:na]
        at org.artifactory.repo.virtual.VirtualRepo.saveResource(VirtualRepo.java:414) [artifactory-core-2.1.3.jar:na]
        at org.artifactory.repo.virtual.interceptor.PomInterceptor.onBeforeReturn(PomInterceptor.java:73) [artifactory-core-2.1.3.jar:na]
        at org.artifactory.repo.virtual.VirtualRepo.interceptBeforeReturn(VirtualRepo.java:375) [artifactory-core-2.1.3.jar:na]
        at org.artifactory.repo.virtual.VirtualRepoDownloadStrategy.getInfo(VirtualRepoDownloadStrategy.java:112) [artifactory-core-2.1.3.jar:na]
        at org.artifactory.repo.virtual.VirtualRepo.getInfo(VirtualRepo.java:480) [artifactory-core-2.1.3.jar:na]
        at org.artifactory.engine.DownloadServiceImpl.getInfo(DownloadServiceImpl.java:150) [artifactory-core-2.1.3.jar:na]
        at sun.reflect.GeneratedMethodAccessor161.invoke(Unknown Source) [na:na]
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [na:1.6.0_11]
        at java.lang.reflect.Method.invoke(Method.java:597) [na:1.6.0_11]
        at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307) [spring-aop-2.5.6.jar:2.5.6]
        at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182) [spring-aop-2.5.6.jar:2.5.6]
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149) [spring-aop-2.5.6.jar:2.5.6]
        at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106) [spring-tx-2.5.6.jar:2.5.6]
        at org.artifactory.jcr.lock.aop.LockingAdvice.invoke(LockingAdvice.java:72) [artifactory-core-2.1.3.jar:na]
        at org.artifactory.jcr.lock.aop.LockingAdvice.invoke(LockingAdvice.java:45) [artifactory-core-2.1.3.jar:na]
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) [spring-aop-2.5.6.jar:2.5.6]
        at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) [spring-aop-2.5.6.jar:2.5.6]
        at $Proxy36.getInfo(Unknown Source) [na:na]
        at org.artifactory.engine.DownloadServiceImpl.callGetInfoInTransaction(DownloadServiceImpl.java:236) [artifactory-core-2.1.3.jar:na]
        at org.artifactory.engine.DownloadServiceImpl.process(DownloadServiceImpl.java:119) [artifactory-core-2.1.3.jar:na]
        at sun.reflect.GeneratedMethodAccessor160.invoke(Unknown Source) [na:na]
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [na:1.6.0_11]
        at java.lang.reflect.Method.invoke(Method.java:597) [na:1.6.0_11]
        at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307) [spring-aop-2.5.6.jar:2.5.6]
        at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182) [spring-aop-2.5.6.jar:2.5.6]
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149) [spring-aop-2.5.6.jar:2.5.6]
        at org.artifactory.request.aop.RequestAdvice.invoke(RequestAdvice.java:66) [artifactory-core-2.1.3.jar:na]
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) [spring-aop-2.5.6.jar:2.5.6]
        at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) [spring-aop-2.5.6.jar:2.5.6]
        at $Proxy36.process(Unknown Source) [na:na]
        at org.artifactory.webapp.servlet.RepoFilter.execute(RepoFilter.java:112) [artifactory-web-application-2.1.3.jar:na]
        at org.artifactory.webapp.servlet.RepoFilter.doFilter(RepoFilter.java:76) [artifactory-web-application-2.1.3.jar:na]
        at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157) [jetty-6.1.22.jar:6.1.22]
        at org.artifactory.webapp.servlet.AccessFilter.useAuthentication(AccessFilter.java:191) [artifactory-web-application-2.1.3.jar:na]
        at org.artifactory.webapp.servlet.AccessFilter.useAnonymousIfPossible(AccessFilter.java:174) [artifactory-web-application-2.1.3.jar:na]
        at org.artifactory.webapp.servlet.AccessFilter.doFilterInternal(AccessFilter.java:115) [artifactory-web-application-2.1.3.jar:na]
        at org.artifactory.webapp.servlet.AccessFilter.doFilter(AccessFilter.java:91) [artifactory-web-application-2.1.3.jar:na]
        at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157) [jetty-6.1.22.jar:6.1.22]
        at org.artifactory.webapp.servlet.RequestFilter.doFilter(RequestFilter.java:54) [artifactory-web-application-2.1.3.jar:na]
        at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157) [jetty-6.1.22.jar:6.1.22]
        at org.artifactory.webapp.servlet.ArtifactoryFilter.doFilter(ArtifactoryFilter.java:54) [artifactory-web-application-2.1.3.jar:na]
        at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157) [jetty-6.1.22.jar:6.1.22]
        at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:388) [jetty-6.1.22.jar:6.1.22]
        at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216) [jetty-6.1.22.jar:6.1.22]
        at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182) [jetty-6.1.22.jar:6.1.22]
        at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765) [jetty-6.1.22.jar:6.1.22]
        at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:418) [jetty-6.1.22.jar:6.1.22]
        at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230) [jetty-6.1.22.jar:6.1.22]
        at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114) [jetty-6.1.22.jar:6.1.22]
        at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152) [jetty-6.1.22.jar:6.1.22]
        at org.mortbay.jetty.Server.handle(Server.java:326) [jetty-6.1.22.jar:6.1.22]
        at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542) [jetty-6.1.22.jar:6.1.22]
        at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:923) [jetty-6.1.22.jar:6.1.22]
        at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:547) [jetty-6.1.22.jar:6.1.22]
        at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212) [jetty-6.1.22.jar:6.1.22]
        at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404) [jetty-6.1.22.jar:6.1.22]
        at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409) [jetty-6.1.22.jar:6.1.22]
        at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:451) [jetty-util-6.1.22.jar:6.1.22]

In addition :

* I work behind a proxy for network communication
* I use embedded jetty DB
* I use maven 2.2.1

I didn't find any such error in the mailing list archive hope some of you can help me.

Thx

David

------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev
_______________________________________________
Artifactory-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/artifactory-users



------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev
_______________________________________________
Artifactory-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/artifactory-users



------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev
_______________________________________________
Artifactory-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/artifactory-users




--
Co. Founder and Chief Architect
JFrog Ltd
http://www.jfrog.org/
http://twitter.com/freddy33

------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev
_______________________________________________
Artifactory-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/artifactory-users




------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
_______________________________________________
Artifactory-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/artifactory-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Can't get artifact from artifactory though it is cached

Yoav Landman
Administrator
Yes, this specific pom is corrupt and is not a valid xml document
(missing entity declaration). You can either take the good version
from codehaus (by placing it above repo1 in the remote repo list) or
remove the offending character and deploy it to one of the local
repositories.

On Thursday, January 7, 2010, David Binder <[hidden email]> wrote:

> hey I found why it was screwed
> <developer>
>       <name>Trygve Laugst&oslash;l</name>
>       <id>trygvis</id>
>       <email>[hidden email]</email>
>       <roles>
>         <role>Developer</role>
>       </roles>
>     </developer>
>
> second line is the problem, at sometime, somehow the pom is parsed and &oslash; is not recognized as a character.
>
>
>
> 2010/1/6 David Binder <[hidden email]>
>
> the artifact is not in codehaus repository (who said weird ?)
>
> I manages to get some log I didn't see cause of the small console I used, it logs the remote download of proxied artifacts may be this can be of some help
>
> 2010-01-06 23:08:27,562 [btpool0-7] [INFO ] (o.a.r.HttpRepo      :156) - nexus-indexer: Retrieving 'http://repository.sonatype.org/content/groups/public/org/codehaus/plexus/plexus/1.0.4/plexus-1.0.4.pom'...
> 2010-01-06 23:08:27,968 [btpool0-7] [INFO ] (o.a.r.HttpRepo      :156) - nexus-indexer: Retrieving 'http://repository.sonatype.org/content/groups/public/org/codehaus/plexus/plexus/1.0.4/plexus-1.0.4.pom.sha1'...
> 2010-01-06 23:08:27,984 [btpool0-7] [INFO ] (o.a.r.HttpRepo      :173) - nexus-indexer: Retrieved 'http://repository.sonatype.org/content/groups/public/org/codehaus/plexus/plexus/1.0.4/plexus-1.0.4.pom.sha1' with return code: 200.
> 2010-01-06 23:08:28,265 [btpool0-7] [INFO ] (o.a.r.HttpRepo      :156) - nexus-indexer: Retrieving 'http://repository.sonatype.org/content/groups/public/org/codehaus/plexus/plexus/1.0.4/plexus-1.0.4.pom.md5'...
> 2010-01-06 23:08:28,281 [btpool0-7] [INFO ] (o.a.r.HttpRepo      :173) - nexus-indexer: Retrieved 'http://repository.sonatype.org/content/groups/public/org/codehaus/plexus/plexus/1.0.4/plexus-1.0.4.pom.md5' with return code: 200.
> 2010-01-06 23:08:28,296 [btpool0-7] [WARN ] (o.a.c.x.EntityResolvingContentHandler:121) - Received the following error during xml parsing: 'The entity "oslash"was referenced, but not declared.'.
> 2010-01-06 23:08:28,312 [btpool0-7] [INFO ] (o.a.r.HttpRepo      :173) - nexus-indexer: Retrieved 'http://repository.sonatype.org/content/groups/public/org/codehaus/plexus/plexus/1.0.4/plexus-1.0.4.pom' with return code: 200.
> 2010-01-06 23:08:28,328 [btpool0-7] [WARN ] (o.a.j.JcrServiceImpl:38) - Ignoring bad XML stream while importing '/repositories/plugins-releases/org/codehaus/plexus/plexus/1.0.4/plexus-1.0.4.pom/artifactory:xml': Invalid byte 1 of 1-byte UTF-8 sequence..
> 2010-01-06 23:08:28,328 [btpool0-7] [WARN ] (o.a.r.j.StoringRepoMixin:451) - IO error while trying to save resource plugins-releases:org/codehaus/plexus/plexus/1.0.4/plexus-1.0.4.pom'': Invalid byte 1 of 1-byte UTF-8 sequence.
>
> 2010/1/6 Frederic Simon <[hidden email]>
>
>
> Hi,The valid plexus pom file may come from codehaus remote repo and not repo1. That's why artifactory/repo successfully downloaded it. If you had the codehaus remote repo to the list of repositories in the virtuals ( plugins-releases <http://localhost:8081/artifactory/plugins-releases/org/codehaus/plexus/plexus/1.0.4/plexus-1.0.4.pom>, libs-snapshots, libs <http://localhost:8081/artifactory/libs-snapshots/org/codehaus/plexus/plexus/1.0.4/plexus-1.0.4.pom>-releases <http://localhost:8081/artifactory/plugins-releases/org/codehaus/plexus/plexus/1.0.4/plexus-1.0.4.pom>, plugins-snapshots <http://localhost:8081/artifactory/libs-snapshots/org/codehaus/plexus/plexus/1.0.4/plexus-1.0.4.pom>) or more easily the virtual remote-repos, and make sure it is place before repo1, it may solve your problem.
>
>
>
> On Wed, Jan 6, 2010 at 9:44 PM, David Binder <
>

--
Yoav Landman
Artifactory Creator
Co-founder and Product Development Lead
JFrog Ltd.
http://www.jfrog.org/

------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
_______________________________________________
Artifactory-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/artifactory-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Can't get artifact from artifactory though it is cached

David Binder
Unfortunately the artifact is not in codehaus' repository, I saw it in sonatype's, but I assume it is cached from repo1 as it is in the same way broken, I'll make some local copy for now

2010/1/7 Yoav Landman <[hidden email]>
Yes, this specific pom is corrupt and is not a valid xml document
(missing entity declaration). You can either take the good version
from codehaus (by placing it above repo1 in the remote repo list) or
remove the offending character and deploy it to one of the local
repositories.

On Thursday, January 7, 2010, David Binder <[hidden email]> wrote:
> hey I found why it was screwed
> <developer>
>       <name>Trygve Laugst&oslash;l</name>
>       <id>trygvis</id>
>       <email>[hidden email]</email>
>       <roles>
>         <role>Developer</role>
>       </roles>
>     </developer>
>
> second line is the problem, at sometime, somehow the pom is parsed and &oslash; is not recognized as a character.
>
>
>
> 2010/1/6 David Binder <[hidden email]>
>
> the artifact is not in codehaus repository (who said weird ?)
>
> I manages to get some log I didn't see cause of the small console I used, it logs the remote download of proxied artifacts may be this can be of some help
>
> 2010-01-06 23:08:27,562 [btpool0-7] [INFO ] (o.a.r.HttpRepo      :156) - nexus-indexer: Retrieving 'http://repository.sonatype.org/content/groups/public/org/codehaus/plexus/plexus/1.0.4/plexus-1.0.4.pom'...
> 2010-01-06 23:08:27,968 [btpool0-7] [INFO ] (o.a.r.HttpRepo      :156) - nexus-indexer: Retrieving 'http://repository.sonatype.org/content/groups/public/org/codehaus/plexus/plexus/1.0.4/plexus-1.0.4.pom.sha1'...
> 2010-01-06 23:08:27,984 [btpool0-7] [INFO ] (o.a.r.HttpRepo      :173) - nexus-indexer: Retrieved 'http://repository.sonatype.org/content/groups/public/org/codehaus/plexus/plexus/1.0.4/plexus-1.0.4.pom.sha1' with return code: 200.
> 2010-01-06 23:08:28,265 [btpool0-7] [INFO ] (o.a.r.HttpRepo      :156) - nexus-indexer: Retrieving 'http://repository.sonatype.org/content/groups/public/org/codehaus/plexus/plexus/1.0.4/plexus-1.0.4.pom.md5'...
> 2010-01-06 23:08:28,281 [btpool0-7] [INFO ] (o.a.r.HttpRepo      :173) - nexus-indexer: Retrieved 'http://repository.sonatype.org/content/groups/public/org/codehaus/plexus/plexus/1.0.4/plexus-1.0.4.pom.md5' with return code: 200.
> 2010-01-06 23:08:28,296 [btpool0-7] [WARN ] (o.a.c.x.EntityResolvingContentHandler:121) - Received the following error during xml parsing: 'The entity "oslash"was referenced, but not declared.'.
> 2010-01-06 23:08:28,312 [btpool0-7] [INFO ] (o.a.r.HttpRepo      :173) - nexus-indexer: Retrieved 'http://repository.sonatype.org/content/groups/public/org/codehaus/plexus/plexus/1.0.4/plexus-1.0.4.pom' with return code: 200.
> 2010-01-06 23:08:28,328 [btpool0-7] [WARN ] (o.a.j.JcrServiceImpl:38) - Ignoring bad XML stream while importing '/repositories/plugins-releases/org/codehaus/plexus/plexus/1.0.4/plexus-1.0.4.pom/artifactory:xml': Invalid byte 1 of 1-byte UTF-8 sequence..
> 2010-01-06 23:08:28,328 [btpool0-7] [WARN ] (o.a.r.j.StoringRepoMixin:451) - IO error while trying to save resource plugins-releases:org/codehaus/plexus/plexus/1.0.4/plexus-1.0.4.pom'': Invalid byte 1 of 1-byte UTF-8 sequence.
>
> 2010/1/6 Frederic Simon <[hidden email]>
>
>
> Hi,The valid plexus pom file may come from codehaus remote repo and not repo1. That's why artifactory/repo successfully downloaded it. If you had the codehaus remote repo to the list of repositories in the virtuals ( plugins-releases <http://localhost:8081/artifactory/plugins-releases/org/codehaus/plexus/plexus/1.0.4/plexus-1.0.4.pom>, libs-snapshots, libs <http://localhost:8081/artifactory/libs-snapshots/org/codehaus/plexus/plexus/1.0.4/plexus-1.0.4.pom>-releases <http://localhost:8081/artifactory/plugins-releases/org/codehaus/plexus/plexus/1.0.4/plexus-1.0.4.pom>, plugins-snapshots <http://localhost:8081/artifactory/libs-snapshots/org/codehaus/plexus/plexus/1.0.4/plexus-1.0.4.pom>) or more easily the virtual remote-repos, and make sure it is place before repo1, it may solve your problem.
>
>
>
> On Wed, Jan 6, 2010 at 9:44 PM, David Binder <
>

--
Yoav Landman
Artifactory Creator
Co-founder and Product Development Lead
------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev
_______________________________________________
Artifactory-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/artifactory-users


------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
_______________________________________________
Artifactory-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/artifactory-users
Loading...