Diadem 3D Model Annotation

HI, I am using Labview and DIadem to test and grind out fault isolation of a complex engine system where I want to put the engine 3D Model into a display and highlight or annotate it for instruction to the operator for mainteneance and repair.  How should I do this for optimal design in these 2 products? 
Solved!
Go to Solution.

Hello Brad/Walter,
We are currently trying to visualize the emission distribution output of a catalyst. We are looking for a way to color the housing of the catalyst (the steel parts) in 1 color (f.e. Gray) and the catalyst (brick/substrate) should color depending on the outputs.
When I import the model in diadem it has all different colors (Even without any sensors assigned). (See picture 1).
I know that it is possible to assign high values to color the part in 1 color, since the complexity of the part I need about 1000 sensors to get it in one color.
In the Diadem example (the 3D-model of the foot and pressure) the foot is totally blue and the nails are white. At the nails no sensors are assigned but still they keep the white color.
I would like to know how this example is made and if I can use the same technique for my parts?
Walter Rick and Peter Schutte visitted DAF a few weeks ago, their tip to create a ring around the parts and assign the high values around this ring did't work since diadem interpolated the values. 
Hope to hear from you soon,
Thanks in Advance!
Regards,
Dennis
Attachments:
Picture 1.png ‏207 KB
Diadem 3D-model example.png ‏138 KB

Similar Messages

  • Error while Generating wsdl from wsgen tool

    Hi All,
    I am trying out wsdl generation with the help of the wsgen tool. I have endorsed jaxb-api.jar and jaxws-api.jar files.
    I have a library TestTo which has TestingTo class AS
    public class TestingTo implements Serializable{
    public String name;
    This TestTO library is included in webservice project.
    My WebService is as below-
    @WebService()
    public class IcfInfra {
    @WebMethod(operationName = "printTest")
    public TestingTo printTest(@WebParam(name = "string") String string)
    TestingTo to = new TestingTo();
    to.name = string;
    System.out.println(string);
    return to;
    When I run Ant script for Wsgen I get following error -
    main: [exec] Note: ap round: 1 [exec] Problem encountered during annotation processing; [exec] see stacktrace below for more information. [exec] java.lang.NullPointerException [exec] at com.sun.tools.ws.processor.modeler.annotation.WebServiceVisit or.isLegalType(WebServiceVisitor.java:794) [exec] at com.sun.tools.ws.processor.modeler.annotation.WebServiceVisit or.isLegalMethod(WebServiceVisitor.java:642) [exec] at com.sun.tools.ws.processor.modeler.annotation.WebServiceVisit or.methodsAreLegal(WebServiceVisitor.java:611) [exec] at com.sun.tools.ws.processor.modeler.annotation.WebServiceVisit or.isLegalImplementation(WebServiceVisitor.java:529) [exec] at com.sun.tools.ws.processor.modeler.annotation.WebServiceVisit or.shouldProcessWebService(WebServiceVisitor.java:332) [exec] at com.sun.tools.ws.processor.modeler.annotation.WebServiceVisit or.visitClassDeclaration(WebServiceVisitor.java:123) [exec] at com.sun.tools.apt.mirror.declaration.ClassDeclarationImpl.acc ept(ClassDeclarationImpl.java:95) [exec] at com.sun.tools.ws.processor.modeler.annotation.WebServiceAP.bu ildModel(WebServiceAP.java:329) [exec] at com.sun.tools.ws.processor.modeler.annotation.WebServiceAP.pr ocess(WebServiceAP.java:270) [exec] at com.sun.mirror.apt.AnnotationProcessors$CompositeAnnotationPr ocessor.process(AnnotationProcessors.java:60) [exec] at com.sun.tools.apt.comp.Apt.main(Apt.java:454) [exec] at com.sun.tools.apt.main.JavaCompiler.compile(JavaCompiler.java :258) [exec] at com.sun.tools.apt.main.Main.compile(Main.java:1102) [exec] at com.sun.tools.apt.main.Main.compile(Main.java:964) [exec] at com.sun.tools.apt.Main.processing(Main.java:95) [exec] at com.sun.tools.apt.Main.process(Main.java:85) [exec] at com.sun.tools.apt.Main.process(Main.java:67) [exec] at com.sun.tools.ws.wscompile.WsgenTool.buildModel(WsgenTool.jav a:219) [exec] at com.sun.tools.ws.wscompile.WsgenTool.run(WsgenTool.java:123) [exec] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [exec] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcces sorImpl.java:39) [exec] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMet hodAccessorImpl.java:25) [exec] at java.lang.reflect.Method.invoke(Method.java:597) [exec] at com.sun.tools.ws.Invoker.invoke(Invoker.java:131) [exec] at com.sun.tools.ws.WsGen.main(WsGen.java:52) [exec] error: compilation failed, errors should have been reported [exec] Result: 1
    Now I modified my webservice as
    @WebService()
    @XmlSeeAlso({
    TestingTo.class
    public class IcfInfra {
    @WebMethod(operationName = "printTest")
    public TestingTo printTest(@WebParam(name = "string") String string){
    TestingTo to = new TestingTo();
    to.name = string;
    System.out.println(string);
    return to;
    When I execute ant script i get error as -
    main: [exec] Exception in thread "main" java.lang.ArrayStoreException: sun.reflec t.annotation.TypeNotPresentExceptionProxy [exec] at sun.reflect.annotation.AnnotationParser.parseClassArray(Annot ationParser.java:653) [exec] at sun.reflect.annotation.AnnotationParser.parseArray(Annotation Parser.java:460) [exec] at sun.reflect.annotation.AnnotationParser.parseMemberValue(Anno tationParser.java:286) [exec] at sun.reflect.annotation.AnnotationParser.parseAnnotation(Annot ationParser.java:222) [exec] at sun.reflect.annotation.AnnotationParser.parseAnnotations2(Ann otationParser.java:69) [exec] at sun.reflect.annotation.AnnotationParser.parseAnnotations(Anno tationParser.java:52) [exec] at java.lang.Class.initAnnotationsIfNecessary(Class.java:3070) [exec] at java.lang.Class.getAnnotation(Class.java:3029) [exec] at com.sun.tools.ws.wscompile.WsgenOptions.validateEndpointClass (WsgenOptions.java:244) [exec] at com.sun.tools.ws.wscompile.WsgenOptions.validate(WsgenOptions .java:226) [exec] at com.sun.tools.ws.wscompile.WsgenTool.run(WsgenTool.java:122) [exec] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [exec] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcces sorImpl.java:39) [exec] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMet hodAccessorImpl.java:25) [exec] at java.lang.reflect.Method.invoke(Method.java:597) [exec] at com.sun.tools.ws.Invoker.invoke(Invoker.java:131) [exec] at com.sun.tools.ws.WsGen.main(WsGen.java:52)
    Appreciate If someone can let me know what needs to be done in order to sucessfully generate the wsdl.
    Thanks, Adish
    Edited by: user7738545 on 29-Apr-2011 23:47

    You are trying to use a custom class as a return type?
    The return type needs to be JAX-B compatible
    see: http://download.oracle.com/docs/cd/E17802_01/webservices/webservices/docs/2.0/tutorial/doc/JAXWS3.html
    You should avoid using user defined complex types as much as possible because they require the clients to be able to process them as well making your webservice less portable and thus defeating the main advantages of webservices.

  • Web Service tutorial using NetBeans 5.5 fails on OS X Tiger

    I have tried doing this tutorial using NetBeans 5.5 with the Enterprise Pack and Visual Web extensions installed. I am able to get it to run fine on my WinXP machine configured with the same NetBeans 5.5 stuff as the Mac. I have tried it several times always with the same result. Any insight that you can provide will be greatly appreciated.
    The tutorial is located: http://www.netbeans.org/kb/55/websvc-jax-ws.html
    Below is what is being returned in the Output window upon Run:
    init:
    deps-module-jar:
    deps-ear-jar:
    deps-jar:
    Created dir: /Users/bob/Programming/CalculatorWSApplication/build/web/WEB-INF/classes
    Created dir: /Users/bob/Programming/CalculatorWSApplication/build/web/META-INF
    Copying 1 file to /Users/bob/Programming/CalculatorWSApplication/build/web/META-INF
    Copying 4 files to /Users/bob/Programming/CalculatorWSApplication/build/web
    library-inclusion-in-archive:
    Copying 1 file to /Users/bob/Programming/CalculatorWSApplication/build/web/WEB-INF/lib
    Copying 1 file to /Users/bob/Programming/CalculatorWSApplication/build/web/WEB-INF/lib
    Copying 1 file to /Users/bob/Programming/CalculatorWSApplication/build/web/WEB-INF/lib
    Copying 1 file to /Users/bob/Programming/CalculatorWSApplication/build/web/WEB-INF/lib
    Copying 1 file to /Users/bob/Programming/CalculatorWSApplication/build/web/WEB-INF/lib
    Copying 1 file to /Users/bob/Programming/CalculatorWSApplication/build/web/WEB-INF/lib
    Copying 1 file to /Users/bob/Programming/CalculatorWSApplication/build/web/WEB-INF/lib
    Copying 1 file to /Users/bob/Programming/CalculatorWSApplication/build/web/WEB-INF/lib
    Copying 1 file to /Users/bob/Programming/CalculatorWSApplication/build/web/WEB-INF/lib
    Copying 1 file to /Users/bob/Programming/CalculatorWSApplication/build/web/WEB-INF/lib
    Copying 1 file to /Users/bob/Programming/CalculatorWSApplication/build/web/WEB-INF/lib
    Copying 1 file to /Users/bob/Programming/CalculatorWSApplication/build/web/WEB-INF/lib
    Copying 1 file to /Users/bob/Programming/CalculatorWSApplication/build/web/WEB-INF/lib
    Copying 1 file to /Users/bob/Programming/CalculatorWSApplication/build/web/WEB-INF/lib
    Copying 1 file to /Users/bob/Programming/CalculatorWSApplication/build/web/WEB-INF/lib
    library-inclusion-in-manifest:
    Compiling 1 source file to /Users/bob/Programming/CalculatorWSApplication/build/web/WEB-INF/classes
    wsgen-init-nonJSR109:
    Created dir: /Users/bob/Programming/CalculatorWSApplication/build/generated/wsgen/service
    wsgen-CalculatorWS-nonJSR109:
    Problem encountered during annotation processing;
    see stacktrace below for more information.
    java.lang.NoSuchMethodError: com.sun.codemodel.JCodeModel._class(Ljava/lang/String;Lcom/sun/codemodel/ClassType;)Lcom/sun/codemodel/JDefinedClass;
    at com.sun.tools.ws.processor.modeler.annotation.WebServiceWrapperGenerator.getCMClass(WebServiceWrapperGenerator.java:446)
    at com.sun.tools.ws.processor.modeler.annotation.WebServiceWrapperGenerator.generateWrappers(WebServiceWrapperGenerator.java:256)
    at com.sun.tools.ws.processor.modeler.annotation.WebServiceWrapperGenerator.processMethod(WebServiceWrapperGenerator.java:141)
    at com.sun.tools.ws.processor.modeler.annotation.WebServiceVisitor.visitMethodDeclaration(WebServiceVisitor.java:468)
    at com.sun.tools.apt.mirror.declaration.MethodDeclarationImpl.accept(MethodDeclarationImpl.java:41)
    at com.sun.tools.ws.processor.modeler.annotation.WebServiceVisitor.processMethods(WebServiceVisitor.java:406)
    at com.sun.tools.ws.processor.modeler.annotation.WebServiceVisitor.postProcessWebService(WebServiceVisitor.java:361)
    at com.sun.tools.ws.processor.modeler.annotation.WebServiceWrapperGenerator.postProcessWebService(WebServiceWrapperGenerator.java:115)
    at com.sun.tools.ws.processor.modeler.annotation.WebServiceVisitor.visitClassDeclaration(WebServiceVisitor.java:167)
    at com.sun.tools.apt.mirror.declaration.ClassDeclarationImpl.accept(ClassDeclarationImpl.java:95)
    at com.sun.tools.ws.processor.modeler.annotation.WebServiceAP.buildModel(WebServiceAP.java:345)
    at com.sun.tools.ws.processor.modeler.annotation.WebServiceAP.process(WebServiceAP.java:230)
    at com.sun.mirror.apt.AnnotationProcessors$CompositeAnnotationProcessor.process(AnnotationProcessors.java:60)
    at com.sun.tools.apt.comp.Apt.main(Apt.java:454)
    at com.sun.tools.apt.main.JavaCompiler.compile(JavaCompiler.java:448)
    at com.sun.tools.apt.main.Main.compile(Main.java:1075)
    at com.sun.tools.apt.main.Main.compile(Main.java:938)
    at com.sun.tools.apt.Main.processing(Main.java:95)
    at com.sun.tools.apt.Main.process(Main.java:85)
    at com.sun.tools.apt.Main.process(Main.java:67)
    at com.sun.tools.ws.wscompile.CompileTool.buildModel(CompileTool.java:603)
    at com.sun.tools.ws.wscompile.CompileTool.run(CompileTool.java:536)
    at com.sun.tools.ws.util.ToolBase.run(ToolBase.java:54)
    at com.sun.tools.ws.ant.WsGen.execute(WsGen.java:457)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
    at org.apache.tools.ant.Task.perform(Task.java:364)
    at org.apache.tools.ant.Target.execute(Target.java:341)
    at org.apache.tools.ant.Target.performTasks(Target.java:369)
    at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
    at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
    at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
    at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
    at org.apache.tools.ant.module.bridge.impl.BridgeImpl.run(BridgeImpl.java:240)
    at org.apache.tools.ant.module.run.TargetExecutor.run(TargetExecutor.java:293)
    at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:131)
    error: compilation failed, errors should have been reported
    wsgen-generate-nonJSR109:
    compile:
    compile-jsps:
    Created dir: /Users/bob/Programming/CalculatorWSApplication/dist
    Building jar: /Users/bob/Programming/CalculatorWSApplication/dist/CalculatorWSApplication.war
    do-dist:
    dist:
    Incrementally deploying http://localhost:8084/CalculatorWSApplication
    Completed incremental distribution of http://localhost:8084/CalculatorWSApplication
    Incrementally redeploying http://localhost:8084/CalculatorWSApplication
    deploy?config=file:/tmp/context18085.xml&path=/CalculatorWSApplication
    OK - Deployed application at context path /CalculatorWSApplication
    run-deploy:
    Browsing: http://localhost:8084/CalculatorWSApplication/CalculatorWS?Tester
    run-display-browser:
    run:
    BUILD SUCCESSFUL (total time: 1 second)

    This problem gets solved if you do NOT provide the Java path to the installer.
    e.g.
    if you have Java in /usr//bin/java
    make sure your PATH does not have /usr/bin....
    so basically which java throw error....Then provide the JRE PATH in oraparam.ini for the installer to start ...
    Give it a try...
    Karurkar

  • Error while using wsgen

    Hi Guys,
    I am trying to build my first Web Service using Java 1.5.
    The interface is as follows:
    package com.webapp.test.ws;
    import java.rmi.Remote;
    import java.rmi.RemoteException;
    public interface TestWSIF extends Remote
         public String sayHello(String strName) throws RemoteException;
    The implementation class is as follows:
    package com.webapp.test.ws;
    import java.rmi.RemoteException;
    public class TestWSImpl implements TestWSIF
         public String sayHello(String strName) throws RemoteException
              return "Hello " + strName;
    Now when I try to generated WSDL and other stuff using wsgen with the following command:
    wsgen -cp ./bin com.webapp.test.ws.TestWSImpl -d generated -wsdl:soap1.1 -servicename {http://testspace}/SayHello
    it gives me following error:
    Problem encountered during annotation processing;
    see stacktrace below for more information.
    modeler error: A web service endpoint could not be found
    at com.sun.tools.ws.processor.modeler.annotation.WebServiceAP.onError(WebServiceAP.java:204)
    at com.sun.tools.ws.processor.modeler.annotation.WebServiceAP.onError(WebServiceAP.java:197)
    at com.sun.tools.ws.processor.modeler.annotation.WebServiceAP.onError(WebServiceAP.java:185)
    at com.sun.tools.ws.processor.modeler.annotation.WebServiceAP.buildModel(WebServiceAP.java:3
    54)
    at com.sun.tools.ws.processor.modeler.annotation.WebServiceAP.process(WebServiceAP.java:232)
    at com.sun.mirror.apt.AnnotationProcessors$CompositeAnnotationProcessor.process(AnnotationPr
    ocessors.java:60)
    at com.sun.tools.apt.comp.Apt.main(Apt.java:454)
    at com.sun.tools.apt.main.JavaCompiler.compile(JavaCompiler.java:448)
    at com.sun.tools.apt.main.Main.compile(Main.java:1075)
    at com.sun.tools.apt.main.Main.compile(Main.java:938)
    at com.sun.tools.apt.Main.processing(Main.java:95)
    at com.sun.tools.apt.Main.process(Main.java:85)
    at com.sun.tools.apt.Main.process(Main.java:67)
    at com.sun.tools.ws.wscompile.CompileTool.buildModel(CompileTool.java:605)
    at com.sun.tools.ws.wscompile.CompileTool.run(CompileTool.java:538)
    at com.sun.tools.ws.util.ToolBase.run(ToolBase.java:56)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at com.sun.tools.ws.Invoker.main(Invoker.java:63)
    at com.sun.tools.ws.WsGen.main(WsGen.java:30)
    error: compilation failed, errors should have been reported
    Any help is this error will be very much helpful to me in developing my first web service.
    Thanks in advance.

    Use @WebService annotation. Look at The Java Web Service Tutorial (JAX-WS 2.1)

  • JAXB and JDK 6

    Hi,
    I am using the JAXB2 version that is delivered with Java 1.6.0-beta2-b82. I have written an EJB3 entity bean and would like to serialize it as XML. But JAXB2 has trouble with annotations of the Java Persistence API like 'javax.persistence.Column' or 'javax.persistence.Id'.
    The stack trace looks usually like this:
    java.lang.IllegalArgumentException: interface javax.persistence.Column is not visible from class loader
    at java.lang.reflect.Proxy.getProxyClass(Proxy.java:353)
    at java.lang.reflect.Proxy.newProxyInstance(Proxy.java:581)
    at com.sun.xml.bind.v2.model.annotation.LocatableAnnotation.create(LocatableAnnotation.java:37)
    at com.sun.xml.bind.v2.model.annotation.RuntimeInlineAnnotationReader.getAllMethodAnnotations(RuntimeInlineAnnotationReader.java:47)
    at com.sun.xml.bind.v2.model.annotation.RuntimeInlineAnnotationReader.getAllMethodAnnotations(RuntimeInlineAnnotationReader.java:17)
    at com.sun.xml.bind.v2.model.impl.ClassInfoImpl.findGetterSetterProperties(ClassInfoImpl.java:869)
    at com.sun.xml.bind.v2.model.impl.ClassInfoImpl.getProperties(ClassInfoImpl.java:257)
    at com.sun.xml.bind.v2.model.impl.RuntimeClassInfoImpl.getProperties(RuntimeClassInfoImpl.java:91)
    at com.sun.xml.bind.v2.model.impl.ModelBuilder.getClassInfo(ModelBuilder.java:127)
    at com.sun.xml.bind.v2.model.impl.RuntimeModelBuilder.getClassInfo(RuntimeModelBuilder.java:49)
    at com.sun.xml.bind.v2.model.impl.RuntimeModelBuilder.getClassInfo(RuntimeModelBuilder.java:41)
    at com.sun.xml.bind.v2.model.impl.ModelBuilder.getTypeInfo(ModelBuilder.java:189)
    at com.sun.xml.bind.v2.model.impl.ModelBuilder.getTypeInfo(ModelBuilder.java:204)
    at com.sun.xml.bind.v2.runtime.JAXBContextImpl.getTypeInfoSet(JAXBContextImpl.java:330)
    at com.sun.xml.bind.v2.runtime.JAXBContextImpl.<init>(JAXBContextImpl.java:199)
    at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:76)
    at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:55)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:589)
    at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:210)
    at javax.xml.bind.ContextFinder.find(ContextFinder.java:381)
    at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:561)
    at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:508)
    at test.JAXBClient.marshal(JAXBClient.java:59)
    at test.JAXBClient.main(JAXBClient.java:26)
    You can also take a look at the following topic (the last comment):
    http://forums.java.net/jive/thread.jspa?messageID=151165&tstart=0
    Thanks a lot!
    Michael

    Yeah, it's my post ... I need it to work with JDK 6
    Sun fellows? What is happening with it?

  • [jwsc] error: Response wrapper bean names must be unique ?

    I am trying to use wsdlc and jwsc on my existing WSDL file, with "type=JAXWS", I am getting this error
    "[jwsc] error: Response wrapper bean names must be unique and must not clash with other generated classes"
    What does it mean? And how can I resolve this?
    Here is the full stack trace:
    build-service:
    [jwsc] JWS: processing module /com/covergence/ws/callouts/CallOutsServiceImpl
    [jwsc] Parsing source files
    [jwsc] Parsing source files
    [jwsc] 1 JWS files being processed for module /com/covergence/ws/callouts/CallOutsServiceImpl
    [jwsc] JWS: C:\source_tree\b3.3\ss\java\ws\sdk\build\weblogic\src\com\covergence\ws\callouts\CallOutsServiceImpl.java Validated.
    [jwsc] Processing 1 JAX-WS web services...
    [jwsc] error: Response wrapper bean names must be unique and must not clash with other generated classes. Class: com.covergence.ws.callouts.CallOutsPortType method getConfig(javax.xml.ws.Holder<java.util.List<com.covergence.ws.callouts.ConfigClassesType>>)
    [jwsc] Problem encountered during annotation processing;
    [jwsc] see stacktrace below for more information.
    [jwsc] [failed to localize] modeler.nestedGeneratorError(java.lang.IllegalArgumentException: trying to create the same field twice: config)
    [jwsc] at com.sun.tools.ws.processor.modeler.annotation.WebServiceWrapperGenerator.generateWrappers(WebServiceWrapperGenerator.java:302)
    [jwsc] at com.sun.tools.ws.processor.modeler.annotation.WebServiceWrapperGenerator.processMethod(WebServiceWrapperGenerator.java:154)
    [jwsc] at com.sun.tools.ws.processor.modeler.annotation.WebServiceVisitor.visitMethodDeclaration(WebServiceVisitor.java:449)
    [jwsc] at com.sun.tools.apt.mirror.declaration.MethodDeclarationImpl.accept(MethodDeclarationImpl.java:41)
    [jwsc] at com.sun.tools.ws.processor.modeler.annotation.WebServiceVisitor.processMethods(WebServiceVisitor.java:374)
    [jwsc] at com.sun.tools.ws.processor.modeler.annotation.WebServiceVisitor.postProcessWebService(WebServiceVisitor.java:338)
    [jwsc] at com.sun.tools.ws.processor.modeler.annotation.WebServiceWrapperGenerator.postProcessWebService(WebServiceWrapperGenerator.java:125)
    [jwsc] at com.sun.tools.ws.processor.modeler.annotation.WebServiceVisitor.visitInterfaceDeclaration(WebServiceVisitor.java:120)
    [jwsc] at com.sun.tools.apt.mirror.declaration.InterfaceDeclarationImpl.accept(InterfaceDeclarationImpl.java:32)
    [jwsc] at com.sun.tools.ws.processor.modeler.annotation.WebServiceVisitor.inspectEndpointInterface(WebServiceVisitor.java:420)
    [jwsc] at com.sun.tools.ws.processor.modeler.annotation.WebServiceVisitor.visitClassDeclaration(WebServiceVisitor.java:141)
    [jwsc] at com.sun.tools.apt.mirror.declaration.ClassDeclarationImpl.accept(ClassDeclarationImpl.java:95)
    [jwsc] at com.sun.tools.ws.processor.modeler.annotation.WebServiceAP.buildModel(WebServiceAP.java:300)
    [jwsc] at com.sun.tools.ws.processor.modeler.annotation.WebServiceAP.process(WebServiceAP.java:224)
    [jwsc] at com.sun.mirror.apt.AnnotationProcessors$CompositeAnnotationProcessor.process(AnnotationProcessors.java:60)
    [jwsc] at com.sun.tools.apt.comp.Apt.main(Apt.java:454)
    [jwsc] at com.sun.tools.apt.main.JavaCompiler.compile(JavaCompiler.java:448)
    [jwsc] at com.sun.tools.apt.main.Main.compile(Main.java:1075)
    [jwsc] at com.sun.tools.apt.main.Main.compile(Main.java:938)
    [jwsc] at com.sun.tools.apt.Main.processing(Main.java:95)
    [jwsc] at com.sun.tools.apt.Main.process(Main.java:43)
    [jwsc] at com.sun.tools.apt.Main.main(Main.java:34)
    [jwsc] Caused by: java.lang.IllegalArgumentException: trying to create thesame field twice: config
    [jwsc] at com.sun.codemodel.JDefinedClass.field(JDefinedClass.java:392)
    [jwsc] at com.sun.codemodel.JDefinedClass.field(JDefinedClass.java:363)
    [jwsc] at com.sun.tools.ws.processor.modeler.annotation.WebServiceWrapperGenerator.writeMembers(WebServiceWrapperGenerator.java:419)
    [jwsc] at com.sun.tools.ws.processor.modeler.annotation.WebServiceWrapperGenerator.generateWrappers(WebServiceWrapperGenerator.java:299)

    I am starting from WSDL and below are the corresponding elements from WSDL
        <message name="getConfig">
            <part name="parameters" element="tns:getConfig"/>
        </message>
        <message name="getConfigResponse">
            <part name="result" element="tns:getConfigResponse"/>
        </message>
        <portType name="CallOutsPortType">
            <operation name="getConfig">
                <input message="tns:getConfig">
                </input>
                <output message="tns:getConfigResponse">
                </output>
                <fault name="callOutFault" message="tns:callOutFault"/>
            </operation>
        <binding name="CallOutsBinding" type="tns:CallOutsPortType">
            <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/>
            <operation name="getConfig">
                <soap:operation soapAction="getConfig"/>
                <input>
                    <soap:body use="literal"/>
                </input>
                <output>
                    <soap:body use="literal"/>
                </output>
                <fault name="callOutFault">
                    <soap:fault name="callOutFault" use="literal"/>
                </fault>
            </operation>

  • Problem with JAXBContext.newInstance  internal error

    Hey!
    I am working on an upgrade of the JAXB version in our Enterprise application. Class generation and build apparently works fine. From the class that invokes the webservice I try to create a JAXBContext using the newInstance method. Like this:
    JAXBContext.newInstance("com.myapp.myschema.packagename");This worked fine with JAXB1.0, but now I get the following stacktrace. I suspect that this error occurs due to som package problems, but I have no idea how to fix it. Can anyone help me??
    Heres the stacktrace:
    java.lang.InternalError
         at com.sun.xml.bind.v2.model.annotation.RuntimeInlineAnnotationReader.getClassValue(RuntimeInlineAnnotationReader.java:99)
         at com.sun.xml.bind.v2.model.annotation.RuntimeInlineAnnotationReader.getClassValue(RuntimeInlineAnnotationReader.java:17)
         at com.sun.xml.bind.v2.model.core.Adapter.<init>(Adapter.java:43)
         at com.sun.xml.bind.v2.model.impl.PropertyInfoImpl.<init>(PropertyInfoImpl.java:88)
         at com.sun.xml.bind.v2.model.impl.SingleTypePropertyInfoImpl.<init>(SingleTypePropertyInfoImpl.java:35)
         at com.sun.xml.bind.v2.model.impl.AttributePropertyInfoImpl.<init>(AttributePropertyInfoImpl.java:23)
         at com.sun.xml.bind.v2.model.impl.RuntimeAttributePropertyInfoImpl.<init>(RuntimeAttributePropertyInfoImpl.java:18)
         at com.sun.xml.bind.v2.model.impl.RuntimeClassInfoImpl.createAttributeProperty(RuntimeClassInfoImpl.java:68)
         at com.sun.xml.bind.v2.model.impl.ClassInfoImpl.addProperty(ClassInfoImpl.java:747)
         at com.sun.xml.bind.v2.model.impl.ClassInfoImpl.getProperties(ClassInfoImpl.java:257)
         at com.sun.xml.bind.v2.model.impl.RuntimeClassInfoImpl.getProperties(RuntimeClassInfoImpl.java:89)
         at com.sun.xml.bind.v2.model.impl.ModelBuilder.getClassInfo(ModelBuilder.java:127)
         at com.sun.xml.bind.v2.model.impl.RuntimeModelBuilder.getClassInfo(RuntimeModelBuilder.java:49)
         at com.sun.xml.bind.v2.model.impl.RuntimeModelBuilder.getClassInfo(RuntimeModelBuilder.java:41)
         at com.sun.xml.bind.v2.model.impl.ModelBuilder.getTypeInfo(ModelBuilder.java:189)
         at com.sun.xml.bind.v2.model.impl.TypeRefImpl.calcRef(TypeRefImpl.java:56)
         at com.sun.xml.bind.v2.model.impl.TypeRefImpl.getTarget(TypeRefImpl.java:33)
         at com.sun.xml.bind.v2.model.impl.RuntimeTypeRefImpl.getTarget(RuntimeTypeRefImpl.java:22)
         at com.sun.xml.bind.v2.model.impl.RuntimeTypeRefImpl.getTarget(RuntimeTypeRefImpl.java:15)
         at com.sun.xml.bind.v2.model.impl.ElementPropertyInfoImpl$1.get(ElementPropertyInfoImpl.java:38)
         at com.sun.xml.bind.v2.model.impl.ElementPropertyInfoImpl$1.get(ElementPropertyInfoImpl.java:41)
         at java.util.AbstractList$Itr.next(AbstractList.java:422)
         at com.sun.xml.bind.v2.model.impl.ModelBuilder.getClassInfo(ModelBuilder.java:139)
         at com.sun.xml.bind.v2.model.impl.RuntimeModelBuilder.getClassInfo(RuntimeModelBuilder.java:49)
         at com.sun.xml.bind.v2.model.impl.RuntimeModelBuilder.getClassInfo(RuntimeModelBuilder.java:41)
         at com.sun.xml.bind.v2.model.impl.ModelBuilder.getTypeInfo(ModelBuilder.java:189)
         at com.sun.xml.bind.v2.model.impl.TypeRefImpl.calcRef(TypeRefImpl.java:56)
         at com.sun.xml.bind.v2.model.impl.TypeRefImpl.getTarget(TypeRefImpl.java:33)
         at com.sun.xml.bind.v2.model.impl.RuntimeTypeRefImpl.getTarget(RuntimeTypeRefImpl.java:22)
         at com.sun.xml.bind.v2.model.impl.RuntimeTypeRefImpl.getTarget(RuntimeTypeRefImpl.java:15)
         at com.sun.xml.bind.v2.model.impl.ElementPropertyInfoImpl$1.get(ElementPropertyInfoImpl.java:38)
         at com.sun.xml.bind.v2.model.impl.ElementPropertyInfoImpl$1.get(ElementPropertyInfoImpl.java:41)
         at java.util.AbstractList$Itr.next(AbstractList.java:422)
         at com.sun.xml.bind.v2.model.impl.ModelBuilder.getClassInfo(ModelBuilder.java:139)
         at com.sun.xml.bind.v2.model.impl.RuntimeModelBuilder.getClassInfo(RuntimeModelBuilder.java:49)
         at com.sun.xml.bind.v2.model.impl.RuntimeModelBuilder.getClassInfo(RuntimeModelBuilder.java:41)
         at com.sun.xml.bind.v2.model.impl.ModelBuilder.getTypeInfo(ModelBuilder.java:189)
         at com.sun.xml.bind.v2.model.impl.RegistryInfoImpl.<init>(RegistryInfoImpl.java:63)
         at com.sun.xml.bind.v2.model.impl.ModelBuilder.addRegistry(ModelBuilder.java:232)
         at com.sun.xml.bind.v2.model.impl.ModelBuilder.getTypeInfo(ModelBuilder.java:201)
         at com.sun.xml.bind.v2.runtime.JAXBContextImpl$3.run(JAXBContextImpl.java:352)
         at com.sun.xml.bind.v2.runtime.JAXBContextImpl$3.run(JAXBContextImpl.java:350)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sun.xml.bind.v2.runtime.JAXBContextImpl.getTypeInfoSet(JAXBContextImpl.java:349)
         at com.sun.xml.bind.v2.runtime.JAXBContextImpl.<init>(JAXBContextImpl.java:215)
         at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:76)
         at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:55)
         at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:124)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:132)
         at javax.xml.bind.ContextFinder.find(ContextFinder.java:286)
         at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:372)
         at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:337)
         at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:244)

    I did have the same problem and it took me several hours to figure it out. Here is what I did, it might be useful for others later.
    I have a number of opened projects and needed to reference them in my ant build.xml
    The program runs fine from eclipse, but dies when I run the created jar file from command line.
    The line of code where it stopped was
    JAXBContext context = JAXBContext.newInstance(jaxbPackage);
    with the above InternalError printstack printed. Which was not really informative.
    Apparently, one of the referenced projects indirectly required other projects which I did not mention in my build.xml It was obviously the packaging problem.
    You can also check the version of you jvm in your terminal and in your eclipse; check the class path in eclipse and temporarily add all the missing lines to your CLASSPATH. If the problem goes away, you can easily figure out which class path was missing.

  • Need design hints for Managed class

    I need help understanding the underlying LCDS mechanisms when a complex object hierarchy is managed in LCDS.  I have a custom Assembler because I have specialized persistence requirements.  My object hierarchy is basically the following:
    Document
        Chapter
            Page
                Text
    Document is the [Managed] class.  When a new Document is created, it is initialized with a Chapter.  Pages and Text are created when the document is edited.  I create new instance of Document and initialize it with an instance of Chapter.  On the client, I invoke the DataService using the createItem method.  My custom Assembler is called, I do the necessary persistence operation and return.  Back on the client I receive the ItemReference containing the AS Document.  This all works ok.  I am now faced with the runtime operations when the user starts creating Chapters, Pages and entering text.
    Given that I start the editing session with a single ItemReference, I don't understand how to handle the Document sub-tree.  The LCDS documentation says the purpose of the [Managed] class tag is so the entire object tree does not need to be transmitted when a property changes on a child object.  Its the responsibility of the sub class to keep the remote object in sync.  But, I don't know the best way to go about doing this.
    The [Managed] annotation makes the properties of the managed class bindable.  I can add an event listener to the ItemReference to handle property changes on the Document, but what about the rest of the object tree?    Do I explicitly make the properties of the child objects bindable?  Do I make each parent object an event listener for its child object properties and propagate the event up the tree?
    Any suggestions or patterns to make this a little more understandable would be greatly appreciated.

    If Hibernate cannot read/write your persistence layer (i.e. its not a database) then you probably wont be able to deploy a model and have the server side 'just work'.  You can specify the assembler class in the model annotations and we will configure a destination of that type for each entity (you can specify a custom assembler for each different entity).  This may not be a road that you want to go down, as manually configuring each assembler for each association will give you more transparency and control.
    But you can still use the model in FlashBuilder to generate all of your client side value objects and you may be able to use the generated service wrappers.
    Note that for each association, you will need an assembler.  So there is the Document assembler, the Chapter assembler and the Page assembler.  Each one is responsible for managing the persistence of each item type.  You would then define the <one-to-many> relationships in the destination config, along with the destination that manages that type of item:
    <destination id="DocumentAssembler">
      <metadata>
        <identity property="id">
        <one-to-many property="chapters" destination="ChapterAssembler" lazy="true" paged="true" page-size="10" />
      </metadata>
    </destination>
    <destination id="ChapterAssembler">
      <metadata>
        <identity property="id">
        <one-to-many property="pages" destination="PageAssembler" lazy="true"  paged="true" page-size="10" />
      </metadata>
    </destination>
    And so on for PageAssembler.  This is how the system can manage each item class.  I made the associations lazy and paged, but you don't have to do this if you don't need it.
    On the client, each of the managed collections (Documents, Chapters, Pages) is monitored for changes and the appropriate create/update/delete in the assembler is performed when a commit() is called.  You perform a DataService.fill() on the "DocumentAssembler" destination to start things off, you get back a managed collection and just go to town, modifying the whole object tree as you see fit, then calling DataService.commit() on the Document, and all of the nested 'stuff' that you did will be persisted to each assembler for each type of collection (documents, chapters, pages).  It is pretty powerfull.
    To help reduce the work, you can use a model to generate code, then never generate it again.  Or just define the AS value objects manually, using the generated code as a guide.  The trick is to make sure the collection properties like "chapters" and "pages" are labeled with the [Managed] metadata.
    There are plenty of 2 level association examples on the DevCenter and out in the web (check out Tour De LiveCycle for instance).  You are just going down one more level.
    All this being said, you can skip most of this and just have a single destination that does Documents and takes a full object graph of stuff each time.  This will be pretty 'blunt force' as the whole Document will be handed to the updateItem function and you have to figure out how to persist it and all its sub-properties.  I am not familiar with Jackrabbit, so I don't know how fine grained your persistence is.
    Anyway, let us know what you come up with!

  • Error to generate webservice from java file with JAXWS

    I need to build a webservice to run on Glassfish, but I have problems, I did downloaded the latest JAX-WS recently(2 days).
    I have the follow class to generate a wsdl file:
    package com.dudhoo.farmacopedia.web;
    import com.dudhoo.farmacopedia.web.hibernate.FarmacopediaKey;
    import com.dudhoo.farmacopedia.web.key.KeyGenerator;
    import java.util.Calendar;
    import java.util.Date;
    import javax.jws.WebMethod;
    import javax.jws.WebService;
    @WebService(serviceName="FarmacoWebService", name="nomeservice")  
    public class FarmacoWebService {
        public FarmacoWebService() {
        @WebMethod()
        public Date getServerTime(){
            return Calendar.getInstance().getTime();
        public FarmacopediaKey generateSerial(Date ini, int dias){
            return new KeyGenerator().generateKey(ini, dias);
    }I have the follow ant code:
    <?xml version="1.0" encoding="windows-1252" ?>
    <!--Ant buildfile generated by Oracle JDeveloper 10g-->
    <!--Generated 01/08/2006 22:56:00-->
    <project name="FarmacoWeb" default="all" basedir=".">
      <property file="build.properties"/>
      <path id="classpath">
        <fileset dir="../libs/" includes="**/*.jar"/>   
      </path>
      <path id="jaxws.classpath">
        <fileset dir="../libs/jaxws" includes="**/*.jar"/>   
      </path>
      <target name="init">
        <tstamp/>
        <mkdir dir="${output.dir}"/>
        <mkdir dir="${output.dir}/new"/>
        <mkdir dir="${output.dir}/res"/>
      </target>
      <target name="all" description="Build the project" depends="compile,copy"/>
      <target name="clean" description="Clean the project">
        <delete includeemptydirs="true" quiet="true">
          <fileset dir="${output.dir}" includes="**/*"/>
        </delete>
      </target>
      <target name="compile" description="Compile Java source files" depends="init">
        <javac destdir="${output.dir}" classpathref="classpath"
               debug="${javac.debug}" nowarn="${javac.nowarn}"
               deprecation="${javac.deprecation}" encoding="Cp1252" source="1.5"
               target="1.5">
          <src path="src"/>
        </javac>
      </target>
      <target name="copy" description="Copy files to output directory"
              depends="init">
        <patternset id="copy.patterns">
          <include name="**/*.gif"/>
          <include name="**/*.GIF"/>
          <include name="**/*.jpg"/>
          <include name="**/*.JPG"/>
          <include name="**/*.jpeg"/>
          <include name="**/*.JPEG"/>
          <include name="**/*.png"/>
          <include name="**/*.PNG"/>
          <include name="**/*.properties"/>
          <include name="**/*.xml"/>
          <include name="**/*-apf.xml"/>
          <include name="**/*.ejx"/>
          <include name="**/*.xcfg"/>
          <include name="**/*.cpx"/>
          <include name="**/*.dcx"/>
          <include name="**/*.wsdl"/>
          <include name="**/*.ini"/>
          <include name="**/*.tld"/>
          <include name="**/*.tag"/>
        </patternset>
        <copy todir="${output.dir}">
          <fileset dir="src">
            <patternset refid="copy.patterns"/>
          </fileset>
        </copy>
      </target>
      <target name="-pre-dist" >
            <taskdef name="wsgen" classname="com.sun.tools.ws.ant.WsGen">
                <classpath refid="classpath"/>
            </taskdef>
            <wsgen
                debug="true"
                keep="true"
                destdir="${output.dir}/new"
                resourcedestdir="${output.dir}/res"
                sei="com.dudhoo.farmacopedia.web.FarmacoWebService">
                <classpath>
                    <pathelement path="${jaxws.classpath}"/>
                    <pathelement location="${output.dir}"/>               
                </classpath>
            </wsgen>
        </target>
    </project>When I run ant the the follow error is throwed:
    Buildfile: /home/duduzera/jdevhome/mywork/Farmaco/FarmacoWeb/build.xml
    -pre-dist:
        [wsgen] Problem encountered during annotation processing;
        [wsgen] see stacktrace below for more information.
        [wsgen] java.lang.NoSuchMethodError: javax.jws.WebMethod.exclude()Z
        [wsgen]      at com.sun.tools.ws.processor.modeler.annotation.WebServiceVisitor.hasWebMethods(WebServiceVisitor.java:373)
        [wsgen]      at com.sun.tools.ws.processor.modeler.annotation.WebServiceVisitor.shouldProcessWebService(WebServiceVisitor.java:349)
        [wsgen]      at com.sun.tools.ws.processor.modeler.annotation.WebServiceVisitor.visitClassDeclaration(WebServiceVisitor.java:143)
        [wsgen]      at com.sun.tools.apt.mirror.declaration.ClassDeclarationImpl.accept(ClassDeclarationImpl.java:95)
        [wsgen]      at com.sun.tools.ws.processor.modeler.annotation.WebServiceAP.buildModel(WebServiceAP.java:345)
        [wsgen]      at com.sun.tools.ws.processor.modeler.annotation.WebServiceAP.process(WebServiceAP.java:230)
        [wsgen]      at com.sun.mirror.apt.AnnotationProcessors$CompositeAnnotationProcessor.process(AnnotationProcessors.java:60)
        [wsgen]      at com.sun.tools.apt.comp.Apt.main(Apt.java:454)
        [wsgen]      at com.sun.tools.apt.main.JavaCompiler.compile(JavaCompiler.java:448)
        [wsgen]      at com.sun.tools.apt.main.Main.compile(Main.java:1075)
        [wsgen]      at com.sun.tools.apt.main.Main.compile(Main.java:938)
        [wsgen]      at com.sun.tools.apt.Main.processing(Main.java:95)
        [wsgen]      at com.sun.tools.apt.Main.process(Main.java:85)
        [wsgen]      at com.sun.tools.apt.Main.process(Main.java:67)
        [wsgen]      at com.sun.tools.ws.wscompile.CompileTool.buildModel(CompileTool.java:603)
        [wsgen]      at com.sun.tools.ws.wscompile.CompileTool.run(CompileTool.java:536)
        [wsgen]      at com.sun.tools.ws.util.ToolBase.run(ToolBase.java:54)
        [wsgen]      at com.sun.tools.ws.ant.WsGen.execute(WsGen.java:457)
        [wsgen]      at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
        [wsgen]      at org.apache.tools.ant.Task.perform(Task.java:364)
        [wsgen]      at org.apache.tools.ant.Target.execute(Target.java:341)
        [wsgen]      at org.apache.tools.ant.Target.performTasks(Target.java:369)
        [wsgen]      at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
        [wsgen]      at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
        [wsgen]      at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
        [wsgen]      at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
        [wsgen]      at oracle.jdevimpl.ant.runner.AntLauncher.launch(AntLauncher.java:321)
        [wsgen]      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        [wsgen]      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        [wsgen]      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        [wsgen]      at java.lang.reflect.Method.invoke(Method.java:585)
        [wsgen]      at oracle.jdevimpl.ant.runner.InProcessAntStarter.runAnt(InProcessAntStarter.java:293)
        [wsgen]      at oracle.jdevimpl.ant.runner.InProcessAntStarter.mav$runAnt(InProcessAntStarter.java)
        [wsgen]      at oracle.jdevimpl.ant.runner.InProcessAntStarter$1.run(InProcessAntStarter.java:71)
        [wsgen] error: compilation failed, errors should have been reported
        [wsgen]
    BUILD SUCCESSFUL
    Total time: 3 secondsI'm using JDeveloper 10g. Did someone had problems like this?
    I think the problem maybe is caused by jar lib concurrences...
    thanks

    You get that error when response headers have already been sent to the client (browser). This can happen in two ways that I know of:
    - you flushed data to the client, or somewhere the data was automatically flushed
    - you already did a redirect/forward and are attempting to do a second one.
    So if you want to prevent yourself from getting the error, you'll need to make sure that neither of the situations has occurred. Don't output content unless you are absolutely certain that you won't need to foward/redirect later and don't do a redirect/forward twice in the same resource.

  • Apt and simple Web Service

    Hi,
    I downloaded the latest Java EE 5 SDK with Glassfish V2 and Metro 1.0.
    When i run apt command on the following source java file:
    package test.ws;
    import javax.jws.WebMethod;
    import javax.jws.WebService;
    @WebService
    public class AddNumbersImpl {
         @WebMethod
         public int addNumbers(int a, int b) throws Exception {
              if (a < 0 || b < 0) {
                   String c = "Negative number cant be added!Numbers: " + a + ", " + b;
                   throw new Exception(c);
              return a + b;
    }i have this:
    +warning: Annotation types without processors: [javax.xml.bind.annotation.XmlRoot+
    Element, javax.xml.bind.annotation.XmlAccessorType, javax.xml.bind.annotation.Xm
    lType, javax.xml.bind.annotation.XmlElement]
    error: Could not get TypeDeclaration for: test.ws.AddNumbersImpl in apt round: 2
    Problem encountered during annotation processing;
    see stacktrace below for more information.
    java.lang.NullPointerException
    at com.sun.tools.internal.ws.processor.modeler.annotation.WebServiceAP.c
    ompleteModel(WebServiceAP.java:382)
    at com.sun.tools.internal.ws.processor.modeler.annotation.WebServiceAP.p
    rocess(WebServiceAP.java:238)
    at com.sun.mirror.apt.AnnotationProcessors$CompositeAnnotationProcessor.
    process(AnnotationProcessors.java:60)
    at com.sun.tools.apt.comp.Apt.main(Apt.java:454)
    at com.sun.tools.apt.main.JavaCompiler.compile(JavaCompiler.java:258)
    at com.sun.tools.apt.main.Main.compile(Main.java:1102)
    at com.sun.tools.apt.main.Main.compile(Main.java:964)
    at com.sun.tools.apt.Main.processing(Main.java:95)
    at com.sun.tools.apt.Main.process(Main.java:43)
    at com.sun.tools.apt.Main.main(Main.java:34)
    Could anybody help me?

    what if u didnt throw the exception? can try that.

  • How to make state model added to the annots non changeable?

    how to make state model non changeable?
    if once i add state model Review to any annot then i should able to lock this state for that comment and no one can change this other than me.
    Is there anyway to this using java script.

    The formula node is similar to C in syntax so I would try to copy it into that. If the code you have is in Matlab you might have to make some adjustments for functions that exist only in Matlab. Of course, if you are running Matlab on the same computer you can use the Matlab interface. Complicated math in G sometime makes more sense when it is put in a formula node.

  • Annotation model validation

    Hi,
    I'm trying to build an annotation based framework and I wonder if there is a way to validate the developers' use of the framework's annotations.
    For instance :
    @TCPConnectionHandler(serverHost = "localhost", serverPort = 9595)
    public class MyConnectionHandler {
         @In
         private InputStream in;
         @In
         private Map in2;
         @Out
         private OutputStream out;
         public MyConnectionHandler() {
         @HandleConnection
         public void process() {
              try {
                   BufferedReader reader = new BufferedReader(
                             new InputStreamReader(in));
                   PrintWriter writer = new PrintWriter(out, true);
                   String s = null;
                   while (((s = reader.readLine()) != null) && (!s.equals("bye"))) {
                        writer.println(s);
              } catch (Exception e) {
                   e.printStackTrace();
    }I'd like that at compilation time, an error says "Inside a TCPConnectionHandler, only one member can me marked as @In and it must be an InputStream."
    Any idea ?
    Thanks.

    Hi Bruce,
    Thanks for helping. I won't be able to come to
    Javaone but I'd be interested in reading a copy of
    your slides. Are you implementing static asserts ?
    If you mean making assertions about what is (or should be) seen via static analysis, then yes.
    Regarding my issue, to be more precise, I'd like the
    framework to be available as a simple JAR, containing
    the annotations and the utility classes. I don't want
    developers having to put something in their code to
    validate their use of the framework.Yes you can.
    >
    Is something like this possible with Mustang :
    * launch javac with annotation processing turned onit is on by default.
    * execute some custom
    javax.lang.model.element.ElementVisitor to
    check framework's annotation are used correctly ;Yes, except you place your implementation of javax.annotation.processing.Processor in your jar file, and create a /META-INF/services/javax.annotation.processing.Processor file with the FQN of your Processor in there so that javac can find it automatically.
    * throw compilation error if not.
    Yep, once you do the static analysis inside your Processor's process() method, and find an error, you get a Messager object from the Processing Environment (which you are passed) and then get the Messager to output the error. The actual compilation phase will not then take place.
    Any documentation about that on mustang.dev.java.net
    ?Start here.
    http://download.java.net/jdk6/docs/api/index.html?javax/annotation/processing/package-summary.html
    See also
    http://blogs.sun.com/roller/page/ahe?entry=throwing_unchecked_exceptions
    for an example processor that checks for throwing unchecked exceptions.
    That example uses the compile line to explicit call the processor, but for your case the automatic discovery technique makes it seemless for users of your jar.
    And I really do mean seamless, they will need the jar file on their classpath so the compiler can find the class files for your annotations they are using, and if that is the case, then the compiler will also find your processor, and they'll get error messages and a failed compile if they are misusing the annotations (according to the processor). Its pretty amazing really.
    >
    Thanks again.
    Thomas

  • Re-creatin​g graph annotation​s in diadem?

    Hi,
    I am currently going through the demo version of diadem, and am impressed with it's reporting capabilities.  I have an application where I am automatically placing graph annotations during my test, then when I save the .tdms, I store the annotation information (index, name etc) in groups named "annotation01", "annotation02" etc, to the tdms file.  Currently, I have a separate labview utility in which I load the tdms file, and place the annotations back in the graph, so I can post process the data and see the annotations.  It seems that if diadem can display text over graphs when viewing the data, I may be able to make a script to place these annotations using diadem.  Is diadem capable of this?
    Thanks
    David J.

    Hi David,
    Sorry, I got lost in all those "AnnotationArrayElement" Groups.  You're right, your first Group has two data channels, and I can also graph those in DIAdem.  But all your label information is stuck in Group properties, and this is the information I was referring to that should be written to Channels with the "TDMS Write.vi".  I've written a DIAdem VBScript to reorganize your TDMS file into the structure I think is ideal for your data and am attaching a representative TDM/TDX file as well as a picture of what the labeling could look like.
    One problem I ran into when doing this was that I didn't find the label texts.  Your first attached image above showed text event labels on the LabVIEW graph, but I don't see these texts anywhere in the TDMS file.  So what I did instead was to pretend that the "Index1" property was the text label to display.  Also, you have 2 separate XY coordinates in each "AnnotationArrayElement" Group, I just randomly picked the "Position" properties instead of the "Label_Offset" properties.  Why are there 2 sets of XY coordinates as well as the value index (triple redundancy?), and how should that information be translated into the desired XY coordinate to display the event marker or label?
    Finally, you have several Groups that just contain set up properties-- I'd strongly recommend you fold all those properties into the same data Group that has your measured data arrays-- that will make for much better DataFinder querying down the road.  I also found a "Sample_Rate_Hz" property in one of the Groups, so I used that to turn your "Battery Current" and "Phone Voltage" channels into waveform channels in DIAdem, and I added unit assignments of "mA" and "V" respectively.  But if they were waveform channels in LabVIEW you should have just wired the waveform up to the TDMS Write.vi and they would have loaded into DIAdem as waveforms automatically.  As a result, I scaled the "PostionX" property from X value to Time value.
    Brad Turpin
    DIAdem Product Support Engineer
    National Instruments
    Attachments:
    david_jenkinson New.zip ‏2676 KB
    Event Labels.pdf ‏69 KB

  • Content Modeling as XML with interMedia Annotator

    During iDevelop in Mumbai, I heard that you could model content as an XML object and upload that into any existing schema. Can someone explain how I can do that?

    I'm also having an issue getting my SOAP request to work
    properly.
    I have used this tool to see the outgoing request. Seems to
    work pretty well:
    http://www.nirsoft.net/utils/smsniff.html
    I was able to retrieve what I was sending out. It was
    formatted correctly, but needs to use MTOM when sending it out. I'm
    going to post a question about it after this reply.

  • DIAdem Report express VI works only with a single sheet template??

    Hi,
    I'm very new to Diadem and I'm using the 2011 evaluation version to try a report generation of LabView data (2013 version, evaluation also). I'm using the "DIAdem Report" express VI to generate a 2 pages, quite simple report; the first page has to contain some pictures and free text to be compiled with Labview strings, and the second page has to show an XY chart. The goal is to export in PDF file format.
    Creating two separates TDR report models for each page and calling two instances of the DIAdem Report, the report is generated correctly with the expected value in two separate pdf files. If I'm using a report template with the two previous pages loaded in two sheets, the text value and the XY data are not loaded in the PDF file, causing a two pages empty export (only images, default text and chart border are visible).
    I'm missing something? Attached a TDR file that reproduce the malfunction.
    Many thanks in advance.
    Solved!
    Go to Solution.
    Attachments:
    1+2.TDR ‏59 KB

    WorldTraveler
    When I have a report that has multiple pages  (Over 5)  I like to use one tdr file for each of the pages, and then use the report append feature to make a resulting tdr and then a PDF.
    (Search for report appending) 
    I make one cover tdr and one summary.tdr file, and then work to try to make the other sheets as reusable as possible.  That way I can build each resulting large TDR from a appending of as many smaller tdr files as needed. This really cuts down on the maintenance time for reports, and results in large PDF at the end, so the users do not know the difference.
    Paul

Maybe you are looking for

  • No editable form fields in ABAP Web Dynpro

    Hi, I created a form with layout type ZCI. The interface type is "ABAP Dictionary-Based Interface". This form I embedded in a abap web dynpro component. In the ABAP WD interactive form element I marked the enabled property. Unfortunately the displaye

  • Moving tracks up and down...?

    So easy to do in PS AE etc, but a real mystery in PP... And is it possible to insert a track? Cheers!

  • LMS 4.2.2 Fault Discovery - Network Adapters Limit Exceeded

    Running fault device discovery after adding approx 50 new devices to LMS DCR. It seems I have reached a limit in DFM with regards to how many device components it can manage. The devices are put into questioned mode and the following error is seen in

  • Blank file info dialog box

    Hi I have photoshop 11.0.1 installed on windows 7 (Before I used to use Windows XP PRO SP3) and I noticed that  clicking File--->File Info just shows me a blank dialog box instead  of the actual dialog box in which I can input various file properties

  • Blank video and green screen back again when I post video on Facebook

    It doesn't offer that option. I have Windows 8.1 and this is the second time this happened. Support told me to go to tools, internet options and change Use software rendering instead rendering of GPU rendering. It worked. Now however, the setting is