Horizontal mapping not working in Kodo 4.1.2

Hello,
I am having troubles in trying to get the class mapping I want in Kodo 4.1.2.
I want to go from Kodo 3.3 to Kodo 4.1, and still in the evaluation process. Basically, all I want is to have my package.jdo files to work in Kodo 4.1, with the minimum modifications, before moving to JPA.
The mapping is defined is my package.jdo using the <extension vendor-name="kodo" key="jdbc-class-map" value="XXX"/> where XXX can be one of horizontal, base or flat (I dont use vertical in this applicaion). This element does not seem to be properly recognized by the new mapping tool, and all my classes are mapped in the same base table.
After some digging in the docs and in the examples provided, I found this <inheritance strategy="XXX"/> element, that can be put in my package.jdo file. This is not clearly said in the docs (it seems this element is only mentionned in the new orm DTD), but is used in the sample/jdo/horizontal/package.jdo file.
Then I modified my package.jdo files, with this new element, where XXX is one of subclass-table, new-table (with no <join/> nested element) or superclass-table. But the result is not the one expected : all the classes are mapped in the same table.
I then gave a try at the example provided, compiled, enhanced and mapped the sample/jdo/horizontal classes provided with the distribution, since this example covers exactly what I want to do. It seems to me that this example does not work either.
The package.jdo says :
<jdo>
<package name="samples.jdo.horizontal">
<sequence name="sjvm" factory-class="sjvm" strategy="nontransactional"/>
<class name="LastModified">
<inheritance strategy="subclass-table"/>
</class>
The mapping file I get says :
<mapping>
<package name="samples.jdo.horizontal">
<class name="LastModified">
<jdbc-class-map type="base" pk-column="ID" table="LASTMODIFIED"/>
<jdbc-version-ind type="version-number" column="VERSN"/>
<jdbc-class-ind type="in-class-name" column="TYP"/>
<field name="creationDate">
<jdbc-field-map type="value" column="CREATIONDATE"/>
</field>
<field name="lastModificationDate">
<jdbc-field-map type="value" column="LASTMODIFICATIONDATE"/>
</field>
</class>
The enhancement is made using jdoc, the mapping file is generated using the following command line (the DB is empty) :
mappingtool -a refresh -f mapping.xml samples.jdo.horizontal.LastModifiedI would expect an horizontal mapping, with a class element containing only a <jdbc-class-map type="horizontal"/> element, as it is the case if I use my Kodo 3.3 mapping tool.
I tried the enhancement / mapping file generation process with two configuration of the kodo.properties file : the first one with kodo3 as the Mapping Factory and the second with jdo. The result is the same in both cases. I verified by setting the log level to TRACE for the Tool what the factory used. In fact in both case, it is the MappingFileDeprecatedJDOMappingFactory, which seems weird to me.
Bytheway, setting the MappingFactory to jpa leads to the following IllegalArgumentException during enhancement :
Exception in thread "main" org.apache.openjpa.lib.util.ParseException: Instantiation of plugin "MetaDataFactory" with value "jpa" caused an error "java.lang.IllegalArgumentException : java.lang.ClassNotFoundException: jpa". The alias or class name may have been misspelled, or the class may not have be available in the class path. Valid aliases for this plugin are: [jdo, kodo3]
I'd be glad to get any hint if I'm wrong on anything, or any workaround / patch to get my case to work.
Thank you in advance,
Jose

If the same exact app and code works with 4.0 with the same ForeignKeyDeleteAction setting, I suggest that you open a case with support.
This property hasn't changed since 4.0
http://e-docs.bea.com/kodo/docs41/full/html/ref_guide_mapping_defaults.html
Laurent

Similar Messages

  • Alternate Access Mapping not working for Zone : Intranet

    One of our client want to set Alternate Access Mappint (intranet) with url "intranet.theirDomain.com" with local IP address.
    is it possible?
    subsequest to my previous question (
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/3f39711e-301a-40e8-aa7a-855fa2c268b1/alternate-access-mapping-not-working?forum=sharepointadmin )
    I want to ask one more question
    Can we configure "intranet.theirDomain.com" with local IP address for any other zone?
    or
    If there is ".com" within the url then it can't be configured for InTRAnet?
    Thanks
    S H A J A N

    The names for the zones don't matter. You could use the 'extranet' zone for another intranet name if you wanted, the names are just to make it a bit more friendly for beginners.
    What you describe sounds routine, you create a web application with a name, then use an AAM to allow users to access it with a more friendly name. Frequently you end up creating
    http://intranet.domain.com and
    http://intranet as an AAM, or vice versa.
    You can use .com for an intranet site, you would need to add the site as an A Host record in your DNS server so that traffic is sent to your internal server rather than out into the wider world.

  • Value mapping not working properly

    Hi All,
    I am using value mapping twice in same mapping program. But only 1 field is coming with value and other is taking same value from source payload, can you please tell me what can be issue here?
    Value mapping 1 -
    Context - http://sap.com/xi/XI
    SenderParty- SenderSchema
    ReceiverParty- ReceiverSchema
    Value Mapping table in ID -
    Value mapping at field 2 -
    Context - http://sap.com/xi/XI
    SenderParty1- SenderSchema1
    ReceiverParty2- ReceiverSchema2
    Value Mapping table in ID -
    Source payload -
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:MT_VM_Send xmlns:ns0="http://xyz.com/Rashmi_CollectPatternDemo">
       <Record>
          <Emp_ID>123</Emp_ID>
          <Name>rash</Name>
          <Surname>sumit</Surname>
          <Gender>Male</Gender>
         <Grade>E2</Grade>
      </Record>
    </ns0:MT_VM_Send>
    Target Payload -
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:MT_VM_Receiver xmlns:ns0="http://xyz.com/Rashmi_CollectPatternDemo">
    <Record>
    <Emp_ID>123</Emp_ID>
    <Full_Name>rash sumit</Full_Name>
    <Designation>E2</Designation>
    <Gender>M</Gender>
    <Travel_Mode>Train</Travel_Mode>
    </Record>
    </ns0:MT_VM_Receiver>
    Here travel_mode is coming perfect, but designation is same as defined in source payload. Why here Value mapping not working???
    Thanks & regards,
    Rashmi Joshi

    Hi Rashmi,
    The problem would either be in cache update or your mapping. Please provide the sceenshot of mapping (after clicking the value mapping function).
    you can also choose the option to throw error in value mapping function, so it will throw error when value not found.
    regards,
    Harish

  • Camera, Browser & Maps Not Working

    Hi,
    It been since yesterday my Z10 camera, broser & maps not working.
    Whenever I click the camera icon, it is not even opening.
    Browser icon had changed, it turned to a triangle square & circle.
    Can anyone help me out.
    Thanks,
    Chris

    The update may not have loaded properly, you can reload this way:   http://btsc.webapps.blackberry.com/btsc/viewdocume​nt.do?externalId=KB34045&sliceId=2&docType=kc&noCo​...
    Or do a Security Wipe (Reset to Factory Settings) this way: 
    http://btsc.webapps.blackberry.com/btsc/viewdocume​nt.do?externalId=KB33591&sliceId=2&docType=kc&noCo​...
    Please read both carefully !

  • Apple maps not working on iMac

    apple maps not working on iMac the little thing just keeps turning

    Do a backup.
    Quit the application.
    Go to Finder and select your user/home folder. With that Finder window as the front window, either select Finder/View/Show View options or go command - J.  When the View options opens, check ’Show Library Folder’. That should make your user library folder visible in your user/home folder.  Select Library. Then go to Preferences/com.apple.Maps.plist. Move the .plist to your desktop.
    Restart the computer, open the application and test. If it works okay, delete the plist from the desktop.
    If the application is the same, return the .plist to where you got it from, overwriting the newer one.
    Thanks to leonie for some information contained in this.

  • Clob mapping not working with mysql

    Hi,
    I have an application that i'm running with MySQL and Oracle at the same
    time. At some point, i need to use a 'clob' mapping. When i do this, it
    just works fine with oracle but it fails with mysql. i have the exception:
    Field "com.ennov.prisma.api.document.jdo.AbstractDocumentPO.description"
    is mapped as a clob, but should be represented as a different mapping.
    If the field is a string and you would like to force it to map as a
    clob, add an extension to its field metadata with a key of "jdbc-size"
    and a value of
    -1.[com.ennov.prisma.api.document.jdo.AbstractDocumentPO.description]
         at kodo.jdbc.meta.Mappings.invalidMapping(Mappings.java:132)
         at kodo.jdbc.meta.Mappings.invalidMapping(Mappings.java:118)
         at
    kodo.jdbc.meta.ClobFieldMapping.fromMappingInfo(ClobFieldMapping.java:46)
    if i use a value mapping, it works with MySQL but fails with Oracle (I
    have sql error because a clob is used in a distinct select).
    In the manual, it is written "Note that some databases can support
    string of unlimited length without using a CLOB; when this is the case
    the mapping tool will install a value mapping in favor of
    this mapping.". So apparently, this is not the case with MySQLDictionary.
    To solve my problem and have my code working with both databases, i had
    to extend the MySQLDictionary and overwrite the replaceFieldMapping
    method in order to replace the clob mapping by a value mapping at
    runtime but i don't feel confident to do this kind of modifications by
    mysel and would expect this behaviour to be solved quite soon.
    Thanks for your help since this problem is urgent for us,
    Laurent Czinczenheim

    Laurent-
    The best solution would probably be to just have separate mappings for
    the MySQL and Oracle databases. The easiest way to accomplish this would
    be to have a separate setting for each of the databases. E.g.:
    kodo.jdbc.meta.MappingFactory: file(SingleFile=true, FileName=oracle.mapping)
    kodo.jdbc.meta.MappingFactory: file(SingleFile=true, FileName=mysql.mapping)
    That way, you can use a clob mapping for Oracle, and a normal value
    mapping for MySQL (since MySQL doesn't need to use the CLOB mapping, and
    it isn't very efficient).
    For more details on this, see:
    http://docs.solarmetric.com/manual.html#ref_guide_mapping_factory
    Another solution is to just stick with your custom extension of the
    MySQLDictionary, which is a perfectly valid way of having special CLOB
    handling in MySQL. Note, though, that CLOB handling is less efficient
    than VARCHAR handling, so it should be a mapping of last resort, and
    there isn't any need to use it in MySQL.
    In article <[email protected]>, czinczenheim wrote:
    Hi,
    I have an application that i'm running with MySQL and Oracle at the same
    time. At some point, i need to use a 'clob' mapping. When i do this, it
    just works fine with oracle but it fails with mysql. i have the exception:
    Field "com.ennov.prisma.api.document.jdo.AbstractDocumentPO.description"
    is mapped as a clob, but should be represented as a different mapping.
    If the field is a string and you would like to force it to map as a
    clob, add an extension to its field metadata with a key of "jdbc-size"
    and a value of
    -1.[com.ennov.prisma.api.document.jdo.AbstractDocumentPO.description]
         at kodo.jdbc.meta.Mappings.invalidMapping(Mappings.java:132)
         at kodo.jdbc.meta.Mappings.invalidMapping(Mappings.java:118)
         at
    kodo.jdbc.meta.ClobFieldMapping.fromMappingInfo(ClobFieldMapping.java:46)
    if i use a value mapping, it works with MySQL but fails with Oracle (I
    have sql error because a clob is used in a distinct select).
    In the manual, it is written "Note that some databases can support
    string of unlimited length without using a CLOB; when this is the case
    the mapping tool will install a value mapping in favor of
    this mapping.". So apparently, this is not the case with MySQLDictionary.
    To solve my problem and have my code working with both databases, i had
    to extend the MySQLDictionary and overwrite the replaceFieldMapping
    method in order to replace the clob mapping by a value mapping at
    runtime but i don't feel confident to do this kind of modifications by
    mysel and would expect this behaviour to be solved quite soon.
    Thanks for your help since this problem is urgent for us,
    Laurent Czinczenheim
    Marc Prud'hommeaux
    SolarMetric Inc.

  • Type-mapping not working correctly, get "Unable to find a javaType for the xmlType" WARNING

    I'm manually creating a web-services.xml file, and using the autogen ant task to
    generate the codec XML/Java classes. The XML definition is provided by SAP.
    The ant build.xml file:
    <project name="buildWebservice" default="stubgen">
    <target name="stubgen">
    <clientgen ear="C:\projects\RMIS\ifrrequests\RMIS.ear"
    packageName="com.aa.rmis.webservice.client"
    clientJar="C:\projects\RMIS\ifrrequests\rmisws-client.jar"
    autotype="False" />
    </target>
    <target name="all" depends="stubgen"/>
    </project>
    The problem is seen below in the output from Ant. Note the WARNINIG. The problem
    is that the xml type cannot be mapped to the Java type.
    C:\projects\RMIS\ifrrequests>ant -buildfile clientbuild.xml
    Buildfile: clientbuild.xml
    stubgen:
    [clientgen] Generating client jar for RMIS.ear ...
    [clientgen] WARNINIG: Unable to find a javaType for the xmlType:['urn:sap-com:do
    cument:sap:business']:PaymentRequest.Create. Make sure that you have registered
    this xml type in the type mapping
    [clientgen] Using SOAPElement instead
    [clientgen] Compiling 4 source files to C:\DOCUME~1\944377\LOCALS~1\Temp\rmisws-
    client.jar-836624340
    [clientgen] Building jar: C:\projects\RMIS\ifrrequests\rmisws-client.jar
    BUILD SUCCESSFUL
    Total time: 17 seconds
    The Java source that has the implementation of the service methods is simply:
    package com.aa.rmis.webservice;
    import com.aa.rmis.ifr.request.*;
    public class TestService
    public TestService()
    public int serviceRequest(PaymentRequestCreate request)
    System.out.println("Received serviceRequest message");
    return 0;
    public void testStringRequest(String request)
    The web-service.xml file is attached, which contains the schema for the SAP PaymentRequest.Create
    object definition.
    Another problem I have, which is probably related, is that the service method
    that has a complex data type (non-built in data type) is not being deployed into
    the WebLogic server. But the other service method that simply takes a String
    parameter is.
    The steps I took are:
    1. Get XML from SAP Interface Repository (IFR) for PaymentRequest
    2. Use ant task autogen to generate the request codec classes
    3. Create the web-services.xml file by inserting the schema definition and the
    mapping file created by the autogen task, and defining the operations
    4. Build web-services.war file that contains all autogen compiled class files,
    the web-services.xml file, and the service implementation class
    5. Build the ear file that holds the web service files
    6. Use the clientgen ant task to generate (included above) to generate the client
    jar file that should contain the proxy for both of the service methods
    Environment:
    * WebLogic 7.02
    * JDK 1.3.1_06
    * JBuilder 9 Enterprise
    * Ant 1.4
    Possible causes:
    * Namespace not being used correctly
    * copied verbatim the mapping xml file generated by autogen into the web-services.xml
    file
    * xml-schema part of web-services.xml might not be set correctly
    * operation definition might not be using the correct namespace
    * Classpath used for ant might not be right
    * Doubt this is the problem, but I'm out of other ideas
    * Set by using the setWLEnv.cmd file provided by WebLogic
    * Tried adding the generated classes directory for my project to the classpath,
    but did not work
    I've been referencing the Programming WebLogic Web Services document throughout
    this entire process. I must be missing something.
    Can anybody from BEA help me out with this problem?
    Thanks in advance.
    [web-services.xml]

    Hi JD,
    I spent a few cycles looking over your web-services.xml file, however I
    don't have any suggestions other that one that looks like you have
    already tried, at the top, in the <schema...>
    targetNamespace="urn:sap-com:document:sap:business"
    Making edits to these generated files can be tricky and my only
    suggestion is to create a small reproducer to run by our outstanding
    support team.
    A quick look at our problem database shows one issue (CR095109) related
    to a similar problem at deploy time that was fixed with 7.0SP3. Again,
    the support folks will be able to help focus in on the issue.
    Regards,
    Bruce
    JD wrote:
    >
    The first posting contains the wrong web-services.xml file. Please refer to this
    one instead.
    "JD" <[email protected]> wrote:
    I'm manually creating a web-services.xml file, and using the autogen
    ant task to
    generate the codec XML/Java classes. The XML definition is provided
    by SAP.
    The ant build.xml file:
    <project name="buildWebservice" default="stubgen">
    <target name="stubgen">
    <clientgen ear="C:\projects\RMIS\ifrrequests\RMIS.ear"
    packageName="com.aa.rmis.webservice.client"
    clientJar="C:\projects\RMIS\ifrrequests\rmisws-client.jar"
    autotype="False" />
    </target>
    <target name="all" depends="stubgen"/>
    </project>
    The problem is seen below in the output from Ant. Note the WARNINIG.
    The problem
    is that the xml type cannot be mapped to the Java type.
    C:\projects\RMIS\ifrrequests>ant -buildfile clientbuild.xml
    Buildfile: clientbuild.xml
    stubgen:
    [clientgen] Generating client jar for RMIS.ear ...
    [clientgen] WARNINIG: Unable to find a javaType for the xmlType:['urn:sap-com:do
    cument:sap:business']:PaymentRequest.Create. Make sure that you have
    registered
    this xml type in the type mapping
    [clientgen] Using SOAPElement instead
    [clientgen] Compiling 4 source files to C:\DOCUME~1\944377\LOCALS~1\Temp\rmisws-
    client.jar-836624340
    [clientgen] Building jar: C:\projects\RMIS\ifrrequests\rmisws-client.jar
    BUILD SUCCESSFUL
    Total time: 17 seconds
    The Java source that has the implementation of the service methods is
    simply:
    package com.aa.rmis.webservice;
    import com.aa.rmis.ifr.request.*;
    public class TestService
    public TestService()
    public int serviceRequest(PaymentRequestCreate request)
    System.out.println("Received serviceRequest message");
    return 0;
    public void testStringRequest(String request)
    The web-service.xml file is attached, which contains the schema for the
    SAP PaymentRequest.Create
    object definition.
    Another problem I have, which is probably related, is that the service
    method
    that has a complex data type (non-built in data type) is not being deployed
    into
    the WebLogic server. But the other service method that simply takes
    a String
    parameter is.
    The steps I took are:
    1. Get XML from SAP Interface Repository (IFR) for PaymentRequest
    2. Use ant task autogen to generate the request codec classes
    3. Create the web-services.xml file by inserting the schema definition
    and the
    mapping file created by the autogen task, and defining the operations
    4. Build web-services.war file that contains all autogen compiled class
    files,
    the web-services.xml file, and the service implementation class
    5. Build the ear file that holds the web service files
    6. Use the clientgen ant task to generate (included above) to generate
    the client
    jar file that should contain the proxy for both of the service methods
    Environment:
    * WebLogic 7.02
    * JDK 1.3.1_06
    * JBuilder 9 Enterprise
    * Ant 1.4
    Possible causes:
    * Namespace not being used correctly
    * copied verbatim the mapping xml file generated by autogen into
    the web-services.xml
    file
    * xml-schema part of web-services.xml might not be set correctly
    * operation definition might not be using the correct namespace
    * Classpath used for ant might not be right
    * Doubt this is the problem, but I'm out of other ideas
    * Set by using the setWLEnv.cmd file provided by WebLogic
    * Tried adding the generated classes directory for my project to
    the classpath,
    but did not work
    I've been referencing the Programming WebLogic Web Services document
    throughout
    this entire process. I must be missing something.
    Can anybody from BEA help me out with this problem?
    Thanks in advance.
    Name: web-services.xml
    web-services.xml Type: ACT Project (text/xml)
    Encoding: base64

  • Image Map not working in Dreamweaver CC

    I'm trying to create an image map over a jpeg but when I try to draw a rectangle over the image, a grey stroke gets placed over the image then moves with the cursor.
    Here is the only code on the page. Any ideas as to why this isn't working?
    <img src="/SampleImage.jpg" alt="" width="900" height="2779" style="margin: 5px; width: 649px; height: 2000px;"/>

    Let me see if I have this right...
    1. From Design View, you are clicking your image to select it
    2. You are then selecting the Rectangle tool from the bottom left of the Properties window
    3. You are then clicking and dragging on the image in Design View to create your map area
    4. DW puts a grey line around the image and moves it instead of adding the image map and area tags?
    Run your page for code errors at http://validator.w3.org. I can't duplicate what you describe and DW will do strange things when code errors are present, it could be an error DW doesn't know how to fix that's causing the normal image map functionality to fail.
    If you have clean code and are doing what I list above and it's still not working, it may be time to clear the program cache:Deleting a corrupted cache file

  • XSLT mapping not working b'coz " " & " " replaced with and

    Hello Experts,
      I have a RFC to JMS scenario. One of the parameter of RFC is a string field. This field will contain the XML data in it.
    I need to create a complete XML payload using this data in a string field. For this I am using XSLT map :
    <?xml version="1.0" encoding="UTF-8"?>
    <xsl:stylesheet version="1.1" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" >
         <xsl:output method="xml" omit-xml-declaration="no"/>
         <xsl:template match="/">
              <xsl:for-each select="//Nem">
                   <xsl:copy-of select="."/>
              </xsl:for-each>
         </xsl:template>
    </xsl:stylesheet>
    This XSLT mapping works fine when tested independently.
    But in actual scenario at runtime the "<" & ">" used to indicate a node are getting replaced with < and >. Then the XSLT mapping fails and produces no output.
    The output of XSL will be passed in to a java mapping which signs the payload digitally.
    What is the issue with these signs? How can I overcome this problem?
    Any inputs will be of great help.
    Kind Regards,
    Abhijeet.
    Edited by: Abhijeet Ambekar on May 4, 2010 2:01 PM

    Hi Stefan,
      Yes - I want to get rid of & # 60. But these (& # 60 and & # 62) are not added by XSLT mapping. Rather they are in the input available to XSLT map.
    In sxmb_moni, i can see the inbound payload correctly :
    <?xml version="1.0" encoding="UTF-8" ?>
    - <rfc:HDK083_REFUS_SENDDOCU xmlns:rfc="urn:sap-com:document:sap:rfc:functions">
      <P_SIGN_DOCUMENT />
      <P_XML_DOCUMENT><NemRefusionIndberetningSamling><NemRefusionIndberetningStruktur MessageID="1"><HeaderStruktur><SignOffIndikator>true</SignOffIndikator><TransaktionKode>Opret</TransaktionKode><IndberetningstypeKode>Anmeldelse</IndberetningstypeKode><FravaerTypeKode>Sygdom</FravaerTypeKode><FravaerendeStruktur><FravaerendeTypeKode>Loenmodtager</FravaerendeTypeKode><LoenUnderFravaerIndikator>false</LoenUnderFravaerIndikator></FravaerendeStruktur><IndberetningUUIDIdentifikator>bf9cc44e-af15-4e19-8457-5845d75385d2</IndberetningUUIDIdentifikator><ReferenceAttributTekst>ref. Nielsen-1503831372 (23. oktober 2009)</ReferenceAttributTekst>
    but when I try to download the payload or right click on payload to view source I get something like below:
    <?xml version="1.0" encoding="UTF-8"?><rfc:HDK083_REFUS_SENDDOCU xmlns:rfc="urn:sap-com:document:sap:rfc:functions"><P_SIGN_DOCUMENT></P_SIGN_DOCUMENT><P_XML_DOCUMENT>& # 6 0;NemRefusionIndberetningSamling& # 62; & # 60;NemRefusionIndberetningStruktur MessageID="1"& #62;& #60;HeaderStruktur& #62;& #60;SignOffIndikator& #62;true& #60;/SignOffIndikator& #62;& #60;TransaktionKode& #62;Opret& #60;/TransaktionKode& #62;& #60;IndberetningstypeKode& #62;Anmeldelse& #60;/IndberetningstypeKode& #62;& #60;FravaerTypeKode& #62;Sygdom& #60;/FravaerTypeKode& #62;& #60;FravaerendeStruktur& #62;& #60;FravaerendeTypeKode& #62;Loenmodtager</FravaerendeTypeKode><LoenUnderFravaerIndikator& #62;false</LoenUnderFravaerIndikator></FravaerendeStruktur& #62;<IndberetningUUIDIdentifikator& #62;bf9cc44e-af15-4e19-8457-5845d75385d2& #60;/IndberetningUUIDIdentifikator& #62;& #60;ReferenceAttributTekst& #62;ref. Nielsen-1503831372 (23. oktober 2009)& #60;/ReferenceAttributTekst& #62;
    (extra spaces added to "& # 60" as browser was converting it to < ,>)
    If i take the source code for payload and test XSLT mapping, it fails. But if I manually replace all "& # 60" with < and "& # 6 2" with >, then the mapping works fine.
    So I think for XSLT map to work correctly, we need to replace all "& # 60 " . Please suggest.
    Kind Regards,
    Abhijeet.

  • Java Mapping (Not Working)

    Hi....
    I have done java mapping using file to file scenario....
    I have created two data types, two message types, two message interfaces... in imported archives i have imported
    dom4j-1.6.1.zip and itext.jar files..
    i have written my java code like this:
    package com.xmltopdf;
    import java.io.FileInputStream;
    import java.io.FileOutputStream;
    import com.lowagie.text.xml.XmlToPdf;
    public class MyXmlToPdf {
    public MyXmlToPdf(String inputFile, String outputFile){
    try {
    XmlToPdf xtp = new XmlToPdf();
    System.out.println("Ravi");
    xtp.parse(new FileInputStream(inputFile), new FileOutputStream(outputFile));
    }catch(Exception e ) {
    System.out.println(e);
    in message mapping i have invoked "MyXmlToPdf(String,String) constructor like this:
    MyXmlToPdf xmt= MyXmlTOPdf("C:
    source
    filetofile.xml","C:
    source
    file.pdf");
    return "";
    and i have configured my communication channel, reciever determination, sender aggrement, reciver aggrement, and interface determination.....
    so please tell me whether my code is correct or not... if its correct why i am not getting the pdf file.. if its not correct please tell me whats wrong in my code...
    Thanks & Regards
    Ravi Shankar B

    Hi ,
    select XMLTOOLKIT option in Operation mapping and execute it.
    I am not sure we can call java program in XSLT Program,but alternative is copy the code and use it in XSLT mapping it self,that means your XSLT program will become with JAVA extensions.
    then in Operation mapping level select SAPXMLTOOL kit option and execute it. i hope it will work. if it is not working then you have deploy some JAXP files on server,because the way execution of XSLT Mpaping program got changed,like when eve you executing XSLT with extnasions( if you are not using XMLTOOL kit option) then you have to use latest version of JAXP.JDK files.
    Regards,
    Raj

  • FDM Conditional mapping not working

    I currently have the following #script as my map in FDM. The first part of the map is not working as all the 9* source accounts are mapping to "70111". The rule should be; with any source account of "9*", with a source profit center where the 3rd digit is "??1???", then account is "43905", else "70111".
    If Left(varValues(23),3) = "1" Then
    Result = "43905"
    Else
    Result = "70111"
    End if
    Not sure why the first result is not working...anyone have any suggestions?

    Hi
    I think I may have seen this question answered previously but in case....
    Your IF statement is comparing the first 3 characters to "1" so it will never match.
    Assuming that you want to compare the 3rd character then you want If Mid(varValues(23),3,1) = "1" Then
    Hope this helps
    Stuart

  • Auto field mapping not working

    Hi,
    I am working on LSMW for transaction DGP2. for the 5th step (  5 Maintain Field Mapping and Conversion Rules), this functionality is not working niether I am able to assign manually. The source structure might have problem. How should I find out the error in which step and how to sort out that?
    Thanks in advance,
    Rgds,
    Madhuri

    Hi Chenna,
    I have given same structure for this one. Still its not working.
    please help.
    Thanks
    Rgds,
    MAdhuri

  • URL Mapping not working inside MOSS

    hi,
    I want to achieve broken URL redirection in old web application developed in MOSS.
    For this purpose, i have to use URL mapping inside web.config -
    For Example -
    <urlMappings enabled="true" >
        <add url="~/brokenpath" mappedUrl="/subsite/Pages/Home.aspx" />
    </urlMappings>
    I have checked that '/subsite/Pages/Home.aspx' url is not broken but still getting 404 exception.
    Similar tag is working under dev/local environment but not working in the production,
    Can anybody please let me know the problem or any configuration missing.
    Thanks in advance.

    Hi Saurabh, can you provide the actual broken path, both in your web.config as well as the absolute URL?
    Dimitri Ayrapetov (MCSE: SharePoint)

  • DPS global ACI (mapping not working)

    Hello!
    we are using DPS 6.3.
    We have several connection handlers configured which are mapping the requests from base dc=unicreditgroup,dc=eu to dc=hvb,dc=de and back from dc=hvb,dc=de to dc=unicreditgroup,dc=eu. Works fine.
    We now want to configure a global ACI for DPS to allow only certain Attributes to be available through the DPS.
    To test the global ACI I configured:
    bash-3.00# less access_controls.ldif
    dn: cn=virtual access controls
    objectclass: top
    objectclass: ldapSubentry
    cn: virtual access controls
    dn: cn=vitualaci,cn=virtual access controls
    objectclass: aciSource
    dpsaci: (targetattr="*")(target="ldap:///ou=people,dc=unicreditgroup,dc=eu"
    ) (version 3.0;acl "perm1"; allow(all) userdn ="ldap:///anyone";)
    cn: cn=vitualaci
    And I configured a connection handler to use this ACI:
    dpconf set-connection-handler-prop -h localhost -p 389 hvbBinds aci-source:vitualaci
    When I now try a ldapsearch I won't get any information back. The access log shows that the mapping unicreditgroup to hvb is not working any more.
    Without global ACI the access log looks like this. The underlined words show the mapping:
    [17/Nov/2008:10:26:56 +0100] - CONNECT - INFO - conn=2 client=127.0.0.1:41528 server=localhost:389 protocol=LDAP
    [17/Nov/2008:10:26:56 +0100] - PROFILE - INFO - conn=2 assigned to connection handler cn=default connection handler, cn=connection handlers
    , cn=config
    [17/Nov/2008:10:26:56 +0100] - OPERATION - INFO - conn=2 op=0 BIND dn="uid=m050183,ou=people,dc=unicreditgroup,dc=eu" method="SIMPLE" version
    =3
    [17/Nov/2008:10:26:56 +0100] - SERVER_OP - INFO - conn=2 op=0 BIND dn="uid=m050183,ou=people,dc=hvb,dc=de" method="SIMPLE"" version=3 s_msgid
    =2 s_conn=dsmmucqsu09:16
    [17/Nov/2008:10:26:56 +0100] - SERVER_OP - INFO - conn=2 op=0 BIND RESPONSE err=0 msg="" s_conn=dsmmucqsu09:16
    [17/Nov/2008:10:26:56 +0100] - PROFILE - INFO - conn=2 assigned to connection handler cn=hvbBinds,cn=connection handlers,cn=config
    [17/Nov/2008:10:26:56 +0100] - OPERATION - INFO - conn=2 op=0 BIND RESPONSE err=0 msg="" etime=0
    [17/Nov/2008:10:26:56 +0100] - OPERATION - INFO - conn=2 op=1 msgid=2 SEARCH base="_dc=unicreditgroup,dc=eu_" scope=2 filter="(uid=m050183)" at
    trs="*"
    [17/Nov/2008:10:26:56 +0100] - SERVER_OP - INFO - conn=2 op=1 SEARCH base="_dc=hvb,dc=de_" scope=2 filter="(uid=m050183)" attrs="*" s_msgid=3 s
    _conn=dsmmucqsu09:16
    [17/Nov/2008:10:26:56 +0100] - SERVER_OP - INFO - conn=2 op=1 SEARCH RESPONSE err=0 msg="" nentries=1 s_conn=dsmmucqsu09:16
    [17/Nov/2008:10:26:56 +0100] - OPERATION - INFO - conn=2 op=1 SEARCH RESPONSE err=0 msg="" nentries=1 etime=510
    [17/Nov/2008:10:26:56 +0100] - OPERATION - INFO - conn=2 op=2 UNBIND
    [17/Nov/2008:10:26:56 +0100] - DISCONNECT - INFO - conn=2 reason="unbind"
    *With global ACI* the mapping does not work any more and the access log looks like this.
    I underlined only dc=unicreditgroup,dc=eu because there is no mapping to dc=hvb,dc=de:
    [17/Nov/2008:10:22:31 +0100] - CONNECT - INFO - conn=57 client=127.0.0.1:41360 server=localhost:389 protocol=LDAP
    [17/Nov/2008:10:22:31 +0100] - PROFILE - INFO - conn=57 assigned to connection handler cn=default connection handler, cn=connection handler
    s, cn=config
    [17/Nov/2008:10:22:31 +0100] - OPERATION - INFO - conn=57 op=0 BIND dn="uid=m050183,ou=people,dc=unicreditgroup,dc=eu" method="SIMPLE" versio
    n=3
    [17/Nov/2008:10:22:31 +0100] - SERVER_OP - INFO - conn=57 op=0 BIND dn="uid=m050183,ou=people,dc=hvb,dc=de" method="SIMPLE"" version=3 s_msgi
    d=3 s_conn=dsmmucqsu08:4
    [17/Nov/2008:10:22:31 +0100] - SERVER_OP - INFO - conn=57 op=0 BIND RESPONSE err=0 msg="" s_conn=dsmmucqsu08:4
    [17/Nov/2008:10:22:31 +0100] - PROFILE - INFO - conn=57 assigned to connection handler cn=hvbBinds,cn=connection handlers,cn=config
    [17/Nov/2008:10:22:31 +0100] - OPERATION - INFO - conn=57 op=0 BIND RESPONSE err=0 msg="" etime=0
    [17/Nov/2008:10:22:31 +0100] - OPERATION - INFO - conn=57 op=1 msgid=2 SEARCH base="_dc=unicreditgroup,dc=eu_" scope=2 filter="(uid=m050183)" a
    ttrs="*"
    [17/Nov/2008:10:22:31 +0100] - OPERATION - INFO - conn=57 op=1 SEARCH RESPONSE err=0 msg="" nentries=0 etime=0
    [17/Nov/2008:10:22:31 +0100] - OPERATION - INFO - conn=57 op=2 UNBIND
    [17/Nov/2008:10:22:31 +0100] - DISCONNECT - INFO - conn=57 reason="unbind"
    This seems to be the problem why I don't get any data back when I'm trying an ldapsearch.
    ldapsearch -h localhost -p 389 -b dc=unicreditgroup,dc=eu -D "uid=m050183,ou=people,dc=unicreditgroup,dc=eu" -w xxxxxx '(uid=m050183)'
    Any idea if I'm doing something wrong or if it is a bug that the mapping does not work?
    Best regards,
    Beate

    Hello!
    I was told by Sun that it is a bug.
    Regards,
    Beate

  • Alternative Access Mapping not working "You're not connected to a network"

    Hi *,
    i want to set up alternate access mapping in my sharepoint 2013 development environment.
    My SharePoint is reachable through http://sp2013.
    I created a second web application with listens on port 8080. When i open http://sp2013:8080 everything works fine and i can see my root site collection.
    Next i added through "Add internal Urls" a new url -> http://sp2013test to the default zone.
    Next i edited the bindings in the iss application for this web application and added http://sp2013test listening to port 80:
    But i does not work! I get the message "You’re not connected to a network" from the ie.
    I dont want have to call my WebApps through ports. I want to have WebApplication which i can call through clear names like http://customerWebApp1, http://customer2WebApp. All via Port 80.
    Whats wrong here?
    Best Regards
    Bog
    Developers Field Notes | www.bog1.de

    Hi Bob,
    For you issue, try to map web application URLs to the local loopback address. For that you need to update host file at the path:(C:\Windows\System32\drivers\etc\hosts) 
    Here is a link about Setup Multiple SharePoint Web Applications on Port 80 with Https Binding on Port 443, you can use as a reference:
    http://onlinecoder.blogspot.com/2012/10/setup-multiple-sharepoint-web.html
    Best Regards
    Lisa Chen

Maybe you are looking for