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 120904 - Broken stock quote client
Summary: Broken stock quote client
Status: RESOLVED INVALID
Alias: None
Product: serverplugins
Classification: Unclassified
Component: Identity (show other bugs)
Version: 6.x
Hardware: Macintosh Mac OS X
: P1 blocker (vote)
Assignee: Peter Liu
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-11-01 22:20 UTC by Srividhya Narayanan
Modified: 2007-11-02 01:34 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
stock quote client logical view (60.40 KB, application/octet-stream)
2007-11-01 22:21 UTC, Srividhya Narayanan
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Srividhya Narayanan 2007-11-01 22:20:29 UTC
I created a stock quote client and tried to build. I get build errors. The src pkg has 2 set of src files with varied
pkg names. Attaching screenshot.

Here is the build errors:
parsing WSDL...


generating code...

org/netbeans/identity/samples/ObjectFactory.java
org/netbeans/identity/samples/PriceType.java
org/netbeans/identity/samples/QuoteRequestType.java
org/netbeans/identity/samples/QuoteResponseType.java
org/netbeans/identity/samples/StockQuotePortType.java
org/netbeans/identity/samples/StockService.java
org/netbeans/identity/samples/package-info.java

compiling code...

javac -d
/Users/srividhyanarayanan/NetBeansProjects/StockQuoteClient2/StockQuoteClient2/build/generated/wsimport/binaries
-classpath
/opt/SDK/lib/webservices-tools.jar:/opt/SDK/lib/webservices-rt.jar:/opt/SDK/lib/javaee.jar:/opt/SDK/lib/webservices-rt.jar:/opt/SDK/lib/appserv-jstl.jar:/opt/SDK/lib/javaee.jar:/opt/SDK/lib/appserv-ws.jar:/opt/SDK/lib/mail.jar:/opt/SDK/lib/activation.jar:/opt/SDK/lib/activation.jar
-Xbootclasspath/p:/opt/SDK/lib/javaee.jar:/opt/SDK/lib/javaee.jar
/Users/srividhyanarayanan/NetBeansProjects/StockQuoteClient2/StockQuoteClient2/build/generated/wsimport/client/org/netbeans/identity/samples/ObjectFactory.java
/Users/srividhyanarayanan/NetBeansProjects/StockQuoteClient2/StockQuoteClient2/build/generated/wsimport/client/org/netbeans/identity/samples/PriceType.java
/Users/srividhyanarayanan/NetBeansProjects/StockQuoteClient2/StockQuoteClient2/build/generated/wsimport/client/org/netbeans/identity/samples/QuoteRequestType.java
/Users/srividhyanarayanan/NetBeansProjects/StockQuoteClient2/StockQuoteClient2/build/generated/wsimport/client/org/netbeans/identity/samples/QuoteResponseType.java
/Users/srividhyanarayanan/NetBeansProjects/StockQuoteClient2/StockQuoteClient2/build/generated/wsimport/client/org/netbeans/identity/samples/StockQuotePortType.java
/Users/srividhyanarayanan/NetBeansProjects/StockQuoteClient2/StockQuoteClient2/build/generated/wsimport/client/org/netbeans/identity/samples/StockService.java
/Users/srividhyanarayanan/NetBeansProjects/StockQuoteClient2/StockQuoteClient2/build/generated/wsimport/client/org/netbeans/identity/samples/package-info.java

wsimport-client-generate:
Created dir: /Users/srividhyanarayanan/NetBeansProjects/StockQuoteClient2/StockQuoteClient2/build/web/WEB-INF/classes
Created dir: /Users/srividhyanarayanan/NetBeansProjects/StockQuoteClient2/StockQuoteClient2/build/web/META-INF
Copying 1 file to /Users/srividhyanarayanan/NetBeansProjects/StockQuoteClient2/StockQuoteClient2/build/web/META-INF
Copying 6 files to /Users/srividhyanarayanan/NetBeansProjects/StockQuoteClient2/StockQuoteClient2/build/web
library-inclusion-in-archive:
library-inclusion-in-manifest:
wsimport-client-compile:
Compiling 7 source files to
/Users/srividhyanarayanan/NetBeansProjects/StockQuoteClient2/StockQuoteClient2/build/web/WEB-INF/classes
Compiling 6 source files to
/Users/srividhyanarayanan/NetBeansProjects/StockQuoteClient2/StockQuoteClient2/build/web/WEB-INF/classes
/Users/srividhyanarayanan/NetBeansProjects/StockQuoteClient2/StockQuoteClient2/src/java/com/samples/GetQuote.java:61:
cannot find symbol
symbol  : class StockService
location: package com.samples
    private com.samples.StockService service;
/Users/srividhyanarayanan/NetBeansProjects/StockQuoteClient2/StockQuoteClient2/src/java/com/samples/GetQuote.java:66:
cannot find symbol
symbol  : class QuoteResponseType
location: class com.samples.GetQuote
    public QuoteResponseType getStockQuote(String symbol) {
/Users/srividhyanarayanan/NetBeansProjects/StockQuoteClient2/StockQuoteClient2/src/java/com/samples/GetQuote.java:67:
cannot find symbol
symbol  : class StockQuotePortType
location: class com.samples.GetQuote
        StockQuotePortType port = service.getStockQuotePortTypePort();
/Users/srividhyanarayanan/NetBeansProjects/StockQuoteClient2/StockQuoteClient2/src/java/com/samples/GetQuote.java:68:
cannot find symbol
symbol  : class QuoteRequestType
location: class com.samples.GetQuote
        QuoteRequestType body = new QuoteRequestType();
/Users/srividhyanarayanan/NetBeansProjects/StockQuoteClient2/StockQuoteClient2/src/java/com/samples/GetQuote.java:68:
cannot find symbol
symbol  : class QuoteRequestType
location: class com.samples.GetQuote
        QuoteRequestType body = new QuoteRequestType();
/Users/srividhyanarayanan/NetBeansProjects/StockQuoteClient2/StockQuoteClient2/src/java/com/samples/GetQuote.java:89:
cannot find symbol
symbol  : class QuoteResponseType
location: class com.samples.GetQuote
            QuoteResponseType result = getStockQuote(symbol);
/Users/srividhyanarayanan/NetBeansProjects/StockQuoteClient2/StockQuoteClient2/src/java/com/samples/GetQuote.java:90:
cannot find symbol
symbol  : class PriceType
location: class com.samples.GetQuote
            PriceType price = result.getPrice();
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
7 errors
/Users/srividhyanarayanan/NetBeansProjects/StockQuoteClient2/StockQuoteClient2/nbproject/build-impl.xml:332: The
following error occurred while executing this line:
/Users/srividhyanarayanan/NetBeansProjects/StockQuoteClient2/StockQuoteClient2/nbproject/build-impl.xml:163: Compile
failed; see the compiler error output for details.
BUILD FAILED (total time: 2 seconds)
Comment 1 Srividhya Narayanan 2007-11-01 22:21:21 UTC
Created attachment 52318 [details]
stock quote client logical view
Comment 2 Peter Liu 2007-11-01 23:54:13 UTC
Looking at the exceptions, it appears that you have an older version of the client sample. For example,

location: package com.samples
    private com.samples.StockService service;
/Users/srividhyanarayanan/NetBeansProjects/StockQuoteClient2/StockQuoteClient2/src/java/com/samples/GetQuote.java:66:

In the latest version of the client sample, the package name has been changed to org.netbeans.identity.samples instead
of com.samples.

Please check to make sure the your build doesn't have some old jar file lying around. Make sure when you update, do a
cvs update -d -P to prune empty directories.


Comment 3 Srividhya Narayanan 2007-11-01 23:58:42 UTC
this is a brand new sample i created. I did the cvs up -dP and built the whole IDE just few hrs back. I created a new
userdir and created brand new samples.
Comment 4 Srividhya Narayanan 2007-11-02 00:00:21 UTC
also.. look at my screenshot.. I said it creates both the com.samples and org.netbeans.identity.samples. How can I have
had a old sample with two pkg names in it?
Comment 5 Peter Liu 2007-11-02 00:20:29 UTC
Please check to make sure that identity/samples directory only has StockQuoteClient and StockQuoteService. Everything
else has already been deleted.  Also, try manually deleting the zip files in
identity/samples/src/org/netbeans/modules/identity/samples/resources to make sure new ones get created.

It looks like you might have an older version of the zip file and new things got added to it.

Comment 6 Srividhya Narayanan 2007-11-02 01:16:37 UTC
I have double checked on my side. This is indeed an issue. I was able to reproduce the same behavior on Rico's sytem as
well. Have you tried it on your end and are you able to get the client project working? Pls try the latest build before
you discount this issue.
Comment 7 Srividhya Narayanan 2007-11-02 01:34:03 UTC
wrong zip file as u pointed out.