weird error downloading maven dependencies

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

weird error downloading maven dependencies

Marcos Mendez
I'm getting a weird error on ubuntu downloading maven dependencies. I've created a couple of cars, and they're working on mac, windows and mint. We've recently setup a test ubuntu server. Everything seems to be in order as far as I can tell. Maven repo exists, env variables set and all. But when I try to install the simplest car (already working and tested), I get the following error below. This is a vanilla 3.0 install.

I'm also getting this error, but that's another matter. (https://issues.apache.org/jira/browse/GERONIMO-6216)

Anyone have any ideas? Any way I can get more debug logs on this this more? I'm already running it with -vvvv. 

I'm using one account on Ubuntu 12.04.2 LTS. The ./m2/repository dir exists. And this car works perfectly elsewhere.

-- plugin repository install message ---

Current file being operated on...
Copying com.google.code.gson/gson/2.2.2/jar to the repository

A problem has occured:
java.lang.IllegalArgumentException: Cannot read source file at /home/marcos/.m2/repository/com/google/code/gson/gson/2.2.2/gson-2.2.2.jar

---- log ---

2013-03-14 11:01:56,666 ERROR [PluginInstallerGBean] Unable to install plugin
java.lang.IllegalArgumentException: Cannot read source file at /home/marcos/.m2/repository/com/google/code/gson/gson/2.2.2/gson-2.2.2.jar
at org.apache.geronimo.kernel.repository.AbstractRepository.copyToRepository(AbstractRepository.java:78)
at org.apache.geronimo.system.plugin.LocalOpenResult.install(LocalOpenResult.java:51)
at org.apache.geronimo.system.plugin.PluginInstallerGBean.downloadArtifact(PluginInstallerGBean.java:1321)
at org.apache.geronimo.system.plugin.PluginInstallerGBean.downloadArtifact(PluginInstallerGBean.java:1392)
at org.apache.geronimo.system.plugin.PluginInstallerGBean.install(PluginInstallerGBean.java:776)
at org.apache.geronimo.system.plugin.PluginInstallerGBean.install(PluginInstallerGBean.java:721)
at org.apache.geronimo.system.plugin.PluginInstallerGBean.install(PluginInstallerGBean.java:717)
at org.apache.geronimo.system.plugin.PluginInstallerGBean$3.run(PluginInstallerGBean.java:889)
at org.apache.geronimo.pool.ThreadPool$1.run(ThreadPool.java:243)
at org.apache.geronimo.pool.ThreadPool$ContextClassLoaderRunnable.run(ThreadPool.java:373)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
at java.lang.Thread.run(Thread.java:662)
2013-03-14 11:01:56,716 WARN  [BaseCallMarshaller] --Erroring: batchId[2] message[java.lang.Exception: Unable to install configuration]
Reply | Threaded
Open this post in threaded view
|

Re: weird error downloading maven dependencies

Peter Petersson-2
I am not entirely sure but I have a wage recollection of something reassembling the problem you encountered (I am also on Ubuntu).

If I recollect correctly the problem you have may have to do with a problem extracting a war/jar file containing files with file names having spaces or some suspect characters in the name.

best regards Peter Petersson    

On 03/14/2013 10:10 PM, Marcos Mendez wrote:
I'm getting a weird error on ubuntu downloading maven dependencies. I've created a couple of cars, and they're working on mac, windows and mint. We've recently setup a test ubuntu server. Everything seems to be in order as far as I can tell. Maven repo exists, env variables set and all. But when I try to install the simplest car (already working and tested), I get the following error below. This is a vanilla 3.0 install.

I'm also getting this error, but that's another matter. (https://issues.apache.org/jira/browse/GERONIMO-6216)

Anyone have any ideas? Any way I can get more debug logs on this this more? I'm already running it with -vvvv. 

I'm using one account on Ubuntu 12.04.2 LTS. The ./m2/repository dir exists. And this car works perfectly elsewhere.

-- plugin repository install message ---

Current file being operated on...
Copying com.google.code.gson/gson/2.2.2/jar to the repository

A problem has occured:
java.lang.IllegalArgumentException: Cannot read source file at /home/marcos/.m2/repository/com/google/code/gson/gson/2.2.2/gson-2.2.2.jar

---- log ---

2013-03-14 11:01:56,666 ERROR [PluginInstallerGBean] Unable to install plugin
java.lang.IllegalArgumentException: Cannot read source file at /home/marcos/.m2/repository/com/google/code/gson/gson/2.2.2/gson-2.2.2.jar
at org.apache.geronimo.kernel.repository.AbstractRepository.copyToRepository(AbstractRepository.java:78)
at org.apache.geronimo.system.plugin.LocalOpenResult.install(LocalOpenResult.java:51)
at org.apache.geronimo.system.plugin.PluginInstallerGBean.downloadArtifact(PluginInstallerGBean.java:1321)
at org.apache.geronimo.system.plugin.PluginInstallerGBean.downloadArtifact(PluginInstallerGBean.java:1392)
at org.apache.geronimo.system.plugin.PluginInstallerGBean.install(PluginInstallerGBean.java:776)
at org.apache.geronimo.system.plugin.PluginInstallerGBean.install(PluginInstallerGBean.java:721)
at org.apache.geronimo.system.plugin.PluginInstallerGBean.install(PluginInstallerGBean.java:717)
at org.apache.geronimo.system.plugin.PluginInstallerGBean$3.run(PluginInstallerGBean.java:889)
at org.apache.geronimo.pool.ThreadPool$1.run(ThreadPool.java:243)
at org.apache.geronimo.pool.ThreadPool$ContextClassLoaderRunnable.run(ThreadPool.java:373)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
at java.lang.Thread.run(Thread.java:662)
2013-03-14 11:01:56,716 WARN  [BaseCallMarshaller] --Erroring: batchId[2] message[java.lang.Exception: Unable to install configuration]

Reply | Threaded
Open this post in threaded view
|

Re: weird error downloading maven dependencies

kevan
Administrator
In reply to this post by Marcos Mendez

On Mar 14, 2013, at 5:10 PM, Marcos Mendez <[hidden email]> wrote:

> I'm getting a weird error on ubuntu downloading maven dependencies. I've created a couple of cars, and they're working on mac, windows and mint. We've recently setup a test ubuntu server. Everything seems to be in order as far as I can tell. Maven repo exists, env variables set and all. But when I try to install the simplest car (already working and tested), I get the following error below. This is a vanilla 3.0 install.
>
> I'm also getting this error, but that's another matter. (https://issues.apache.org/jira/browse/GERONIMO-6216)
>
> Anyone have any ideas? Any way I can get more debug logs on this this more? I'm already running it with -vvvv.
>
> I'm using one account on Ubuntu 12.04.2 LTS. The ./m2/repository dir exists. And this car works perfectly elsewhere.
>
> -- plugin repository install message ---
>
> Current file being operated on...
> Copying com.google.code.gson/gson/2.2.2/jar to the repository
>
> A problem has occured:
> java.lang.IllegalArgumentException: Cannot read source file at /home/marcos/.m2/repository/com/google/code/gson/gson/2.2.2/gson-2.2.2.jar
>
> ---- log ---
>
> 2013-03-14 11:01:56,666 ERROR [PluginInstallerGBean] Unable to install plugin
> java.lang.IllegalArgumentException: Cannot read source file at /home/marcos/.m2/repository/com/google/code/gson/gson/2.2.2/gson-2.2.2.jar
> at org.apache.geronimo.kernel.repository.AbstractRepository.copyToRepository(AbstractRepository.java:78)
> at org.apache.geronimo.system.plugin.LocalOpenResult.install(LocalOpenResult.java:51)
> at org.apache.geronimo.system.plugin.PluginInstallerGBean.downloadArtifact(PluginInstallerGBean.java:1321)
> at org.apache.geronimo.system.plugin.PluginInstallerGBean.downloadArtifact(PluginInstallerGBean.java:1392)
> at org.apache.geronimo.system.plugin.PluginInstallerGBean.install(PluginInstallerGBean.java:776)
> at org.apache.geronimo.system.plugin.PluginInstallerGBean.install(PluginInstallerGBean.java:721)
> at org.apache.geronimo.system.plugin.PluginInstallerGBean.install(PluginInstallerGBean.java:717)
> at org.apache.geronimo.system.plugin.PluginInstallerGBean$3.run(PluginInstallerGBean.java:889)
> at org.apache.geronimo.pool.ThreadPool$1.run(ThreadPool.java:243)
> at org.apache.geronimo.pool.ThreadPool$ContextClassLoaderRunnable.run(ThreadPool.java:373)
> at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
> at java.lang.Thread.run(Thread.java:662)
> 2013-03-14 11:01:56,716 WARN  [BaseCallMarshaller] --Erroring: batchId[2] message[java.lang.Exception: Unable to install configuration]

This is the check which will generate that exception:

        if (!source.exists() || !source.canRead() || source.isDirectory()) {
            throw new IllegalArgumentException("Cannot read source file at " + source.getAbsolutePath());
        }

What does 'ls -l /home/marcos/.m2/repository/com/google/code/gson/gson/2.2.2/gson-2.2.2.jar' say about that file?

--kevan
Reply | Threaded
Open this post in threaded view
|

Re: weird error downloading maven dependencies

Marcos Mendez
the file does not exist. the directory exists up to the repository/com part. i would expect geronimo to download the rest (from maven central) and install it properly.

there are no bad characters in the path.

On Mar 14, 2013, at 17:54, Kevan Miller <[hidden email]> wrote:

>
> On Mar 14, 2013, at 5:10 PM, Marcos Mendez <[hidden email]> wrote:
>
>> I'm getting a weird error on ubuntu downloading maven dependencies. I've created a couple of cars, and they're working on mac, windows and mint. We've recently setup a test ubuntu server. Everything seems to be in order as far as I can tell. Maven repo exists, env variables set and all. But when I try to install the simplest car (already working and tested), I get the following error below. This is a vanilla 3.0 install.
>>
>> I'm also getting this error, but that's another matter. (https://issues.apache.org/jira/browse/GERONIMO-6216)
>>
>> Anyone have any ideas? Any way I can get more debug logs on this this more? I'm already running it with -vvvv.
>>
>> I'm using one account on Ubuntu 12.04.2 LTS. The ./m2/repository dir exists. And this car works perfectly elsewhere.
>>
>> -- plugin repository install message ---
>>
>> Current file being operated on...
>> Copying com.google.code.gson/gson/2.2.2/jar to the repository
>>
>> A problem has occured:
>> java.lang.IllegalArgumentException: Cannot read source file at /home/marcos/.m2/repository/com/google/code/gson/gson/2.2.2/gson-2.2.2.jar
>>
>> ---- log ---
>>
>> 2013-03-14 11:01:56,666 ERROR [PluginInstallerGBean] Unable to install plugin
>> java.lang.IllegalArgumentException: Cannot read source file at /home/marcos/.m2/repository/com/google/code/gson/gson/2.2.2/gson-2.2.2.jar
>>    at org.apache.geronimo.kernel.repository.AbstractRepository.copyToRepository(AbstractRepository.java:78)
>>    at org.apache.geronimo.system.plugin.LocalOpenResult.install(LocalOpenResult.java:51)
>>    at org.apache.geronimo.system.plugin.PluginInstallerGBean.downloadArtifact(PluginInstallerGBean.java:1321)
>>    at org.apache.geronimo.system.plugin.PluginInstallerGBean.downloadArtifact(PluginInstallerGBean.java:1392)
>>    at org.apache.geronimo.system.plugin.PluginInstallerGBean.install(PluginInstallerGBean.java:776)
>>    at org.apache.geronimo.system.plugin.PluginInstallerGBean.install(PluginInstallerGBean.java:721)
>>    at org.apache.geronimo.system.plugin.PluginInstallerGBean.install(PluginInstallerGBean.java:717)
>>    at org.apache.geronimo.system.plugin.PluginInstallerGBean$3.run(PluginInstallerGBean.java:889)
>>    at org.apache.geronimo.pool.ThreadPool$1.run(ThreadPool.java:243)
>>    at org.apache.geronimo.pool.ThreadPool$ContextClassLoaderRunnable.run(ThreadPool.java:373)
>>    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
>>    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
>>    at java.lang.Thread.run(Thread.java:662)
>> 2013-03-14 11:01:56,716 WARN  [BaseCallMarshaller] --Erroring: batchId[2] message[java.lang.Exception: Unable to install configuration]
>
> This is the check which will generate that exception:
>
>        if (!source.exists() || !source.canRead() || source.isDirectory()) {
>            throw new IllegalArgumentException("Cannot read source file at " + source.getAbsolutePath());
>        }
>
> What does 'ls -l /home/marcos/.m2/repository/com/google/code/gson/gson/2.2.2/gson-2.2.2.jar' say about that file?
>
> --kevan
Reply | Threaded
Open this post in threaded view
|

Re: weird error downloading maven dependencies

Marcos Mendez
hmm.. found the issue. problem is that if i list the local maven repo as a source repository, and the file is not there, it does not download it, even though there may be additional source repos. So I've removed it and left maven central. Seems to work now. Will test some more tomorrow. Thanks for the help!

On Thu, Mar 14, 2013 at 7:20 PM, Marcos Mendez <[hidden email]> wrote:
the file does not exist. the directory exists up to the repository/com part. i would expect geronimo to download the rest (from maven central) and install it properly.

there are no bad characters in the path.

On Mar 14, 2013, at 17:54, Kevan Miller <[hidden email]> wrote:

>
> On Mar 14, 2013, at 5:10 PM, Marcos Mendez <[hidden email]> wrote:
>
>> I'm getting a weird error on ubuntu downloading maven dependencies. I've created a couple of cars, and they're working on mac, windows and mint. We've recently setup a test ubuntu server. Everything seems to be in order as far as I can tell. Maven repo exists, env variables set and all. But when I try to install the simplest car (already working and tested), I get the following error below. This is a vanilla 3.0 install.
>>
>> I'm also getting this error, but that's another matter. (https://issues.apache.org/jira/browse/GERONIMO-6216)
>>
>> Anyone have any ideas? Any way I can get more debug logs on this this more? I'm already running it with -vvvv.
>>
>> I'm using one account on Ubuntu 12.04.2 LTS. The ./m2/repository dir exists. And this car works perfectly elsewhere.
>>
>> -- plugin repository install message ---
>>
>> Current file being operated on...
>> Copying com.google.code.gson/gson/2.2.2/jar to the repository
>>
>> A problem has occured:
>> java.lang.IllegalArgumentException: Cannot read source file at /home/marcos/.m2/repository/com/google/code/gson/gson/2.2.2/gson-2.2.2.jar
>>
>> ---- log ---
>>
>> 2013-03-14 11:01:56,666 ERROR [PluginInstallerGBean] Unable to install plugin
>> java.lang.IllegalArgumentException: Cannot read source file at /home/marcos/.m2/repository/com/google/code/gson/gson/2.2.2/gson-2.2.2.jar
>>    at org.apache.geronimo.kernel.repository.AbstractRepository.copyToRepository(AbstractRepository.java:78)
>>    at org.apache.geronimo.system.plugin.LocalOpenResult.install(LocalOpenResult.java:51)
>>    at org.apache.geronimo.system.plugin.PluginInstallerGBean.downloadArtifact(PluginInstallerGBean.java:1321)
>>    at org.apache.geronimo.system.plugin.PluginInstallerGBean.downloadArtifact(PluginInstallerGBean.java:1392)
>>    at org.apache.geronimo.system.plugin.PluginInstallerGBean.install(PluginInstallerGBean.java:776)
>>    at org.apache.geronimo.system.plugin.PluginInstallerGBean.install(PluginInstallerGBean.java:721)
>>    at org.apache.geronimo.system.plugin.PluginInstallerGBean.install(PluginInstallerGBean.java:717)
>>    at org.apache.geronimo.system.plugin.PluginInstallerGBean$3.run(PluginInstallerGBean.java:889)
>>    at org.apache.geronimo.pool.ThreadPool$1.run(ThreadPool.java:243)
>>    at org.apache.geronimo.pool.ThreadPool$ContextClassLoaderRunnable.run(ThreadPool.java:373)
>>    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
>>    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
>>    at java.lang.Thread.run(Thread.java:662)
>> 2013-03-14 11:01:56,716 WARN  [BaseCallMarshaller] --Erroring: batchId[2] message[java.lang.Exception: Unable to install configuration]
>
> This is the check which will generate that exception:
>
>        if (!source.exists() || !source.canRead() || source.isDirectory()) {
>            throw new IllegalArgumentException("Cannot read source file at " + source.getAbsolutePath());
>        }
>
> What does 'ls -l /home/marcos/.m2/repository/com/google/code/gson/gson/2.2.2/gson-2.2.2.jar' say about that file?
>
> --kevan