Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [ptp-user] Synchronization error

There was a change recently in the JGit interface for
ignore rules, which made JGit incompatible with older
versions of PTP. Try upgrading to PTP 9.0.


John

On Thu, Aug 13, 2015 at 10:19 AM, Juri Romazanov <j.romazanov@xxxxxxxxxxxxx> wrote:
I just stumbled on another exception  when I tried to call the Filter Dialog (Right click on the project -> Synchronize -> Filters...)

Maybe this will help:

Message:

Unhandled event loop exception

Exception Stack Trace:

org.eclipse.e4.core.di.InjectionException: java.lang.NoClassDefFoundError: org/eclipse/jgit/ignore/IgnoreRule
    at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:62)
    at org.eclipse.e4.core.internal.di.InjectorImpl.invokeUsingClass(InjectorImpl.java:247)
    at org.eclipse.e4.core.internal.di.InjectorImpl.invoke(InjectorImpl.java:229)
    at org.eclipse.e4.core.contexts.ContextInjectionFactory.invoke(ContextInjectionFactory.java:132)
    at org.eclipse.e4.core.commands.internal.HandlerServiceHandler.execute(HandlerServiceHandler.java:149)
    at org.eclipse.core.commands.Command.executeWithChecks(Command.java:499)
    at org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:508)
    at org.eclipse.e4.core.commands.internal.HandlerServiceImpl.executeHandler(HandlerServiceImpl.java:210)
    at org.eclipse.e4.ui.workbench.renderers.swt.HandledContributionItem.executeItem(HandledContributionItem.java:825)
    at org.eclipse.e4.ui.workbench.renderers.swt.HandledContributionItem.handleWidgetSelection(HandledContributionItem.java:701)
    at org.eclipse.e4.ui.workbench.renderers.swt.HandledContributionItem.access$6(HandledContributionItem.java:685)
    at org.eclipse.e4.ui.workbench.renderers.swt.HandledContributionItem$4.handleEvent(HandledContributionItem.java:613)
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
    at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4454)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1388)
    at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3799)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3409)
    at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1151)
    at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
    at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1032)
    at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:148)
    at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:636)
    at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
    at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:579)
    at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)
    at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:135)
    at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:380)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:235)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:606)
    at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:648)
    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:603)
    at org.eclipse.equinox.launcher.Main.run(Main.java:1465)
    at org.eclipse.equinox.launcher.Main.main(Main.java:1438)
Caused by: java.lang.NoClassDefFoundError: org/eclipse/jgit/ignore/IgnoreRule
    at org.eclipse.ptp.internal.rdt.sync.git.core.GitSyncFileFilter.loadFilter(GitSyncFileFilter.java:250)
    at org.eclipse.ptp.internal.rdt.sync.git.core.JGitRepo.buildRepo(JGitRepo.java:152)
    at org.eclipse.ptp.internal.rdt.sync.git.core.JGitRepo.<init>(JGitRepo.java:100)
    at org.eclipse.ptp.internal.rdt.sync.git.core.GitSyncService.getLocalJGitRepo(GitSyncService.java:233)
    at org.eclipse.ptp.internal.rdt.sync.git.core.GitSyncService.getSyncFileFilter(GitSyncService.java:726)
    at org.eclipse.ptp.rdt.sync.core.SyncManager.getFileFilter(SyncManager.java:231)
    at org.eclipse.ptp.internal.rdt.sync.ui.preferences.SyncFileFilterDialog.<init>(SyncFileFilterDialog.java:95)
    at org.eclipse.ptp.internal.rdt.sync.ui.preferences.SyncFileFilterDialog.open(SyncFileFilterDialog.java:114)
    at org.eclipse.ptp.internal.rdt.sync.ui.menus.SyncMenuOperation.execute(SyncMenuOperation.java:127)
    at org.eclipse.ui.internal.handlers.HandlerProxy.execute(HandlerProxy.java:294)
    at org.eclipse.ui.internal.handlers.E4HandlerProxy.execute(E4HandlerProxy.java:90)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:606)
    at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:55)
    ... 38 more

I can reproduce both errors (calling the Filters Dialog and trying 'Remote Synchronization') for every new synchronized project I create, so I guess there is something wrong with my PTP or JGit installation...


Regards,

Juri

On 13.08.2015 16:10, Juri Romazanov wrote:
Hi,

the Message is:

An internal error occurred during: "Remote Synchronization".

the Exception Stack Trace is:

java.lang.NoClassDefFoundError: org/eclipse/jgit/ignore/IgnoreRule
    at org.eclipse.ptp.internal.rdt.sync.git.core.GitSyncFileFilter.loadFilter(GitSyncFileFilter.java:250)
    at org.eclipse.ptp.internal.rdt.sync.git.core.JGitRepo.buildRepo(JGitRepo.java:152)
    at org.eclipse.ptp.internal.rdt.sync.git.core.JGitRepo.<init>(JGitRepo.java:100)
    at org.eclipse.ptp.internal.rdt.sync.git.core.GitSyncService.getLocalJGitRepo(GitSyncService.java:233)
    at org.eclipse.ptp.internal.rdt.sync.git.core.GitSyncService.doSync(GitSyncService.java:559)
    at org.eclipse.ptp.internal.rdt.sync.git.core.GitSyncService.synchronize(GitSyncService.java:506)
    at org.eclipse.ptp.rdt.sync.core.SyncManager$SynchronizeJob.run(SyncManager.java:80)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

Regards,

Juri



On 13.08.2015 16:00, John Eblen wrote:
Hi

All projects have a set of default filtering rules to filter files used
by PTP itself, core files, etc.

Can you provide a stack trace or message from the Eclipse logs?
It is hard to diagnose the problem without more information. 


Thanks
John

On Thu, Aug 13, 2015 at 4:29 AM, Juri Romazanov <j.romazanov@xxxxxxxxxxxxx> wrote:
Hello,

I have a synchronized project. During synchronization I get the error

An internal error occurred during: "Remote Synchronization".
org/eclipse/jgit/ignore/IgnoreRule

I don't have any resource filters applied to the project, so why the
problems with IgnoreRule?

I have Eclipse CDT with PTP 8.1.2 and EGit 4.0.1.

Cheers,

Juri


------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------
Forschungszentrum Juelich GmbH
52425 Juelich
Sitz der Gesellschaft: Juelich
Eingetragen im Handelsregister des Amtsgerichts Dueren Nr. HR B 3498
Vorsitzender des Aufsichtsrats: MinDir Dr. Karl Eugen Huthmacher
Geschaeftsfuehrung: Prof. Dr.-Ing. Wolfgang Marquardt (Vorsitzender),
Karsten Beneke (stellv. Vorsitzender), Prof. Dr.-Ing. Harald Bolt,
Prof. Dr. Sebastian M. Schmidt
------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------

_______________________________________________
ptp-user mailing list
ptp-user@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/ptp-user



_______________________________________________
ptp-user mailing list
ptp-user@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/ptp-user



_______________________________________________
ptp-user mailing list
ptp-user@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/ptp-user


_______________________________________________
ptp-user mailing list
ptp-user@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/ptp-user


Back to the top