Issues with CounterClockwise and Eclipse Juno

336 views
Skip to first unread message

Nathan Matthews

unread,
Jul 31, 2012, 6:36:01 AM7/31/12
to clojured...@googlegroups.com
Hi there.

I get an error (pasted below from the eclipse .log file) when I try and create a new Leiningen project. I'm behind a proxy but I've set that up in my /.m2/settings.xml file and with the Eclipse network connections. The CounterClockwise plugin installs correctly of the update site. Any help greatly appreciated.

!ENTRY ccw.leiningen 4 0 2012-07-31 11:33:02.115
!MESSAGE Exception while creating new project LeinTest5
!STACK 0
java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
at ccw.util.ClojureUtils.invoke(ClojureUtils.java:50)
at ccw.util.ClojureInvoker._(ClojureInvoker.java:19)
at ccw.leiningen.NewLeiningenProjectWizard.doPerformFinish(NewLeiningenProjectWizard.java:360)
at ccw.leiningen.NewLeiningenProjectWizard.performFinish(NewLeiningenProjectWizard.java:350)
at org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDialog.java:827)
at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:432)
at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:624)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:248)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
at org.eclipse.jface.window.Window.runEventLoop(Window.java:825)
at org.eclipse.jface.window.Window.open(Window.java:801)
at org.eclipse.ui.internal.handlers.WizardHandler$New.executeHandler(WizardHandler.java:259)
at org.eclipse.ui.internal.handlers.WizardHandler.execute(WizardHandler.java:279)
at org.eclipse.ui.internal.handlers.HandlerProxy.execute(HandlerProxy.java:293)
at org.eclipse.ui.internal.handlers.E4HandlerProxy.execute(E4HandlerProxy.java:76)
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 org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:56)
at org.eclipse.e4.core.internal.di.InjectorImpl.invokeUsingClass(InjectorImpl.java:229)
at org.eclipse.e4.core.internal.di.InjectorImpl.invoke(InjectorImpl.java:210)
at org.eclipse.e4.core.contexts.ContextInjectionFactory.invoke(ContextInjectionFactory.java:131)
at org.eclipse.e4.core.commands.internal.HandlerServiceImpl.executeHandler(HandlerServiceImpl.java:171)
at org.eclipse.ui.internal.handlers.LegacyHandlerService.executeCommand(LegacyHandlerService.java:492)
at org.eclipse.ui.internal.actions.CommandAction.runWithEvent(CommandAction.java:157)
at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:584)
at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:501)
at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:411)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1022)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:916)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:585)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:540)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
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 org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
Caused by: java.lang.reflect.InvocationTargetException
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 classlojure.core$invoke_in_STAR_.doInvoke(core.clj:50)
at clojure.lang.RestFn.invoke(RestFn.java:494)
at classlojure.core$eval_in_STAR_$print_read_eval__456.invoke(core.clj:66)
at classlojure.core$eval_in_STAR_.doInvoke(core.clj:70)
at clojure.lang.RestFn.invoke(RestFn.java:425)
at clojure.lang.AFn.applyToHelper(AFn.java:163)
at clojure.lang.RestFn.applyTo(RestFn.java:132)
at clojure.core$apply.invoke(core.clj:604)
at classlojure.core$eval_in.doInvoke(core.clj:89)
at clojure.lang.RestFn.invoke(RestFn.java:425)
at clojure.lang.AFn.applyToHelper(AFn.java:163)
at clojure.lang.RestFn.applyTo(RestFn.java:132)
at clojure.core$apply.invoke(core.clj:604)
at ccw.leiningen.util$eval_in_project.doInvoke(util.clj:85)
at clojure.lang.RestFn.invoke(RestFn.java:425)
at ccw.leiningen.util$lein_project.doInvoke(util.clj:119)
at clojure.lang.RestFn.invoke(RestFn.java:439)
at ccw.leiningen.util$lein_new.doInvoke(util.clj:215)
at clojure.lang.RestFn.invoke(RestFn.java:445)
at ccw.leiningen.wizard$perform_finish.invoke(wizard.clj:19)
at clojure.lang.Var.invoke(Var.java:405)
at ccw.util.ClojureUtils.invoke(ClojureUtils.java:46)
... 57 more
Caused by: org.sonatype.aether.resolution.DependencyResolutionException: The repository system is offline but the artifact lein-newnew:lein-newnew:jar:0.3.1 is not available in the local repository.
at org.sonatype.aether.impl.internal.DefaultRepositorySystem.resolveDependencies(DefaultRepositorySystem.java:375)
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 clojure.lang.Reflector.invokeMatchingMethod(Reflector.java:93)
at clojure.lang.Reflector.invokeInstanceMethod(Reflector.java:28)
at cemerick.pomegranate.aether$resolve_dependencies.doInvoke(aether.clj:406)
at clojure.lang.RestFn.invoke(RestFn.java:1096)
at leiningen.core.classpath$get_dependencies.doInvoke(classpath.clj:129)
at clojure.lang.RestFn.invoke(RestFn.java:425)
at leiningen.core.classpath$get_dependencies.doInvoke(classpath.clj:133)
at clojure.lang.RestFn.applyTo(RestFn.java:142)
at clojure.core$apply.invoke(core.clj:605)
at leiningen.core.classpath$resolve_dependencies.doInvoke(classpath.clj:145)
at clojure.lang.RestFn.invoke(RestFn.java:464)
at leiningen.core.project$load_plugins.invoke(project.clj:207)
at leiningen.core.project$load_plugins.invoke(project.clj:208)
at clojure.core$eval727.invoke(NO_SOURCE_FILE)
at clojure.lang.Compiler.eval(Compiler.java:6511)
at clojure.lang.Compiler.eval(Compiler.java:6501)
at clojure.lang.Compiler.eval(Compiler.java:6477)
at clojure.core$eval.invoke(core.clj:2797)
at clojure.core$eval723.invoke(NO_SOURCE_FILE:0)
at clojure.lang.Compiler.eval(Compiler.java:6511)
at clojure.lang.Compiler.eval(Compiler.java:6477)
... 83 more
Caused by: org.sonatype.aether.resolution.ArtifactResolutionException: The repository system is offline but the artifact lein-newnew:lein-newnew:jar:0.3.1 is not available in the local repository.
at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:538)
at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:216)
at org.sonatype.aether.impl.internal.DefaultRepositorySystem.resolveDependencies(DefaultRepositorySystem.java:358)
... 108 more
Caused by: org.sonatype.aether.transfer.ArtifactNotFoundException: The repository system is offline but the artifact lein-newnew:lein-newnew:jar:0.3.1 is not available in the local repository.
at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:348)
... 110 more

Laurent PETIT

unread,
Jul 31, 2012, 11:33:01 AM7/31/12
to clojured...@googlegroups.com
Hello, 

I think it's a bug in the current stable version, which is corrected in the beta. 

The beta is available at the following update site : http://ccw.cgrand.net/updatesite-betas/

Please give it a try...
--
You received this message because you are subscribed to the Google Groups "counterclockwise-users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/clojuredev-users/-/NZgao30ScwIJ.
To post to this group, send email to clojured...@googlegroups.com.
To unsubscribe from this group, send email to clojuredev-use...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/clojuredev-users?hl=en.

Nathan Matthews

unread,
Aug 2, 2012, 4:40:11 AM8/2/12
to clojured...@googlegroups.com
Hi,

I removed the existing plugin and installed the new one from your suggested update site. But I still get the error:

!ENTRY ccw.leiningen 4 0 2012-08-02 09:37:37.788
!MESSAGE Exception while creating new project LeinTest1
at classlojure.core$eval_in_STAR_$print_read_eval__497.invoke(core.clj:66)
at classlojure.core$eval_in_STAR_.doInvoke(core.clj:70)
at clojure.lang.RestFn.invoke(RestFn.java:425)
at clojure.lang.AFn.applyToHelper(AFn.java:163)
at clojure.lang.RestFn.applyTo(RestFn.java:132)
at clojure.core$apply.invoke(core.clj:604)
at classlojure.core$eval_in.doInvoke(core.clj:89)
at clojure.lang.RestFn.invoke(RestFn.java:425)
at clojure.lang.AFn.applyToHelper(AFn.java:163)
at clojure.lang.RestFn.applyTo(RestFn.java:132)
at clojure.core$apply.invoke(core.clj:604)
at ccw.leiningen.util$eval_in_project.doInvoke(util.clj:85)
at clojure.lang.RestFn.invoke(RestFn.java:425)
at ccw.leiningen.util$lein_project.doInvoke(util.clj:119)
at clojure.lang.RestFn.invoke(RestFn.java:439)
at ccw.leiningen.util$lein_new.doInvoke(util.clj:131)
at clojure.lang.RestFn.invoke(RestFn.java:445)
at ccw.leiningen.wizard$perform_finish.invoke(wizard.clj:33)
at clojure.lang.Var.invoke(Var.java:405)
at ccw.util.ClojureUtils.invoke(ClojureUtils.java:46)
... 57 more
Caused by: org.sonatype.aether.resolution.DependencyResolutionException: The repository system is offline but the artifact lein-newnew:lein-newnew:jar:0.3.3 is not available in the local repository.
at org.sonatype.aether.impl.internal.DefaultRepositorySystem.resolveDependencies(DefaultRepositorySystem.java:375)
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 clojure.lang.Reflector.invokeMatchingMethod(Reflector.java:93)
at clojure.lang.Reflector.invokeInstanceMethod(Reflector.java:28)
at cemerick.pomegranate.aether$resolve_dependencies.doInvoke(aether.clj:406)
at clojure.lang.RestFn.invoke(RestFn.java:1096)
at leiningen.core.classpath$get_dependencies.doInvoke(classpath.clj:129)
at clojure.lang.RestFn.invoke(RestFn.java:425)
at leiningen.core.classpath$get_dependencies.doInvoke(classpath.clj:133)
at clojure.lang.RestFn.applyTo(RestFn.java:142)
at clojure.core$apply.invoke(core.clj:605)
at leiningen.core.classpath$resolve_dependencies.doInvoke(classpath.clj:145)
at clojure.lang.RestFn.invoke(RestFn.java:464)
at leiningen.core.project$load_plugins.invoke(project.clj:207)
at leiningen.core.project$load_plugins.invoke(project.clj:208)
at clojure.core$eval709.invoke(NO_SOURCE_FILE)
at clojure.lang.Compiler.eval(Compiler.java:6511)
at clojure.lang.Compiler.eval(Compiler.java:6501)
at clojure.lang.Compiler.eval(Compiler.java:6477)
at clojure.core$eval.invoke(core.clj:2797)
at clojure.core$eval705.invoke(NO_SOURCE_FILE:0)
at clojure.lang.Compiler.eval(Compiler.java:6511)
at clojure.lang.Compiler.eval(Compiler.java:6477)
... 83 more
Caused by: org.sonatype.aether.resolution.ArtifactResolutionException: The repository system is offline but the artifact lein-newnew:lein-newnew:jar:0.3.3 is not available in the local repository.
at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:538)
at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:216)
at org.sonatype.aether.impl.internal.DefaultRepositorySystem.resolveDependencies(DefaultRepositorySystem.java:358)
... 108 more
Caused by: org.sonatype.aether.transfer.ArtifactNotFoundException: The repository system is offline but the artifact lein-newnew:lein-newnew:jar:0.3.3 is not available in the local repository.
at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:348)
... 110 more

To post to this group, send email to clojuredev-users@googlegroups.com.
To unsubscribe from this group, send email to clojuredev-users+unsubscribe@googlegroups.com.

Laurent PETIT

unread,
Aug 30, 2012, 4:27:02 AM8/30/12
to clojured...@googlegroups.com
Ok, I wanted to fix this, but it seems that the Leiningen code related
to bootstrapping it has changed recently, so since I'm not ready to
switch the embedded version of CCW to a newer Lein2 preview right now,
I'll delay the correction of this issue until then.

Would you please file an issue so that I can remember working on it as
soon as it is possible?

Cheers,

--
Laurent

2012/8/2 Nathan Matthews <nathan.r...@gmail.com>:
>> To post to this group, send email to clojured...@googlegroups.com.
>> To unsubscribe from this group, send email to
>> clojuredev-use...@googlegroups.com.
>> For more options, visit this group at
>> http://groups.google.com/group/clojuredev-users?hl=en.
>
> --
> You received this message because you are subscribed to the Google Groups
> "counterclockwise-users" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/clojuredev-users/-/I9bzLghZBKIJ.
>
> To post to this group, send email to clojured...@googlegroups.com.
> To unsubscribe from this group, send email to
> clojuredev-use...@googlegroups.com.

Dean Laskin

unread,
Dec 11, 2012, 2:05:30 PM12/11/12
to clojured...@googlegroups.com
Hi Laurent,

I'm encountering this exact issue too. I'm new to Maven/Clojure/Leiningen et al. Is there a workaround until you fix this?

Thanks,
Dean

Laurent PETIT

unread,
Dec 11, 2012, 6:21:20 PM12/11/12
to clojuredev-users


On Dec 12, 2012 12:17 AM, "Dean Laskin" <wdla...@gmail.com> wrote:
>
> Hi Laurent,
>
> I'm encountering this exact issue too. I'm new to Maven/Clojure/Leiningen et al. Is there a workaround until you fix this?

Sorry no, not that I'm aware of :(

> To view this discussion on the web visit https://groups.google.com/d/msg/clojuredev-users/-/BBFKSo0tniUJ.

Dean Laskin

unread,
Dec 12, 2012, 9:12:09 AM12/12/12
to clojured...@googlegroups.com
The problem is that there seems to be dependencies on 3 versions of lein-newnew.jar: 0.3.1, 0.3.3, and 0.3.5, but only lein-newnew-0.3.5.jar is provided with CCW install. I first tried to manually download the missing versions but I couldn't locate them. Then I had an "aha" moment (this is all new to me) and added them to my project's project.clj and ran lein from outside Eclipse and it works now!

Thanks very much for this project. We'd never use Clojure where I work without beloved Eclipse.

Laurent PETIT

unread,
Dec 13, 2012, 2:50:43 AM12/13/12
to clojured...@googlegroups.com
2012/12/12 Dean Laskin <wdla...@gmail.com>

The problem is that there seems to be dependencies on 3 versions of lein-newnew.jar: 0.3.1, 0.3.3, and 0.3.5, but only lein-newnew-0.3.5.jar is provided with CCW install. I first tried to manually download the missing versions but I couldn't locate them. Then I had an "aha" moment (this is all new to me) and added them to my project's project.clj and ran lein from outside Eclipse and it works now!

Glad you found a work-around.
 
Thanks very much for this project. We'd never use Clojure where I work without beloved Eclipse.

Thanks, your kind words are appreciated :-D
 
To view this discussion on the web visit https://groups.google.com/d/msg/clojuredev-users/-/otTSlQVxnngJ.
Reply all
Reply to author
Forward
0 new messages