Andrew Borley wrote:
Also, I get a NPE when running SCAGEN on the BigBank sample - everything
seems to get happily generated though. The output is below - anyone else see
this?

Pete - are you still using VC++6 for windows development? I have a VC++7 SCA
build working happily here if you want the patch.

Andy


$ java -jar $TUSCANY_SCACPP/bin/scagen.jar -dir . -output . -verbose
Scagen processing SCA composite file
d:\tuscany\cpp\sca\samples\BigBank\Accounts\.\Accounts.composite
Scagen processing C++ implementation header
d:\tuscany\cpp\sca\samples\BigBank\Accounts\.\AccountServiceImpl.h
Scagen processing SCA componentType file
d:\tuscany\cpp\sca\samples\BigBank\Accounts\.\AccountServiceImpl.componentType
Scagen processing C++ interface header
d:\tuscany\cpp\sca\samples\BigBank\Accounts\.\AccountService.h
Scagen creating SCA for C++ proxy implementation
d:\tuscany\cpp\sca\samples\BigBank\Accounts\.\AccountServiceImpl_AccountService_Proxy.cpp
Scagen creating SCA for C++ proxy header
d:\tuscany\cpp\sca\samples\BigBank\Accounts\.\AccountServiceImpl_AccountService_Proxy.h
Scagen creating SCA for C++ wrapper implementation
d:\tuscany\cpp\sca\samples\BigBank\Accounts\.\AccountServiceImpl_AccountService_Wrapper.cpp
Scagen creating SCA for C++ wrapper header
d:\tuscany\cpp\sca\samples\BigBank\Accounts\.\AccountServiceImpl_AccountService_Wrapper.h
Scagen processing C++ interface header
d:\tuscany\cpp\sca\samples\BigBank\Accounts\.\AccountDataService.h
Scagen creating SCA for C++ proxy implementation
d:\tuscany\cpp\sca\samples\BigBank\Accounts\.\AccountServiceImpl_accountData_Proxy.cpp
Scagen creating SCA for C++ proxy header
d:\tuscany\cpp\sca\samples\BigBank\Accounts\.\AccountServiceImpl_accountData_Proxy.h
Scagen processing C++ interface header
d:\tuscany\cpp\sca\samples\BigBank\Accounts\.\StockQuoteService.h
Scagen creating SCA for C++ proxy implementation
d:\tuscany\cpp\sca\samples\BigBank\Accounts\.\AccountServiceImpl_stockQuote_Proxy.cpp
Scagen creating SCA for C++ proxy header
d:\tuscany\cpp\sca\samples\BigBank\Accounts\.\AccountServiceImpl_stockQuote_Proxy.h
Scagen processing C++ implementation header
d:\tuscany\cpp\sca\samples\BigBank\Accounts\.\AccountDataServiceImpl.h
Scagen processing SCA componentType file
d:\tuscany\cpp\sca\samples\BigBank\Accounts\.\AccountDataServiceImpl.componentType
Scagen processing C++ interface header
d:\tuscany\cpp\sca\samples\BigBank\Accounts\.\AccountDataService.h
Scagen creating SCA for C++ proxy implementation
d:\tuscany\cpp\sca\samples\BigBank\Accounts\.\AccountDataServiceImpl_AccountDataService_Proxy.cpp
Scagen creating SCA for C++ proxy header
d:\tuscany\cpp\sca\samples\BigBank\Accounts\.\AccountDataServiceImpl_AccountDataService_Proxy.h
Scagen creating SCA for C++ wrapper implementation
d:\tuscany\cpp\sca\samples\BigBank\Accounts\.\AccountDataServiceImpl_AccountDataService_Wrapper.cpp

Scagen creating SCA for C++ wrapper header
d:\tuscany\cpp\sca\samples\BigBank\Accounts\.\AccountDataServiceImpl_AccountDataService_Wrapper.h
java.lang.NullPointerException
       at org.apache.tuscany.sca.cpp.tools.common.Options.set(Unknown
Source)
at org.apache.tuscany.sca.cpp.tools.common.CParsingTool.<init>(Unknown
Source)
at org.apache.tuscany.sca.cpp.tools.services.ServicesGenerator.<init>(Unknown
Source)
       at
org.apache.tuscany.sca.cpp.tools.services.ServicesGenerator.handleInterfaceHeader(Unknown
Source)
       at
org.apache.tuscany.sca.cpp.tools.services.ReferenceDomNodeHandler.createProxyForReference(Unknown
Source)
       at
org.apache.tuscany.sca.cpp.tools.services.ReferenceDomNodeHandler.handleNode(Unknown
Source)
       at
org.apache.tuscany.sca.cpp.tools.services.GenericDomNodeHandler.mapNodeToHandlerAndHandle(Unknown
Source)
       at
org.apache.tuscany.sca.cpp.tools.services.GenericDomNodeHandler.handleChildElements(Unknown
Source)
       at
org.apache.tuscany.sca.cpp.tools.services.GenericDomNodeHandler.handleNode(Unknown
Source)
       at
org.apache.tuscany.sca.cpp.tools.services.ComponentDomNodeHandler.handleNode(Unknown
Source)
       at
org.apache.tuscany.sca.cpp.tools.services.GenericDomNodeHandler.mapNodeToHandlerAndHandle(Unknown
Source)
       at
org.apache.tuscany.sca.cpp.tools.services.GenericDomNodeHandler.handleChildElements(Unknown
Source)
       at
org.apache.tuscany.sca.cpp.tools.services.GenericDomNodeHandler.handleNode(Unknown
Source)
       at
org.apache.tuscany.sca.cpp.tools.services.GenericDomNodeHandler.mapNodeToHandlerAndHandle(Unknown
Source)
at org.apache.tuscany.sca.cpp.tools.services.DomHandler.handleDom(Unknown
Source)
at org.apache.tuscany.sca.cpp.tools.services.XMLFileActor.actOnFile(Unknown
Source)
       at
org.apache.tuscany.sca.cpp.tools.services.CompositeOrFragmentFileHandler.actOnFile(Unknown
Source)
       at
org.apache.tuscany.sca.cpp.tools.services.DirectoryScanner.walkTree(Unknown
Source)
       at org.apache.tuscany.sca.cpp.tools.services.Scagen.main(Unknown
Source)
Scagen processing C++ implementation header
d:\tuscany\cpp\sca\samples\BigBank\Accounts\.\StockQuoteServiceImpl.h
Scagen processing SCA componentType file
d:\tuscany\cpp\sca\samples\BigBank\Accounts\.\StockQuoteServiceImpl.componentType
Scagen processing C++ interface header
d:\tuscany\cpp\sca\samples\BigBank\Accounts\.\StockQuoteService.h
Scagen creating SCA for C++ proxy implementation
d:\tuscany\cpp\sca\samples\BigBank\Accounts\.\StockQuoteServiceImpl_StockQuoteService_Proxy.cpp
Scagen creating SCA for C++ proxy header
d:\tuscany\cpp\sca\samples\BigBank\Accounts\.\StockQuoteServiceImpl_StockQuoteService_Proxy.h
Scagen creating SCA for C++ wrapper implementation
d:\tuscany\cpp\sca\samples\BigBank\Accounts\.\StockQuoteServiceImpl_StockQuoteService_Wrapper.cpp
Scagen creating SCA for C++ wrapper header
d:\tuscany\cpp\sca\samples\BigBank\Accounts\.\StockQuoteServiceImpl_StockQuoteService_Wrapper.h
Scagen processing C++ interface header
d:\tuscany\cpp\sca\samples\BigBank\Accounts\.\StockQuoteWebService.h
Scagen creating SCA for C++ proxy implementation
d:\tuscany\cpp\sca\samples\BigBank\Accounts\.\StockQuoteServiceImpl_webService_Proxy.cpp
Scagen creating SCA for C++ proxy header
d:\tuscany\cpp\sca\samples\BigBank\Accounts\.\StockQuoteServiceImpl_webService_Proxy.h
Scagen processing C++ interface header
d:\tuscany\cpp\sca\samples\BigBank\Accounts\.\StockQuoteWebService.h
Scagen creating SCA for C++ proxy implementation
d:\tuscany\cpp\sca\samples\BigBank\Accounts\.\StockQuoteServiceImpl_webService_Proxy.cpp
Scagen creating SCA for C++ proxy header
d:\tuscany\cpp\sca\samples\BigBank\Accounts\.\StockQuoteServiceImpl_webService_Proxy.h
Scagen processing C++ interface header
d:\tuscany\cpp\sca\samples\BigBank\Accounts\.\StockQuoteService.h
Scagen creating SCA for C++ proxy implementation
d:\tuscany\cpp\sca\samples\BigBank\Accounts\.\StockQuoteServiceImpl_StockQuoteService_Proxy.cpp
Scagen creating SCA for C++ proxy header
d:\tuscany\cpp\sca\samples\BigBank\Accounts\.\StockQuoteServiceImpl_StockQuoteService_Proxy.h
Scagen creating SCA for C++ wrapper implementation
d:\tuscany\cpp\sca\samples\BigBank\Accounts\.\StockQuoteServiceImpl_StockQuoteService_Wrapper.cpp
Scagen creating SCA for C++ wrapper header
d:\tuscany\cpp\sca\samples\BigBank\Accounts\.\StockQuoteServiceImpl_StockQuoteService_Wrapper.h
Scagen processing C++ interface header
d:\tuscany\cpp\sca\samples\BigBank\Accounts\.\StockQuoteWebService.h
Scagen creating SCA for C++ proxy implementation
d:\tuscany\cpp\sca\samples\BigBank\Accounts\.\StockQuoteServiceImpl_webService_Proxy.cpp
Scagen creating SCA for C++ proxy header
d:\tuscany\cpp\sca\samples\BigBank\Accounts\.\StockQuoteServiceImpl_webService_Proxy.h


I'm getting the same NPE, didn't notice it before. If I comment out AccountDataService in the .composite file I'm not getting the NPE so it must be specific to this particular service or AccountDataService.h maybe? I have no idea why Options.set(...) would throw an NPE on ly with AccountDataService... I started to look at the scagen but having trouble understanding what it does. Could one of you post to the dev list a brief description of how scagen works? Thanks.

--
Jean-Sebastien


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to