This Bugzilla instance is deprecated, and most Eclipse projects now use GitHub or Eclipse GitLab. Please see the deprecation plan for details.
Bug 246561 - COSMOS CLI : Problem with GraphQuery command
Summary: COSMOS CLI : Problem with GraphQuery command
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Cosmos (show other bugs)
Version: unspecified   Edit
Hardware: PC All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Monica Lupu CLA
QA Contact: Don Ebright CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-09-08 06:59 EDT by Srinivas Reddy CLA
Modified: 2012-01-03 13:46 EST (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Srinivas Reddy CLA 2008-09-08 06:59:17 EDT
Build ID: COSMOS-1.0.0-200809031641

Steps To Reproduce:
1.Open Cosmos command line client interface
2.Execute GraphQuery command, as below:

On Linux and Windows Platform:
==============================
COSMOS>  GraphQuery http://www.eclipse.org/cosmos/examplemdr/4 "/home/srinivas/cosmos/i13/cosmos-demo/cosmos-client/cmdbfQuery/ExampleMDR/all-students.txt"
Missing <query filename>

Only On Linux Platform:
=====================

COSMOS> GraphQuery http://www.eclipse.org/cosmos/examplemdr/4 /home/srinivas/cosmos/i13/cosmos-demo/cosmos-client/cmdbfQuery/ExampleMDR/all-students.txt result.out
Command error: /home/srinivas/cosmos/i13/cosmos-demo/cosmos-client/cmdbfQuery/ExampleMDR/all-students.txt  (No such file or directory)
java.io.FileNotFoundException: /home/srinivas/cosmos/i13/cosmos-demo/cosmos-client/cmdbfQuery/ExampleMDR/all-students.txt  (No such file or directory)
        at java.io.FileInputStream.open(Native Method)
        at java.io.FileInputStream.<init>(FileInputStream.java:106)
        at java.io.FileInputStream.<init>(FileInputStream.java:66)
        at sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection.java:70)
        at sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:161)
        at org.apache.xerces.impl.XMLEntityManager.setupCurrentEntity(Unknown Source)
        at org.apache.xerces.impl.XMLVersionDetector.determineDocVersion(Unknown Source)
        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
        at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
        at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
        at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
        at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:172)
        at org.eclipse.cosmos.dc.test.CmdGraphQuery.performAction(CommandEntry.java:406)
        at org.eclipse.cosmos.dc.test.CosmosCLI.handleCommand(CosmosCLI.java:263)
        at org.eclipse.cosmos.dc.test.CosmosCLI.getInput(CosmosCLI.java:104)
        at org.eclipse.cosmos.dc.test.CosmosCLI.main(CosmosCLI.java:78)


More information:
Comment 1 Martin D Simmonds CLA 2008-09-30 07:35:52 EDT
Fix committed to CVS 
Comment 2 Srinivas Reddy CLA 2008-10-01 08:11:29 EDT
I have verified this on latest i14 Week2 Driver (COSMOS-1.0.0-200809301142) and found one of the issue is still not resolved (see below).

On linux box:
===========
COSMOS> GraphQuery http://www.eclipse.org/cosmos/examplemdr/4 /home/srinivas/cosmos/i14/cosmos-demo/cosmos-client/cmdbfQuery/ExampleMDR/all-students.txt result

Command error: /home/srinivas/cosmos/i14/cosmos-demo/cosmos-client/cmdbfQuery/ExampleMDR/all-students.txt  (No such file or directory)
java.io.FileNotFoundException: /home/srinivas/cosmos/i14/cosmos-demo/cosmos-client/cmdbfQuery/ExampleMDR/all-students.txt  (No such file or directory)
        at java.io.FileInputStream.open(Native Method)
        at java.io.FileInputStream.<init>(FileInputStream.java:106)
        at java.io.FileInputStream.<init>(FileInputStream.java:66)
        at sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection.java:70)
        at sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:161)
        at org.apache.xerces.impl.XMLEntityManager.setupCurrentEntity(Unknown Source)
        at org.apache.xerces.impl.XMLVersionDetector.determineDocVersion(Unknown Source)
        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
        at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
        at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
        at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
        at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:172)
        at org.eclipse.cosmos.dc.test.CmdGraphQuery.performAction(CommandEntry.java:406)
        at org.eclipse.cosmos.dc.test.CosmosCLI.handleCommand(CosmosCLI.java:263)
        at org.eclipse.cosmos.dc.test.CosmosCLI.getInput(CosmosCLI.java:104)
        at org.eclipse.cosmos.dc.test.CosmosCLI.main(CosmosCLI.java:78)


All other combination of tests are working fine, both on linux and windows platforms.

Linux:
========
All below queries are working fine, no issues found.

a)GraphQuery http://www.eclipse.org/cosmos/examplemdr/4 /home/srinivas/cosmos/i14/cosmos-demo/cosmos-client/cmdbfQuery/ExampleMDR/all-students.txt
-- Passed

b)GraphQuery http://www.eclipse.org/cosmos/examplemdr/4 /home/srinivas/cosmos/i14/cosmos-demo/cosmos-client/cmdbfQuery/ExampleMDR/all-students.txt result
-- Failed

c)GraphQuery http://www.eclipse.org/cosmos/examplemdr/4 "/home/srinivas/cosmos/i14/cosmos-demo/cosmos-client/cmdbfQuery/ExampleMDR/all-students.txt"
-- Passed

d)GraphQuery http://www.eclipse.org/cosmos/examplemdr/4 "/home/srinivas/cosmos/i14/cosmos-demo/cosmos-client/cmdbfQuery/ExampleMDR/all-students.txt" result
-- Passed

Windows:
========
All below queries are working fine, no issues found.

a)GraphQuery http://www.eclipse.org/cosmos/examplemdr/4 C:\cosmos\i14\cosmos-demo\cosmos-client\cmdbfQuery\ExampleMDR\all-students.txt
-- Passed

b)GraphQuery http://www.eclipse.org/cosmos/examplemdr/4 C:\cosmos\i14\cosmos-demo\cosmos-client\cmdbfQuery\ExampleMDR\all-students.txt result
-- Passed

c)GraphQuery http://www.eclipse.org/cosmos/examplemdr/4 "C:\cosmos\i14\cosmos-demo\cosmos-client\cmdbfQuery\ExampleMDR\all-students.txt"
-- Passed

d)GraphQuery http://www.eclipse.org/cosmos/examplemdr/4 "C:\cosmos\i14\cosmos-demo\cosmos-client\cmdbfQuery\ExampleMDR\all-students.txt" result
-- Passed