Shall we use SRDemo Framework Extension Classes in 11G R1?

Hi,
I just installed 11G R1 and reading developer guides. For development with 10.1.3.3 release I was using the Framework extension classes from SRDemo to base BC's on. Those methods includes many base functionality such as setManagerowsByKey, case-insensitive search, some bind variables initialized, and so on. Shall we continue to use them for 11G R1? To keep currency of viewobjects after rollback, I use the method proposed by Steeve Muench's blog entry which contains beforeRollback and afterRollBack methods on the base viewobject and exposing row state to client . shall I continue to use it?
Best Regards,

Salim,
If those methods provide functionality that you like - I don't see why you shouldn't continue to use them.
John

Similar Messages

  • How Do I Use Generics with Framework Extension Classes?

    Hi Guys and Gals,
    I've been writing alot of duplicate code lately for ViewObjects that are all basically the same. So it occurred to me that perhaps I could put shared code in a Framework Extension Class. My problem lies in the fact that I do quite a bit of class casting as well. I thought perhaps Generics could come to the rescue. But uh ... I don't really know anything about them, which makes asking the right questions or even researching difficult.
    Here's an example of what I would like to accomplish.
    I have many different Master-Detail ViewObjects which are all pretty much the same. For example ...
    PurchaseOrder (1-*) PoRows
    SalesOrder (1-*) SoRows
    Invoice (1-*) InvoiceRows
    etc...
    Here is sample code for the PurchaseOrder / PoRows
      public void cancelDocument()
        RowIterator ri = this.getPoRowsVO();  // access the detail view object
        RowSetIterator rsi = ((RowSet)ri).createRowSetIterator(null);
        while(rsi.hasNext())
          PoRowsVORowImpl next = (PoRowsVORowImpl)rsi.next();
          next.cancelRow();  // call a detail view object method exposed to the client
        rsi.closeRowSetIterator();
      }However, these two lines are cause for ponderance
         1.  RowIterator ri = this.getPoRowsVO();
         2.  PoRowsVORowImpl next = (PoRowsVORowImpl)rsi.next();Which leads me to two questions:
    1) How do I access the Detail part of the relationship in a framwork extension class generically?
    2) If I have to cast, is there a way to read the class type through reflection and cast using a generic method with what I've found?
    I would think writing common methods in a Framework Extension class would really help make maintaining my code easier, and I could see how it would be a powerful tool. But how would one get around these ViewObject specific problems?
    Will

    Hi,
    you are correct, Generics has a different meaning in Java then what you ask for.
    Actually to access a detail row set from a parent row, you can use code like this:
        public void voRowCancel(){
            for (int i = 0; i < this.getAttributeCount(); i++)
                   if(this.getStructureDef().getAttributeDef(i).getAttributeKind() == AttributeDef.ATTR_ASSOCIATED_ROWITERATOR){
                     RowSet rs = (RowSet) this.getAttribute(i);
                    // ... to do ...
        }However, the code you invoke is on a custom implementation class, which makes it difficult to get to this from here.
    Frank

  • How to add DFF using OA Framework Extensions

    Dear Members,
    I am very new to OA Framework. I have a requirement where i need to add a DFF to a standard Oracle form in iExpense.
    How do we achieve this. Can we do this using forms personalization?
    Following are the details of the OAFramework version in our company:
    Product/Component Version
    OA Framework - 11.5.10 4RUP
    Oracle Applications Extension - 9.0.3.8.13 - build 1541
    Business Components - 9.0.3.13.87
    UIX (Cabo) - 2_2_24
    BiBeans Runtime - 3.1.0.70 nondebug BI Beans OAF 11.5.10 Production Release
    MDS - 9.0.5.4.89_555
    XML - Oracle XDK Java 9.0.4.0.0 Production
    AOL/J - Applications Object Library, Core Java Roll Up Patch J
    Servlet - 2.2
    Java - 1.4.2
    JDBC Driver - 9.2.0.6.0
    Database - Oracle9i Enterprise Edition Release 9.2.0.7.0 - 64bit Production
    Operating System - AIX 5.3
    Browser - Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; GTB6; .NET CLR 2.0.50727; InfoPath.1)
    Your Comments are greatly appreciated.
    Thanks
    Sandeep

    Sandeep,
    First of all check the Table on which you are having your DFF. If its at the same level as of the Page (I mean the Page VO is on the same table) then there is a high likelihood that ORacle would have provided the DFF and you just need to set the rendered property to true. In Personalize Page you need to provide a Segment List which is a concatenated list of AttributeCategory and allowed Segments for the DFF.
    Dev guide is a good place to look for details.
    Regards
    Sumit

  • Can I use OA framework to create custom pages

    Hi,
    My client is using 11.5.8 and the Framework version is 5.6.
    And we want to add a custom page to iSupplier application.
    Can I use OA Framework extension to develop the page and add it to the application without upgrading the applications techstack.? If Yes, what version of the OA patch do I need to use for development.
    If not, is there any way to add a custom page to this application?

    OAF can be technology of choice only after 11.5.9 . Use JSP instead to develop your custom pages.
    --Mukul                                                                                                                                                                                                                                                               

  • Export .xlsx file from Webclient UI using abap2xlsx framework

    Hello,
    I have an urgent requirement to export the contents of internal tables to a .xlsx file using abap2xlsx framework.
    Classes like CL_GUI_FRONTEND_SERVICES or FM's like GUI_DOWNLOAD doesn't work for Webclient UI.
    Could anyone suggest me the proper stepwise solution with code snippet.
    Regards,
    Suyog

    Hi Suyog,
    Do you want to download the table view contents to a xls file right?? Is my understanding is correct?
    IF it is then go to the .html page of your table view and there fill the attribute downloadToexcel.
    Data: lv_excel type string.
    Further clarification check the view BT115QIT_SLSQ/Items.
    Regards,
    Rajya lakshmi Ch.

  • Self Reference Model Class - How to populate using Entity Framework

    Hi,i have table in SQL Server named Employees as follows:
    EmployeeId lastName FirstName reportsTo
    1 Davolio Nancy 2
    2 Fuller Andrew NULL
    3 Leverling Janet 2
    4 Peacock Margaret 2
    5 Buchanan Steven 2
    6 Suyama Michael 5
    7 King Robert 5
    8 Callahan Laura 2
    9 Dodsworth Anne 5
    I would like to use Entity Framework to populate my Model Class .My model class looks as follows:
    public class Employees
        readonly List<Employees> _children = new List<Employees>();
        public IList<Employees> Children
            get { return _children; }
        public string FirstName { get; set; }
        public string LastName {get; set;}
    I want to use this class in ViewModel  to populate my TreeView control. Can anyone help me in order to define Linq to Entities in order to populate my model class Employees from table in SQL Server as defined. Thanks in advance.
    Almir

    Hello Fred,
    unfortunately it does not work, maybe I can be more specific about what I'm trying to get. I'm following Josh Smith's article on CodeProject related to WFP TreeView
    Josh Smith article. He has Class named Person with the following structure
    public class Person
    readonly List<Person> _children = new List<Person>();
    public List<Person> Children
    get
    return _children;
    public string Name { get; set; }
    The same is populated from Database class using method named GetFamilyTree() which look as follows:
    public static Person GetFamilyTree()
    // In a real app this method would access a database.
    return new Person
    Name = "David Weatherbeam",
    Children =
    new Person
    Name="Alberto Weatherbeam",
    Children=
    new Person
    Name="Zena Hairmonger",
    Children=
    new Person
    Name="Sarah Applifunk",
    new Person
    Name="Jenny van Machoqueen",
    Children=
    new Person
    Name="Nick van Machoqueen",
    new Person
    Name="Matilda Porcupinicus",
    new Person
    Name="Bronco van Machoqueen",
    new Person
    Name="Komrade Winkleford",
    Children=
    new Person
    Name="Maurice Winkleford",
    Children=
    new Person
    Name="Divinity W. Llamafoot",
    new Person
    Name="Komrade Winkleford, Jr.",
    Children=
    new Person
    Name="Saratoga Z. Crankentoe",
    new Person
    Name="Excaliber Winkleford",
    I'm trying to figure out how should I write
    GetFamilyTree() method using Entity Framework in order to connect to my SQL Server database and populate this Person class as it was populated manually in Joshs Example. The table I'm using in SQL Server is described in
    my first post named Employees (it's self reference table)

  • How shall I use an other class's methods in a class

    Hi all,
    I have two classes in the same directory. When I try to use a method of class in the other one, I get a compile error. Everything seems ok, bu could not understand the reason. The two classes and the error text are copied below. Any help will be appriciated.
    import java.io.*;
    import java.net.*;
    import java.sql.*;
    public class MainThread extends Thread{
    //creating an object from CountryEnterence class
         private CountryEnterence cnt;
    public void MainThread(){
    start();
    public void run() {
    //calling a function of CountryEnternce class
    cnt.countryEnter(countryName,countryCode);
    /***And part of the CountryEnterence class is as belows:*/
    public class CountryEnterence{
    public countryEnter(String countryName,String countryCode){
    The error message when I try to compile MainThread is as follows:
    MainThread.java:17: cannot resolve symbol
    symbol :class CountryEnterence
    location :class MainThread
    private CountryEnterence conEnt;
    Regards,
    Dirgen

    hi Chuck, thanks for your reply.
    Infact the actual code defines the countryEnter() method with an integer return type.
    Here my real problem is as belows:
    C:/myDirectory/Class01.java
    C:/myDirectory/Class02.java
    public class Class01{
    private Class02 obj=new Class02();
    public void aMethod(){
    obj.aMethodOfClass02();
    When I try to compile Class01, I always get the error like "java can not resolve the symbol Class02"
    Do you think I am mistaking?

  • Error in Jdeveloper using WebCenter Framework

    Hi All,
    I am creating a sample application using webcenter framework in Jdeveloper. As i have installed the extensions of webcenter from HELP->Check For Updates -> webcenter extension. It was working fine but when i am trying to create the connection to content repository from Application Resources i am getting following error in Jdeveloper:-
    An unexpected severe error has occurred in Jdeveloper and in error details the log was:-
    oracle.classloader.util.AnnotatedNoClassDefFoundError:
    Missing class: javax.jcr.Repository
    *     Dependent class: oracle.vcr.jam.JamRepository*
    *     Loader: ide-global:11.1.1.0.0*
    *     Code-Source: /E:/Oracle/Middleware/jdeveloper/webcenter/modules/oracle.webcenter.framework_11.1.1/jcr-manager.jar*
    *     Configuration: <classpath> in /file:/E:/Oracle/Middleware/jdeveloper/jdev/extensions/oracle.webcenter.content.dt.jar!/META-INF/extension.xml*
    The missing class is not available from any code-source or loader in the system.
    o.classloader.PolicyClassLoader.defineClass(PolicyClassLoader.java:2387)
    o.classloader.PolicyClassLoader.findLocalClass(PolicyClassLoader.java:1546)
    o.classloader.SearchPolicy$FindLocal.getClass(SearchPolicy.java:226)
    o.classloader.SearchSequence.getClass(SearchSequence.java:119)
    o.classloader.PolicyClassLoader.internalLoadClass(PolicyClassLoader.java:1728)
    o.classloader.PolicyClassLoader.access$000(PolicyClassLoader.java:143)
    o.classloader.PolicyClassLoader$LoadClassAction.run(PolicyClassLoader.java:331)
    j.security.AccessController.doPrivileged(Native Method)
    o.classloader.PolicyClassLoader.loadClass(PolicyClassLoader.java:1692)
    o.classloader.PolicyClassLoader.loadClass(PolicyClassLoader.java:1674)
    o.webcenter.internal.dt.config.ConnectionContextListener.<clinit>(ConnectionContextListener.java:81)
    o.webcenter.internal.dt.addin.WebCenterFrameworkAddin$1.rescatContextRegistered(WebCenterFrameworkAddin.java:237)
    o.j.rescat2.RescatContextRegistry.notifyContextRegistered(RescatContextRegistry.java:328)
    o.j.rescat2.RescatContextRegistry.registerContext(RescatContextRegistry.java:93)
    o.adf.share.dt.AppConnContext.getRescatContext(AppConnContext.java:221)
    o.adf.share.dt.ApplicationConnectionsNode.applicationChanged(ApplicationConnectionsNode.java:94)
    o.j.appresources.ApplicationResourcesWindow.notifyApplicationChanged(ApplicationResourcesWindow.java:298)
    o.j.appresources.ApplicationResourcesNode.applicationChanged(ApplicationResourcesNode.java:66)
    o.j.appresources.ApplicationResourcesWindow.applicationChanged(ApplicationResourcesWindow.java:236)
    o.i.navigator.ApplicationNavigatorWindow.fireApplicationChangeEventImpl(ApplicationNavigatorWindow.java:990)
    o.i.navigator.ApplicationNavigatorWindow.fireApplicationChangeEvent(ApplicationNavigatorWindow.java:974)
    o.i.navigator.ApplicationNavigatorWindow.access$200(ApplicationNavigatorWindow.java:100)
    o.i.navigator.ApplicationNavigatorWindow$1L.itemStateChanged(ApplicationNavigatorWindow.java:263)
    jx.s.JComboBox.fireItemStateChanged(JComboBox.java:1205)
    jx.s.JComboBox.selectedItemChanged(JComboBox.java:1262)
    jx.s.JComboBox.contentsChanged(JComboBox.java:1309)
    jx.s.AbstractListModel.fireContentsChanged(AbstractListModel.java:100)
    jx.s.DefaultComboBoxModel.setSelectedItem(DefaultComboBoxModel.java:88)
    jx.s.JComboBox.setSelectedItem(JComboBox.java:557)
    jx.s.JComboBox.setSelectedIndex(JComboBox.java:603)
    o.i.navigator.ApplicationNavigatorWindow.initSelectedApplication(ApplicationNavigatorWindow.java:1135)
    o.i.navigator.ApplicationNavigatorWindow.initToolbarArea(ApplicationNavigatorWindow.java:1035)
    o.ideri.navigator.DefaultNavigatorWindow.initCommonItems(DefaultNavigatorWindow.java:384)
    o.i.navigator.ApplicationNavigatorWindow.getGUI(ApplicationNavigatorWindow.java:695)
    o.i.docking.DockableWindow.getHostedComponent(DockableWindow.java:231)
    o.ii.docking.TitledPanelHolder.getOrCreateComponent(TitledPanelHolder.java:47)
    o.ii.docking.TitledPanel.setPageVisible(TitledPanel.java:881)
    o.ii.docking.TitledPanel.showClient(TitledPanel.java:858)
    o.ii.docking.TitledPanel.setClientVisible(TitledPanel.java:841)
    o.ii.docking.TitledPanel.setClientVisible(TitledPanel.java:819)
    o.ii.docking.TitledPanel.loadVisibilityLayout(TitledPanel.java:1789)
    o.ii.docking.DockPanel.loadVisibilityLayout(DockPanel.java:200)
    o.ii.docking.AbstractDockPanelHost.loadVisibilityLayout(AbstractDockPanelHost.java:94)
    o.ii.docking.DockStationImpl.onStartup(DockStationImpl.java:1634)
    o.ii.docking.DockStationImpl.loadLayout(DockStationImpl.java:1473)
    o.ii.docking.DockStationListener.init(DockStationListener.java:36)
    o.i.layout.Layouts.activate(Layouts.java:812)
    o.i.layout.Layouts.activateLayout(Layouts.java:192)
    o.ii.MainWindowImpl$6.runImpl(MainWindowImpl.java:728)
    o.javatools.util.SwingClosure$1Closure.run(SwingClosure.java:50)
    j.a.event.InvocationEvent.dispatch(InvocationEvent.java:199)
    j.a.EventQueue.dispatchEvent(EventQueue.java:597)
    j.a.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
    j.a.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
    j.a.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
    j.a.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
    j.a.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
    j.a.EventDispatchThread.run(EventDispatchThread.java:122)
    Please Help!!!
    Thanks..

    http://puchaanirudh.blogspot.com/2008/04/oracleclassloaderutilannotatednoclassde.html
    For jdeveloper errors.
    I think all the required jars are not loaded during the installation.
    I advice you , to download the jdeveloper again and update the webcenter files.

  • How to use Enhancement Framework in ECC 5.0 and 6.0

    hi
    is there any good tutorials on enhancement framework? i have gone through the help but its not very clear. if anyone has stepby step guide will be useful.
    ~Suresh

    This is an old question... but i think it is very useful for the developers if anyone search it and find my answer relevant like it with immediate effect.....
    What is Enhancement Framework?????????
    Enhancement Framework is the new paradigm to bring all enhancement techniques under one roof. It can also be switched using Switch Framework. The following are different enhancement technologies available under this framework.
    • Source Code Enhancement
    • Function Group Enhancement
    • Class Enhancement
    • Kernel-BADI Enhancement
    Semantically related enhancement options are grouped under a ‘Simple Enhancement Spot’. ‘Composite Enhancement Spot’ contains one or more of Simple and other Composite Enhancement Spots. On the other hand (implementation side), various related implementation elements are grouped under a ‘Simple Enhancement Implementation’. A ‘Composite Enhancement Implementation’ can contain one or more of Simple and other Complex Enhancement Implementations.
    1.Source Code enhancement
    Whenever enhancement needs to be incorporated directly into the ABAP source code, this technology shall be provided. Implementing this technology is also called as Source Code Plug-In. There are two types of Source Code enhancements possible.
    • Implicit enhancement option
    • Explicit enhancement option
    >>>Implicit enhancement option
    Throughout the ABAP system, enhancement options are automatically available at certain pre-defined places. Some of the implicit options are:
    • At the end of all the programs (Includes, Reports, Function pool, Module pool, etc.), after the last statement
    • At the beginning and end of all FORM subroutines
    • At the end of all Function Modules
    • At the end of all visibility areas (public, protected and private) of local class
    ******Note that, in order to implement any of these Source code enhancements, you need to be in the ‘Change Enhancement mode’ (the spiral icon available in the editor). Technically the source code plug-in implementations are stored in a separate include program and not as part of the original source program.***********
    >>>>Explicit enhancement option
    The Implicit enhancement options are provided at specific source code places explicitly by SAP (Note that these enhancement definitions can also be created by partners and customers in their code).
    There are two types of Explicit Enhancement options available. One which can be provided at a specific place - called Enhancement Point, and another which can be used to replace a set of statements – called Enhancement Section. For this, we now have two new ABAP statements, viz.
    • ENHANCEMENT-POINT
    • ENHANCEMENT-SECTION
    When the Enhancement-Section is implemented, only the implementation gets executed and the original code doesn’t get executed. This is a new technique, which didn’t exist previously in any of the old ways of enhancing, to exclude any standard SAP code from execution. Because of this, there can be only one active implementation of an Enhancement-Section. On the other hand, there can be multiple active implementations of an Enhancement-Point, in which case all the implementations will be executed with no guarantee in the order of execution.
    we mainly use above framework .......if nybody need further and more information let me knw...

  • Pl/SQL procedure + framework extension

    Hello,
    We have requirement to write common pl/sql procedure calling method to execute the pl/sql procedure called from ADF BC entityImpl and Application module Impl classes. While reading document it is mentioned to add it in adf bc framework extension base classes.But if we place common pl/sql procedure calling method in entity Impl base classes,how I can use same method from application module classes?
    Any other approach? Any pattern??
    Regards
    Ravi

    Ravi,
    you have to be more specific. What is the intention of the PL/SQL function you want to call from the EntiyImpl class. If you plan to just do something on attribute level or are probably on the save side. For anything else you have to make sure that after changing anything using PL/SQL you have to query all VO again. Otherwise they don't get the changes.
    The method to call PL/SQL is like the one from the doc. You even can get an application module and call a method from there.
    To get the application module from an EO
    public class EOTest extends EntityImpl
    ApplicationModule getApplicationmodule()
          this.getDBTransaction().findApplicationModule("yourApp");
    }Timo

  • How to develop Framework Extension for join two tables

    Dear developers,
    My project contains more than 200 maintenance tables.
    Maintenance tables are very small and less than 100 lines.
    Maintenance tables mostly associated with a translation table.
    Translation tables are used for localized texts.
    Translation tables consists of Master Table Key + LanguageKey.
    I want to edit customizing tables only session language as single table.
    Translation table row may or may not be. Thats mean relationship is 1 to 0..1.
    ADF table control ignore this relationship.
    I tried view link between master view and detail view objects, but if translation table line is empty ADF table control throws translation iterator is null exception.
    I tried entity based left joined editable view I get view link inconsisty problem.
    In this case, the BC forcing me to framework extension.
    How is develop solution?

    topic is update

  • Handling events in BSP application using WML tag Extensions

    Hello Everyone  ,
                            We are developing a BSP applications for Mobile handheld using WML tag library. I am looking for some code samples to know how we can handle evevents inside the BSP using the WML tag library.
    Can any one of  you plesae help us by placing a code snippet for handling onInputprocessing() methods (BSP Using WML Tag extensions).
    I mean to ask how we can handle events inside the BSP applications that uses the WML tag library.
    I know about how to handle BSP events using HTMLB and XHTMLB tags frameworks.
    Thanks for your help in advance.
    Thanks,
    Greetson

    Is this WML tag library something that is supplied by SAP u2013 as a BSP Extension Element?  Or are you just using WML tags directly in your layout?  I can tell you in general that if you want to generate HTMLB events from regular HTML code you can generate the JavaScript calls using the htmlbEvent tag of the BSP extension library.  However your tags have to be running within an HTMLB Content tag for this to work.
    If you want to work totally without HTMLB then you need to use the simple HTTP Post but format the input name as OnInputProcessing(<function code>) like this:
    <input type="submit" name="OnInputProcessing(ok)" value="OK">
    This will cause the OnInputProcessing event handler to trigger without needing any HTMLB tags (this is how it was done in WebAS 6.10 before we BSP Extensions).

  • ReportServer intengration error - An attempt has been made to use a data extension 'ADS'

    For a moment I thought I had the perfect SharePoint 2010 installation going until I went and created an Access Database site added some data then went to reports. I am getting the following error.
    An error has occurred during report processing. (rsProcessingAborted)
    An attempt has been made to use a data extension 'ADS' that is either not registered for this report server or is not supported in this edition of Reporting Services. (rsDataExtensionNotFound)
    Other than that, life is good. I have pretty much uninstalled and stuff repeatedly. I'm about to do another uninstall, reinstall because Monitorying isn't showing any errors. Which it should be, but that's another post; should the issue return.
    But if anybody has any ideas about the ADS thing I would sure like to hear it.
    Thanks!
    Oh, the system is the following:
      Server 2008 R2 Standard
      SQL Server 2008 R2
      SharePoint 2010 Release with 2010 October CU updates. I ran the CUs just before running SharePoint Configuration.
    At the moment it is all house on the same machine; but if it goes to production then it will be turned in to a two-tier system.

    OK - seems like we just have to read the manual!
    You'll have to install the Reporting Services Add-in for Connected Mode:
    A. Modify the C:\Program Files\Microsoft SQL Server\MSRS10_50.MSSQLSERVER\Reporting Services\ReportServer\rsreportserver.config file on the Reporting Services server.
    Under the <Data> node, under the <Extension> node, add the ADS data extension. For example:
    <Extension Name="ADS" Type="Microsoft.Office.Access.Reports.DataProcessing.AdsConnection, Microsoft.Office.Access.Server.DataServer, Version=14.0.0.0, Culture=Neutral, PublicKeyToken=71e9bce111e9429c"/> -->
    B. Modify the rssrvpolicy file on RS server.
    Add the following XML code in the file under the <NamedPermissionSets> node:
    <PermissionSet class="NamedPermissionSet" version="1" Name="ReportExpressionsDefaultPermissionSet">
      <IPermission class="SecurityPermission" version="1" Flags="Execution" />
      <IPermission class="Microsoft.Office.Access.Server.Security.AccessServicesPermission, Microsoft.Office.Access.Server.Security, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" version="1.0" Flags="CalculationCallback" />
    </PermissionSet>
    In the <CodeGroup>node, find the following line and change PermissionSetName from “Execution” to “ReportExpressionsDefaultPermissionSet”.
    For further instructions please see Technet Article: "Using Access Services with SQL Reporting Services: Installing SQL Server 2008 R2 Reporting Services Add-In (SharePoint
    Server 2010)".
    Kind regards
    Thanks for the reply, but for the clarification I found my config files in a different location other than stated in A - C:\Program Files\Microsoft SQL Server\MSSQL.3\Reporting Services\ReportServer
    In Step B, the following is unclear to me - In the <CodeGroup>node, find the following line and change PermissionSetName from “Execution” to “ReportExpressionsDefaultPermissionSet”. There are
    MANY Code Group nodes. And in addition to that there are two with PermissionSetName="Execution"; Which one?
    While awaiting your reply I'll go look at the docs and see if they are clearer.
    Thanks!

  • Extension classes in jdk1.4.x

    I am using the method ResourceBundle.getBundle("java.text.resources.LocaleElements", Locale.getDefault()) for
    jdk1.3 and ResourceBundle.getBundle("sun.text.resources.LocaleElements", Locale.getDefault())for jdk1.4
    in Applet client to get locale specific info.
    This works in jdk1.3 and the resource is loaded without
    any problem but in jdk1.4 it throws "MissingResourceException"
    The class LocaleElements is present under lib/ i18n.jar in jdk1.3
    but is present under lib / ext/ localedata.jar in jdk1.4
    Is this causing the problem? Is there any problem in loading
    extension classes by plug-in?
    Any help on this will be appreciated.

    I have a couple of ideas.
    First, I looked into the jar you mentioned in the 1.4 jdk ext directory and it did NOT contain an entry for LocaleElements_en_US.class (your stack trace indicated that you were looking for en_US). This could be causing your ClassNotFoundException.
    Also, you could verify that the jar is loaded. For example, you could go to the Java Plug-in's control panel, go to the "Advanced" tab and in the "Java Runtime Parameters" text field place the name of the jar in question to be prepended in the boot classpath. For example, you could put the entry:
    -Xbootclasspath/p:<java home goes here>/jre/lib/ext/localdata.jar
    With this option in place, you know that the classloader will have knowledge of that jar and that it gets loaded (assuming that the path is correct). If the CNFException still occurs, then it sounds like the problem from above.
    Hope this helps.
    Eric

  • Workaround for using Oracle JDBC extension with WLS pooling

    Reading the newsgroup I saw that many of us encountered the problems
    with ClassCastException when tried to use Oracle JDBC extension
    with WLS pooling. I also had.
    In this case BEA recommends to use dangerous
    method getVendorConnection() which exposes
    the physical connection object to your code.
    Yes it's really dangerous because of unsafe usage may breaks
    WLS pooled connection(s).
    Moreover, this practice will make your JDBC code
    unportable (your JDBC code in addition to Oracle dependence
    became Weblogic dependent):
    void doSmth() {
    Connection con = ...;
    Connection vCon = ((WLConnection)con).getVendorConnection();
    // + mess of usage con in one places and vCon in others
    // (where Oracle extensions are needed)
    // !Don't forget to don't close vCon!
    Sux.
    I found the workaround.
    Introduction
    ============
    Yes the real cause of ClassCastException is that
    in depth of Oracle driver the casting
    to class oracle.jdbc.driver.OracleConnection
    (not to interface oracle.jdbc.OracleConnection)
    is performed.
    Someone can say that this is bug or pure desing.
    Weblogic pooled connection provide dynamic
    implementation for all public interfaces
    which real physical (wrapped) connection object implements.
    Great feature!
    But I guess that all interface methods implemented
    by simple call-delegation to physical (wrapped) connection object.
    In case of oracle.jdbc.OracleConnection interface
    this approach doesn't work for at least one its method:
    public OracleConnection unwrap()
    WLS pooled connection shoudn't implement this method by
    delegation to physical connection object BUT should
    return physical connection object itself!
    // Wrong implementation of unwrap()
    // delegation is used
    public OracleConnection unwrap() {
    return physicalConnection.unwrap();
    // Right implementation of unwrap()
    // physical connection returned
    public OracleConnection unwrap() {
    return physicalConnection;
    Workaround
    ==========
    1. Develop your own OracleConnection wrapper class:
    import oracle.jdbc.OracleConnection;
    import weblogic.jdbc.extensions.WLConnection;
    public class MyOracleConnectionImpl implements OracleConnection {
    private OracleConnection con;
    public MyOracleConnectionImpl(OracleConnection connection)
    throws SQLException
    this.con = connection;
    public OracleConnection unwrap() {
    return (OracleConnection)
    ((WLConnection)con).getVendorConnection();
    /* Implement all other methods by delegation to con object */
    2. Don't get Connections directly from DataSource --
    develop your own simple (may be static) utility
    class which retrives Connections from dataSource
    and returns them wrapped into your MyOracleConnectionImpl
    to your code from some method:
    puclic abstract class MyConnectionSource {
    public static Connection getConnection() {
    Connection con = // get it from DataSource
    return new MyOracleConnectionImpl((OracleConnection)con);
    3. Add attribute RemoveInfectedConnectionsEnabled="false"
    to definition of your JDBCConnectionPool within config.xml
    You may do it because of you `safely` use vendorConnection --
    you don't expose it to application code.
    4. Enjoy the Oracle JDBC extensions in your code!
    Example:
    Connection con = MyConnectionSource.getConnection;
    ArrayDescriptor add =
    ArrayDescriptor.createDescriptor("your_type", con);
    Hope it helps to someone.
    Best regards,
    Eugene Voytitsky

    Hello Eugene Voytitsky,
    Thanks Eugene Voytitsky for your idea
    I have tried the solution suggested by You, but it did not work.
    It still throws ClassCastException.
    I am sorry for posting the whole code of two classes below.
    I did this to give you more clarity.
    I am also indicating the place where the exception was thrown..
    Please let me know if I am doing something wrong.
    OracleConnection Wrapper class
    package ejbTesting;
    // sql imports
    import java.sql.CallableStatement;
    import java.sql.Connection;
    import java.sql.DatabaseMetaData;
    import java.sql.PreparedStatement;
    import java.sql.SQLException;
    import java.sql.SQLWarning;
    import java.sql.Statement;
    // util imports
    import java.util.Map;
    import java.util.Properties;
    // imports from Oracle Driver Classes
    import oracle.jdbc.OracleConnection;
    import oracle.jdbc.OracleOCIFailover;
    import oracle.jdbc.OracleSavepoint;
    // import from Weblogic extensions
    import weblogic.jdbc.extensions.WLConnection;
    public class WeblogicConnectionWrapper implements OracleConnection
         // oracle connection object
         private OracleConnection connection;
         public WeblogicConnectionWrapper (OracleConnection orclConnection)
              try
                   this.connection = orclConnection;
              catch(Exception unexpected )
                   unexpected.printStackTrace();
         public OracleConnection unwrap()
              try
              // The datasource returns a weblogic.jdbc.pool.Connection
              // This needs to be type casted to weblogic.jdbc.extensions.WLConnection
              // Only this weblogic.jdbc.extensions.WLConnection CAN BE type casted
              // to OracleConnection
         return (OracleConnection) ((WLConnection) connection).getVendorConnection();
         catch(Exception sqlException )
              sqlException.printStackTrace ();
              return null;
         /* Implement all other methods by delegation to connection object */      
    public Connection _getPC()
    return connection._getPC();
    public void archive(int i, int j, String s)
    throws SQLException
    connection.archive(i, j, s);
    public void assertComplete()
    throws SQLException
    connection.assertComplete();
    public void clearWarnings()
    throws SQLException
    connection.clearWarnings();
    public void close()
    throws SQLException
    connection.close();
    public void commit()
    throws SQLException
    connection.commit();
    public Statement createStatement()
    throws SQLException
    return connection.createStatement();
    public Statement createStatement(int i, int j)
    throws SQLException
    return connection.createStatement(i, j);
    public boolean getAutoClose()
    throws SQLException
    return connection.getAutoClose();
    public boolean getAutoCommit()
    throws SQLException
    return connection.getAutoCommit();
    public CallableStatement getCallWithKey(String s)
    throws SQLException
    return connection.getCallWithKey(s);
    public String getCatalog()
    throws SQLException
    return connection.getCatalog();
    public boolean getCreateStatementAsRefCursor()
    return connection.getCreateStatementAsRefCursor();
    public int getDefaultExecuteBatch()
    return connection.getDefaultExecuteBatch();
    public int getDefaultRowPrefetch()
    return connection.getDefaultRowPrefetch();
    public Object getDescriptor(String s)
    return connection.getDescriptor(s);
    public boolean getExplicitCachingEnabled()
    throws SQLException
    return connection.getExplicitCachingEnabled();
    public boolean getImplicitCachingEnabled()
    throws SQLException
    return connection.getImplicitCachingEnabled();
    public boolean getIncludeSynonyms()
    return connection.getIncludeSynonyms();
    public Object getJavaObject(String s)
    throws SQLException
    return connection.getJavaObject(s);
    public DatabaseMetaData getMetaData()
    throws SQLException
    return connection.getMetaData();
    public Properties getProperties()
    return connection.getProperties();
    public boolean getRemarksReporting()
    return connection.getRemarksReporting();
    public boolean getRestrictGetTables()
    return connection.getRestrictGetTables();
    public String getSQLType(Object obj)
    throws SQLException
    return connection.getSQLType(obj);
    public String getSessionTimeZone()
    return connection.getSessionTimeZone();
    public int getStatementCacheSize()
    throws SQLException
    return connection.getStatementCacheSize();
    public PreparedStatement getStatementWithKey(String s)
    throws SQLException
    return connection.getStatementWithKey(s);
    public int getStmtCacheSize()
    return connection.getStmtCacheSize();
    public short getStructAttrCsId()
    throws SQLException
    return connection.getStructAttrCsId();
    public boolean getSynchronousMode()
    return connection.getSynchronousMode();
    public int getTransactionIsolation()
    throws SQLException
    return connection.getTransactionIsolation();
    public Map getTypeMap()
    throws SQLException
    return connection.getTypeMap();
    public String getUserName()
    throws SQLException
    return connection.getUserName();
    public boolean getUsingXAFlag()
    return connection.getUsingXAFlag();
    public SQLWarning getWarnings()
    throws SQLException
    return connection.getWarnings();
    public boolean getXAErrorFlag()
    return connection.getXAErrorFlag();
    public boolean isClosed()
    throws SQLException
    return connection.isClosed();
    public boolean isLogicalConnection()
    return connection.isLogicalConnection();
    public boolean isReadOnly()
    throws SQLException
    return connection.isReadOnly();
    public String nativeSQL(String s)
    throws SQLException
    return connection.nativeSQL(s);
    public Object openJoltConnection(String s, short word0, short word1)
    return connection.openJoltConnection(s, word0, word1);
    public void oracleReleaseSavepoint(OracleSavepoint oraclesavepoint)
    throws SQLException
    connection.oracleReleaseSavepoint(oraclesavepoint);
    public void oracleRollback(OracleSavepoint oraclesavepoint)
    throws SQLException
    connection.oracleRollback(oraclesavepoint);
    public OracleSavepoint oracleSetSavepoint()
    throws SQLException
    return connection.oracleSetSavepoint();
    public OracleSavepoint oracleSetSavepoint(String s)
    throws SQLException
    return connection.oracleSetSavepoint(s);
    public int pingDatabase(int i)
    throws SQLException
    return connection.pingDatabase(i);
    public CallableStatement prepareCall(String s)
    throws SQLException
    return connection.prepareCall(s);
    public CallableStatement prepareCall(String s, int i, int j)
    throws SQLException
    return connection.prepareCall(s, i, j);
    public CallableStatement prepareCallWithKey(String s)
    throws SQLException
    return connection.prepareCallWithKey(s);
    public PreparedStatement prepareStatement(String s)
    throws SQLException
    return connection.prepareStatement(s);
    public PreparedStatement prepareStatement(String s, int i, int j)
    throws SQLException
    return connection.prepareStatement(s, i, j);
    public PreparedStatement prepareStatementWithKey(String s)
    throws SQLException
    return connection.prepareStatementWithKey(s);
    public void purgeExplicitCache()
    throws SQLException
    connection.purgeExplicitCache();
    public void purgeImplicitCache()
    throws SQLException
    connection.purgeImplicitCache();
    public void putDescriptor(String s, Object obj)
    throws SQLException
    connection.putDescriptor(s, obj);
    public void registerApiDescription(String s, short word0, short word1, String
    s1)
    connection.registerApiDescription(s, word0, word1, s1);
    public void registerSQLType(String s, Class class1)
    throws SQLException
    connection.registerSQLType(s, class1);
    public void registerSQLType(String s, String s1)
    throws SQLException
    connection.registerSQLType(s, s1);
    public void registerTAFCallback(OracleOCIFailover oracleocifailover, Object
    obj)
    throws SQLException
    connection.registerTAFCallback(oracleocifailover, obj);
    public void rollback()
    throws SQLException
    connection.rollback();
    public void setAutoClose(boolean flag)
    throws SQLException
    connection.setAutoClose(flag);
    public void setAutoCommit(boolean flag)
    throws SQLException
    connection.setAutoCommit(flag);
    public void setCatalog(String s)
    throws SQLException
    connection.setCatalog(s);
    public void setCreateStatementAsRefCursor(boolean flag)
    connection.setCreateStatementAsRefCursor(flag);
    public void setDefaultExecuteBatch(int i)
    throws SQLException
    connection.setDefaultExecuteBatch(i);
    public void setDefaultRowPrefetch(int i)
    throws SQLException
    connection.setDefaultRowPrefetch(i);
    public void setExplicitCachingEnabled(boolean flag)
    throws SQLException
    connection.setExplicitCachingEnabled(flag);
    public void setImplicitCachingEnabled(boolean flag)
    throws SQLException
    connection.setImplicitCachingEnabled(flag);
    public void setIncludeSynonyms(boolean flag)
    connection.setIncludeSynonyms(flag);
    public void setReadOnly(boolean flag)
    throws SQLException
    connection.setReadOnly(flag);
    public void setRemarksReporting(boolean flag)
    connection.setRemarksReporting(flag);
    public void setRestrictGetTables(boolean flag)
    connection.setRestrictGetTables(flag);
    public void setSessionTimeZone(String s)
    throws SQLException
    connection.setSessionTimeZone(s);
    public void setStatementCacheSize(int i)
    throws SQLException
    connection.setStatementCacheSize(i);
    public void setStmtCacheSize(int i)
    throws SQLException
    connection.setStmtCacheSize(i);
    public void setStmtCacheSize(int i, boolean flag)
    throws SQLException
    connection.setStmtCacheSize(i, flag);
    public void setSynchronousMode(boolean flag)
    connection.setSynchronousMode(flag);
    public void setTransactionIsolation(int i)
    throws SQLException
    connection.setTransactionIsolation(i);
    public void setTypeMap(Map map)
    throws SQLException
    connection.setTypeMap(map);
    public void setUsingXAFlag(boolean flag)
    connection.setUsingXAFlag(flag);
    public void setWrapper(OracleConnection oracleconnection)
    connection.setWrapper(oracleconnection);
    public void setXAErrorFlag(boolean flag)
    connection.setXAErrorFlag(flag);
    public void shutdown(int i)
    throws SQLException
    connection.shutdown(i);
    public void startup(String s, int i)
    throws SQLException
    connection.startup(s, i);
    Util class to get Wrapped Connections from
    datasource
    package ejbTesting;
    // j2ee imports
    import javax.naming.InitialContext;
    import javax.sql.DataSource;
    // sql imports
    import java.sql.Connection;
    // imports from Oracle Driver Classes
    import oracle.jdbc.OracleConnection;
    * Wrapper class for the DataSource Connection from Weblogic pool
    public class DataSourceConnectionWrapper
         // datasource variable
         private static transient DataSource datasource = null;
         private static String dbName = "jdbc/workbench";
    * Method that returns the database connection
         public static Connection getConnection()
              try
                   // initialsing the datasource object
                   initialiseDataSource ();
                   // Getting a connection from the datasource
                   Connection con = datasource.getConnection( );
                   // wrapping it custom wrapper class and
                   // returning the connection object
                   return new WeblogicConnectionWrapper((OracleConnection)con);
              catch(Exception exception )
                   exception.printStackTrace();
                   return null;
         private static void initialiseDataSource( ) throws Exception
    if ( datasource == null )
    try
    InitialContext ic = new InitialContext( );
    datasource = (DataSource) ic.lookup( dbName );
    catch (Exception ne )
    throw new Exception( "NamingException while looking up DataSource with
    JNDI name" +
    dbName + ": \n" + ne.getMessage( ) );
    Exception Stack Trace
    The line 46 in DataSourceConnectionWrapper
    corresponds to
    return new WeblogicConnectionWrapper((OracleConnection)con);
    Which I feel is logical as the connection which we get from Weblogic
    datasource cannot be type casted to OracleConnection
    java.lang.ClassCastException: weblogic.jdbc.pool.Connection
    at ejbTesting.DataSourceConnectionWrapper.getConnection(DataSourceConnectionWrapper.java:46)

Maybe you are looking for

  • HDD and memory upgrade on Satellite P200-17C

    Hi there I own Satellite P200 17c. My current memory is DDR2 PC2-5300 2gb. I would like to upgrade it to DDR2 PC2-6400 4gb ram. Can i do that and is there going to be some improvement of the speed if I upgrade to PC2-6400 instead PC2-5300? On my P200

  • 6i to 11g (Fusion M./Weblogic)

    We have recently moved from Forms 6i to Forms 11g/Weblogic/Fusion Middelware architecture and many sites are reporting lagging issues. This is clearly evident, for example, when scrolling through a multirecord block (20 recs) or switching between tab

  • I bought iCloud storage, my bank account shows that I did but iCloud shows that I didn't? What to do?

    Hi, I upgraded my iCloud storage from 5gb to 20gb, it took the money from my account, and it said "Completing purchase" for an hour, and then when it finished it still said 5gb. What's the problem? 1 dollar is not a problem, but I am not expecting th

  • Add a sound notification when Save As prompt is triggered

    I am annoyed that when I am using the Save As feature in Microsoft Office 2010, I was unable to hear a sound when Word/Excel askes if I want to replace an existing file. I am asking the questions because I was originally hearing the notification soun

  • Using 'OR' in web services 1.0 query.

    HI, I need to query for a particular contact on the basis of Phone number. Now the search for the Phone Number search should be on 3 fields WorkPhoneNumber, CellPhoneNumber, HomePhoneNumber. contact.setWorkPhoneNumber("='" phoneNumber"'"); contact.se