This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 255159 - Cannot clone git repo on Linux
Summary: Cannot clone git repo on Linux
Status: RESOLVED FIXED
Alias: None
Product: versioncontrol
Classification: Unclassified
Component: Git (show other bugs)
Version: 8.0.2
Hardware: PC Linux
: P3 normal (vote)
Assignee: Ondrej Vrabec
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-09-10 08:31 UTC by thuryn
Modified: 2015-09-17 01:27 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
log with exception in git clone (59.22 KB, text/x-log)
2015-09-15 11:39 UTC, thuryn
Details

Note You need to log in before you can comment on or make changes to this bug.
Description thuryn 2015-09-10 08:31:33 UTC
When I try to clone git repo, I get this error:

INFO [org.netbeans.api.java.source.ElementHandle]: Resolved type is null for kind = CLASS
INFO [org.netbeans.api.java.source.ElementHandle]: Cannot resolve: ElementHandle[kind=CLASS; sigs=com.sun.net.ssl.HttpsURLConnection$1 ]
INFO [org.netbeans.modules.git]: java.lang.AssertionError: Repository info is null: /path/to/my/repository === null
java.lang.AssertionError: Repository info is null: /home/tomas/work/4finance/workspaces/2/loans_test/loans === null
        at org.netbeans.modules.git.client.GitClient$CommandInvoker$1$1.call(GitClient.java:971)
        at org.netbeans.modules.git.client.GitClient$CommandInvoker$1.call(GitClient.java:977)
        at org.netbeans.modules.git.client.GitClient$CommandInvoker.runMethodIntern(GitClient.java:989)
        at org.netbeans.modules.git.client.GitClient$CommandInvoker.runMethod(GitClient.java:916)
Caused: org.netbeans.libs.git.GitException
        at org.netbeans.modules.git.client.GitClient$CommandInvoker.runMethod(GitClient.java:932)
        at org.netbeans.modules.git.client.GitClient$CommandInvoker.runMethod(GitClient.java:898)
        at org.netbeans.modules.git.client.GitClient$CommandInvoker.access$400(GitClient.java:892)
        at org.netbeans.modules.git.client.GitClient.fetch(GitClient.java:422)
        at org.netbeans.modules.git.ui.clone.CloneAction$2$1.call(CloneAction.java:221)
        at org.netbeans.modules.git.ui.clone.CloneAction$2$1.call(CloneAction.java:213)
        at org.netbeans.modules.versioning.indexingbridge.Bridge$1.call(Bridge.java:64)
        at org.netbeans.modules.parsing.api.indexing.IndexingManager.runProtected(IndexingManager.java:425)
        at org.netbeans.modules.versioning.indexingbridge.Bridge.runWithoutIndexing(Bridge.java:59)
        at org.netbeans.modules.versioning.util.IndexingBridge.runWithoutIndexing(IndexingBridge.java:139)
        at org.netbeans.modules.versioning.util.IndexingBridge.runWithoutIndexing(IndexingBridge.java:102)
        at org.netbeans.modules.git.utils.GitUtils.runWithoutIndexing(GitUtils.java:914)
[catch] at org.netbeans.modules.git.ui.clone.CloneAction$2.perform(CloneAction.java:213)
        at org.netbeans.modules.git.client.GitProgressSupport.performIntern(GitProgressSupport.java:115)
        at org.netbeans.modules.git.client.GitProgressSupport.run(GitProgressSupport.java:108)
        at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1443)
        at org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:68)
        at org.openide.util.lookup.Lookups.executeWith(Lookups.java:303)
        at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2058)


Clone by other git client works fine.
Comment 1 Jiri Kovalsky 2015-09-10 08:48:19 UTC
Reassigned for further evaluation.
Comment 2 Ondrej Vrabec 2015-09-10 09:29:42 UTC
What build are you using? You filed it against 8.0.2 but this error is an assert, it should not happen in a release.

Is this the folder you cloned into? /home/tomas/work/4finance/workspaces/2/loans_test/loans
Did you play with it before the clone, e.g. was it already existing clone, you deleted it and cloned again?
Comment 3 thuryn 2015-09-10 09:34:37 UTC
Product Version: NetBeans IDE 8.0.2 (Build 201411181905)
Updates: NetBeans IDE is updated to version NetBeans 8.0.2 Patch 2
Java: 1.8.0_40; Java HotSpot(TM) 64-Bit Server VM 25.40-b25
Runtime: Java(TM) SE Runtime Environment 1.8.0_40-b26
System: Linux version 4.1.6-200.fc22.x86_64 running on amd64; UTF-8; cs_CZ (nb)


The directory was new, empty, ununsed directory.
Comment 4 Ondrej Vrabec 2015-09-10 11:09:41 UTC
Is it reproducible? Does it always happen?
Comment 5 thuryn 2015-09-10 11:20:22 UTC
yes, it is reprocudible - it happens always. I'm not able to check out a project.
Comment 6 Ondrej Vrabec 2015-09-10 11:34:08 UTC
I am adding some more logging to catch the root cause for this. Could you please try a dev build (you will be notified here in the issue with a comment with a link to download the dev build in few days) with my additional logging and when it happens, could you then attach the full IDE log with the error?

fix: http://hg.netbeans.org/core-main/rev/6458d9d84d89
Comment 7 thuryn 2015-09-10 11:41:11 UTC
yes, I can. I'll try it with dev build. I'm waiting for dev build and comment in this issue.
Comment 8 Quality Engineering 2015-09-12 03:06:53 UTC
Integrated into 'main-silver', will be available in build *201509120002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/6458d9d84d89
User: Ondrej Vrabec <ovrabec@netbeans.org>
Log: #255159 - Cannot clone git repo on Linux
Add more logging.
Comment 9 thuryn 2015-09-14 07:21:15 UTC
Tested on 201509130002.

I've tried to clone repo into different locations and it looks like it depends on the destination path - a long path does not work (/home/tomas/work/4finance/workspaces/2/loans_test/loans), a short one works fine (/home/tomas/testLoans). The same experiance for 8.0.2 version as well as for dev version.

Here is the log from dev version:

Diagnostic information
Input arguments:
        -Djdk.home=/usr/java/latest
        -Dnetbeans.default_userdir_root=/home/tomas/.netbeans
        -Dnetbeans.running.environment=kde
        -Dnetbeans.dirs=/opt/netbeans-dev-201509130002/nb:/opt/netbeans-dev-201509130002/ergonomics:/opt/netbeans-dev-201509130002/ide:/opt/netbeans-dev-201509130002/extide:/opt/netbeans-dev-
201509130002/java:/opt/netbeans-dev-201509130002/apisupport:/opt/netbeans-dev-201509130002/webcommon:/opt/netbeans-dev-201509130002/websvccommon:/opt/netbeans-dev-201509130002/enterprise:/opt
/netbeans-dev-201509130002/mobility:/opt/netbeans-dev-201509130002/profiler:/opt/netbeans-dev-201509130002/python:/opt/netbeans-dev-201509130002/php:/opt/netbeans-dev-201509130002/identity:/o
pt/netbeans-dev-201509130002/harness:/opt/netbeans-dev-201509130002/cnd:/opt/netbeans-dev-201509130002/cndext:/opt/netbeans-dev-201509130002/dlight:/opt/netbeans-dev-201509130002/groovy:/opt/
netbeans-dev-201509130002/extra:/opt/netbeans-dev-201509130002/javacard:/opt/netbeans-dev-201509130002/javafx:
        -Dnetbeans.home=/opt/netbeans-dev-201509130002/platform
        -Dnetbeans.importclass=org.netbeans.upgrade.AutoUpgrade
        -Dnetbeans.accept_license_class=org.netbeans.license.AcceptLicense
        -Xss2m
        -Xms32m
        -Xmx2048m
        -Dnetbeans.logger.console=true
        -ea
        -Dapple.laf.useScreenMenuBar=true
        -Dapple.awt.graphics.UseQuartz=true
        -Dsun.java2d.noddraw=true
        -Dsun.java2d.dpiaware=true
        -Dsun.zip.disableMemoryMapping=true
        -Dplugin.manager.check.updates=false
        -Dnetbeans.extbrowser.manual_chrome_plugin_install=yes
        -XX:+HeapDumpOnOutOfMemoryError
        -XX:HeapDumpPath=/home/tomas/work/4finance/workspaces/5/var/log/heapdump.hprof
Compiler: HotSpot 64-Bit Tiered Compilers
Heap memory usage: initial 32,0MB maximum 1820,5MB
Non heap memory usage: initial 2,4MB maximum -1b
Garbage collector: PS Scavenge (Collections=17 Total time spent=0s)
Garbage collector: PS MarkSweep (Collections=3 Total time spent=0s)
Classes: loaded=7273 total loaded=7273 unloaded 0
INFO [org.netbeans.core.ui.warmup.DiagnosticTask]: Total memory 16 740 081 664
INFO [org.netbeans.modules.mercurial]: version: null
INFO [org.netbeans.modules.subversion]: Cache not yet initialized, showing default actions
INFO [org.netbeans.modules.subversion]: Finished indexing svn cache with 0 entries. Elapsed time: 0 ms.
SEVERE [org.openide.util.RequestProcessor]: Error in RequestProcessor org.netbeans.modules.git.ui.clone.CloneAction$2
java.lang.NullPointerException
        at org.netbeans.modules.git.client.GitClient$CommandInvoker$1$1.call(GitClient.java:901)
        at org.netbeans.modules.git.client.GitClient$CommandInvoker$1.call(GitClient.java:906)
        at org.netbeans.modules.git.client.GitClient$CommandInvoker.runMethodIntern(GitClient.java:918)
        at org.netbeans.modules.git.client.GitClient$CommandInvoker.runMethod(GitClient.java:847)
        at org.netbeans.modules.git.client.GitClient$CommandInvoker.runMethod(GitClient.java:829)
        at org.netbeans.modules.git.client.GitClient$CommandInvoker.access$400(GitClient.java:823)
        at org.netbeans.modules.git.client.GitClient.fetch(GitClient.java:406)
        at org.netbeans.modules.git.ui.clone.CloneAction$2$1.call(CloneAction.java:220)
        at org.netbeans.modules.git.ui.clone.CloneAction$2$1.call(CloneAction.java:213)
        at org.netbeans.modules.versioning.indexingbridge.Bridge$1.call(Bridge.java:64)
        at org.netbeans.modules.parsing.api.indexing.IndexingManager.runProtected(IndexingManager.java:425)
        at org.netbeans.modules.versioning.indexingbridge.Bridge.runWithoutIndexing(Bridge.java:59)
        at org.netbeans.modules.versioning.util.IndexingBridge.runWithoutIndexing(IndexingBridge.java:139)
        at org.netbeans.modules.versioning.util.IndexingBridge.runWithoutIndexing(IndexingBridge.java:102)
        at org.netbeans.modules.git.utils.GitUtils.runWithoutIndexing(GitUtils.java:927)
        at org.netbeans.modules.git.ui.clone.CloneAction$2.perform(CloneAction.java:213)
        at org.netbeans.modules.git.client.GitProgressSupport.performIntern(GitProgressSupport.java:114)
        at org.netbeans.modules.git.client.GitProgressSupport.run(GitProgressSupport.java:107)
        at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1443)
        at org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:68)
        at org.openide.util.lookup.Lookups.executeWith(Lookups.java:303)
        at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2058)
Caused: org.openide.util.RequestProcessor$SlowItem: task failed due to
        at org.openide.util.RequestProcessor.post(RequestProcessor.java:420)
        at org.netbeans.modules.git.client.GitProgressSupport.start(GitProgressSupport.java:100)
        at org.netbeans.modules.git.ui.clone.CloneAction.performClone(CloneAction.java:351)
        at org.netbeans.modules.git.ui.clone.CloneAction.performClone(CloneAction.java:164)
        at org.netbeans.modules.git.ui.clone.CloneAction.actionPerformed(CloneAction.java:160)
        at org.openide.awt.InjectorExactlyOne.actionPerformed(InjectorExactlyOne.java:78)
        at org.openide.awt.ContextAction$Performer.actionPerformed(ContextAction.java:226)
        at org.openide.awt.ContextManager.actionPerformed(ContextManager.java:260)
        at org.openide.awt.ContextAction.actionPerformed(ContextAction.java:109)
        at org.openide.util.actions.ActionInvoker$1.run(ActionInvoker.java:93)
        at org.openide.util.actions.ActionInvoker.doPerformAction(ActionInvoker.java:116)
        at org.openide.util.actions.ActionInvoker.invokeAction(ActionInvoker.java:99)
        at org.openide.awt.GeneralAction$BaseDelAction.actionPerformed(GeneralAction.java:234)
        at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2022)
        at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2346)
        at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)
        at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
        at javax.swing.AbstractButton.doClick(AbstractButton.java:376)
        at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:833)
        at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:877)
        at java.awt.Component.processMouseEvent(Component.java:6525)
        at javax.swing.JComponent.processMouseEvent(JComponent.java:3324)
        at java.awt.Component.processEvent(Component.java:6290)
        at java.awt.Container.processEvent(Container.java:2234)
        at java.awt.Component.dispatchEventImpl(Component.java:4881)
        at java.awt.Container.dispatchEventImpl(Container.java:2292)
        at java.awt.Component.dispatchEvent(Component.java:4703)
        at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4898)
        at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4533)
        at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4462)
        at java.awt.Container.dispatchEventImpl(Container.java:2278)
        at java.awt.Window.dispatchEventImpl(Window.java:2750)
        at java.awt.Component.dispatchEvent(Component.java:4703)
        at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:751)
        at java.awt.EventQueue.access$500(EventQueue.java:97)
        at java.awt.EventQueue$3.run(EventQueue.java:702)
        at java.awt.EventQueue$3.run(EventQueue.java:696)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:75)
        at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:86)
        at java.awt.EventQueue$4.run(EventQueue.java:724)
        at java.awt.EventQueue$4.run(EventQueue.java:722)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:75)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:721)
        at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:159)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
        at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
[catch] at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
WARNING [org.netbeans.core.startup.InstalledFileLocatorImpl]: no code name base passed when looking up jsstubs/domstubs.zip at org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Roo
tsWork.checkRootCollection(RepositoryUpdater.java:4791)
WARNING [org.netbeans.core.startup.InstalledFileLocatorImpl]: no code name base passed when looking up jsstubs/reststubs.zip at org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Ro
otsWork.checkRootCollection(RepositoryUpdater.java:4791)
WARNING [org.netbeans.core.startup.InstalledFileLocatorImpl]: no code name base passed when looking up jsstubs/corestubs.zip at org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Ro
otsWork.checkRootCollection(RepositoryUpdater.java:4791)
INFO [org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater]: Resolving dependencies took: 82 ms
INFO [org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater]: Complete indexing of 0 binary roots took: 1 ms
INFO [org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater]: Indexing of: /opt/netbeans-dev-201509130002/ide/jsstubs/reststubs.zip took: 1 054 ms (New or modified files: 14, Deleted f
iles: 0) [Adding listeners took: 0 ms]
INFO [org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater]: Indexing of: /opt/netbeans-dev-201509130002/ide/jsstubs/corestubs.zip took: 642 ms (New or modified files: 37, Deleted fil
es: 0) [Adding listeners took: 0 ms]
INFO [org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater]: Indexing of: /opt/netbeans-dev-201509130002/ide/jsstubs/domstubs.zip took: 714 ms (New or modified files: 133, Deleted fil
es: 0) [Adding listeners took: 0 ms]
INFO [org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater]: Complete indexing of 3 source roots took: 2 410 ms (New or modified files: 184, Deleted files: 0) [Adding listeners took: 
0 ms]
INFO [org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater]: Complete indexing of 0 binary roots took: 0 ms
INFO [org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater]: Complete indexing of 0 source roots took: 0 ms (New or modified files: 0, Deleted files: 0) [Adding listeners took: 0 ms]
Comment 10 Ondrej Vrabec 2015-09-14 14:36:45 UTC
I am sorry but the exception you submitted in the last comment comes from 8.0.2 sources, the lines and the exception does not correspond to latest NetBeans dev sources.
Can you please try once again with the dev build - ideally start it with a fresh userdir: netbeans --userdir /tmp/userdir255159
When it starts do not import any plugins, do not install any updates, just try to do the clone and attach the IDE log when you get the exception.
Thanks.
Comment 11 Ondrej Vrabec 2015-09-14 14:39:43 UTC
.. and please attach the full log, not just a snippet, whole file as an attachment with
Comment 12 thuryn 2015-09-15 11:39:14 UTC
Created attachment 156182 [details]
log with exception in git clone
Comment 13 thuryn 2015-09-15 11:40:10 UTC
I need to start netbeans with long path to userdir, otherwise exception is not thrown (/opt/netbeans-dev-201509130002/bin/netbeans --userdir /home/tomas/work/4finance/workspaces/5).
Comment 14 Ondrej Vrabec 2015-09-15 13:50:23 UTC
Aaah, i get it now. You're cloning into NetBeans userdir.
--userdir /home/tomas/work/4finance/workspaces/5 specifies a NB userdir, that is not a workspace, it is a folder with NetBeans metadata, not meant for user to keep his data in. You should clone anywhere but in there.
I'll try to get rid of the exception.
Comment 15 thuryn 2015-09-15 13:56:35 UTC
I see. Thanks for solution and fix.
Comment 16 Ondrej Vrabec 2015-09-15 14:02:29 UTC
Fix: http://hg.netbeans.org/core-main/rev/feb3bb2a8d41
Comment 17 Quality Engineering 2015-09-17 01:27:28 UTC
Integrated into 'main-silver', will be available in build *201509170002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/feb3bb2a8d41
User: Ondrej Vrabec <ovrabec@netbeans.org>
Log: #255159 - Cannot clone git repo on Linux