Incorrect code generated by weblogic.appc

Hi,
My application has an ejb module which has entities with some CMR relationships. One instance of which is an n-m bi-directional relationship between an entity with a java.lang.Long primary key, and an entity with a composite primary key of types java.lang.Long, java.lang.Integer and java.util.Locale.
At the command line I'm invoking weblogic.appc for the application. The deployment descriptors are validated as okay. However, the compilation is falling over on the above relation in that the appc generated java is incorrect. Looking at the generated source code I believe the generated class was intended to test that the join table for the relation existed. The compilation errors are all of the form:
[appc] Compiling EAR module 'core-ejb'
[VersionHelper] : Recompiling because no previous hashes found
[EJBCompiler] : Compliance Checker said bean was compliant
c:\weblogic-epix-compile\core-ejb\com\formicary\epix\module\content\ContentElement_fvoisg__WebLogic_CMP_RDBMS_contentDocuments_Set.java:291: setBytes(int,byte[]) in java.sql.PreparedStatement cannot be applied to (int,java.util.Locale)__WL_stmt.setBytes(2,((com.formicary.epix.module.content.ContentDocumentPK)__WL_pk2).language);
So the generated Weblogic class won't compile, since it's trying to apply language (a java.util.Locale object and part of the primary key as detailed above) to a byte[] argument field. Obviously java.sql.PreparedStatement doesn't have the capability to set a Locale field as an parameter to a SQL statement.
Is there any way to inform Weblogic to treat this field as a String parameter? Or a way to map custom classes to Strings for EJBs? (I already have the application successfully deployed on Orion server, where the field is persisted in a varchar field). If none of this is possible then I will have to change the ejb property to a String rather than continue to use a Locale. Is there a reason why I shouldn't be using a Locale object as a primary key involved in a relation?
Any thoughts, ideas or solutions would be greatly appreciated.
Many thanks,
Steven

The SQL is quite complex as there seems to be several multiple tables and inheritance involved, but the AND portion seems correct.
For any joins (1-1, 1-m, get/anyOf) the AND of the join criteria must be applied to the entire expression, this is correct. If you require OR semantics to include 1-1 being null or 1-m being empty you must use an outerjoin, getAllowingNull or anyOfAllowingNone. You seem to be correctly doing this for the 1-1, but not for the 1-m.
To outerjoin the 1-m to account for allowing an empty collection you must use the anyOfAllowingNone method in your expression.
i.e.
Expression isDefectScheduled = builder.anyOfAllowingNone("storyCards").getAllowingNull("iteration").notNull();
Now this is a very complex expression and model, so there may be other issues, but if you desire to allow an empty 1-m anyOfAllowingNone is this correct way to specify this.

Similar Messages

  • The code generated by EJBC in Weblogic 5.1 is wrong!

    I have a container managed bean that has a primary key named
    productLicenseId as follows:
    public class ProductLicenseBean implements EntityBean
    public int productLicenseId;
    I had this code running in Weblogic 4.5.1 and converted it to EJB 1.1
    (now I use java.lang.Integer for the primary key class) and attempted to
    build it using WebLogic 5.1. I built your container managed example
    (AccountBean), which built fine (it is clear why your example did not
    have the problem mine did- the primary key is java.lang.String). After
    that, I tried to build my container managed bean, but without success.
    Here is a description of my problem:
    After trying to compile my simple container-managed program using EJBC
    in Weblogic 5.1, I get the following error:
    ProductLicenseBeanEOImpl.java:56: Incompatible type for =. Can't convert
    int to java.lang.Integer
    pk = bean.productLicenseId;
    ProductLicenseBeanEOImpl.java is a class that was generated by EJBC. It
    is clear that this code is incorrect! The generated code (pk =
    bean.productLicenseId) attempts to assign the primary key in the
    ProductLicenseBean (an int) to a java.lang.Integer (pk is of type
    java.lang.Integer), which is wrong! The source code generated by EJBC is
    wrong!
    Do you have a bug fix for this, or is there something I'm just not
    getting?? !!
    I should be able to use a java.lang.Integer as a primary key.
    Thanks much for your help.
    Tim Kimmet, [email protected]
    [timk.vcf]

    I had the same problem. I had used the deployer tool and had specified a
    primary key class AND a primary key field "ID".
    This had put an extra tag in the ejb-jar.xml file <persistence field> which
    I hadn't seen before.
    Changing the primary key field to "none" fixed caused other problems to show
    up in the deployer tool (finders). I had to redo the
    deployer project from scratch, this time keeping the primary key field to
    "none" and it worked.
    Tim Kimmet <[email protected]> wrote in message
    news:[email protected]..
    I have a container managed bean that has a primary key named
    productLicenseId as follows:
    public class ProductLicenseBean implements EntityBean
    public int productLicenseId;
    I had this code running in Weblogic 4.5.1 and converted it to EJB 1.1
    (now I use java.lang.Integer for the primary key class) and attempted to
    build it using WebLogic 5.1. I built your container managed example
    (AccountBean), which built fine (it is clear why your example did not
    have the problem mine did- the primary key is java.lang.String). After
    that, I tried to build my container managed bean, but without success.
    Here is a description of my problem:
    After trying to compile my simple container-managed program using EJBC
    in Weblogic 5.1, I get the following error:
    ProductLicenseBeanEOImpl.java:56: Incompatible type for =. Can't convert
    int to java.lang.Integer
    pk = bean.productLicenseId;
    ProductLicenseBeanEOImpl.java is a class that was generated by EJBC. It
    is clear that this code is incorrect! The generated code (pk =
    bean.productLicenseId) attempts to assign the primary key in the
    ProductLicenseBean (an int) to a java.lang.Integer (pk is of type
    java.lang.Integer), which is wrong! The source code generated by EJBC is
    wrong!
    Do you have a bug fix for this, or is there something I'm just not
    getting?? !!
    I should be able to use a java.lang.Integer as a primary key.
    Thanks much for your help.
    Tim Kimmet, [email protected]

  • WLS 10.3 [weblogic.appc] - Unable to generate stub/skeleton for 1.5

    Hello,
    I want to deploy the application (EJB) in WLS 10.3 and client is using JDK 1.5.
    When we run the weblogic.appc on the .ear file, the stub and skeleton is created of 1.6 when we run the following command:-
    java weblogic.appc –source 1.5 –output temp_directory Myear-test.earHOwever when we specify the -source as 1.5 it has to create the stub and skeleton for JDK 1.5.
    When we check the version of the MyServiceBean_s_Impl.class file we could see its generating for 1.6, as also shown below:
    (to check the version, run the command “javap –verbose class_name”)
    SourceFile: "MyServiceBean_s_Impl.java"
    minor version: 0
    major version: 50
    I have tried the same thing on the simple EJB application(.jar), every thing works fine.
    Environment Details:-
    WLS 10.3
    JDK 1.6.0_05 (Server)
    JDK 1.5 (client)
    Please provide the provide the pointers.
    Edited by: As91 on Sep 11, 2009 12:05 AM

    we have the same problem with the OSB. The sbconsole was no longer working. I guess that is may be related to an open session during shutdown. Overnight the problem has gone away, and we could login to sbconsole again.
    BEA-423167
    An exception or error occurred in the backing file [com.bea.alsb.console.changemgmt.ChangeCenterBacking] while executing its preRender method. It was java.lang.IllegalStateException: Unable to get Configuration Session Manager java.lang.IllegalStateException: Unable to get Configuration Session Manager at com.bea.alsb.console.support.JMXHelper.sessionExists(JMXHelper.java:673) at com.bea.alsb.console.changemgmt.ChangeMgmtUIHelper.updateButtons(ChangeMgmtUIHelper.java:351) at com.bea.alsb.console.changemgmt.ChangeCenterBacking.preRender(ChangeCenterBacking.java:26) at com.bea.netuix.servlets.controls.Backable$Impl.preRender(Backable.java:191) at com.bea.netuix.servlets.controls.AdministeredBackableControl.preRender(AdministeredBackableControl.java:104) at com.bea.netuix.servlets.controls.window.Window.preRender(Window.java:432) at com.bea.netuix.servlets.controls.portlet.Portlet.preRender(Portlet.java:814) at com.bea.netuix.nf.ControlLifecycle$6.visit(ControlLifecycle.java:428) at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:727) at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:739) at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:739) at
    weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2174) at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1446) at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201) at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)

  • Why doesn't the keepgenerated flag for weblogic.appc work?

    hello forum,
    i'm running wls 9.2.1.0 on windows xp. if i run the following command on a split development directory, everything gets built and packaged successfully:
        C:\development\tmp\ejb\src>java weblogic.appc -forceGeneration -keepgenerated -basicClientJar -compiler javac -verbose -classpath %classpath% C:\development\tmp\ejb\build\hooverBotEAR\ -output C:\development\tmp\ejb\dist\hooverbot.earthe problem is: even though i added the "-keepgenerated" option to the command, the source code for the generated components (stubs, impls, skeletons, etc.) is nowhere to be found!
    please, can anybody fill me in on what i need to do to make "-keepgenerated" do what its supposed to do - when running weblogic.appc from the command line?
    thanks in advance for your help.
    Edited by wboyd at 03/10/2008 10:08 AM
    Edited by wboyd at 03/10/2008 12:19 PM

    oops!
    i'd looked everywhere except inside the actual ear file. i eventually did look in the ear file - and there they were.
    live and learn ;-)

  • Weblogic.appc-- Unrecognized option or flag, -basicClientJars

    Team,
    I want to generate only the client jar(which should include only the class files needed for the client to connect to my remote ejb)
    I am using the following ant task:
    <target name="ejbcClient" depends="jar_ejb">
    <java classname="weblogic.appc" fork="yes">
    <sysproperty key="weblogic.home" value="${WL_HOME}"/>
    <arg line="-compiler ${JAVA_HOME}/bin/javac -basicClientJars -output ${deploydir}/${ejb_jar_name} ${dist}/${ejb_jar_name}"/>
    <classpath refid="basepath"/>
    </java>
    </target>
    But when I run this, I am getting:
    Usage: java weblogic.appc [options] <ear, jar or war file or directory>....
    Unrecognized option or flag, -basicClientJars
    I am using Weblogic 8.1. Do we need any service packs? If yes, which sps do we need?
    Thank you for your help!

    Weblogic 9.x supports only JDK 1.5 ? Now, Iam trying to perform same build using Weblogic 8.1 SP5 and Iam not able to find javax.jms.ConnectionFactory in weblogic.jar, where as in Weblogic 9.x 'weblogic.jar' javax.jms.ConnectionFactory' is found.
    code snippet:
    String url = "t3://" + hostName + ":" + hostPort;
    Environment environment = new Environment();
    environment.setProviderUrl( url );
    environment.setInitialContextFactory( weblogic.jndi.WLInitialContextFactory );
    Context context = environment.getInitialContext();
    ConnectionFactory factory = (ConnectionFactory)context.lookup( "..." );
    Connection theConnection = factory.createConnection();
    Iam using SUN JDK 1.4.2.11 ( even did try Weblogic JDK). I have weblogic.jar and JDK/tools.jar included in my classpath.
    What other jar files we need to included in my classpath to make this code to work in weblogic 8.1SP5 ?

  • Error while deploying ear file generated from weblogic to ocj4

    Hi All,
    I have an .ear file which has been generated from weblogic server.I tried to deploy it on ocj4 aby created a new project in eclipse and deploying it on ocj4.
    When I try to run my project it gives me an error:
    2008-12-15 19:13:54.811 NOTIFICATION J2EE JSP-0008 Unable to dispatch JSP Page : Exception:oracle.classloader.util.AnnotatedLinkageError: duplicate class definition: javax/xml/rpc/Service
         Invalid class: javax.xml.rpc.Service
         Loader: Test.web.TSOptyQGateWeb:0.0.0
         Code-Source: /C:/OC4J_10.1.3.4/j2ee/home/applications/Test/TSOptyQGateWeb/WEB-INF/lib/jaxrpc.jar
         Configuration: WEB-INF/lib/ directory in C:\OC4J_10.1.3.4\j2ee\home\applications\Test\TSOptyQGateWeb\WEB-INF\lib
         Dependent class: oracle.jsp.runtimev2.JspPageInstFacade$DeclaredAction
         Loader: oc4j:10.1.3
         Code-Source: /C:/OC4J_10.1.3.4/j2ee/home/lib/ojsp.jar
         Configuration: <code-source> in META-INF/boot.xml in C:\OC4J_10.1.3.4\j2ee\home\oc4j.jar
         The original class instance was defined in the shared-library oracle.ws.jaxrpc:1.1, and oc4j:10.1.3 does import that loader. This may be a search-order problem.
    Can anyone help??

    Hi,
    I checked the log-files, but there are no helpful informations, but:
    07/04/23 12:08:04 -  Start updating EAR file...
    07/04/23 12:08:04 -  start-up mode is lazy
    07/04/23 12:08:20 -  com.sap.engine.deploy.manager.DeployManagerException: com.sap.engine.services.deploy.container.DeploymentException: Cannot update archive file Docsndownloads.war
                         com.sap.engine.services.deploy.ear.exceptions.BaseIOException: Error during replacement of substitution values. Reason:
                          java.io.IOException: Stream closed
    and
    Apr 23, 2007 12:08:20... Error: Aborted: development component 'Dokusunddownloads'/'sap.com'/'localhost'/'2007.04.23.12.07.47'/'0':
    Caught exception during application deployment from SAP J2EE Engine's deploy API:
    com.sap.engine.deploy.manager.DeployManagerException: com.sap.engine.services.deploy.container.DeploymentException: Cannot update archive file Docsndownloads.war
    com.sap.engine.services.deploy.ear.exceptions.BaseIOException: Error during replacement of substitution values. Reason:
    java.io.IOException: Stream closed
    thanks,
    Lu

  • I am getting build error while using weblogic.appc

    Hi All,
    I am using weblogic 10 server and ejb 3.0 code .
    While ejb-complisation i am getting the class not found error.
    Please help me in resolving the below issue.
    ejb-compile:
    [echo] E:\workspace\OMGAdmin\OMGADMIN/omgAdminBuild/omgAdminEAR
    [java] Exception in thread "main" java.lang.NoClassDefFoundError: weblogic/descriptor/BeanUpdateListener
    [java] at java.lang.ClassLoader.defineClass1(Native Method)
    [java] at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
    [java] at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
    [java] at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
    [java] at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
    [java] at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
    [java] at java.security.AccessController.doPrivileged(Native Method)
    [java] at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
    [java] at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    [java] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
    [java] at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
    [java] at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
    [java] at java.lang.Class.forName0(Native Method)
    [java] at java.lang.Class.forName(Class.java:164)
    [java] at weblogic.logging.MessageLogger.<clinit>(MessageLogger.java:46)
    [java] at weblogic.logging.WLMessageLogger.log(WLMessageLogger.java:51)
    [java] at weblogic.j2ee.J2EELogger.logAppcFailedWithError(J2EELogger.java:5257)
    [java] at weblogic.application.compiler.Appc.runBody(Appc.java:179)
    [java] at weblogic.utils.compiler.Tool.run(Tool.java:158)
    [java] at weblogic.utils.compiler.Tool.run(Tool.java:115)
    [java] at weblogic.application.compiler.Appc.main(Appc.java:188)
    [java] at weblogic.appc.main(appc.java:14)
    [java] Java Result: 1
    <target name="ejb-compile" depends="ejb-jar">
         <echo message="${project.EAR.dir}"></echo>
         <java classname="weblogic.appc" fork="yes">
    <sysproperty key="weblogic.home" value="${wl.home}"/>
    <arg line="-compiler javac ${project.EJB.dir}/omgAdminEJB.jar"/>
    <classpath>
    <pathelement location="${wl.dir.lib}\weblogic.jar"/>
    <pathelement location="${wl.dir.lib}\api.jar"/>
    <pathelement location="${wl.dir.lib}\wls-api.jar"/>
              <pathelement location="${project.EAR.dir}\utility.jar"/>
              <pathelement location="${project.lib}\log4j-1.2.13.jar"/>
    </classpath>
    </java>
         <copy todir="${project.EAR.dir}" >
    <fileset dir="${project.EJB.dir}" includes="omgAdminEJB.jar" />
    </copy>
         <delete>
    <fileset dir="${project.EJB.dir}" includes="omgAdminEJB.jar"/>
    </delete>
    </target>
    above script is my ant task for ejb compilisation
    Regd's
    Soma.

    Finally i am end up with this exception
    [java] Exception in thread "main" java.lang.AssertionError: java.lang.reflect.InvocationTargetException
    [java] at weblogic.logging.MessageLogger.log(MessageLogger.java:104)
    [java] at weblogic.logging.MessageLogger.log(MessageLogger.java:116)
    [java] at weblogic.logging.WLMessageLogger.log(WLMessageLogger.java:51)
    [java] at weblogic.j2ee.J2EELogger.logAppcFailedWithError(J2EELogger.java:5257)
    [java] at weblogic.application.compiler.Appc.runBody(Appc.java:179)
    [java] at weblogic.utils.compiler.Tool.run(Tool.java:158)
    [java] at weblogic.utils.compiler.Tool.run(Tool.java:115)
    [java] at weblogic.application.compiler.Appc.main(Appc.java:188)
    [java] at weblogic.appc.main(appc.java:14)
    [java] Caused by: java.lang.reflect.InvocationTargetException
    [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    [java] at java.lang.reflect.Method.invoke(Method.java:585)
    [java] at weblogic.logging.MessageLogger.log(MessageLogger.java:101)
    [java] ... 8 more
    [java] Caused by: java.lang.NoClassDefFoundError: weblogic/management/DistributedManagementException
    [java] at java.lang.Class.getDeclaredMethods0(Native Method)
    [java] at java.lang.Class.privateGetDeclaredMethods(Class.java:2365)
    [java] at java.lang.Class.privateGetPublicMethods(Class.java:2488)
    [java] at java.lang.Class.privateGetPublicMethods(Class.java:2498)
    [java] at java.lang.Class.privateGetPublicMethods(Class.java:2498)
    [java] at java.lang.Class.privateGetPublicMethods(Class.java:2498)
    [java] at java.lang.Class.getMethods(Class.java:1406)
    [java] at weblogic.kernel.MBeanStub.initializeFromSystemProperties(MBeanStub.java:51)
    [java] at weblogic.kernel.LogMBeanStub.<init>(LogMBeanStub.java:41)
    [java] at weblogic.kernel.KernelMBeanStub.<init>(KernelMBeanStub.java:10)
    [java] at weblogic.kernel.KernelLogManager$LoggerMaker.<clinit>(KernelLogManager.java:22)
    [java] at weblogic.kernel.KernelLogManager.getLogger(KernelLogManager.java:28)
    [java] ... 13 more
    [java] Java Result: 1
    My Build file is
    <target name="ejb-compile" depends="ejb-jar">
         <echo message="${project.EAR.dir}"></echo>
         <echo message="${wl.modules.lib}\com.bea.core.descriptor_1.0.1.0.jar" />
         <echo message="${wl.dir.lib}\weblogic.jar" />
         <java classname="weblogic.appc" fork="yes">
    <sysproperty key="weblogic.home" value="${wl.home}"/>
    <arg line="-compiler javac ${project.EJB.dir}/omgAdminEJB.jar"/>
    <classpath>
    <pathelement location="${wl.dir.lib}\weblogic.jar"/>
    <pathelement location="${wl.dir.lib}\api.jar"/>
    <pathelement location="${wl.dir.lib}\wls-api.jar"/>
    <pathelement location="${wl.dir.lib}\wlclient.jar"/>
    <pathelement location="${wl.modules.lib}\com.bea.core.descriptor_1.0.1.0.jar"/>
              <pathelement location="${project.EAR.dir}\utility.jar"/>
              <pathelement location="${project.lib}\log4j-1.2.13.jar"/>
    </classpath>
    </java>
         <copy todir="${project.EAR.dir}" >
    <fileset dir="${project.EJB.dir}" includes="omgAdminEJB.jar" />
    </copy>
         <delete>
    <fileset dir="${project.EJB.dir}" includes="omgAdminEJB.jar"/>
    </delete>
    </target>

  • Weblogic.appc

    I am upgrading an (EJB2) application to run on version 10.3. - previously deployed on version 8.1
    When the code is recompiled with the updated libraries, weblogic.appc causes the an exception (see below for details)
    I am not sure if it is a configuration problem, or something to do with JSPs
    Any advice would be appreciated.
    [exec] java.io.IOException: JDT compilation error!
    [exec] at weblogic.ejb.container.ejbc.CompilerForJDT.compile(CompilerForJDT.java:66)
    [exec] at weblogic.ejb.container.ejbc.EJBCompiler.doCompile(EJBCompiler.java:358)
    [exec] at weblogic.ejb.container.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:556)
    [exec] at weblogic.ejb.container.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:491)
    [exec] at weblogic.application.compiler.AppcUtils.compileEJB(AppcUtils.java:315)
    [exec] at weblogic.application.compiler.EJBModule.compile(EJBModule.java:129)
    [exec] at weblogic.application.compiler.flow.SingleModuleCompileFlow.proecessModule(SingleModuleCompileFlow.java:18)
    [exec] at weblogic.application.compiler.flow.SingleModuleFlow.compile(SingleModuleFlow.java:37)
    [exec] at weblogic.application.compiler.FlowDriver$FlowStateChange.next(FlowDriver.java:69)
    [exec] at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37)
    [exec] at weblogic.application.compiler.FlowDriver.nextState(FlowDriver.java:36)
    [exec] at weblogic.application.compiler.FlowDriver.run(FlowDriver.java:26)
    [exec] at weblogic.application.compiler.EJBCompiler.compile(EJBCompiler.java:29)
    [exec] at weblogic.application.compiler.flow.AppCompilerFlow.compileInput(AppCompilerFlow.java:112)
    [exec] at weblogic.application.compiler.flow.AppCompilerFlow.compile(AppCompilerFlow.java:37)
    [exec] at weblogic.application.compiler.FlowDriver$FlowStateChange.next(FlowDriver.java:69)
    [exec] at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37)
    [exec] at weblogic.application.compiler.FlowDriver.nextState(FlowDriver.java:36)
    [exec] at weblogic.application.compiler.FlowDriver.run(FlowDriver.java:26)
    [exec] at weblogic.application.compiler.Appc.runBody(Appc.java:200)
    [exec] at weblogic.utils.compiler.Tool.run(Tool.java:158)
    [exec] at weblogic.utils.compiler.Tool.run(Tool.java:115)
    [exec] at weblogic.application.compiler.Appc.main(Appc.java:259)
    [exec] at weblogic.appc.main(appc.java:14)
    [exec] JDT compilation error!

    If you are working with the ANT wlappc target, you have to explicitly add the weblogic.jar to the classpath, like this:
              <wlappc          verbose="true"
                             source="../build-ear/xyz.jar"
                             classpath="${wls.home}/server/lib/weblogic.jar"/>
    I hade the same problem as you two and adding the classpath attribute solved it.

  • BeanAlreadyExistsException: Bean already exists when run weblogic.appc

    We use weblogic.appc to generate the ejb jar file. It works fine on my Windows XP, but failed on another Windows XP. Below is the stack trace of the error message:
    <Mar 17, 2009 8:49:27 AM PDT> <Error> <J2EE> <BEA-160197> <Unable to load descri
    ptor D:\VSS\Client_Manager\bin\std-web-matrixejb.jar/META-INF/ejb-jar.xml of module std-web-matrixejb.jar. The error is weblogic.descriptor.DescriptorException: Unmarshaller failed
    at weblogic.descriptor.internal.MarshallerFactory$1.createDescriptor(MarshallerFactory.java:152)
    at weblogic.descriptor.BasicDescriptorManager.createDescriptor(BasicDescriptorManager.java:292)
    at weblogic.descriptor.BasicDescriptorManager.createDescriptor(BasicDescriptorManager.java:260)
    at weblogic.application.descriptor.AbstractDescriptorLoader2.
    getDescriptorBeanFromReaderAbstractDescriptorLoader2.java:774)
    at weblogic.application.descriptor.AbstractDescriptorLoader2.createDescriptorBean(AbstractDescriptorLoader2.java:395)
    at weblogic.application.descriptor.AbstractDescriptorLoader2.loadDescriptorBeanWithoutPlan(AbstractDescriptorLoader2.java:745)
    at weblogic.application.descriptor.AbstractDescriptorLoader2.loadDescriptorBean(AbstractDescriptorLoader2.java:754)
    at weblogic.ejb.spi.EjbJarDescriptor.getEjbJarBean(EjbJarDescriptor.java:131)
    at weblogic.ejb.container.dd.xml.EjbDescriptorReaderImpl.processEjbJarXM
    LWithSchema(EjbDescriptorReaderImpl.java:671)
    at weblogic.ejb.container.dd.xml.EjbDescriptorReaderImpl.processEjbJarXML(EjbDescriptorReaderImpl.java:220)
    at weblogic.ejb.container.dd.xml.EjbDescriptorReaderImpl.createReadOnlyD
    escriptorFromJarFile(EjbDescriptorReaderImpl.java:185)
    at weblogic.ejb.spi.EjbDescriptorFactory.createReadOnlyDescriptorFromJarFile(EjbDescriptorFactory.java:93)
    at weblogic.ejb.container.ejbc.EJBCompiler.parseDescriptors(EJBCompiler.java:1430)
    at weblogic.ejb.container.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:467)
    at weblogic.application.compiler.AppcUtils.compileEJB(AppcUtils.java:298)
    at weblogic.application.compiler.EJBModule.compile(EJBModule.java:83)
    at weblogic.application.compiler.flow.SingleModuleCompileFlow.proecessModule(SingleModuleCompileFlow.java:16)
    at weblogic.application.compiler.flow.SingleModuleFlow.compile(SingleModuleFlow.java:31)
    at weblogic.application.compiler.FlowDriver$FlowStateChange.next(FlowDriver.java:69)
    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26)
    at weblogic.application.compiler.FlowDriver.nextState(FlowDriver.java:36
    at weblogic.application.compiler.FlowDriver.run(FlowDriver.java:26)
    at weblogic.application.compiler.EJBCompiler.compile(EJBCompiler.java:25
    at weblogic.application.compiler.flow.AppCompilerFlow.compileInput(AppCompilerFlow.java:118)
    at weblogic.application.compiler.flow.AppCompilerFlow.compile(AppCompilerFlow.java:43)
    at weblogic.application.compiler.FlowDriver$FlowStateChange.next(FlowDriver.java:69)
    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26)
    at weblogic.application.compiler.FlowDriver.nextState(FlowDriver.java:36
    at weblogic.application.compiler.FlowDriver.run(FlowDriver.java:26)
    at weblogic.application.compiler.Appc.runBody(Appc.java:172)
    at weblogic.utils.compiler.Tool.run(Tool.java:158)
    at weblogic.utils.compiler.Tool.run(Tool.java:115)
    at weblogic.application.compiler.Appc.main(Appc.java:183)
    at weblogic.appc.main(appc.java:14)
    Caused by: com.bea.xml.XmlException: weblogic.descriptor.BeanAlreadyExistsExcept
    ion: Bean already exists: "weblogic.j2ee.descriptor.SessionBeanBeanImpl@3eb8f669
    (//Sessions[<!DOCTYPE ejb-jar PUBLIC '-..Sun Microsystems, Inc...DTD Enterprise
    JavaBeans 2.0..EN' 'http:..java.sun.com.dtd.ejb-jar_2_0.dtd'> <ejb-jar> <enterpr
    ise-beans> <session> <ejb-name>com.matrix.clientmanager.ejb.LoginDocHome<.ejb-na
    me> <home>com.matrix.clientmanager.ejb.LoginEjbHome<.home> <remote>com.matrix.cl
    ientmanager.ejb.LoginEjbRemoteIf<.remote> <ejb-class>com.matrix.clientmanager.ej
    b.LoginEjb<.ejb-class> <session-type>Stateless<.session-type> <transaction-type>
    Bean<.transaction-type> <.session> <session> <ejb-name>com.matrix.clientmanager.
    ejb.GroupMaintenanceDocHome<.ejb-name> <home>com.matrix.clientmanager.ejb.GroupM
    aintenanceEjbHome<.home> <remote>com.matrix.clientmanager.ejb.GroupMaintenanceEj
    bRemoteIf<.remote> <ejb-class>com.matrix.clientmanager.ejb.GroupMaintenanceEjb<.
    ejb-class> <session-type>Stateless<.session-type> <transaction-type>Bean<.transa
    ction-type> <.session> <session> <ejb-name>com.matrix.clientmanager.ejb.StatusTr
    eeDocHome<.ejb-name> <home>com.matrix.clientmanager.ejb.StatusTreeEjbHome<.home>
    <remote>com.matrix.clientmanager.ejb.StatusTreeEjbRemoteIf<.remote> <ejb-class>
    com.matrix.clientmanager.ejb.StatusTreeEjb<.ejb-class> <session-type>Stateless<.
    session-type> <transaction-type>Bean<.transaction-type> <.session> <session> <ej
    b-name>com.matrix.clientmanager.ejb.ChangeStatusDocHome<.ejb-name> <home>com.mat
    rix.clientmanager.ejb.ChangeStatusEjbHome<.home> <remote>com.matrix.clientmanage
    r.ejb.ChangeStatusEjbRemoteIf<.remote> <ejb-class>com.matrix.clientmanager.ejb.C
    hangeStatusEjb<.ejb-class> <session-type>Stateless<.session-type> <transaction-t
    ype>Bean<.transaction-type> <.session> <session> <ejb-name>com.matrix.clientmana
    ger.ejb.EmployeeDocHome<.ejb-name> <home>com.matrix.clientmanager.ejb.EmployeeEj
    bHome<.home> <remote>com.matrix.clientmanager.ejb.EmployeeEjbRemoteIf<.remote> <
    ejb-class>com.matrix.clientmanager.ejb.EmployeeEjb<.ejb-class> <session-type>Sta
    teless<.session-type> <transaction-type>Bean<.transaction-type> <.session> <sess
    ion> <ejb-name>com.matrix.clientmanager.ejb.RoleScreenMappingDocHome<.ejb-name>
    <home>com.matrix.clientmanager.ejb.RoleScreenMappingEjbHome<.home> <remote>com.m
    atrix.clientmanager.ejb.RoleScreenMappingEjbRemoteIf<.remote> <ejb-class>com.mat
    rix.clientmanager.ejb.RoleScreenMappingEjb<.ejb-class> <session-type>Stateless<.
    session-type> <transaction-type>Bean<.transaction-type> <.session> <session> <ej
    b-name>com.matrix.clientmanager.ejb.StatusLibraryDocHome<.ejb-name> <home>com.ma
    trix.clientmanager.ejb.StatusLibraryEjbHome<.home> <remote>com.matrix.clientmana
    ger.ejb.StatusLibraryEjbRemoteIf<.remote> <ejb-class>com.matrix.clientmanager.ej
    b.StatusLibraryEjb<.ejb-class> <session-type>Stateless<.session-type> <transacti
    on-type>Bean<.transaction-type> <.session> <session> <ejb-name>com.matrix.client
    manager.ejb.LetterGroupDocHome<.ejb-name> <home>com.matrix.clientmanager.ejb.Let
    terGroupEjbHome<.home> <remote>com.matrix.clientmanager.ejb.LetterGroupEjbRemote
    If<.remote> <ejb-class>com.matrix.clientmanager.ejb.LetterGroupEjb<.ejb-class> <
    session-type>Stateless<.session-type> <transaction-type>Bean<.transaction-type>
    <.session> <session> <ejb-name>com.matrix.clientmanage])"
    at com.bea.staxb.runtime.internal.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:54)
    at com.bea.staxb.runtime.internal.RuntimeBindingType$BeanRuntimeProperty
    .setValue(RuntimeBindingType.java:483)
    at com.bea.staxb.runtime.internal.AttributeRuntimeBindingType$QNameRunti
    meProperty.fillCollection(AttributeRuntimeBindingType.java:385)
    at com.bea.staxb.runtime.internal.MultiIntermediary.getFinalValue(MultiIntermediary.java:52)
    at com.bea.staxb.runtime.internal.AttributeRuntimeBindingType.getFinalOb
    jectFromIntermediary(AttributeRuntimeBindingType.java:145)
    at com.bea.staxb.runtime.internal.LiteralUnmarshalResult.unmarshalElemen
    tProperty(LiteralUnmarshalResult.java:159)
    at com.bea.staxb.runtime.internal.LiteralUnmarshalResult.extractAndFillE
    lementProp(LiteralUnmarshalResult.java:130)
    at com.bea.staxb.runtime.internal.ByNameUnmarshaller.deserializeContents
    (ByNameUnmarshaller.java:51)
    at com.bea.staxb.runtime.internal.AttributeUnmarshaller.unmarshalIntoInt
    ermediary(AttributeUnmarshaller.java:47)
    at com.bea.staxb.runtime.internal.UnmarshalResult.unmarshalBindingType(U
    nmarshalResult.java:184)
    at com.bea.staxb.runtime.internal.UnmarshalResult.unmarshalDocument(UnmarshalResult.java:154)
    at com.bea.staxb.runtime.internal.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:65)
    at weblogic.descriptor.internal.MarshallerFactory$1.createDescriptor(MarshallerFactory.java:141)
    ... 33 more
    Edited by: [email protected] on Mar 17, 2009 10:25 AM

    This exception is caused due to duplicate entries of the bean (TaskServiceBean) in CompositeServices\OrderApprovalHumanTask\public_html\WEB-INF\weblogic.xml file in WebLogicFusionOrderDemo project. Replace this file with the original one in the downloaded project zip and the application deploys successfully.

  • Weblogic.appc slow

    Hi all
    we are trying to precompile all our jsp in order to avoid delays in production due to jsp compiling. We are using weblogic.appc. We have 3500 jsps (some generating errors) and therefore are running appc with the -k option. With this option appc is instantiating a jspc for each jsp and therefore it's extremely slow. Is there a way to force appc to compile all jsps in a single process keeping the option to continue on errors?
    thanks

    hi user561095
    It doesn't seem to take "10-15 min" in this demo:
    "Deploying the SRDemo ADF Application to WeblLogic Server"
    http://download.oracle.com/otn_hosted_doc/jdeveloper/11/demos/wls/wls.html
    Are you doing something similar?
    (tip : You can use "Your Control Panel" to make your name visible in forum posts.)
    regards
    Jan Vervecken

  • Warning codes generated in UCCHECK   - Technical Upgrade - 4.0b to ECC 6.0

    Hi SDN'ers ,
    I am currently working on Technical Upgrade project from 4.0 b system to ECC 6.0 system . I am facing a
    problem relating to the analysis of the warnings displayed whehn we run the UCCHECK for the client inventory by
    checking the "Display lines that cannot be analyzed statically" option under the Selection-screen block
    "Statements that cannot be analyzed statically" .Based on the warning codes generated during UCCHECK, they can
    be classified into 12 different categories given below in the list ( Viz. ABB,MESSAGEG!C,MESSAGEG!D......MESSAGEG!P).The same are given below in the end
    I want to know
    - Which are the warning codes which need resolution so that the program does not encounter any runtime
    errors or during Integration testing ?
    - Do all the offset related errors (For example ;variable A = B+offset(length)
    or  variable A+offset(length) = B ) need resolution so that the program gives no runtime error.
    - Also, do all statements where length is calculated using STRLEN also need changes ? I have seen offset length related warnings come under MESSAGEG!M warning code.
    The objective of this is to make sure that the upgraded system ECC 6.0 in Australia ,when rolled out to
    non-English speaking geographies in APAc such as Malaysia,Japan or China would only need translations and no ABAP Coding effort even when using languages such as Japanese which have double byte characters.
    S.No.     Error Code     Message
    1     ABB     Syntax Check Aborted
         ABB Total     
    2     MESSAGEG!C      check at runtime. at runtime.
               statement because of untyped or generic operands. It can only carry out this
              The system could not perform a static convertibility check on the current
         MESSAGEG!C Total     
    3     MESSAGEG!D      out this check at runtime. It can only carry out this check at runtime.
               to a table line because of untyped or generic operands. It can only carry out
              The system could not perform a static check on convertibility from a work area
         MESSAGEG!D Total     
    4     MESSAGEG!E      check at runtime. at runtime.
               defined by a "DATA" statement. .
               statement because of untyped or generic operands. It can only carry out this
              Field "ELEMENTN" is unknown. It is neither in one of the specified tables nor
              The system could not perform a static comparability check on the current
         MESSAGEG!E Total     
    5     MESSAGEG!F      operand "<FELD1>" for the current statement. .
         MESSAGEG!F Total     
    6     MESSAGEG!G      current statement on incompletely typed operand "<DATA>". .
         MESSAGEG!G Total     
    7     MESSAGEG!H      for the incompletely typed operand "<S>". . - - - - - - - - -
              The system cannot perform a static check on a character-type field data type
         MESSAGEG!H Total     
    8     MESSAGEG!I      incompletely-typed operand "<A>" in the current statement. .
              The system cannot perform a static check on a character-type data type for the
         MESSAGEG!I Total     
    9     MESSAGEG!J      "<%_1_SYSINI>" in the current statement to check whether the operand can be
              The system cannot perform a static check on incompletely-typed operand "VALUE"
         MESSAGEG!J Total     
    Early response wil be highly appreciated.

    Hi Karthik
    >
    > 1) SPDD adjustments are done in which phase? PREPARE or UPGRADE?
    >
    SPDD is done in Upgrade ->Phase ACT_700
    > 2) Are here special cases where the adjustments need to be done before running the UPGRADE phase?
    >
    At ACT_700 phase stop the upgrade and take a backup of the DB and the PUT<DIR> before starting the SPDD activity.
    Make sure there are no pending tp request.  Either release them or delete them.
    All phase need to be completed successfully in PREPARE, before starting UPGRADE
    Cheers
    Shaji
    Edited by: Shaji Jacob on May 5, 2008 9:23 PM

  • Warning codes generated in UCCHECK

    Hi SDN'ers ,
    I am currently working on Technical Upgrade project from 4.0 b system to ECC 6.0 system . I am facing a
    problem relating to the analysis of the warnings displayed whehn we run the UCCHECK for the client inventory by
    checking the "Display lines that cannot be analyzed statically" option under the Selection-screen block
    "Statements that cannot be analyzed statically" .Based on the warning codes generated during UCCHECK, they can
    be classified into 12 different categories given below in the list ( Viz. ABB,MESSAGEG!C,MESSAGEG!D......MESSAGEG!P).The same are given below in the end
    I want to know
    - Which are the warning codes which need resolution so that the program does not encounter any runtime
    errors or during Integration testing ?
    - Do all the offset related errors (For example ;variable A = B+offset(length)
    or  variable A+offset(length) = B ) need resolution so that the program gives no runtime error.
    - Also, do all statements where length is calculated using STRLEN also need changes ? I have seen offset length related warnings come under MESSAGEG!M warning code.
    The objective of this is to make sure that the upgraded system ECC 6.0 in Australia ,when rolled out to
    non-English speaking geographies in APAc such as Malaysia,Japan or China would only need translations and no ABAP Coding effort even when using languages such as Japanese which have double byte characters.
    S.No.     Error Code     Message
    1     ABB     Syntax Check Aborted
         ABB Total     
    2     MESSAGEG!C      check at runtime. at runtime.
               statement because of untyped or generic operands. It can only carry out this
              The system could not perform a static convertibility check on the current
         MESSAGEG!C Total     
    3     MESSAGEG!D      out this check at runtime. It can only carry out this check at runtime.
               to a table line because of untyped or generic operands. It can only carry out
              The system could not perform a static check on convertibility from a work area
         MESSAGEG!D Total     
    4     MESSAGEG!E      check at runtime. at runtime.
               defined by a "DATA" statement. .
               statement because of untyped or generic operands. It can only carry out this
              Field "ELEMENTN" is unknown. It is neither in one of the specified tables nor
              The system could not perform a static comparability check on the current
         MESSAGEG!E Total     
    5     MESSAGEG!F      operand "<FELD1>" for the current statement. .
         MESSAGEG!F Total     
    6     MESSAGEG!G      current statement on incompletely typed operand "<DATA>". .
         MESSAGEG!G Total     
    7     MESSAGEG!H      for the incompletely typed operand "<S>". . - - - - - - - - -
              The system cannot perform a static check on a character-type field data type
         MESSAGEG!H Total     
    8     MESSAGEG!I      incompletely-typed operand "<A>" in the current statement. .
              The system cannot perform a static check on a character-type data type for the
         MESSAGEG!I Total     
    9     MESSAGEG!J      "<%_1_SYSINI>" in the current statement to check whether the operand can be
              The system cannot perform a static check on incompletely-typed operand "VALUE"
         MESSAGEG!J Total     
    Early response wil be highly appreciated.
    10     MESSAGEG!K      "<F_YEAR>" in the current statement to check whether the operand can be
              The system cannot perform a static check for incompletely-typed operand "WINY2"
         MESSAGEG!K Total     
    11     MESSAGEG!M      .
               at runtime. .
               check will take place at runtime. .
               entries for operand "<F_SOURCE>(2)". This check will take place at runtime. .
               entries for operand "<F_SOURCE>+2(2)". This check will take place at runtime.
              The system cannot perform a static check on the validity of the offset/length
         MESSAGEG!M Total     
    12     MESSAGEG!P      out this check at runtime. at runtime.
               statement because of untyped or generic operands. The system can only carry
              The system could not perform a static compatibility check on the current
         MESSAGEG!P Total     
         Grand Total

    Hi Monica,
                 as bhaskar said no need to worry about warnings.
    warnings will not lead to dump. only runtime errors will lead to dump.
    if the system is unicode, remediate the objects without errors.
    we can observe mainly,
    open dataset, structure incompatibilty, offset, in byte or char mode etc
    thanks
    vinod

  • Code generate report in excel format from portal(Application Server)

    Hi all
    Please give some solution with code generate report in excel format from
    oracle portal(Application Server).

    Not feasible.
    Why? Because "the Excel format" is a binary and proprietary Microsoft file format. And writing a generator to generate Excel files will be complex, and resource expensive. In the vast majority of cases this will not be justified.
    As an alternative the very basic Microsoft XML office format can be used. But note that this is not a a ISO standard (it has been shot down in flames) - and effort and resources for that would be better spend on the Open Document XML standard (which very likely will be ratified as the ISO standard instead).
    Of course, you could have meant a CSV file - in which case, you need to play close attention to details. CSV is not an Excel format. A software designers and developers, our success is determined by attention to technical detail. In which case you are not paying any attention to technical detail by confusing CSV with Excel.

  • How do I make this code generate a new pro when the "NEXT" button is pushed

    How do I make this code generate a new set of problem when the "NEXT" Button is pushed
    * To change this template, choose Tools | Templates
    * and open the template in the editor.
    /* Figure out how to create a new set of problms
    * Type a list of specifications, include a list of test cases
    * DONE :]
    package javaapplication1;
    import java.awt.GridLayout;
    import java.awt.Window;
    import javax.swing.*;
    import java.awt.event.*;
    * @author Baba Akinlolu -
    class Grid extends JFrame{
        int done = 0;
        final int score = 0;
        final int total = 0;           
            //Create Panels
            JPanel p2 = new JPanel();
            JPanel p3 = new JPanel();
            final JPanel p1 = new JPanel();
            //Create Radio buttons & group them
            ButtonGroup group = new ButtonGroup();
            final JRadioButton ADD = new JRadioButton("Addition");
            final JRadioButton SUB = new JRadioButton("Subtraction");
            final JRadioButton MUL = new JRadioButton("Multiplication");
            final JRadioButton DIV = new JRadioButton("Division");
            //Create buttons
            JButton NEXT = new JButton("NEXT");
            JButton END = new JButton("End");
            //Create Labels
            JLabel l1 = new JLabel("First num");
            JLabel l2 = new JLabel("Second num");
            JLabel l3 = new JLabel("Answer:");
            JLabel l4 = new JLabel("Score:");
            final JLabel l5 = new JLabel("");
            JLabel l6 = new JLabel("/");
            final JLabel l7 = new JLabel("");
            //Create Textfields
            final JTextField number = new JTextField(Generator1());
            final JTextField number2 = new JTextField(Generator1());
            final JTextField answer = new JTextField(5);
        Grid(){
            setLayout(new GridLayout(4, 4, 2 , 2));
            p2.add(ADD);
            p2.add(SUB);
            group.add(ADD);
            group.add(SUB);
            group.add(MUL);
            group.add(DIV);
            p2.add(ADD);
            p2.add(SUB);
            p2.add(DIV);
            p2.add(MUL);
            //Add to panels
            p1.add(l1);
            p1.add(number);
            p1.add(l2);
            p1.add(number2);
            p1.add(l3);
            p1.add(answer);
            p1.add(l4);
            p1.add(l5);
            p1.add(l6);
            p1.add(l7);
            p3.add(NEXT);
            p3.add(END);
            //Add panels
            add(p2);
            add(p1);
            add(p3);
            //Create Listners
            Listeners();
    void Listeners(){
          NEXT.addActionListener(new ActionListener() {
          public void actionPerformed(ActionEvent e) {
             int answer1 = 0;
             //Grab the numbers entered
             int numm1 = Integer.parseInt(number.getText());
             int numm2 = Integer.parseInt(number2.getText());
             int nummsanswer = Integer.parseInt(answer.getText());
             //Set the score and total into new variabls
             int nummscore = score;
             int nummtotal = total;
             //Check if the add radio button is selected if so add
             if (ADD.isSelected() == true){
                 answer1 = numm1 + numm2;
             //otherwise check if the subtract button is selected if so subtract
             else if (SUB.isSelected() == true){
                 answer1 = numm1 - numm2;
             //check if the multiplication button is selected if so multiply
             else if (MUL.isSelected() == true){
                 answer1 = numm1 * numm2;
             //check if the division button is selected if so divide
             else if (DIV.isSelected() == true){
                 answer1 = numm1 / numm2;
             //If the answer user entered is the same with th true answer
             if (nummsanswer == answer1){
                 //add to the total and score
                 nummtotal += 1;
                 nummscore += 1;
                 //Convert the input back to String
                 String newscore = String.valueOf(nummscore);
                 String newtotal = String.valueOf(nummtotal);
                 //Set the text
                 l5.setText(newscore);
                 l7.setText(newtotal);
             //Otherwise just increase the total counter
             else {
                 nummtotal += 1;
                 String newtotal = String.valueOf(nummtotal);
                 l7.setText(newtotal);
      //Create End listener
    END.addActionListener(new ActionListener() {
          public void actionPerformed(ActionEvent e) {
            // get the root window and call dispose on it
            Window win = SwingUtilities.getWindowAncestor(p1);
            win.dispose();
    //new Grid();
    String Generator1(){
         int randomnum;
         randomnum = (1 + (int)(Math.random() * 100));
         String randomnumm = String.valueOf(randomnum);
         return randomnumm;
    public class Main {
         * @param args the command line arguments
        public static void main(String[] args) {
            // TODO code application logic here
            JFrame frame = new Grid();
            frame.setTitle("Flashcard Testing");
            frame.setSize(500, 200);
            frame.setLocationRelativeTo(null);
            frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            frame.setVisible(true);
    }Edited by: SirSaula on Dec 7, 2009 10:17 AM

    Not only are you continuing to post in the wrong forum but now you are multiposting: [http://forums.sun.com/thread.jspa?threadID=5418935]
    If people haven't answered you other posting its probably because we don't understand the question. Quit cluttering the forum by asking the same question over and over and then next time you have a new question post it in the proper forum. Your first posting was moved becuase you didn't post it properly.

  • Tax entered incorrect (code 5A, amount 0), correct 113 YEN. Message no. FF7

    Hi Experts,
    We are usnig a Tax Code 5A, which is of 5%. Its a Input Tax Code and has "Check" marked on Check ID field in the Tax Code's Porpoerties Part.
    We are trying to posting a document in F-02, and we are manually putting the Tax Amount in the same GL which is assigned to Tax Code 5A.
    i guess it should accept the amount which have put manually without poping the error mentioned below :
    Tax entered incorrect (code 5A, amount              0), correct            113 YEN. Message no. FF707
    Now, more surpirsing is in Prduction server the document got posted and in the Development server the error is thrown.
    Experts, please help, since the Client have put forward this question to us.

    Hi,
    If you want a warning instead of error message, you have to modify tax code properties (transaction FTXP) unflag indicator 'CheckID' in tax code properties.
    Also field 'Tol.per.rate' in FTXP in propertiees of the tax code is tolerance percentage authorized foe amount entered in the invoice and the SAP calculation. Usually, we put '0,1' in this field cause you can have small differences beween vendor invoice tax amount and SAP calculation.
    Regards,
    Gaurav

Maybe you are looking for

  • Solman 7.1 - CRM WebClient UI - custom field mandatory on status change

    Hi I've got a question and I'm not sure if it's possible. Basically i have created a custom field in CRM WebClient UI and I have added this field to my Z configuration. This works fine. Now, I'm wanting to make an error to appear if this field is bla

  • CRM function module to update the attribute in the classification TAB of BP

    Hi All, Can any body let me know if there is any functionmodule to update the CRM function module to update the attribute in the classification TAB of BP tcode. I have searched a lot i get FM to update the marketing attribute and not the attributes i

  • Iphone4 synced with another itunes library

    I have been issued with a new iphone 4 from my company which had been activated on a works pc/itunes library. I now wish to sync with my itunes account to download my books, music and films but get this warning message " this iphone is synced with an

  • How to review my acount without Credi Card

    Hello I have account on Itunes but how to review this without Credit Cart because i dont have Credi Card Account. Thank and Respect.

  • Managing deploy list with multiple .properties

    During the development process I and other engineers list the individual beans in the weblogic.properties' weblogic.ejb.deploy= list. We do this rather than create one big jar to deploy because it allows for quicker turnaround. The problem is that we