On Mar 14, 2013, at 5:10 PM, Marcos Mendez <[email protected]> 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 via email to