[jira] [Commented] (OAK-3064) Oak Run Main.java passing values in the wrong order

2015-07-07 Thread Jason E Bailey (JIRA)

[ 
https://issues.apache.org/jira/browse/OAK-3064?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14616831#comment-14616831
 ] 

Jason E Bailey commented on OAK-3064:
-

When I run the command:

{noformat}
java -jar oak-run-1.2.2-jar upgrade C:\Program 
Files\Adobe\crx-quickstart\repository  mongodb://dublin.unx.sas.com:27017
{noformat}

{code:java}
Exception in thread main 
org.apache.jackrabbit.core.config.ConfigurationException: Repository directory 
C:\Program Files\Adobe\crx-quickstart\repository\repository.xml does not exist
at 
org.apache.jackrabbit.core.config.RepositoryConfig.create(RepositoryConfig.java:251)
at org.apache.jackrabbit.oak.run.Main.upgrade(Main.java:950)
at org.apache.jackrabbit.oak.run.Main.main(Main.java:167)
{code}

the test case is to attempt to upgrade a repository. If you notice the error 
message is stating the directory does not exist. Then printing out a *file* 
path. That's because it's checking the File object that represents the 
repository.xml to see if it's a directory, which it isn't,

This works, if I swap around the values for the method call and recompile.


 Oak Run Main.java passing values in the wrong order
 ---

 Key: OAK-3064
 URL: https://issues.apache.org/jira/browse/OAK-3064
 Project: Jackrabbit Oak
  Issue Type: Bug
  Components: upgrade
Reporter: Jason E Bailey
Priority: Minor

 in org.apache.jackrabbit.oak.run.Main.java on line 952 the following method 
 is being called:
 RepositoryContext.create(RepositoryConfig.create(dir, xml));
 The RepositoryConfig method signature is `create(File xml, File dir)` this is 
 creating an error when running the upgrade process.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (OAK-3064) Oak Run Main.java passing values in the wrong order

2015-07-03 Thread JIRA

[ 
https://issues.apache.org/jira/browse/OAK-3064?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14612952#comment-14612952
 ] 

Michael Dürig commented on OAK-3064:


What error you do get? Do you have a stack trace? Or even better a test case 
demonstrating the problem?

 Oak Run Main.java passing values in the wrong order
 ---

 Key: OAK-3064
 URL: https://issues.apache.org/jira/browse/OAK-3064
 Project: Jackrabbit Oak
  Issue Type: Bug
  Components: upgrade
Reporter: Jason E Bailey
Priority: Minor

 in org.apache.jackrabbit.oak.run.Main.java on line 952 the following method 
 is being called:
 RepositoryContext.create(RepositoryConfig.create(dir, xml));
 The RepositoryConfig method signature is `create(File xml, File dir)` this is 
 creating an error when running the upgrade process.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)