JAXB xjc error on name collision

The xjc is invoked with the following command line:
C:\jwsdp-1.3\jaxb\bin>xjc -p com.multex.rrapi -d \multex -extension ReutersResearchAPI.xsd
The ReutersResearchAPI.xsd looks like below:
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema targetNamespace="http://api.reutersresearch.com/ReutersResearchAPI"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns="http://api.reutersresearch.com/ReutersResearchAPI"
xmlns:ns1="http://api.reutersresearch.com/Estimates" xmlns:ns="http://api.reutersresearch.com/Collaboration"
elementFormDefault="qualified">
<xs:import namespace="http://api.reutersresearch.com/Collaboration" schemaLocation="Collaboration.xsd"/>
<xs:import namespace="http://api.reutersresearch.com/Estimates" schemaLocation="Estimates.xsd"/>
<xs:element name="ENTER_NAME_OF_ROOT_ELEMENT_HERE">
</xs:element>
</xs:schema>
The Collaboration.xsd looks like below:
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema targetNamespace="http://api.reutersresearch.com/Collaboration"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns="http://api.reutersresearch.com/Collaboration"
elementFormDefault="qualified">
<xs:element name="status">
<xs:complexType>
<xs:simpleContent>
<xs:extension base="xs:int"/>
</xs:simpleContent>
</xs:complexType>
</xs:element>
</xs:schema>
The Estimates.xsd looks like below:
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema targetNamespace="http://api.reutersresearch.com/Estimates" xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns="http://api.reutersresearch.com/Estimates" elementFormDefault="qualified">
<xs:element name="Status">
<xs:complexType>
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute name="errorCode" type="errorCode_AttrT" use="optional"/>
<xs:attribute name="success" type="success_AttrT" use="required"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
</xs:schema>
The xjc generates the following error message:
[ERROR] A class/interface with the same name "com.multex.rrapi.Status" is alread
y in use.
line 285 of Estimates.xsd
[ERROR] (Relevant to above error) another one is generated from here.
line 2017 of Collaboration.xsd

Thank you. I read the fix-collision sample. In my case I have to fix collision between an <element> from one namespace and an <element> from another. Would appending the "element" suffix eliminate the collision?

Similar Messages

  • JAXB xjc Error

    I am new to JAXB. I installed JWSDP 1.3 and tried to ran xjc.
    I ran xjc in the example below and have the
    following errors. Even I run the example in C:\jwsdp-1.3\jaxb\samples
    and have same error. Any ideas??
    http://java.sun.com/developer/technicalArticles/WebServices/jaxb/index.html
    D:\jaxbtest>xjc -p test.jaxb book.xsd -d work
    parsing a schema...
    compiling a schema...
    java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
    java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at org.apache.commons.launcher.ChildMain.run(ChildMain.java:269)
    Caused by: java.io.IOException: work: non-existent directory
    at com.sun.codemodel.writer.FileCodeWriter.<init>(FileCodeWriter.java:43
    at com.sun.tools.xjc.Driver.createCodeWriter(Driver.java:410)
    at com.sun.tools.xjc.Driver.run(Driver.java:226)
    at com.sun.tools.xjc.Driver._main(Driver.java:80)
    at com.sun.tools.xjc.Driver.access$000(Driver.java:46)
    at com.sun.tools.xjc.Driver$1.run(Driver.java:60)

    The eror report says:
    work: non-existent directory
    So: does the destination directory exist?

  • JAXB: XJC src-resolve error when importing other schemes

    Hi!
    I keep getting a src-resolve error from the JAXB binding compiler whenever I try to import other XML schemes into my own.
    For example:
    I want to use a SignatureType element as defined in the official XML signature schema.
    So I imported it into my own schema and use it as follows:
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
    <xsd:import namespace="http://www.w3.org/2000/09/xmldsig#"
    schemaLocation="http://www.w3.org/TR/2002/REC-xmldsig-core-20020212/xmldsig-core-schema.xsd"/>
    <xsd:complexType name="PayloadType">
    <xsd:sequence>
       <xsd:element name="signature" type="ds:SignatureType" minOccurs="0"/>
    </xsd:sequence>
    </xsd:complexType>However if I run XJC to compile my schema I get this error:
    [xjc] [ERROR] src-resolve: Cannot resolve the name 'ds:SignatureType' to a(n) 'type definition' component.I am using JAXB 2.0 EA from the JWSDP 2.0 and XJC is called from an Ant task.
    I am pretty new to JAXB and XML schemes, so any help on this topic would be greatly appreciated.

    I got the the answer from another forum; it was a proxy problem. Just to inform succeeding readers, here is what I did:
    To receive a better error output, I modified my ant buildfile to use the "nv" parameter:
    <xjc schema="${path}/.../mySchema.xsd" package="mySchemaPackage" destdir="${path}/.../src">
    <arg value="-nv" />
    <produces dir="${path}/.../src/mySchemaPackage" includes="**/*.java" />
    </xjc>Result:
    The XJC compiler gives me a different (better) error message:
    [xjc] [ERROR] java.net.ConnectException: Connection timed out: connectSo I looked in my Ant buildfile again to check the proxy settings. I merely used property-tags to define my proxy settings (<property name="http.proxyHost" value="nnn.nnn.nnn.nnn" /> and <property name="http.proxyPort" value="nnnn" /> ) which apparently do not work.
    Instead this here does the trick:
    <setproxy proxyhost="nnn.nnn.nnn.nnn" proxyport="nnnn"/>Good to now that "nv" might give you a better error report.

  • Name collision error occurs when building executable

    hi
    I was attempting to build an executable of my project including .m file with mathscript of course  , but a warning showed up while building and here is what it was showing:
    A name collision occurred during the build.  VIs were renamed to protect the build.  If any dynamic calls were made to the following VI(s), unexpected behavior may occur:
    C:\Program Files\National Instruments\LabVIEW 8.2\vi.lib\Analysis\Matrix\Support\ComplexMatrix\ComplexMatrix.ctl
    A name collision occurred during the build.  VIs were renamed to protect the build.  If any dynamic calls were made to the following VI(s), unexpected behavior may occur:
    C:\Program Files\National Instruments\LabVIEW 8.2\vi.lib\Analysis\Matrix\Support\RealMatrix\RealMatrix.ctl
    A name collision occurred during the build.  VIs were renamed to protect the build.  If any dynamic calls were made to the following VI(s), unexpected behavior may occur:
    C:\Program Files\National Instruments\LabVIEW 8.2\vi.lib\Analysis\Matrix\Support\RealMatrix\Methods\Numeric.llb\Multiply - RM,RM.vi
    A name collision occurred during the build.  VIs were renamed to protect the build.  If any dynamic calls were made to the following VI(s), unexpected behavior may occur:
    C:\Program Files\National Instruments\LabVIEW 8.2\vi.lib\Analysis\Matrix\Support\RealMatrix\Methods\Numeric.llb\Multiply - RM,R.vi
    A name collision occurred during the build.  VIs were renamed to protect the build.  If any dynamic calls were made to the following VI(s), unexpected behavior may occur:
    C:\Program Files\National Instruments\LabVIEW 8.2\vi.lib\Analysis\Matrix\Support\ComplexMatrix\Methods\Numeric.llb\Multiply - CM,CM.vi
    A name collision occurred during the build.  VIs were renamed to protect the build.  If any dynamic calls were made to the following VI(s), unexpected behavior may occur:
    C:\Program Files\National Instruments\LabVIEW 8.2\vi.lib\Analysis\Matrix\Support\ComplexMatrix\Methods\Numeric.llb\Multiply - CM,C.vi
    A name collision occurred during the build.  VIs were renamed to protect the build.  If any dynamic calls were made to the following VI(s), unexpected behavior may occur:
    C:\Program Files\National Instruments\LabVIEW 8.2\vi.lib\Analysis\Matrix\Support\RealMatrix\Methods\Numeric.llb\Add - RM,RM.vi
    A name collision occurred during the build.  VIs were renamed to protect the build.  If any dynamic calls were made to the following VI(s), unexpected behavior may occur:
    C:\Program Files\National Instruments\LabVIEW 8.2\vi.lib\Analysis\Matrix\Support\RealMatrix\Methods\Numeric.llb\Subtract - RM,RM.vi
    A name collision occurred during the build.  VIs were renamed to protect the build.  If any dynamic calls were made to the following VI(s), unexpected behavior may occur:
    C:\Program Files\National Instruments\LabVIEW 8.2\vi.lib\Analysis\Matrix\Support\RealMatrix\Methods\Comparison.llb\Equal - RM,RM.vi
    A name collision occurred during the build.  VIs were renamed to protect the build.  If any dynamic calls were made to the following VI(s), unexpected behavior may occur:
    C:\Program Files\National Instruments\LabVIEW 8.2\vi.lib\Analysis\Matrix\Support\ComplexMatrix\Methods\Numeric.llb\Add - CM,CM.vi
    A name collision occurred during the build.  VIs were renamed to protect the build.  If any dynamic calls were made to the following VI(s), unexpected behavior may occur:
    C:\Program Files\National Instruments\LabVIEW 8.2\vi.lib\Analysis\Matrix\Support\ComplexMatrix\Methods\Numeric.llb\Subtract - CM,CM.vi
    what is this all about and how can i avoid this , i tried to pass it away but the .exe seems to be not running like it should be ( i have to get a treated wavfile as an output)
    Please help me to resolve this .
    thanks.
    Attachments:
    Documents.zip ‏196 KB

    Duplicate
    You might want to check this link and check if you have conflicts and solve them
    Hope it helps.
    Regards.
    Mathieu Steiner, Test System Engineer, Safran Engineering
    CLD, ISTQB

  • JAXB validation error with sample applications

    Hi,
    When trying to generate the java from po.xsd in the first example I get two compile errors in the result :
    "PurchaseOrderImpl.java": Error #: 454 : class {deleted root}.generated.impl.PurchaseOrderImpl should be declared abstract; it does not define method validateThis() in interface javax.xml.bind.Element at line 11, column 8
    "CommentImpl.java": Error #: 454 : class {deleted root}.generated.impl.CommentImpl should be declared abstract; it does not define method validateThis() in interface javax.xml.bind.Element at line 11, column 8
    where {deleted root} represents parent packages in our source tree.
    Anyone else seen this?
    I'm using Ant1.51 to kick off the build, with the patch referred to in Apache bug 14640. (http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14640)
    The target to do the build is defined as follows :-
    <target name="schema" depends="init"
    description="Compile schema">
    <echo message="Compiling the schema..."/>
    <jaxb destDir="${src}"
    readOnly="true"
    strictValidation="true"
    xjcjar="${JAXB_HOME}\lib\jaxb-xjc.jar">
    <schemas dir="${basedir}" includes="po.xsd"/>
    <targetPackageMapper type="regexp"
    from="(.*)\.xsd" to="{deleted root}.generated"/>
    </jaxb>
    </target>
    where ${src} is the root of the source tree and ${basedir} is the parent directory of "generated", containing the build.xml.

    More precisely, this is a compile time error for the generated Java classes. The methods
    void invalidate()
    void validate()
    void validate(Validator v)
    void validateThis()
    defined in
    com.sun.xml.bind.validator.ValidatableObject
    are not being built for
    generated.impl/XTypeImpl.java
    which extends
    generated.impl/XImpl.java

  • JAXB Validation Error

    Hi,
    Iam using JAXB. I get an validation error. When i try to marshal an object to XML. The code is simple as shown below
    1. Container.xsd
    <?xml version="1.0" encoding="UTF-8"?>
    <schema targetNamespace="http://agi.com"
    xmlns="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://agi.com"
    elementFormDefault="qualified">
    <complexType name="ContainerType" abstract="true">
    <sequence>
    <choice>
    <element name="File" type="anyType" />
    <element name="Pen" type="anyType" />
    </choice>
    </sequence>
    </complexType>
    <element name="Container" type="tns:ContainerType" abstract="true" />
    </schema>
    2. Holder.xsd
    <?xml version="1.0" encoding="UTF-8"?>
    <schema targetNamespace="http://agi.com"
    xmlns="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://agi.com"
    elementFormDefault="qualified">
    <include schemaLocation="Container.xsd"></include>
    <complexType name="HolderType">
    <complexContent>
    <restriction base="tns:ContainerType">
    <sequence>
    <choice>
    <element name="File">
    <complexType>
    <sequence>
    <element name="FileName"
    type="string">
    </element>
    <element name="Capacity"
    type="integer">
    </element>
    </sequence>
    </complexType>
    </element>
    <element name="Pen">
    <complexType>
    <sequence>
    <element name="Make"
    type="string">
    </element>
    </sequence>
    </complexType>
    </element>
    </choice>
    </sequence>
    </restriction>
    </complexContent>
    </complexType>
    <element name="Holder" type="tns:HolderType"></element>
    </schema>
    Main.java
    package test.client;
    import java.io.PrintWriter;
    import java.io.StringWriter;
    import java.math.BigInteger;
    import java.util.List;
    import javax.xml.bind.JAXBContext;
    import javax.xml.bind.Marshaller;
    import javax.xml.bind.Unmarshaller;
    import javax.xml.bind.Validator;
    import test.vo.AnyType;
    import test.vo.Holder;
    import test.vo.ObjectFactory;
    import test.vo.HolderType.FileType;
    import test.vo.HolderType.PenType;
    import com.sun.xml.bind.StringInputStream;
    public class Main {
    public static void main(String s[]) throws Exception{
    JAXBContext ctx = JAXBContext.newInstance("test.vo" );
    ObjectFactory obj = new ObjectFactory();
    Holder input = obj.createHolder();
    FileType file = obj.createHolderTypeFileType();
    file.setCapacity( BigInteger.valueOf(35) );
    file.setFileName("Accounts");
    AnyType any = obj.createAnyType();
    List lst = any.getContent();
    lst.add(file);
    input.setFile(any);
    Marshaller marsh = ctx.createMarshaller();
    marsh.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT,
    new Boolean(true));
    marsh.setProperty(Marshaller.JAXB_SCHEMA_LOCATION,
    "http://agi.com");
    Validator validator = ctx.createValidator();
    validator.validate(input);
    StringWriter sw = new StringWriter();
    marsh.marshal(input, new PrintWriter(sw) );
    StringBuffer sb = sw.getBuffer();
    System.out.println(sb.toString() );
    This throws the following exception
    DefaultValidationEventHandler: [ERROR]: tag name "test.vo.AnyType" is not allowed. Possible tag names are: <test.vo.HolderType.FileType>
    Location: obj: test.vo.impl.HolderImpl@1cd8669
    Exception in thread "main" com.sun.xml.bind.serializer.AbortSerializationException: tag name "test.vo.AnyType" is not allowed. Possible tag names are: <test.vo.HolderType.FileType>
    at test.vo.impl.runtime.ValidationContext.reportEvent(ValidationContext.java:199)
    at test.vo.impl.runtime.ValidationContext.reportEvent(ValidationContext.java:166)
    at test.vo.impl.runtime.MSVValidator.childAsElementBody(MSVValidator.java:336)
    at test.vo.impl.runtime.MSVValidator.childAsBody(MSVValidator.java:292)
    at test.vo.impl.ContainerTypeImpl.serializeBody(ContainerTypeImpl.java:52)
    at test.vo.impl.HolderTypeImpl.serializeBody(HolderTypeImpl.java:30)
    at test.vo.impl.HolderImpl.serializeBody(HolderImpl.java:43)
    at test.vo.impl.runtime.MSVValidator._validate(MSVValidator.java:102)
    at test.vo.impl.runtime.MSVValidator.validate(MSVValidator.java:77)
    at test.vo.impl.runtime.ValidationContext.validate(ValidationContext.java:75)
    at test.vo.impl.runtime.ValidatorImpl.validate(ValidatorImpl.java:121)
    at test.vo.impl.runtime.ValidatorImpl.validate(ValidatorImpl.java:104)
    at test.client.Main.main(Main.java:63)
    However if i commentout the validation it works fine yeilding the
    following result
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <Holder xsi:schemaLocation="http://agi.com" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://agi.com">
    <File>
    <FileName>Accounts</FileName>
    <Capacity>35</Capacity>
    </File>
    </Holder>
    Which look good conforming to the schema above
    It willbe helpful if someout could point out the mistake iam doing
    Please help
    Regards
    Agilan Palani

    I changed the code
    marsh.setProperty(Marshaller.JAXB_SCHEMA_LOCATION,"http://agi.com Holder.xsd");
    to
    marsh.setProperty(Marshaller.JAXB_SCHEMA_LOCATION,"http://agi.com E:/Agilan/Holder.xsd");
    But still the same error.
    I have validated the generated xml using XMLObjective. It says the generated xml is valid against the schema.
    I really dont know why the JAXB validation fails?
    Please help

  • Name collision RT

    I'm building an exe in Real Time (8.6.1) and get the following error:
    An included file had a name collision with the top-level VI - .... Name conflicts involving top-level VIs are not allowed. You can rename files as part of the build process to avoid name conflicts.
    How can i understand which is the file that collides?

    Since it should be obvious if two of the VI's you have written have the same name, you might have a VI (that you wrote) that has the same name as one in the NI libs that the builder is accessing.
    Message Edited by Broken Arrow on 07-20-2009 07:24 AM
    Richard

  • JAXB library error in oepe indigo 11.1.1.7.3.201107052114-win32

    I have an project that use JAXB parsing libraries. This project was developed for the first time in eclipse oepe 11.1.1.7.2.201104061504-win32 released in April 2011. After I upgraded oepe to the new version, released in July 2011 I have the following library error: The currently selected JAXB library provider is invalid. The jars used is jaxb1-impl.jar, jaxb-api-2.2.4.jar, jaxb-impl-2.2.4-1.jar and jaxb-xjc-2.2.2.jar.
    Edited by: 874638 on 24.07.2011 04:51

    The Eclipse Indigo release offers some new JAXB tooling from the Dali project (which is part of Web Tools Platform). You are now able to create a JAXB Project.
    Configuration
    A JAXB project can be configured to use the reference or EclipseLink MOXy implementation of JAXB. This can be done via:
    1.Right click your JAXB Project
    2.Select Properties
    3.Select Project Facets
    4.Check the JAXB facet (If you are using Java SE 6 set the JAXB version to 2.1, if you are using Java SE 7 then set the JAXB version to 2.2).
    5.Click the "Further configuration required" or "Further configuration available" links.
    Using the JAXB RI
    -Choose Generic JAXB as your platform
    -Choose JRE as your JAXB Implementation Type
    Using EclipseLink JAXB (MOXy)
    -Choose EclipseLink JAXB as your platform
    -Choose User Library as your JAXB Implementation
    -Click the Manage Libraries... icon
    -Add a new User Library for EclipseLink (the binary can be obtained from http://www.eclipse.org/eclipselink/downloads/). -

  • Can not create temp file---- Error code:-2147215357 [CRSDK00000615] Error code name:internal

    Hello,
    While exporting Export reporting from BI4 getting exception
    Can not create temp file---- Error code:-2147215357 [CRSDK00000615] Error code name:internal
    In Trace Log I am getting
    com.crystaldecisions.xml.serialization.XMLWriter||Failed to create an object instance for CrystalReports.TextObjectFormat
    java.util.MissingResourceException: Can't find resource for bundle java.util.PropertyResourceBundle, key CrystalReports.TextObjectFormat
      at java.util.ResourceBundle.getObject(ResourceBundle.java:374)
      at java.util.ResourceBundle.getString(ResourceBundle.java:334)
    I tried following solution according to the all forums but still issue exist.
    Done changes mention in KB article In <Installation-dir-of-BO>\Common\4.0\java\CRConfig.XML we have to increase the JAVA heap MIN and Max size
              <JVMMaxHeap>64000000</JVMMaxHeap>          <JVMMinHeap>32000000</JVMMinHeap>
    Increase the value in the ReportApplicationServer Services in the CMC for "Number of database records to read when previewing or refreshing a report". The value -1 is for unlimited records but not recommended for performance.
    Check for temporary read write permission on server
    Using SDK library from C:\Program Files (x86)\SAP Business Objects\SAP BusinessObjects Enterprise XI 4.0\java\lib
    Can you please let me know is there anything missing.

    Hi,
    We face the same problem with some BI4 reports.
    The same report works well with the "Crystal Reports Viewers API", as used in Infoview, but not with the "Report Application Server (RAS) API".
    This error appears after some time working on a report. If we reproduce the same report, but from zero, no problem.
    Hope it can help.
    Ludovic.

  • Error building project using kXML2 - "Class loading error: Wrong name"

    Hi,
    I'm testing the XML-Parser KXML2 and downloaded the latest package, but the minimal version (kxml2-min.zip). I put this file into the directory "%j2mewtk%\apps\KxmlTest\lib" and wrote the lines
    import org.kxml2.io.*;
    import org.xmlpull.v1.*;
    When I try to build the project with the Wireless Toolkit (v1.04) it spits out the following error:
    Error preverifying class kxml2.io.KXmlParser
    Class loading error: Wrong name
    com.sun.kvem.ktools.ExecutionException: Preverifier returned 1
    Build failed
    I also tried the full package "kxml2.zip" but the same error occurs.
    How can I get rid of this? Thanks in advance!

    Okay, finally worked it out (hopefully). I unpacked the archive to a directory (say "%J2MEWTK%\apps\KxmlTest\tmpclasses") and then preverified them "manually":
    %J2SDK%\bin\preverify.exe -classpath "%J2MEWTK%\apps\KxmlTest\tmpclasses";"%J2MEWTK%\lib\midpapi.zip" org.kxml2.io.KXmlParser
    %J2SDK%\bin\preverify.exe -classpath "%J2MEWTK%\apps\KxmlTest\tmpclasses";"%J2MEWTK%\lib\midpapi.zip" org.xmlpull.v1.XmlPullParser
    %J2SDK%\bin\preverify.exe -classpath "%J2MEWTK%\apps\KxmlTest\tmpclasses";"%J2MEWTK%\lib\midpapi.zip" org.xmlpull.v1.XmlPullParserException
    Then I packed them again to a jar-file:
    %J2SDK%\bin\jar.exe -cvf kxml2-min.jar %J2MEWTK%\apps\KxmlTest\tmpclasses\output\.
    That was all!

  • File name collision during build that includes Report Generation toolkit. How to correct?

    When I switched to LV 8.6 (it's also in 8.6.1) I started getting a file name collision warning when building an installer that included the Report Generation toolkit. The executable works, but I don't like to leave warnings uninvestigated. I don't understand 1) why it's happening now and 2) what it's recommending for the fix. Here's part of the actual warning it gives.
    LabVIEW prevented a file name collision during the
    build. Duplicate file names cannot be copied to the same destination. You can
    rename files as part of the build process to avoid name conflicts.
    The following files were moved to a unique
    location:
    C:\Program Files\National Instruments\LabVIEW
    8.6\vi.lib\Utility\NIReport.llb\Append Control Image to Report.vi
    C:\Program
    Files\National Instruments\LabVIEW 8.6\vi.lib\Utility\NIReport.llb\HTML\Append
    Control Image to Report.vi
    C:\Program Files\National Instruments\LabVIEW
    8.6\vi.lib\Utility\NIReport.llb\Append File to Report.vi
    C:\Program
    Files\National Instruments\LabVIEW 8.6\vi.lib\Utility\NIReport.llb\HTML\Append
    File to Report.vi
    C:\Program Files\National Instruments\LabVIEW
    8.6\vi.lib\Utility\NIReport.llb\Append Horizontal Line to Report.vi...........

    Hi GS,
    The architecture of the Report Generation Toolkit was changed in LabVIEW 8.6 to utilize LabVIEW Classes.  As such, there are some warnings during an EXE build because the class VIs have identical names.  Classes were not used in the toolkit in LabVIEW 8.5 and previous...that's why you didn't see any warnings during the build until now.
    Your EXE should still function properly, and you shouldn't have to change anything about your build.  The purpose of the warnings is to let you know that the duplicate-named VIs needed to be handled differently during the build.
    -D
    Darren Nattinger, CLA
    LabVIEW Artisan and Nugget Penman

  • Tutorial - Create a blog reader Store app (C++) - Error:The name does not exist in the namespace!

    I'm trying to create my first store app based on msdn's sample.
    Link to the sample:
    https://msdn.microsoft.com/pl-PL/library/windows/apps/hh465045.aspx
    I have problem doing last step (number 3) of part 3.
    In code below in file App.xaml the compiler get the error "The name 'FeedDataSource' does not exist in the namespace 'using:SimpleBlogReader'"
    <Application
    x:Class="SimpleBlogReader.App"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:SimpleBlogReader">
    <Application.Resources>
    <local:FeedDataSource x:Key="feedDataSource"/>
    </Application.Resources>
    </Application>
    In the file App.xaml.h I added line #include "FeedData.h", and FeedData.h  looks like:
    //feeddata.h
    #pragma once
    #include "pch.h"
    namespace SimpleBlogReader
    namespace WFC = Windows::Foundation::Collections;
    namespace WF = Windows::Foundation;
    namespace WUIXD = Windows::UI::Xaml::Documents;
    namespace WWS = Windows::Web::Syndication;
    /// <summary>
    /// A FeedDataSource represents a collection of FeedData objects
    /// and provides the methods to retrieve the stores URLs and download
    /// the source data from which FeedData and FeedItem objects are constructed.
    /// This class is instantiated at startup by this declaration in the
    /// ResourceDictionary in app.xaml: <local:FeedDataSource x:Key="feedDataSource" />
    /// </summary>
    [Windows::UI::Xaml::Data::Bindable]
    public ref class FeedDataSource sealed
    private:
    Platform::Collections::Vector<FeedData^>^ m_feeds;
    FeedData^ GetFeedData(Platform::String^ feedUri, WWS::SyndicationFeed^ feed);
    void DeleteBadFeedHandler(Windows::UI::Popups::UICommand^ command);
    public:
    FeedDataSource();
    property Windows::Foundation::Collections::IObservableVector<FeedData^>^ Feeds
    Windows::Foundation::Collections::IObservableVector<FeedData^>^ get()
    return this->m_feeds;
    property Platform::String^ CurrentFeedUri;
    void InitDataSource();
    void RetrieveFeedAndInitData(Platform::String^ url, WWS::SyndicationClient^ client);
    How to solve this problem?

    You're testing this too early. You haven't yet finished writing code that your current code depends on. Feeddata.cpp won't build, so you can't use the data object that hasn't yet been created.
    In particular, feeddata.cpp doesn't build since it has many references to items which get added in later steps.
    For example, TextHelper is added in part 5 and App::RemoveFeed is added in part 10.
    You'll need to either wait until you've implemented those before you test or comment out the calls to the unimplemented features until they're done. TextHelper looks like it adds quite a bit and you're almost there, but you can probably get away with commenting
    out the calls to RemoveFeed and GetTitlesFromUri for now.

  • Build Error : The name "LocalizedStrings" does not exist in the namespace

    I have localised my app to 5 languages, it builds and runs perfectly in Silverlight, but when i open the project in Blend to make changes 
    it shows the following error 
    The name "LocalizedStrings" does not exist in the namespace "clr-namespace:appname".
    Since it is bound, i need to build it, only then the text is visible :(
    Any suggestions?
    Alfah
    Alfahisham

    This is the declaration for the LocalizedStrings.cs
    namespace LoveCycles_Free
    public class LocalizedStrings
    public LocalizedStrings()
    private static LoveCycles_Free.AppResources localizedResources = new LoveCycles_Free.AppResources();
    public LoveCycles_Free.AppResources LocalizedResources
    get
    return localizedResources;
    And this is my App.xaml
    <Application
    x:Class="LoveCycles_Free.App"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d" >
    <!--Application Resources-->
    <Application.Resources>
    <local:LocalizedStrings xmlns:local="clr-namespace:LoveCycles_Free" x:Key="LocalizedStrings" />
    <FontFamily x:Key="CicleSemi">C:/Users/PT3560003/AppData/Local/Microsoft/Expression/Blend/Font Cache/pj1jeoqe.v1v/Cicle Semi.ttf#Cicle Semi</FontFamily>
    <FontFamily x:Key="PeaSnow">CustomFonts/peasnow.ttf#Pea Snow</FontFamily>
    <FontFamily x:Key="CicleFina">CustomFonts/CicleFina.ttf#Cicle</FontFamily>
    <Style x:Key="AnimatedButtons" TargetType="Button">
    <Setter Property="Background" Value="Transparent"/>
    <Setter Property="BorderBrush" Value="{StaticResource PhoneForegroundBrush}"/>
    <Setter Property="Foreground" Value="{StaticResource PhoneForegroundBrush}"/>
    <Setter Property="BorderThickness" Value="{StaticResource PhoneBorderThickness}"/>
    <Setter Property="FontFamily" Value="{StaticResource PhoneFontFamilySemiBold}"/>
    <Setter Property="FontSize" Value="{StaticResource PhoneFontSizeMediumLarge}"/>
    <Setter Property="Padding" Value="10,3,10,5"/>
    <Setter Property="Template">
    <Setter.Value>
    <ControlTemplate TargetType="Button">
    <Border Background="Transparent">
    <VisualStateManager.VisualStateGroups>
    <VisualStateGroup x:Name="CommonStates">
    <VisualStateGroup.Transitions>
    <VisualTransition GeneratedDuration="0:0:0.2"/>
    </VisualStateGroup.Transitions>
    <VisualState x:Name="Normal"/>
    <VisualState x:Name="MouseOver"/>
    <VisualState x:Name="Pressed">
    <Storyboard>
    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Foreground" Storyboard.TargetName="ContentContainer">
    <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource PhoneBackgroundBrush}"/>
    </ObjectAnimationUsingKeyFrames>
    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="BorderBrush" Storyboard.TargetName="ButtonBackground">
    <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource PhoneForegroundBrush}"/>
    </ObjectAnimationUsingKeyFrames>
    <DoubleAnimation Duration="0" To="0.812" Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.ScaleX)" Storyboard.TargetName="ButtonBackground" />
    <DoubleAnimation Duration="0" To="0.694" Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.ScaleY)" Storyboard.TargetName="ButtonBackground" />
    </Storyboard>
    </VisualState>
    <VisualState x:Name="Disabled">
    <Storyboard>
    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Foreground" Storyboard.TargetName="ContentContainer">
    <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource PhoneBackgroundBrush}"/>
    </ObjectAnimationUsingKeyFrames>
    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="BorderBrush" Storyboard.TargetName="ButtonBackground">
    <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource PhoneDisabledBrush}"/>
    </ObjectAnimationUsingKeyFrames>
    <DoubleAnimation Duration="0" To="0.245" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="ButtonBackground" />
    </Storyboard>
    </VisualState>
    </VisualStateGroup>
    </VisualStateManager.VisualStateGroups>
    <Border x:Name="ButtonBackground" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="0" RenderTransformOrigin="0.5,0.5">
    <Border.RenderTransform>
    <CompositeTransform/>
    </Border.RenderTransform>
    <Border.Background>
    <ImageBrush Stretch="Fill" ImageSource="Images/02/but_bg_settings.png"/>
    </Border.Background>
    <ContentControl x:Name="ContentContainer" ContentTemplate="{TemplateBinding ContentTemplate}" Content="{TemplateBinding Content}" Foreground="{TemplateBinding Foreground}" HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}" Padding="{TemplateBinding Padding}" VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}" FontSize="20"/>
    </Border>
    </Border>
    </ControlTemplate>
    </Setter.Value>
    </Setter>
    </Style>
    <Style x:Key="AddButton" TargetType="Button">
    <Setter Property="Background" Value="Transparent"/>
    <Setter Property="BorderBrush" Value="{StaticResource PhoneForegroundBrush}"/>
    <Setter Property="Foreground" Value="{StaticResource PhoneForegroundBrush}"/>
    <Setter Property="BorderThickness" Value="{StaticResource PhoneBorderThickness}"/>
    <Setter Property="FontFamily" Value="{StaticResource PhoneFontFamilySemiBold}"/>
    <Setter Property="FontSize" Value="{StaticResource PhoneFontSizeMediumLarge}"/>
    <Setter Property="Padding" Value="10,3,10,5"/>
    <Setter Property="Template">
    <Setter.Value>
    <ControlTemplate TargetType="Button">
    <Border Background="Transparent">
    <VisualStateManager.VisualStateGroups>
    <VisualStateGroup x:Name="CommonStates">
    <VisualStateGroup.Transitions>
    <VisualTransition GeneratedDuration="0:0:0.2"/>
    </VisualStateGroup.Transitions>
    <VisualState x:Name="Normal"/>
    <VisualState x:Name="MouseOver"/>
    <VisualState x:Name="Pressed">
    <Storyboard>
    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Foreground" Storyboard.TargetName="ContentContainer">
    <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource PhoneBackgroundBrush}"/>
    </ObjectAnimationUsingKeyFrames>
    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="BorderBrush" Storyboard.TargetName="ButtonBackground">
    <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource PhoneForegroundBrush}"/>
    </ObjectAnimationUsingKeyFrames>
    <DoubleAnimation Duration="0" To="0.812" Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.ScaleX)" Storyboard.TargetName="ButtonBackground" />
    <DoubleAnimation Duration="0" To="0.694" Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.ScaleY)" Storyboard.TargetName="ButtonBackground" />
    </Storyboard>
    </VisualState>
    <VisualState x:Name="Disabled">
    <Storyboard>
    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Foreground" Storyboard.TargetName="ContentContainer">
    <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource PhoneBackgroundBrush}"/>
    </ObjectAnimationUsingKeyFrames>
    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="BorderBrush" Storyboard.TargetName="ButtonBackground">
    <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource PhoneDisabledBrush}"/>
    </ObjectAnimationUsingKeyFrames>
    <DoubleAnimation Duration="0" To="0.245" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="ButtonBackground" />
    </Storyboard>
    </VisualState>
    </VisualStateGroup>
    </VisualStateManager.VisualStateGroups>
    <Border x:Name="ButtonBackground" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="0" RenderTransformOrigin="0.5,0.5">
    <Border.RenderTransform>
    <CompositeTransform/>
    </Border.RenderTransform>
    <Border.Background>
    <ImageBrush Stretch="Fill" ImageSource="Images/02/but_bg_password.png"/>
    </Border.Background>
    <ContentControl x:Name="ContentContainer" ContentTemplate="{TemplateBinding ContentTemplate}" Content="{TemplateBinding Content}" Foreground="{TemplateBinding Foreground}" HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}" Padding="{TemplateBinding Padding}" VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}" FontSize="20"/>
    </Border>
    </Border>
    </ControlTemplate>
    </Setter.Value>
    </Setter>
    </Style>
    </Application.Resources>
    <Application.ApplicationLifetimeObjects>
    <!--Required object that handles lifetime events for the application-->
    <shell:PhoneApplicationService
    Launching="Application_Launching" Closing="Application_Closing"
    Activated="Application_Activated" Deactivated="Application_Deactivated"/>
    </Application.ApplicationLifetimeObjects>
    </Application>
    Alfahisham

  • While creating Projects Using the API, get two errors: 'Customer name must be passed' and 'class category is invalid'

    Hi
    While trying to Create Projects using the API, I'm getting two types of errors -
    The first is : 'API failed in one stage 1 Customer Name is a mandatory Quick Entry field. Value must be passed'
    The second is : '
    'API failed in one stage 1 Project: '<Project_Number>'
    The class category is invalid.'
    Both the messages are produced by our custom program. .. however I am not able to understand why the underlying errors occur.
    The first error ( Customer Name is a mandatory quick entry field), is caused by Projects that are to be created from Project templates where it is configured with Quick Entry Customer Name required. We are passing Customer Site number ( Party Bill to site number and Party Ship to side number). The site numbers being passed are also set as 'Primary'. Yet they are failing.
    For the second Error ( The Class Category is invalid), I rechecked multiple times, the Class categories for the Projects I am trying to create, with the Config in R12 and they are fine. Can't understand the reason for these two issues. Has anyone encountered such an issue ? If so how was it resolved?
    Regards
    Vivek

    HI All
    I resolved both the issues. In case there are others facing similar issues, following was the cause and resolution of my errors
    1. Error 1: Customer Name is a Mandatory Quick Entry field. Value must be passed.
    The cause was that the data loaded into our custom staging table was not in the right fields. This was because the data file values and the CTL were not in sync.
    Resolution:
    Corrected the data file to be in Sync with the structure defined in the CTL and  this loaded it successfully
    2. Error 2: The class category is invalid.
    The cause of this error was that  in the  Projects Template (used to create the project from), the Quick Entry setup had a Class Category set as required and I was not passing a value ( a class code value) for that Class Category.
    Hope this helps somebody else
    Cheers
    Turnbill

  • I am getting error Field name RT_CUSTPL of segment 1 exists multiple times

    Hi,
    While i was try to activate Datasource where i am getting the error     Field name RT_CUSTPL of segment 1 exists multiple times
    BIC/ZCSTCRTDT ( Position 23 ): External length specification will be ignored     
    Regards
    Krish

    One more error "Error when activating DataSource ZSTORE_TXT                    WEBSERVICE"

Maybe you are looking for