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 241329 - Profiling with remote platform fails when workdir does not end with slash
Summary: Profiling with remote platform fails when workdir does not end with slash
Status: VERIFIED FIXED
Alias: None
Product: profiler
Classification: Unclassified
Component: Ide (show other bugs)
Version: 8.0
Hardware: PC All
: P3 normal (vote)
Assignee: Petr Cyhelsky
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-02-03 12:22 UTC by Jiri Skrivanek
Modified: 2014-02-05 09:25 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Output log. (4.98 KB, text/plain)
2014-02-03 12:22 UTC, Jiri Skrivanek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Skrivanek 2014-02-03 12:22:23 UTC
Created attachment 144724 [details]
Output log.

Profiling with remote platform fails when workdir does not ends with slash. To reproduce:

    Open Tools|Java Platforms and click Add Platform...
    Select Remote Java Standard Edition and click Next
    Fill in text fields host=pi.cz.oracle.com, username=tester, appropriate password, remote JRE path=/opt/ejre1.8.0-compact3
    Set workdir to e.g. /tmp/abcd
    Click Finish and platform should be successfully added
    Close Java Platform Manager
    Create new Java application project and into main class add some code which will run for some period of time
    In case of compact1, compact2, compact3 runtime platform the project requires JDK 8.To set the JDK 8 as a project platform go to File/Project Properties/Libraries. If the JDK 8 platform is not yet defined in the IDE click Manage Platforms... and add a new Java Standard Edition platform by pointing the file chooser to JDK 8 home directory.
    Go to Sources category and select JDK 8 and required profile, eg. Compact 2
    Go to Run category and change a Runtime Platform from Project Platform to created remote platform. A new project configuration with remote execution is created.
    Click OK to save project properties
    Right-click project node and choose Run to verify that project runs on remote platform (see commands in the output window)
    Right-click project node and choose Profile
    Select CPU - Advanced and click Run but it fails

Product Version: NetBeans IDE Dev (Build 201401310001)
Java: 1.8.0; Java HotSpot(TM) Client VM 25.0-b69
Runtime: Java(TM) SE Runtime Environment 1.8.0-b127
System: Linux version 3.2.0-33-generic running on i386; UTF-8; en_US (nb)
Comment 1 Petr Cyhelsky 2014-02-03 15:57:43 UTC
fixed in:
http://hg.netbeans.org/profiler-main/rev/7f370fab0721
Comment 2 Quality Engineering 2014-02-05 02:44:59 UTC
Integrated into 'main-silver', will be available in build *201402050001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/7f370fab0721
User: Petr Cyhelsky <cyhelsky@netbeans.org>
Log: #241329 - fixing missing '/' in path