Migrating 11i java custom VO to 12.1.1

Hello,
Can we migrate the custom 11i VO to R12 [12.1.1]?
We have the jpx file with the substitutions and the custom VO, VORow and VORowImpl class files with us that worked for 11i.
Can simply moving the xml and class files to the new R12 JAVA_TOP, jpx importing the old jpx file and bouncing apache make it work?
Thanks.

What I do is, whenever I post a question, and I get answer by myself, then I post message to that thread. This facilitates other people who may stuck in future and come to forum for searching.
People just post here and they never come back again, after their problem get solved.

Similar Messages

  • Unable to open java custom form in R12 instance

    Dear friends,
    I am unable to open java custom form from front end.
    Navigation as follows:
    SYSTEM ADMINISTRATOR --> UM_SHIPPING --> ORDERS LOOKUP.
    Can anyone please look into the issue please.
    The error as follows:
    Error page
    you have encountered an unexpected error. please contact the system administrator for assistance.
    Thanks,

    I am unable to open java custom form from front end.
    Navigation as follows:
    SYSTEM ADMINISTRATOR --> UM_SHIPPING --> ORDERS LOOKUP.Was this working before? If yes, any changes been done recently?
    Did you follow the steps in (What Setup is Required to Create Custom JSP Pages to Run on the Ebusiness Suite 11i and R12+? [ID 884200.1])?
    Can anyone please look into the issue please.
    The error as follows:
    Error page
    you have encountered an unexpected error. please contact the system administrator for assistance.Please check Apache log files for details about the error. Please also check if any errors are reported in the database log file.
    Thanks,
    Hussein

  • How to create a user in UME Database using web dynpro java custom application

    Hi,
    Can you please suggest me how to create a user in UME Database using web dynpro java custom application.
    My Requirement is user can register his/her user id in SAP Portal 7.3 UME database.
    Please suggest me.
    Thanks and Regards,
    Amit

    Hi Amit,
    Generated Documentation (Untitled)
    This is what you're looking for, there's no real cook-book -- though Amey mentioned there might be some material on SDN, perhaps some tutorials.
    You should be looking into com.sap.security.api.IUserFactory, methods newUser(String) which gives you and IUserMaint and commitUser(IUserMaint, IUserAccount) -- IUserAccount can be obtained using com.sap.security.api.IUserAccountFactory, method newUserAccount(String)
    Hope it helps,
    D.

  • How can i get "CRM JAVA CUSTOMER PROJECT 5.0"

    Guys... how can i download the "CRM JAVA CUSTOMER PROJECT 5.0" package

    Hello Christopher,
    We are having difficulties in finding "CRM JAVA CUSTOMER PROJECT 5.0" too.
    Could you please tell how to re-create the Software Component association?
    Thanks and Regards,
    Reena

  • "CRM JAVA CUSTOMER PROJECT 5.0"

    Where can i get the "CRM JAVA CUSTOMER PROJECT 5.0" package

    Hello, Christopher!
    According to Note 669669 we have to import CRContent.zip and Delta.zip . We have to import CIMModel.zip only if current version of model is too old for Delta. I had imported CRContent and Delta successfully and Delta didn't ask me for update CIMModel. So questions are:
    1) have I to import CIMModel anyway?
    2) how to recreate Software Accossiation for CRM JAVA CUSTOMER PROJECT? - this is main question
    Hope you will help me.
    P.S. sorry for my English
    Regards, Lev.

  • Installing java custom tag

    I'm trying to install a custom tag written in java
    (cfx_ExcelQuery) and am not having any success.
    The tag was in a .jar file which I downloaded to the server
    and extracted to the /classes subdirectory. The actual .class file
    ended up in a subdirectory several levels below.
    I registered the tag as ExcelQuery and wrote a test program
    to call the tag according to the specs.
    I got a CF error indicating the tag didn't exist until I
    added the directory path containing the .class file (the exact
    subdirectory). Now I get an internal server error instead (progress
    I guess).
    I have no experience installing/using java custom tags so I
    may be missing something that would be obvious to someone else.
    If anyone has any ideas please let me know.
    Thanks,
    Ken

    I got this error:
    Error processing CFX custom tag CFX_net.sourceforge.openxcf.javacfx.text2query. 
    The CFX custom tag CFX_net.sourceforge.openxcf.javacfx.text2query was not found in the custom tag database. You must add custom tags to the database before using them. If you have added your tag to the database, check the spelling of the tag within your template to ensure that it matches the database entry. 
    The error occurred in C:\Inetpub\wwwroot\scratch\DataLoad\checkGradData_NEW_July.cfm: line 191
    189 :                                         
    190 :      <cfx_text2Query
    191 :       file="#FeedPath##FileName#"
    192 :       firstRowIsHeader="false"
    193 :       delimiter="#chr(9)#"

  • Where we can use ClearUserInput - Java Custom command?

    Hi,
    Where we can use ClearUserInput - Java Custom command? If anybody has used this command please let us know the respective scenario in detail.
    Thanks

    Clear user input—Clears user-input values and returns to the original calculated or loaded
    value. The following code retrieves baseline loaded values
    ConstraintSolver.MyRule.classname=com.interlacesystems.rules.ClearUserI
    nput
    ConstraintSolver.MyRule.description=Clear Measures from DriveDemand cube
    ConstraintSolver.MyRule.Cube=DriveDemand
    ConstraintSolver.MyRule.Measures=MS DEMAND,MS DRIVE DEMAND
    In this example, the classname is com.interlacesystems.rules.ClearUserInput
    and the parameters are cube and measures.
    This is input into the \custom\config\site.properties file and invoked from an isadmin command alter system solve constraint using rule "MyRule"

  • Oracle 11i Java Framework - Need an expert $$$ Quoting Custom "product"

    Please reply to [email protected]

    Post it in OA Framework
    OA Framework
    Are you on 11.5.10?, I guess Quoting is not on OA Framework in 11.5.10

  • Migrating Webdynpro Java DC to Netweaver 7.0 to 7.3 getting the errors

    Hi
    We are migrating the portal ep 7.0 to ep 7.3 our custom webdynpro java dc imported from the nwds 7.3 getting the errors
    Portal version EP 7.3 ehp1
    NWDS 7.3 version  7.3 SP07 PAT0007
    Please find below the screen shot gen_wdp package getting the errors only
    Thanks
    Srinivas

    Hi Jun,
    using the NWDS latest version nwds-extsoa-7.3-EHP1-SP12-PAT0001-win32 still getting the same issue.
    now we are using NEWCUST 7.3 Portal Track in EP development portal 7.0  
    and follow the sap note 0001572743 and below the sc files placed into the CMS inbox (Portal EP7.0 server)
    path: <drive>:\usr\sap\JTrans\CMS\inbox.
    Web Dynpro software componets
    COMP_BUILDT
    ECM-CORE
    ENGFACADE
    ENGINEAPI
    ESCONF_BUILDT
    FRAMEWORK
    MOIN_BUILDT
    SAP_BUILDT
    WD-RUNTIME
    above the dependency SCA files are showing the Not executed State.
    Kindly please give me suggestions
    EP 7.0 DevelopmentInfrastructure screen shot
    Thanks
    Srinivas

  • OBIEE 10g Java Custom Authenticator

    I've scoured the web and these forums and I think I know the answer, but I'll ask anyways.
    I need to write a custom authenticator. I want to write it in Java if I can. I see there is an 'obicustomauthenticator.jar' in /OracleBI/web/sdk. Any chance I can use that and hook it in so that I can avoid having to do this in C++? If so, how?
    Thanks in advance
    Andy O

    Turribeach wrote:
    I am under the impression that OBI doesn't support GROUPs very well in LDAP.Correct, but there are several options. Here is one way of getting group information from LDAP:
    http://oraclebizint.wordpress.com/2007/10/12/oracle-bi-ee-101332-and-oid-user-and-group-phase-2/
    Yup, saw that. Might just go with it as we're also considering migrating to OBI 11g in the not-too-distant future.
    IIRC, the SSO solution only passes USER info, not groups along w/ it so wrapping OBI w/ a thin Java Security webapp won't work.You can pass custom variables via SSO so you could potentially pass a variable with a concatenated list of groups and then break them up in rows in an Init Block.Hmm. Have any specifics re: that option? Would likely work as well for us, but I'm a bit unclear how you get other variables from SSO into OBI...

  • PO Interface migrate 11i to R12

    Hi All,
    We are migrating PO Standard (open) from 11i to R12.
    The questions are.
    1. How could we map PO_HEADERS_ALL in 11i to PO_HEADERS_INTERFACE in R12?
    same with, PO_LINES_ALL and PO_DISTRIBUTIONS_ALL in 11i to PO_LINES_INTERFACE, PO_DISTRIBUTIONS_INTERFACE.
    2. We run used the Import Standard Purchase Orders for the interfacing, we encountered error,
    here:
    ORA-20001: APP-PO-14142: PO_WF_BUILD_ACCOUNT_INIT.Start_Workflow-010: ORA-20001: START_WORKFLOW_EXCEPTION-0: PO_SHARED_PROC_PVT.get_ou_and_coa_from_inv_org
    Cause:        A SQL error has occurred in PO_WF_BUILD_ACCOUNT_INIT.Start_Workflow.  in Package po.plsql.PO_PDOI_DIST_PROCESS_PVT. Procedure default_dists.60
    ORA-20001: APP-PO-14142: PO_WF_BUILD_ACCOUNT_INIT.Start_Workflow-010: ORA-20001: START_WORKFLOW_EXCEPTION-0: PO_SHARED_PROC_PVT.get_ou_and_coa_from_inv_org
    Cause:        A SQL error has occurred in PO_WF_BUILD_ACCOUNT_INIT.Start_Workflow.  in Package po.plsql.PO_PDOI_MAINPROC_PVT. Procedure process_distributions.50
    ORA-20001: APP-PO-14142: PO_WF_BUILD_ACCOUNT_INIT.Start_Workflow-010: ORA-20001: START_WORKFLOW_EXCEPTION-0: PO_SHARED_PROC_PVT.get_ou_and_coa_from_inv_org
    Cause:        A SQL error has occurred in PO_WF_BUILD_ACCOUNT_INIT.Start_Workflow.  in Package po.plsql.PO_PDOI_MAINPROC_PVT. Procedure process.40
    ORA-20001: APP-PO-14142: PO_WF_BUILD_ACCOUNT_INIT.Start_Workflow-010: ORA-20001: START_WORKFLOW_EXCEPTION-0: PO_SHARED_PROC_PVT.get_ou_and_coa_from_inv_org
    Cause:        A SQL error has occurred in PO_WF_BUILD_ACCOUNT_INIT.Start_Workflow.  in Package po.plsql.PO_PDOI_PVT. Procedure start_process.110
    User-Defined Exception in Package po.plsql.PO_PDOI_Concurrent. Procedure POXPDOI.30
       Need your help.
    Thanks,
    alex cross

    Any help pls.

  • Migration of Fxcop Custom Rules to Visuatl Studio 2012

    I have an existing custom rule which was written in visual studio 2008 using fxocp SDK 1.35 and Microsoft.CCI 1.35. Now i am migrating it to latest version of Fxcop 11.0 and Microsoft .cci 11.0 using Vistual Studio 2012.
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    //using Microsoft.FxCop.Sdk.Introspection;
    //using Microsoft.Cci;
    using Microsoft.FxCop.Sdk;
    using System.Collections;
    using System.IO;
    namespace LDOFxCopCustomRules.Rules.Design
    class DisposableObjectsShouldBeDisposed : BaseDesignRules
    string sFileName = System.Configuration.ConfigurationSettings.AppSettings["FolderForOutput"] + "\\" + @"DisposableObjectsShouldBeDisposed.Xls";
    bool bDisplayErrors = String.IsNullOrEmpty(System.Configuration.ConfigurationSettings.AppSettings["FolderForOutput"]);
    //string sExceptionLogFileName = @"D:\RTE.txt";
    static string sLockString = "Lock";
    string sFormat = "{0}\t{1}\t{2}\t{3}\n";
    string sAssemblyName;
    string sClassName;
    string sLineNumber;
    // Fields
    private Hashtable m_fieldsOwnedByType;
    private Hashtable m_fieldsWithDispose;
    private Method m_method;
    // Methods
    public DisposableObjectsShouldBeDisposed()
    : base("DisposableObjectsShouldBeDisposed")
    this.m_fieldsWithDispose = new Hashtable();
    this.m_fieldsOwnedByType = new Hashtable();
    if (!bDisplayErrors && !File.Exists(sFileName))
    if (!bShowInAllReport)
    lock (sLockString)
    File.WriteAllText(sFileName, string.Format(sFormat, "Assembly", "Class", "Method (fully qualified name)", "Line number"));
    public override ProblemCollection Check(Member member)
    string sTemp = member.FullName;
    bool bFinally = false;
    bool bDataReader = false;
    bool bDisposedCalled = false;
    int nDataReaderCount = 0;
    Local oCheckLocal;
    Method oMethod = null;
    int nCurrent = 0;
    InstructionList oList = null;
    this.m_method = RuleUtilities.GetMethod(member);
    if (this.m_method == null)
    return null;
    this.m_fieldsWithDispose.Clear();
    this.m_fieldsOwnedByType.Clear();
    //if (!this.m_method.DeclaringType.IsAssignableTo(SystemTypes.IDisposable))
    // return null;
    //if (RuleUtilities.ExtendsControl(this.m_method.DeclaringType))
    // return null;
    //if (!RuleUtilities.IsDisposeBool(this.m_method) && (!RuleUtilities.IsDisposeMethod(this.m_method) || HasDisposeBoolMethod(this.m_method.DeclaringType)))
    // return null;
    if (this.m_method.DeclaringType.IsAssignableTo(SystemTypes.IDisposable))
    if (RuleUtilities.ExtendsControl(this.m_method.DeclaringType))
    return null;
    if (!RuleUtilities.IsDisposeBool(this.m_method) && (!RuleUtilities.IsDisposeMethod(this.m_method) || HasDisposeBoolMethod(this.m_method.DeclaringType)))
    return null;
    sClassName = m_method.DeclaringType.Name.Name;
    sAssemblyName = m_method.DeclaringType.DeclaringModule.ContainingAssembly.ModuleName;
    MemberList members = this.m_method.DeclaringType.Members;
    for (int i = 0; i < members.Length; i++)
    switch (members[i].NodeType)
    case NodeType.Field:
    Field field = members[i] as Field;
    if (!field.IsStatic && field.Type.IsAssignableTo(SystemTypes.IDisposable))
    this.m_fieldsWithDispose[field] = null;
    break;
    case NodeType.InstanceInitializer:
    case NodeType.Method:
    this.VisitMethod(members[i] as Method);
    break;
    new DisposeVisitor(this.m_fieldsWithDispose).Visit(this.m_method);
    if (this.m_fieldsWithDispose.Count > 0)
    foreach (Field field2 in this.m_fieldsWithDispose.Keys)
    if (this.m_fieldsOwnedByType.Contains(field2))
    string str = RuleUtilities.Format(this.m_method.DeclaringType);
    string str2 = RuleUtilities.Format(field2.Type);
    sLineNumber = field2.SourceContext.StartLine.ToString();
    Problem item = new Problem(base.GetResolution(new string[] { str, field2.Name.Name, str2 }), field2.Name.Name);
    if (bDisplayErrors)
    base.Problems.Add(item);
    else
    if (bShowInAllReport)
    lock (LockClass.objLockAllReport)
    File.AppendAllText(sSingleReportName, string.Format(sSingleReportFormat, sAssemblyName, sClassName, m_method.FullName, sLineNumber, "DisposableObjectsShouldBeDisposed"));
    else
    lock (sLockString)
    File.AppendAllText(sFileName, string.Format(sFormat, sAssemblyName, sClassName, m_method.FullName, sLineNumber));
    else
    if (member.NodeType == NodeType.Method)
    oMethod = member as Method;
    // The below block is to identify if any of the method's class is implemented from the interface IDataReader.
    // If that is the case, the method will be skipped and next method will be picked.
    // Ideally, this should be changed to scanning each class, skipping if it has implemented IDataReader and then
    // scan the methods for proper usage of IDataReader. But due to time constraints, this change is not done
    TypeNode typ = oMethod.DeclaringType;
    InterfaceList intList = typ.Interfaces; // get the list of interfaces of the class and check for IDataReader
    foreach (Interface intf in intList)
    if (intf.FullName.Contains("IDataReader"))
    return null;
    // Start the actual logic
    if (oMethod != null)
    oList = oMethod.Instructions;
    Instruction oInstruction;
    for (nCurrent = 0; nCurrent < oList.Length; nCurrent++)
    oInstruction = oList[nCurrent];
    if (oInstruction.OpCode == OpCode._Locals)
    LocalList oLocalList = oInstruction.Value as LocalList;
    int nCount = oLocalList.Length;
    for (int nIdx = 0; nIdx < nCount; nIdx++)
    if (oLocalList[nIdx].Type.Name.Name == "IDataReader")
    bDataReader = true;
    nDataReaderCount++;
    if (nDataReaderCount > 0)
    if (oInstruction.OpCode == OpCode._Finally)
    bFinally = true;
    if (bFinally)
    if (oInstruction.OpCode == OpCode.Callvirt)
    oCheckLocal = oList[nCurrent - 1].Value as Local;
    if (oCheckLocal != null && oCheckLocal.Type != null && oCheckLocal.Name != null && oCheckLocal.Type.Name.Name != null && oCheckLocal.Type.Name.Name == "IDataReader")
    bDisposedCalled = true;
    //nDataReaderCount--;
    // Microsoft.FxCop.Sdk.Problem oProblem = new Microsoft.FxCop.Sdk.Problem(base.GetResolution(sTemp1), oMethod.Name.Name);
    if (bDataReader && !bDisposedCalled)
    sClassName = oMethod.DeclaringType.Name.Name;
    sAssemblyName = oMethod.DeclaringType.DeclaringModule.ContainingAssembly.ModuleName;
    sLineNumber = nCurrent > 0 && nCurrent < oList.Length? oList[0].SourceContext.StartLine.ToString().Trim() : string.Empty;
    if (bDisplayErrors)
    Microsoft.FxCop.Sdk.Problem oProblem = new Microsoft.FxCop.Sdk.Problem(base.GetResolution(sTemp), sClassName);
    base.Problems.Add(oProblem);
    else
    if (bShowInAllReport)
    lock (LockClass.objLockAllReport)
    File.AppendAllText(sSingleReportName, string.Format(sSingleReportFormat, sAssemblyName, sClassName, m_method.FullName, sLineNumber, "DisposableObjectsShouldBeDisposed"));
    else
    lock (sLockString)
    File.AppendAllText(sFileName, string.Format(sFormat, sAssemblyName, sClassName, oMethod.FullName, sLineNumber));
    return base.Problems;
    private static bool HasDisposeBoolMethod(TypeNode type)
    MemberList members = type.Members;
    int num = 0;
    int length = members.Length;
    while (num < length)
    Method method = members[num] as Method;
    if ((method != null) && RuleUtilities.IsDisposeBool(method))
    return true;
    num++;
    return false;
    public override Statement VisitAssignmentStatement(AssignmentStatement assignment)
    MemberBinding target = assignment.Target as MemberBinding;
    if (target != null)
    Field boundMember = target.BoundMember as Field;
    if (((boundMember != null) && (boundMember.DeclaringType == this.m_method.DeclaringType)) && (assignment.Source is Construct))
    this.m_fieldsOwnedByType[boundMember] = null;
    return base.VisitAssignmentStatement(assignment);
    // Properties
    public override TargetVisibilities TargetVisibility
    get
    return TargetVisibilities.All;
    // Nested Types
    private class DisposeVisitor : StandardVisitor
    // Fields
    private Hashtable m_fieldsWithDispose;
    private Method m_method;
    private Hashtable m_recursionCache = new Hashtable();
    private Hashtable m_variableToFieldMap = new Hashtable();
    // Methods
    internal DisposeVisitor(Hashtable fieldsWithDispose)
    this.m_fieldsWithDispose = fieldsWithDispose;
    public override Statement VisitAssignmentStatement(AssignmentStatement assignment)
    Local target = assignment.Target as Local;
    if (target != null)
    MemberBinding source = assignment.Source as MemberBinding;
    if (source != null)
    Field boundMember = source.BoundMember as Field;
    if ((boundMember != null) && (boundMember.DeclaringType == this.m_method.DeclaringType))
    this.m_variableToFieldMap[target] = boundMember;
    return base.VisitAssignmentStatement(assignment);
    public override Method VisitMethod(Method method)
    this.m_method = method;
    return base.VisitMethod(method);
    public override Expression VisitMethodCall(MethodCall call)
    MemberBinding callee = call.Callee as MemberBinding;
    if (callee != null)
    Method boundMember = callee.BoundMember as Method;
    if (boundMember == null)
    return base.VisitMethodCall(call);
    MemberBinding targetObject = callee.TargetObject as MemberBinding;
    Field key = null;
    if (targetObject == null)
    Local local = callee.TargetObject as Local;
    if (local != null)
    key = this.m_variableToFieldMap[local] as Field;
    else
    key = targetObject.BoundMember as Field;
    if (((key != null) && this.m_fieldsWithDispose.ContainsKey(key)) && (((boundMember.Name.Name == "Dispose") || (boundMember.Name.Name == "Close")) || ((boundMember.Name.Name == "Clear") && boundMember.DeclaringType.IsAssignableTo(FrameworkTypes.HashAlgorithm))))
    this.m_fieldsWithDispose.Remove(key);
    else if ((boundMember.DeclaringType == this.m_method.DeclaringType) && !this.m_recursionCache.Contains(boundMember))
    this.m_recursionCache[boundMember] = null;
    this.VisitMethod(boundMember);
    return base.VisitMethodCall(call);
    Below errors are raised. Please let me know the solution
    1. Error 2 Inconsistent accessibility: base class 'Microsoft.FxCop.Sdk.StandardVisitor' is less accessible than class 'LDOFxCopCustomRules.Rules.Design.DisposableObjectsShouldBeDisposed.DisposeVisitor' D:\LDOFxCopCustomRules\DisposableObjectsShouldBeDisposed.cs 287 23 LDOFxCopCustomRules
    Error 3 'Microsoft.FxCop.Sdk.StandardVisitor' is inaccessible due to its protection level D:\LDOFxCopCustomRules\DisposableObjectsShouldBeDisposed.cs 287 40 LDOFxCopCustomRules
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    //using Microsoft.FxCop.Sdk.Introspection;
    //using Microsoft.Cci;
    using Microsoft.FxCop.Sdk;
    using System.Collections;
    using System.IO;
    namespace LDOFxCopCustomRules.Rules.Design
    class AvoidUnusedParameters : BaseDesignRules
    string sFileName = System.Configuration.ConfigurationSettings.AppSettings["FolderForOutput"] + "\\" + @"AvoidUnusedParameters.Xls";
    bool bDisplayErrors = String.IsNullOrEmpty(System.Configuration.ConfigurationSettings.AppSettings["FolderForOutput"]);
    //string sExceptionLogFileName = @"D:\RTE.txt";
    static string sLockString = "Lock";
    string sFormat = "{0}\t{1}\t{2}\t{3}\n";
    string sAssemblyName;
    string sClassName;
    string sLineNumber;
    private Hashtable m_parameterUsage;
    public AvoidUnusedParameters()
    : base("AvoidUnusedParameters")
    this.m_parameterUsage = new Hashtable();
    if (!bDisplayErrors && !File.Exists(sFileName))
    if (!bShowInAllReport)
    lock (sLockString)
    File.WriteAllText(sFileName, string.Format(sFormat, "Assembly", "Class", "Method (fully qualified name)", "Line number"));
    public override ProblemCollection Check(Member member)
    Method method = member as Method;
    if (!ShouldAnalyze(method))
    return null;
    this.m_parameterUsage.Clear();
    if (CallGraph.FunctionPointersFor(method).Length > 0)
    return null;
    if (method.DeclaringType.IsAssignableTo(SystemTypes.Delegate))
    return null;
    if (RuleUtilities.IsEventHandling(method))
    return null;
    if (RuleUtilities.IsVisualBasicModule(method.DeclaringType.DeclaringModule) && (method.Name.Name == "Dispose__Instance__"))
    return null;
    if (RuleUtilities.HasCustomAttribute(method, SystemTypes.ConditionalAttribute))
    return null;
    for (int i = 0; i < method.Instructions.Length; i++)
    switch (method.Instructions[i].OpCode)
    case OpCode.Ldarg_0:
    case OpCode.Ldarg_1:
    case OpCode.Ldarg_2:
    case OpCode.Ldarg_3:
    case OpCode.Ldarg_S:
    case OpCode.Ldarga_S:
    case OpCode.Ldarg:
    case OpCode.Ldarga:
    Parameter parameter = method.Instructions[i].Value as Parameter;
    this.m_parameterUsage[parameter] = null;
    break;
    sClassName = method.DeclaringType.Name.Name;
    sAssemblyName = method.DeclaringType.DeclaringModule.ContainingAssembly.ModuleName;
    sLineNumber = method.SourceContext.StartLine.ToString();
    for (int j = 0; j < method.Parameters.Length; j++)
    Parameter key = method.Parameters[j];
    if (!this.m_parameterUsage.ContainsKey(key))
    FixCategories breaking = FixCategories.Breaking;
    if (!method.IsVisibleOutsideAssembly)
    breaking = FixCategories.NonBreaking;
    string str = RuleUtilities.Format(method);
    string name = method.Parameters[j].Name.Name;
    Problem item = new Problem(base.GetResolution(new string[] { name, str }), name);
    item.FixCategory = breaking;
    if (bDisplayErrors)
    base.Problems.Add(item);
    else
    if (bShowInAllReport)
    lock (LockClass.objLockAllReport)
    File.AppendAllText(sSingleReportName, string.Format(sSingleReportFormat, sAssemblyName, sClassName, method.FullName, sLineNumber, "AvoidUnusedParameters"));
    else
    lock (sLockString)
    File.AppendAllText(sFileName, string.Format(sFormat, sAssemblyName, sClassName, method.FullName, sLineNumber));
    this.m_parameterUsage.Clear();
    return base.Problems;
    private static bool IsVSUnitTestInitializer(Method method)
    if ((method.IsStatic && (method.ReturnType == SystemTypes.Void)) && ((method.Parameters.Length == 1) && (method.Parameters[0].Type.Name.Name == "TestContext")))
    for (int i = 0; i < method.Attributes.Length; i++)
    AttributeNode node = method.Attributes[i];
    if ((node.Type.Name.Name == "AssemblyInitializeAttribute") || (node.Type.Name.Name == "ClassInitializeAttribute"))
    return true;
    return false;
    private static bool ShouldAnalyze(Method method)
    if (method == null)
    return false;
    if ((method.Parameters.Length == 0) && method.IsStatic)
    return false;
    if (method.IsVirtual)
    return false;
    if (method.IsExtern)
    return false;
    if (method.IsAbstract)
    return false;
    if (RuleUtilities.IsFinalizer(method))
    return false;
    if (method.Name.Name == "__ENCUpdateHandlers")
    return false;
    Module declaringModule = method.DeclaringType.DeclaringModule;
    if (method.Name.Name.StartsWith("__", StringComparison.Ordinal) && RuleUtilities.IsAspAssembly(declaringModule))
    return false;
    if (RuleUtilities.IsISerializableConstructor(method))
    return false;
    if (IsVSUnitTestInitializer(method))
    return false;
    if (RuleUtilities.MethodOrItsTypeMarkedWithGeneratedCode(method))
    return false;
    return true;
    // Properties
    public override TargetVisibilities TargetVisibility
    get
    return TargetVisibilities.All;
    Below Errors are raised
    Error 8 The name 'SystemTypes' does not exist in the current context D:\AvoidUnusedParameters.cs 53 49 LDOFxCopCustomRules
    Error 9 'Microsoft.FxCop.Sdk.RuleUtilities' does not contain a definition for 'IsVisualBasicModule' D:\AvoidUnusedParameters.cs 61 27 LDOFxCopCustomRules
    Error 11 'Microsoft.FxCop.Sdk.BaseIntrospectionRule.FixCategories' is a 'property' but is used like a 'type' D:\AvoidUnusedParameters.cs 98 17 LDOFxCopCustomRules
    Error 12 The best overloaded method match for 'Microsoft.FxCop.Sdk.RuleUtilities.Format(Microsoft.FxCop.Sdk.AttributeNode)' has some invalid arguments D:\AvoidUnusedParameters.cs 103 30 LDOFxCopCustomRules
    Error 13 Argument 1: cannot convert from 'Microsoft.FxCop.Sdk.Method' to 'Microsoft.FxCop.Sdk.AttributeNode' D:\AvoidUnusedParameters.cs 103 51 LDOFxCopCustomRules
    Error 14 The name 'SystemTypes' does not exist in the current context D:\AvoidUnusedParameters.cs 136 55 LDOFxCopCustomRules
    Error 16 The type or namespace name 'Module' could not be found (are you missing a using directive or an assembly reference?) D:\LDOFxCopCustomRules\AvoidUnusedParameters.cs 180 9 LDOFxCopCustomRules
    Error 17 'Microsoft.FxCop.Sdk.RuleUtilities' does not contain a definition for 'IsAspAssembly' D:\AvoidUnusedParameters.cs 181 90 LDOFxCopCustomRules
    Error 18 'Microsoft.FxCop.Sdk.RuleUtilities' does not contain a definition for 'MethodOrItsTypeMarkedWithGeneratedCode' D:\AvoidUnusedParameters.cs 193 27 LDOFxCopCustomRules

    Hi sathishkumarV,
    I am trying to involve someone familiar with this topic to further look at this issue. There might
    be some time delay. Appreciate your patience.
    Best Regards,
    Jack
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Sql server to Oracle migration using java

    I am doing a project in which i need to create a java application which migrates sql server(2000) db to oracle..kindly help me out

    Thanks for your help..i do not want any third party
    components..i am almost done with the tables
    migration and am trying to figure out about
    procedures..here is a code which does migrate
    tables...hope it helps you too!
    * Copyright Isocra Ltd 2004
    * You can use, modify and freely distribute this file
    as long as you credit Isocra Ltd.
    * There is no explicit or implied guarantee of
    functionality associated with this file, use it at
    your own risk.
    package com.isocra.util;
    import java.sql.DatabaseMetaData;
    import java.sql.Connection;
    import java.sql.DriverManager;
    import java.sql.ResultSet;
    import java.sql.SQLException;
    import java.sql.PreparedStatement;
    import java.sql.ResultSetMetaData;
    import java.util.Properties;
    import java.io.FileInputStream;
    import java.io.IOException;
    * This class connects to a database and dumps all
    the tables and contents out to stdout in the form
    of
    * a set of SQL executable statements
    ublic class db2sql {
    /** Dump the whole database to an SQL string */
    public static String dumpDB(Properties props) {
    String driverClassName =
    props.getProperty("driver.class");
    String driverURL =
    props.getProperty("driver.url");
    // Default to not having a quote character
    String columnNameQuote =
    props.getProperty("columnName.quoteChar", "");
    DatabaseMetaData dbMetaData = null;
    Connection dbConn = null;
    try {
    Class.forName(driverClassName);
    dbConn =
    DriverManager.getConnection(driverURL, props);
    dbMetaData = dbConn.getMetaData();
    catch( Exception e ) {
    System.err.println("Unable to connect to
    database: "+e);
    return null;
    try {
    StringBuffer result = new StringBuffer();
    String catalog =
    props.getProperty("catalog");
    String schema =
    props.getProperty("schemaPattern");
    String tables =
    props.getProperty("tableName");
    ResultSet rs =
    dbMetaData.getTables(catalog, schema, tables,
    null);
    if (! rs.next()) {
    System.err.println("Unable to find any tables
    matching: catalog="+catalog+" schema="+schema+"
    tables="+tables);
    rs.close();
    lse {
    // Right, we have some tables, so we
    can go to work.
    // the details we have are
    // TABLE_CAT String => table catalog (may be null)
    // TABLE_SCHEM String => table schema
    (may be null)
    // TABLE_NAME String => table name
    // TABLE_TYPE String => table type. Typical types
    are "TABLE", "VIEW", "SYSTEM TABLE", "GLOBAL
    TEMPORARY", "LOCAL TEMPORARY", "ALIAS", "SYNONYM".
    // REMARKS String => explanatory
    comment on the table
    // TYPE_CAT String => the types
    catalog (may be null)
    // TYPE_SCHEM String => the types
    schema (may be null)
    // TYPE_NAME String => type name (may
    be null)
    // SELF_REFERENCING_COL_NAME String
    => name of the designated "identifier" column of a
    typed table (may be null)
    // REF_GENERATION String => specifies
    how values in SELF_REFERENCING_COL_NAME are created.
    Values are "SYSTEM", "USER", "DERIVED". (may be
    null)
    // We will ignore the schema and
    stuff, because people might want to import it
    somewhere else
    // We will also ignore any tables
    that aren't of type TABLE for now.
    // We use a do-while because we've
    already caled rs.next to see if there are any rows
    do {
    String tableName = rs.getString("TABLE_NAME");
    String tableType =
    rs.getString("TABLE_TYPE");
    if
    ("TABLE".equalsIgnoreCase(tableType)) {
    result.append("\n\n--
    "+tableName);
    result.append("\nCREATE TABLE
    "+tableName+" (\n");
    ResultSet tableMetaData =
    dbMetaData.getColumns(null, null, tableName, "%");
    boolean firstLine = true;
    while (tableMetaData.next()) {
    if (firstLine) {
    firstLine = false;
    } else {
    // If we're not the first line, then finish
    the previous line with a comma
    result.append(",\n");
    String columnName =
    tableMetaData.getString("COLUMN_NAME");
    String columnType =
    tableMetaData.getString("TYPE_NAME");
    // WARNING: this may give
    daft answers for some types on some databases (eg
    JDBC-ODBC link)
    int columnSize =
    tableMetaData.getInt("COLUMN_SIZE");
    String nullable =
    tableMetaData.getString("IS_NULLABLE");
    String nullString =
    "NULL";
    if
    ("NO".equalsIgnoreCase(nullable)) {
    nullString = "NOT
    NULL";
    result.append("
    "+columnNameQuote+columnName+columnNameQuote+"
    "+columnType+" ("+columnSize+")"+" "+nullString);
    tableMetaData.close();
    // Now we need to put the
    primary key constraint
    try {
    ResultSet primaryKeys =
    dbMetaData.getPrimaryKeys(catalog, schema,
    tableName);
    // What we might get:
    // TABLE_CAT String => table catalog (may be null)
    // TABLE_SCHEM String =>
    table schema (may be null)
    // TABLE_NAME String =>
    table name
    // COLUMN_NAME String =>
    column name
    // KEY_SEQ short =>
    sequence number within primary key
    // PK_NAME String =>
    primary key name (may be null)
    String primaryKeyName =
    null;
    StringBuffer
    primaryKeyColumns = new StringBuffer();
    while
    (primaryKeys.next()) {
    String thisKeyName =
    primaryKeys.getString("PK_NAME");
    if ((thisKeyName !=
    null && primaryKeyName == null)
    ||
    (thisKeyName == null && primaryKeyName != null)
    ||
    (thisKeyName != null && !
    thisKeyName.equals(primaryKeyName))
    ||
    (primaryKeyName != null && !
    primaryKeyName.equals(thisKeyName))) {
    // the keynames
    aren't the same, so output all that we have so far
    (if anything)
    // and start a
    new primary key entry
    if
    (primaryKeyColumns.length() > 0) {
    // There's
    something to output
    esult.append(",\n PRIMARY KEY ");
    if
    (primaryKeyName != null) {
    result.append(primaryKeyName); }
    esult.append("("+primaryKeyColumns.toString()+")");
    // Start again with the new name
    primaryKeyColumns
    = new StringBuffer();
    primaryKeyName =
    thisKeyName;
    // Now append the column
    if
    (primaryKeyColumns.length() > 0) {
    rimaryKeyColumns.append(", ");
    primaryKeyColumns.append(primaryKeys.getString("COLUMN
    _NAME"));
    if (primaryKeyColumns.length() > 0) {
    // There's something
    to output
    result.append(",\n
    PRIMARY KEY ");
    if (primaryKeyName !=
    null) { result.append(primaryKeyName); }
    result.append("
    ("+primaryKeyColumns.toString()+")");
    tch (SQLException e) {
    // NB you will get this
    exception with the JDBC-ODBC link because it says
    // [Microsoft][ODBC
    Driver Manager] Driver does not support this
    function
    ystem.err.println("Unable to get primary keys for
    table "+tableName+" because "+e);
    result.append("\n);\n");
    // Right, we have a table, so
    we can go and dump it
    dumpTable(dbConn, result,
    tableName);
    hile (rs.next());
    rs.close();
    dbConn.close();
    return result.toString();
    } catch (SQLException e) {
    e.printStackTrace(); //To change body of catch
    statement use Options | File Templates.
    return null;
    /** dump this particular table to the string
    buffer */
    private static void dumpTable(Connection dbConn,
    StringBuffer result, String tableName) {
    try {
    // First we output the create table stuff
    PreparedStatement stmt =
    dbConn.prepareStatement("SELECT * FROM "+tableName);
    ResultSet rs = stmt.executeQuery();
    ResultSetMetaData metaData = rs.getMetaData();
    int columnCount =
    metaData.getColumnCount();
    // Now we can output the actual data
    result.append("\n\n-- Data for "+tableName+"\n");
    while (rs.next()) {
    result.append("INSERT INTO "+tableName+" VALUES
    for (int i=0; i<columnCount; i++) {
    if (i > 0) {
    result.append(", ");
    Object value = rs.getObject(i+1);
    if (value == null) {
    result.append("NULL");
    lse {
    String outputValue =
    value.toString();
    outputValue =
    outputValue.replaceAll("'","\\'");
    esult.append("'"+outputValue+"'");
    result.append(");\n");
    rs.close();
    stmt.close();
    } catch (SQLException e) {
    System.err.println("Unable to dump table
    "+tableName+" because: "+e);
    /** Main method takes arguments for connection to
    JDBC etc. */
    public static void main(String[] args) {
    if (args.length != 1) {
    System.err.println("usage: db2sql <property
    file>");
    // Right so there's one argument, we assume it's a
    property file
    // so lets open it
    Properties props = new Properties();
    try {
    props.load(new FileInputStream(args[0]));
    System.out.println(dumpDB(props));
    } catch (IOException e) {
    System.err.println("Unable to open
    property file: "+args[0]+" exception: "+e);
    }hi,
    Thanks i used your coding and it works well...
    i also used other thing i inserting the queries and values in another schema with primary and foreign keys.. it works well..
    but problem is i cannot retrieve the unique constraint and other check constraint..
    i cannot insert it..
    and also i cannot create table in order i create the original..
    because the retrieve query s values display based on ascending order i want display query in creation time...
    because when i foreign keys .. the references in available before i create the table..that means a(table name) followed b(table name) .. a(table name) has contain foreign key of b(table name) .. but b (table name) not yet to create .. is possible.. to retrieve based creation time...

  • Java Custom Function in BI Publisher

    Is it possible in BI Publisher to create a custom java function and call it in RTF template?
    Thank You

    Yes! It is possible to do so.
    https://blogs.oracle.com/xmlpublisher/entry/bip_extensions

  • Trouble migrating Crystal Reports Custom Functions from BOXI R2 to BOXI 3.1

    I can't seem to migrate the custom functions from the custom function repository in my R2 environment to the 3.1 with FP 1.3 environment.
    When I migrate Crystal Reports using the Import Wizard, they all come over and they retain their custom functions, however, they don't bring over or create a new custom function repository. 
    When I do run the import wizard I have selected the repository radio button, but it does not have any affect .
    How can I migrate all of these custom functions without having to manually open up reports and placing them back into the repository on the new server?
    Thanks,
    Randy

    Hi,
    so if they are published to Rel.2 this looks different.
    Just to clarify it a bit more...these Files are no Datasources for Reports and Universes and your Users dont consume them via InfoView?!
    Whats the purpose for these Files? If they have none, you can de- select them in the UMT and dont migrate them (or better said move them cause you wont actually migrate .csv files). But if nobody touches them, you can move them with the UMT during daily business...how long it will take i cant estimate it. But 65GB for .CSV files is a huge amount.
    But you are correct, to move them from Rel.2 to BI4 you have to use the UMT.
    If you have the ressources and time i would recommend the following (Thats what i usually do with my customers):
    1. Setup a Machine (could be a VM) with the same OS and BOE Version (included SPs and FPs) as your production Rel.2
    2. Schedule a half day or day Downtime to copy the content 1:1 from the production Rel.2 to the VM Rel.2 with the IW or CMS DB Copy. Or do this after Business Hours.
    - With this Size of your FileStore i would recommend the CMS DB copy way.
    - Now you have a 1:1 Testing Environment of your Production Environment
    3. Use the UMT to migrate from your VM Rel.2 to your BI4 installation
    - Here you can see how long it takes
    - You can check if the UMT is capable for this 65GB transfer
    - Can sort out other possible issues
    - Do some other Testing
    After you did that you have a perfect estimation on how long the Migration will take and what for issues you are facing. With this information you can decide if you need a downtime or can do it after Business Hours f.e.
    Regards
    -Seb.

Maybe you are looking for

  • Display XML content in af:outputText

    Hi I need to display a large xml content which is returned as a String in <af:outputText>. I had read it works by setting the property escape of <af:outputText> to TRUE. Its not working. i need to render the raw XML content in my panelgrouplayout . H

  • Related to DB02

    Hi All,   We are using SAP ECC 6.0 on Oracle 10g. When we check in transaction code DB02 we get that our Tablespace PSAPSR3 is in Autoextend OFF mode. But all the datafiles for this Tablespace are Autoextendable. So due to this problem we are getting

  • Why wont any of my programs download correctly?

    I'm downloading both Photoshop and Lightroom and for some reason when they should be done, it give me a error.. "Installation failed - Learn More". When I click learn more, it gives me this information.. Error Exit Code: 6 Please see specific errors

  • I can't access time capsule HD after start to use osx mavericks!

    hello, I used to keep some files on my time capsule HD, as an external HD, since osx leopard. But now i'm using osx MAVERICKS I still use time machine back ups in my time capsule, but now I can't access my other files on time capsule HD. Please Help

  • I am not receiving the email to reset my apple id

    I cannot reset my apple id password. I have requested an email to reset my password about 5 times and still no luck. Yes I'm sure i'm using the right email.