|
View:
New views
5 Messages
—
Rating Filter:
Alert me
|
|
|
Local File ErrorsHi All.
I am trying to do the example on the twiki for just connecting to a repository and printing out the root and the UUID. I am using eclipse and the GWT plugin and I am trying to contact remotely via svn protocol. I am getting file permission errors. Here is the exception: Caused by: java.security.AccessControlException: access denied (java.io.FilePermission C:\Documents and Settings\Barry\Application Data\Subversion read) at java.security.AccessControlContext.checkPermission(Unknown Source) at java.security.AccessController.checkPermission(Unknown Source) at java.lang.SecurityManager.checkPermission(Unknown Source) at com.google.appengine.tools.development.DevAppServerFactory$CustomSecurityManager.checkPermission(DevAppServerFactory.java:128) at java.lang.SecurityManager.checkRead(Unknown Source) at java.io.File.isDirectory(Unknown Source) at org.tmatesoft.svn.core.internal.wc.SVNConfigFile.createDefaultConfiguration(SVNConfigFile.java:268) at org.tmatesoft.svn.core.internal.wc.DefaultSVNOptions.getConfigFile(DefaultSVNOptions.java:670) at org.tmatesoft.svn.core.internal.wc.DefaultSVNOptions.isAuthStorageEnabled(DefaultSVNOptions.java:182) at org.tmatesoft.svn.core.wc.SVNWCUtil.createDefaultAuthenticationManager(SVNWCUtil.java:137) at org.tmatesoft.svn.core.wc.SVNWCUtil.createDefaultAuthenticationManager(SVNWCUtil.java:114) at com.benowitz.svntools.server.GreetingServiceImpl.greetServer(GreetingServiceImpl.java:31) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:527) Here is the code: SVNRepositoryFactoryImpl.setup(); String url = "svn://172.16.59.103/"; String name = "barryb"; String password = "barryb"; String repoRoot=null,repoUUID=null,serverInfo,userAgent; SVNRepository repository = null; try { repository = SVNRepositoryFactory.create( SVNURL.parseURIDecoded( url ) ); ISVNAuthenticationManager authManager = SVNWCUtil.createDefaultAuthenticationManager( name , password ); repository.setAuthenticationManager( authManager ); repoRoot=repository.getRepositoryRoot(true).toString(); repoUUID=repository.getRepositoryUUID(true).toString(); }catch(SVNException e) { //handle exception } I am at a loss because I don't know why its looking for files locally and why there is a problem accessing them. Thanks, Barry |
|
|
Re: Local File ErrorsHello Barry,
SVNKit tries to read Subversion configuration files which are located under the directory C:\Documents and Settings\Barry\Application Data\Subversion but it fails due to some permission problems. Can you please check that jvm has a read access to those files on behalf of you. Maybe it's blocked by antivirus\firewall. ---- Alexander Sinyushkin, TMate Software, http://svnkit.com/ - Java [Sub]Versioning Library! rumpole6 wrote: > Hi All. > > I am trying to do the example on the twiki for just connecting to a > repository and printing out the root and the UUID. I am using eclipse and > the GWT plugin and I am trying to contact remotely via svn protocol. I am > getting file permission errors. Here is the exception: > > Caused by: java.security.AccessControlException: access denied > (java.io.FilePermission C:\Documents and Settings\Barry\Application > Data\Subversion read) > at java.security.AccessControlContext.checkPermission(Unknown Source) > at java.security.AccessController.checkPermission(Unknown Source) > at java.lang.SecurityManager.checkPermission(Unknown Source) > at > com.google.appengine.tools.development.DevAppServerFactory$CustomSecurityManager.checkPermission(DevAppServerFactory.java:128) > at java.lang.SecurityManager.checkRead(Unknown Source) > at java.io.File.isDirectory(Unknown Source) > at > org.tmatesoft.svn.core.internal.wc.SVNConfigFile.createDefaultConfiguration(SVNConfigFile.java:268) > at > org.tmatesoft.svn.core.internal.wc.DefaultSVNOptions.getConfigFile(DefaultSVNOptions.java:670) > at > org.tmatesoft.svn.core.internal.wc.DefaultSVNOptions.isAuthStorageEnabled(DefaultSVNOptions.java:182) > at > org.tmatesoft.svn.core.wc.SVNWCUtil.createDefaultAuthenticationManager(SVNWCUtil.java:137) > at > org.tmatesoft.svn.core.wc.SVNWCUtil.createDefaultAuthenticationManager(SVNWCUtil.java:114) > at > com.benowitz.svntools.server.GreetingServiceImpl.greetServer(GreetingServiceImpl.java:31) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) > at java.lang.reflect.Method.invoke(Unknown Source) > at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:527) > > Here is the code: > SVNRepositoryFactoryImpl.setup(); > String url = "svn://172.16.59.103/"; > String name = "barryb"; > String password = "barryb"; > String repoRoot=null,repoUUID=null,serverInfo,userAgent; > > SVNRepository repository = null; > try { > repository = SVNRepositoryFactory.create( SVNURL.parseURIDecoded( url ) > ); > ISVNAuthenticationManager authManager = > SVNWCUtil.createDefaultAuthenticationManager( name , password ); > repository.setAuthenticationManager( authManager ); > repoRoot=repository.getRepositoryRoot(true).toString(); > repoUUID=repository.getRepositoryUUID(true).toString(); > > }catch(SVNException e) { > //handle exception > } > > I am at a loss because I don't know why its looking for files locally and > why there is a problem accessing them. > > Thanks, > > Barry > --------------------------------------------------------------------- To unsubscribe, e-mail: svnkit-users-unsubscribe@... For additional commands, e-mail: svnkit-users-help@... |
|
|
|
|
|
Re: Local File ErrorsHi Alexander,
Removing and recreating didn't work with svnkit, but running tortoiseSVN did recreate the directory. But still SVN cannot see them. Is there a Java config somewhere that blocking me. I am running these in eclipse debug mode. Alexander Sinyushkin wrote: > Hello Barry, > > You mean > > C:\Documents and Settings\Barry\Application > Data\Subversion > > > is empty? Then try deleting this empty folder and rerun the operation. > The folder > must be re-created with 'config' and 'servers' file in it. If it > doesn't get recreated, the problem > might happen to be in GWT policy settings (I'm only guessing as I'm > not familiar with this toolkit plugin). > In that case try the native SVN client in a command line, most likely > it will create the necessary directory with all the necessary files. > > ---- > Alexander Sinyushkin, > TMate Software, > http://svnkit.com/ - Java [Sub]Versioning Library! > > > rumpole6@... wrote: >> Thanks Alexander, >> >> I disabled the firewall and I chmodded the directory under cygwin ( I >> am a unix person) And still no action. I note that there are no files >> in that directory at this time. Any other Ideas? >> >> Barry >> >> Alexander Sinyushkin wrote: >>> Hello Barry, >>> >>> SVNKit tries to read Subversion configuration files which are located >>> under the directory >>> >>> C:\Documents and Settings\Barry\Application >>> Data\Subversion >>> >>> but it fails due to some permission problems. Can you please check that >>> jvm has a read access to those files on behalf of you. Maybe it's >>> blocked by >>> antivirus\firewall. >>> >>> >>> >>> ---- >>> Alexander Sinyushkin, >>> TMate Software, >>> http://svnkit.com/ - Java [Sub]Versioning Library! >>> >>> >>> rumpole6 wrote: >>>> Hi All. >>>> >>>> I am trying to do the example on the twiki for just connecting to a >>>> repository and printing out the root and the UUID. I am using >>>> eclipse and >>>> the GWT plugin and I am trying to contact remotely via svn >>>> protocol. I >>>> am >>>> getting file permission errors. Here is the exception: >>>> >>>> Caused by: java.security.AccessControlException: access denied >>>> (java.io.FilePermission C:\Documents and Settings\Barry\Application >>>> Data\Subversion read) >>>> at java.security.AccessControlContext.checkPermission(Unknown >>>> Source) >>>> at java.security.AccessController.checkPermission(Unknown Source) >>>> at java.lang.SecurityManager.checkPermission(Unknown Source) >>>> at >>>> com.google.appengine.tools.development.DevAppServerFactory$CustomSecurityManager.checkPermission(DevAppServerFactory.java:128) >>>> >>>> at java.lang.SecurityManager.checkRead(Unknown Source) >>>> at java.io.File.isDirectory(Unknown Source) >>>> at >>>> org.tmatesoft.svn.core.internal.wc.SVNConfigFile.createDefaultConfiguration(SVNConfigFile.java:268) >>>> >>>> at >>>> org.tmatesoft.svn.core.internal.wc.DefaultSVNOptions.getConfigFile(DefaultSVNOptions.java:670) >>>> >>>> at >>>> org.tmatesoft.svn.core.internal.wc.DefaultSVNOptions.isAuthStorageEnabled(DefaultSVNOptions.java:182) >>>> >>>> at >>>> org.tmatesoft.svn.core.wc.SVNWCUtil.createDefaultAuthenticationManager(SVNWCUtil.java:137) >>>> >>>> at >>>> org.tmatesoft.svn.core.wc.SVNWCUtil.createDefaultAuthenticationManager(SVNWCUtil.java:114) >>>> >>>> at >>>> com.benowitz.svntools.server.GreetingServiceImpl.greetServer(GreetingServiceImpl.java:31) >>>> >>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) >>>> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) >>>> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) >>>> at java.lang.reflect.Method.invoke(Unknown Source) >>>> at >>>> com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:527) >>>> >>>> >>>> Here is the code: >>>> SVNRepositoryFactoryImpl.setup(); >>>> String url = "svn://172.16.59.103/"; >>>> String name = "barryb"; >>>> String password = "barryb"; >>>> String repoRoot=null,repoUUID=null,serverInfo,userAgent; >>>> SVNRepository repository = null; >>>> try { >>>> repository = SVNRepositoryFactory.create( >>>> SVNURL.parseURIDecoded( url >>>> ) >>>> ); >>>> ISVNAuthenticationManager authManager = >>>> SVNWCUtil.createDefaultAuthenticationManager( name , password ); >>>> repository.setAuthenticationManager( authManager ); >>>> repoRoot=repository.getRepositoryRoot(true).toString(); >>>> repoUUID=repository.getRepositoryUUID(true).toString(); >>>> }catch(SVNException e) { >>>> //handle exception >>>> } >>>> >>>> I am at a loss because I don't know why its looking for files >>>> locally and >>>> why there is a problem accessing them. >>>> >>>> Thanks, >>>> >>>> Barry >>>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: svnkit-users-unsubscribe@... >>> For additional commands, e-mail: svnkit-users-help@... >>> >>> >>> >> Quoted from: >> http://www.nabble.com/Local-File-Errors-tp24649770p24650366.html >> >> >> > ------------------------------------------------------------------------ > > > No virus found in this incoming message. > Checked by AVG - www.avg.com > Version: 8.5.392 / Virus Database: 270.13.32/2266 - Release Date: 07/27/09 05:58:00 > > --------------------------------------------------------------------- To unsubscribe, e-mail: svnkit-users-unsubscribe@... For additional commands, e-mail: svnkit-users-help@... |
|
|
Re: Local File ErrorsHello Barry,
>>But still SVN cannot see them Did you mean that SVNKit still throws java.security.AccessControlException: access denied? If yes, can you try two things: running the same code from a standalone java program (with main()) SVNRepositoryFactoryImpl.setup(); String url = "svn://172.16.59.103/"; String name = "barryb"; String password = "barryb"; String repoRoot=null,repoUUID=null,serverInfo,userAgent; SVNRepository repository = null; try { repository = SVNRepositoryFactory.create( SVNURL.parseURIDecoded( url ) ); ISVNAuthenticationManager authManager = SVNWCUtil.createDefaultAuthenticationManager( name , password ); repository.setAuthenticationManager( authManager ); repoRoot=repository.getRepositoryRoot(true).toString(); repoUUID=repository.getRepositoryUUID(true).toString(); }catch(SVNException e) { //handle exception } Second, you can try running jsvn command line client as well just to see what the result would be. Third, as an alternative, you can use BasicAuthenticationManager which does not make use of config files: SVNRepositoryFactoryImpl.setup(); String url = "svn://172.16.59.103/"; String name = "barryb"; String password = "barryb"; String repoRoot=null,repoUUID=null,serverInfo,userAgent; SVNRepository repository = null; try { repository = SVNRepositoryFactory.create( SVNURL.parseURIDecoded( url ) ); ISVNAuthenticationManager authManager = BasicAuthenticationManager( name , password ); repository.setAuthenticationManager( authManager ); repoRoot=repository.getRepositoryRoot(true).toString(); repoUUID=repository.getRepositoryUUID(true).toString(); }catch(SVNException e) { //handle exception } Let me know of your testing results. ---- Alexander Sinyushkin, TMate Software, http://svnkit.com/ - Java [Sub]Versioning Library! Barry-Home wrote: > Hi Alexander, > > Removing and recreating didn't work with svnkit, but running > tortoiseSVN did recreate the directory. But still SVN cannot see them. > Is there a Java config somewhere that blocking me. I am running these > in eclipse debug mode. > > Alexander Sinyushkin wrote: >> Hello Barry, >> >> You mean >> >> C:\Documents and Settings\Barry\Application >> Data\Subversion >> >> >> is empty? Then try deleting this empty folder and rerun the >> operation. The folder >> must be re-created with 'config' and 'servers' file in it. If it >> doesn't get recreated, the problem >> might happen to be in GWT policy settings (I'm only guessing as I'm >> not familiar with this toolkit plugin). >> In that case try the native SVN client in a command line, most likely >> it will create the necessary directory with all the necessary files. >> >> ---- >> Alexander Sinyushkin, >> TMate Software, >> http://svnkit.com/ - Java [Sub]Versioning Library! >> >> >> rumpole6@... wrote: >>> Thanks Alexander, >>> >>> I disabled the firewall and I chmodded the directory under cygwin ( >>> I am a unix person) And still no action. I note that there are no >>> files in that directory at this time. Any other Ideas? >>> >>> Barry >>> >>> Alexander Sinyushkin wrote: >>>> Hello Barry, >>>> >>>> SVNKit tries to read Subversion configuration files which are located >>>> under the directory >>>> >>>> C:\Documents and Settings\Barry\Application >>>> Data\Subversion >>>> >>>> but it fails due to some permission problems. Can you please check >>>> that >>>> jvm has a read access to those files on behalf of you. Maybe it's >>>> blocked by >>>> antivirus\firewall. >>>> >>>> >>>> >>>> ---- >>>> Alexander Sinyushkin, >>>> TMate Software, >>>> http://svnkit.com/ - Java [Sub]Versioning Library! >>>> >>>> >>>> rumpole6 wrote: >>>>> Hi All. >>>>> >>>>> I am trying to do the example on the twiki for just connecting to a >>>>> repository and printing out the root and the UUID. I am using >>>>> eclipse and >>>>> the GWT plugin and I am trying to contact remotely via svn >>>>> protocol. I >>>>> am >>>>> getting file permission errors. Here is the exception: >>>>> >>>>> Caused by: java.security.AccessControlException: access denied >>>>> (java.io.FilePermission C:\Documents and Settings\Barry\Application >>>>> Data\Subversion read) >>>>> at java.security.AccessControlContext.checkPermission(Unknown >>>>> Source) >>>>> at java.security.AccessController.checkPermission(Unknown Source) >>>>> at java.lang.SecurityManager.checkPermission(Unknown Source) >>>>> at >>>>> com.google.appengine.tools.development.DevAppServerFactory$CustomSecurityManager.checkPermission(DevAppServerFactory.java:128) >>>>> >>>>> at java.lang.SecurityManager.checkRead(Unknown Source) >>>>> at java.io.File.isDirectory(Unknown Source) >>>>> at >>>>> org.tmatesoft.svn.core.internal.wc.SVNConfigFile.createDefaultConfiguration(SVNConfigFile.java:268) >>>>> >>>>> at >>>>> org.tmatesoft.svn.core.internal.wc.DefaultSVNOptions.getConfigFile(DefaultSVNOptions.java:670) >>>>> >>>>> at >>>>> org.tmatesoft.svn.core.internal.wc.DefaultSVNOptions.isAuthStorageEnabled(DefaultSVNOptions.java:182) >>>>> >>>>> at >>>>> org.tmatesoft.svn.core.wc.SVNWCUtil.createDefaultAuthenticationManager(SVNWCUtil.java:137) >>>>> >>>>> at >>>>> org.tmatesoft.svn.core.wc.SVNWCUtil.createDefaultAuthenticationManager(SVNWCUtil.java:114) >>>>> >>>>> at >>>>> com.benowitz.svntools.server.GreetingServiceImpl.greetServer(GreetingServiceImpl.java:31) >>>>> >>>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) >>>>> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) >>>>> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown >>>>> Source) >>>>> at java.lang.reflect.Method.invoke(Unknown Source) >>>>> at >>>>> com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:527) >>>>> >>>>> >>>>> Here is the code: >>>>> SVNRepositoryFactoryImpl.setup(); >>>>> String url = "svn://172.16.59.103/"; >>>>> String name = "barryb"; >>>>> String password = "barryb"; >>>>> String repoRoot=null,repoUUID=null,serverInfo,userAgent; >>>>> SVNRepository repository = null; >>>>> try { >>>>> repository = SVNRepositoryFactory.create( >>>>> SVNURL.parseURIDecoded( url >>>>> ) >>>>> ); >>>>> ISVNAuthenticationManager authManager = >>>>> SVNWCUtil.createDefaultAuthenticationManager( name , password ); >>>>> repository.setAuthenticationManager( authManager ); >>>>> repoRoot=repository.getRepositoryRoot(true).toString(); >>>>> repoUUID=repository.getRepositoryUUID(true).toString(); >>>>> }catch(SVNException e) { >>>>> //handle exception >>>>> } >>>>> >>>>> I am at a loss because I don't know why its looking for files >>>>> locally and >>>>> why there is a problem accessing them. >>>>> >>>>> Thanks, >>>>> >>>>> Barry >>>>> >>>> --------------------------------------------------------------------- >>>> To unsubscribe, e-mail: svnkit-users-unsubscribe@... >>>> For additional commands, e-mail: svnkit-users-help@... >>>> >>>> >>>> >>> Quoted from: >>> http://www.nabble.com/Local-File-Errors-tp24649770p24650366.html >>> >>> >>> >> ------------------------------------------------------------------------ >> >> >> No virus found in this incoming message. >> Checked by AVG - www.avg.com Version: 8.5.392 / Virus Database: >> 270.13.32/2266 - Release Date: 07/27/09 05:58:00 >> >> > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: svnkit-users-unsubscribe@... > For additional commands, e-mail: svnkit-users-help@... > > > --------------------------------------------------------------------- To unsubscribe, e-mail: svnkit-users-unsubscribe@... For additional commands, e-mail: svnkit-users-help@... |
| Free embeddable forum powered by Nabble | Forum Help |