[SourceJammer-devel] FW: [SourceJammer-users] RE: SJ Eclipse plugin
Brought to you by:
robertmacgrogan
From: Gupta, K. <kar...@tr...> - 2005-12-06 23:52:38
|
=20 -----Original Message----- From: Gupta, Karan=20 Sent: Tuesday, December 06, 2005 3:47 PM To: 'Chris Pratt' Cc: sou...@li... Subject: RE: [SourceJammer-users] RE: SJ Eclipse plugin thanks for pointing out that little detail :-P The real exception as delivered by = InvocationTargetException.getTargetException() is: java.lang.NullPointerException. =20 I'm gonna be putting a lot of try-catch blocks to find out what the hell = is going on... anyone interested can join me. =20 And I'm gonna repeat the earlier question: is anyone else facing a problem with the SJ Eclipse plugin?? I'm using Eclipse 3.1.1 on Windoze. =20 Thanks, - karan -----Original Message----- From: Chris Pratt [mailto:the...@gm...] Sent: Tuesday, December 06, 2005 2:58 PM To: Gupta, Karan Subject: Re: [SourceJammer-users] RE: SJ Eclipse plugin If it's an InvocationTargetException, the more important information is = what's wrapped within. The InvocationTargetException is just a = container for an exception that was thrown by a Method.invoke() call, so = if you can get at the InvocationTargetException.getTargetException() = that would probably be more useful. (*Chris*) On 12/6/05, Gupta, Karan < kar...@tr...> wrote:=20 Well, I've tried quite a few things, but couldn't get the plugin to work = on my installation. The InvocationException is generated at: AbstractFileAction.java -- spawnProcess() ---- ps.busyCursorWhile(process)=20 From what I read, busyCursorWhile(process) is supposed to simly call the = run method of a IRunnableWithProgress process. In this case, the processes are in the package = org.sourcejammer.extension.sjeclipse.process . Every process must be passed a IProgressMonitor which I don't see = instantiated anywhere. So, I'm guessing the InvocationException has something to do with that. Instead of using spawnProcess to execute the runnables, I tried to use = IRunnableContext and=20 ProgressMonitorDialog but I am still getting the same Exception. Any ideas??? Because of this exception, none of the SourceJammer plugin operations = work. Is anyone else facing this problem?? If not, then I think I can check out my platform instead of messing with = the plugin sourcecode.=20 Thanks, Karan -----Original Message----- From: Robert MacGrogan [mailto: rob...@ya...] Sent: Monday, December 05, 2005 7:33 PM To: Gupta, Karan; SourceJammer Users=20 Subject: RE: SJ Eclipse plugin Hi agaih. I couldn't be happier to have you fix and or enhance (dare I hope?) the = SJ Eclipse plugin. I don't know what would cause InvocationTargetException. A full stacktrace would = be helpful, if it would=20 be possible to get that somehow. I have not tested the plugin under 3.1.1, but I'm running it under 3.1.0 = with no problems. Would they really change the plugin API in a x.x.1 release is such a way as to = break plugins? Maybe.=20 I don't really have time right now to dig into this, but I'd love to = have you see if you can fix it. Any other enhancements you'd like to make would be welcome. I'd be = happy to give you access to the archive and to set you up as an admin on the sjextensions project if = you want to do releases.=20 I looked at the code and I don't think that the "/" relative path should = be a problem after all. It would be nice if I had set up the plugin to use log4j or something to = make debugging easier. Live and learn.=20 One thing you could try is to run the plugin project in Ecliplse in = debug mode to see if that helps you narrow down the source of the problem. Keep me posted and let me know how I can help. --Rob PS: You might want to subscribe to either the users or devel lists so = you can post your messages there. --- "Gupta, Karan" < kar...@tr... > wrote: > Hi Rob, > > I just spoke to my boss about the plugin you've built and he's = expressed an interest in > making a contribution to your project. So I guess thats good news = isn't it?? He knows how much=20 > we would benefit from this plugin :-) > > Well, I've been working on the code and I don't understand the reason = for the > InvocationException. > Is this a bug? Or is it because I'm using Eclipse 3.1.1? > Any ideas? > I sent you another email just before this explaining what I was able = to discover. > We really need this thing to working, coz we cannot change our = directory structure. > Plus fixing this would only make the plugin mor flexible.=20 > If I'm able to do it, I'll send you whatever changes I've made so that = they can be put in. > But as of now, I think I'll not be able to proceed on this (within = time and reason) without your > help. > Any help from you would be really great. > > Thanks a lot, > Karan > > > -----Original Message----- > From: Robert MacGrogan [mailto: <mailto:rob...@ya...> = rob...@ya...] > Sent: Monday, December 05, 2005 2:37 PM > To: Gupta, Karan; SourceJammer Users > Subject: Re: SJ Eclipse plugin > > > Hi, Karan. > > So the root of your SJ archive is also the root of your Eclipse = project? In that case, "/" seems=20 > logical, but this is not something I tested, so I'm not sure it will = work. > > Would it be possible for you to move all of your SJ files to a new top = level folder? Something > like dev or project or anything really. You could do this just for = testing purposes to at least=20 > verify what the problem is. > > Then you'd set up the relative path to be "/dev/" > > As for compiling, there should be a build.properties and build.xml in = the SJ eclipse source tree=20 > here: > > http://dev.sourcejammer.org/BrowseArchive?Command=3Dopen_archive = <http://dev.sourcejammer.org/BrowseArchive?Command=3Dopen_archive&archive= _name=3DSourceJammer> &archive_name=3DSourceJammer=20 > > You need to browse down into extensions/sjeclipse. > > --Rob > > > > --- "Gupta, Karan" < kar...@tr... = <mailto:kar...@tr...> > wrote: > > > Hi Rob, > > > > Sorry I am sending this to your personal email account. > > But this issue has me totally dumbfounded (now we know where that = word can be used :-).=20 > > And I didn't know where to turn to for help. > > I've been going thru the sourcecode, and seems like I'm the first = guy to post something about > > the plugin in the forums. > > > > Anyway, so I downloaded the SJ Eclipse plugin (great idea, btw) and = am trying to get it to > work > > for my archive and project. > > Here's the scenario: > > > > Eclipse project layout:=20 > > I'm using Eclipse 3.1.1. > > C:\EclipseWSs\the_workspace > > C:\EclipseWSs\the_workspace\the_project > > C:\EclipseWSs\the_workspace\the_project\src > > C:\EclipseWSs\the_workspace\the_project\properties=20 > > C:\EclipseWSs\the_workspace\the_project\docs > > C:\EclipseWSs\the_workspace\the_project\DB > > C:\EclipseWSs\the_workspace\the_project\libCompile > > C:\EclipseWSs\the_workspace\the_project\libRuntime=20 > > ....... > > and so on.. > > > > Now my archive completely follows the tree I have in eclipse. > > That means, ALL the directories and files under directory = "the_project" are in my archive (not=20 > > just src or docs etc). > > > > Archive setup: > > Archive name: the_project > > - the_project > > --- src > > --- properties > > --- docs=20 > > --- DB > > --- libCompile > > --- libRuntime > > ... and so on... > > > > I have set the SJ Eclipse properties in Project Properties: > > Server URL: = http://fmms-internal1:8090/sourcejammer/servlet/rpcrouter > > Archive name: the_project > > Relative Path: this is where the problem is.=20 > > I have tried everythign I could think of: "/", "/../", "/docs/../", = "the_project/", > > "/the_project", "/the_project/", "/ etc...but nothing seems to work. = > > I looked through the source code and found this guy: > > private static String buildSJPathFromIPath(IPath path, = SJEclipseProjectProperties props){ > > //Build the full SJ path. > > StringBuffer str =3D new StringBuffer();=20 > > str.append(props.getRelativePath()); > > str.append(path.toString()); > > String sjPath =3D str.toString(); > > System.out.println(sjPath); > > return sjPath;=20 > > } > > > > "The Relative Path setting must be the path in your SourceJammer = archive to the SJ folder that > > corresponds to the root of your Eclipse directory. > > This path must begin and end with a forward slash (/) character."=20 > > In my SJ tree the SJ folder which is the root of my Eclipse = directory is / (isn't it??). > > I am unable to use the plugin, bcoz I keep getting either Exceptions = or errors: > > java.lang.reflect.InvocationTargetException=20 > > or > > Error: This project does not contain a child with the name: = the_project. Error: This project > > does not contain a child with the name: the_project. > > > > Also, how can I compile just the plugin?=20 > > > > Please help me out, if u have some time. > > > > Thank you, > > Karan Gupta > > Software Engineer > > TransCore, San Diego > > (858) 826 - 2139=20 > > > > > > > > > __________________________________________ > Yahoo! DSL - Something to write home about. > Just $16.99/mo. or less. > dsl.yahoo.com > > __________________________________________ Yahoo! DSL - Something to write home about. Just $16.99/mo. or less. dsl.yahoo.com=20 ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log = files for problems? Stop! Download the new AJAX search engine that makes=20 searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_idv37 = <http://ads.osdn.com/?ad_idv37&alloc_id=16865&opclick> = &alloc_id=16865&opclick _______________________________________________=20 SourceJammer-users mailing list Sou...@li... https://lists.sourceforge.net/lists/listinfo/sourcejammer-users = <https://lists.sourceforge.net/lists/listinfo/sourcejammer-users>=20 |