Workbook works fine in discoverer plus but shows error in discoverer viewer

Hi,
I have some issues with the parameter of a report.
one of the parameters is
mgr_id (eg: 1,2,3) -- from database table.
manager names are not available in the database but they are known to users like
1 - david
2 - alan chris
3 - peter
so the requirement is
(i) the input parameter wud be entered as 1 or 2 or 3 or null ( or in multiple combination or all).
But the report shud have parameters in the header of the report.
for eg: if the input parameter is mgr_id = '1' then the report shud have manager name: 'david' in the header.
if the input is mgr_id = '1',' 2', '3' then on the report header, it shud display as manager name: 'david','alan chris','peter'
(ii) the default value of mgr_id shud be 'ALL'. if the user enters mgr_id as 'ALL' then it shud take all the values of mgr_id and pull all the values of mgr_id (like 1,2,3)
and the report header shud display as department name: 'ALL'
i have developed a custom query where i used,
select dept_id, decode(mgr.mgr_id,'1','david','2','alan chris','3','peter') as mgr_name, ..... etc.
in discoverer admin,
I have created LOVs (item classes) for mgr_name.
after that going to properties of mgr_name, i have selected mgr_id as indexed item.
and in the report i have created parameter dept based on mgr_name and selected the option -- allow to select both indexes and values.
and in the default value i mentioned 'ALL'.
after that i changed the condition as
((mgr_name = :manager name) OR (mgr_name LIKE DECODE(:manager name,'ALL','%')))
and in the header, i used &department name --- then it displays correctly.
but the problem is ---
the report works fine in plus. the problem is only when parameter value is 'ALL'
when i run the report from discoverer viewer for the very first time (after logging in), the report works fine with correct data.
but when i run the same report second time with parameter value 'ALL', it gives an error ---
Invalid value "''" for parameter "department name"
i dont understand, why it works for first time and doesn't afterwards. If i logout and login again, it works fine in viewer.
am i doing anything wrong in conditions or declaring the parameters?
I came to know that, the very first time, when we enter 'ALL' it is taking '%' but when we run for the second time, it is taking NULL. since NULL isn't there in mgr_id or mgr_name, it is throwing that error.
How do i fix this error?
Thanks

Hi Puppethead,
I have tried with your suggestions.
the following condition -- did not work
( (mgr_name = :manager name)
OR (mgr_name LIKE DECODE(:manager name, 'ALL', '%', NULL)))
but for the other condition ---
( (mgr_name = :manager name)
OR (mgr_name LIKE DECODE(nvl(:manager name, 'ALL'), 'ALL', '%', NULL)))
is wrong because, :manager name cud be null, when it is null, it takes 'ALL' i.e. '%' which shud not be the case.
if the user enters null, it has to display records with null only but with the above condition it takes '%'
The main issue which i dont understand is, the report works fine for the first time. for the second time, the report takes null values . why is it taking null values for the second time.
Thanks

Similar Messages

  • Content Conversion working fine in NFS, It is showing errors in SFTP

    Hi All,
    My scenario is Proxy to SFTP.
    I did the content conversion in receiver side , It is working fine in NFS, But it is showing errors in SFTP,
    I am getting below error.
    Failed to process message content. Reason: Exception in XML Parser (format problem?):'java.lang.Exception: Message processing failed in XML parser: 'Conversion configuration error: Unknown structure '' found in document', probably configuration error in file adapter (XML parser error)' (Software version: 3.0.4)
    This is my content conversion below
    RecordSetStructure       :OrderHeader,OrderHeaderNote,OrderLine,OrderLineNote
    OrderHeader.fieldFixedLengths
    4,10,30,24,8,8,10,35,35,35,35,35,3,10,2,10,35,35,35,35,35,3,10,2,1,20,12,20,16,10,20,1,8,30
    Header.endSeparator
    'nl'
    HeaderNote.fieldFixedLengths
    4,5,85
    HeaderNote.endSeparator
    'nl'
    Line.fieldFixedLengths
    4,6,8,3,4,35,15,13,12,1,8,8,20,30,20,35,35,35,35,35,3,10,2,5,10,10,24,13,10,5,2
    Line.endSeparator
    'nl'
    LineNote.fieldFixedLengths
    4,5,85
    LineNote.endSeparator
    'nl'
    This my structure below:
    Record
    ---Header
       ---a
       ---b
       ---c
    ---HeaderNote
       ---d
       ---e
       ---f
    ---Line
       ---g
       ---h
       ---i
    ---LineNote
       ---j
       ---k
       ---l
    For that structure I am using the content conversion above It is working fine in NFS, But it is showing errors in SFTP .
    I am using Date function also in the mapping(FYI)
    Can you please provide me the solution.
    Please let me know for any other information.
    Thanks & Regards,
    Satish

    Hi Satish,
    1. Check the sequence of the module
    2. Recordset structure should contain the occurances as well, i.e: OrderHeader,1,OrderHeaderNote,1,OrderLine,*,OrderLineNote,*
    3. Try to follow the below link which describes the content conversion for both simple and complex structure:
    http://help.sap.com/saphelp_nw04/helpdata/en/24/4cad3baabd4737bab64d0201bc0c6c/content.htm
    A.B

  • Text Index works fine consistently with Table, but not on underlying View

    Hi,
    We are facing weird issue relating to Oracle Text Indexes. Search using Oracle Text Index
    works fine on a Table, but when running query on View it gives sometimes (not consistently)
    ORA-20000: Oracle Text error:
    DRG-10849: catsearch does not support functional invocation
    DRG-10599: column is not indexed
    Sometimes it works.
    All of the below steps are run using User IR2OWNER:
    STEP 1: Table CPF_CUSTOMER created as follows (3 Non Text Indexes defined at time of creation )
    **Please note no Public Synonym is created for this Table**
    ** There is already another Table by same name CPF_CUSTOMER under different Owner (CDROWNER)
    and that Table has Public Synonym CPF_CUSTOMER created. Other Table CPF_CUSTOMER does not
    have any Views **
    create table CPF_CUSTOMER
    CPF_CUSTOMER_UUID NUMBER(20) not null,
    SAP_ID VARCHAR2(10 CHAR) not null,
    IRIS2_ID VARCHAR2(7 CHAR),
    NAME VARCHAR2(70 CHAR) not null,
    DRAFT_IND NUMBER(1) not null,
    ACTIVE_IND NUMBER(1) not null,
    REPLACED_BY_CUST VARCHAR2(10 CHAR),
    CRE_DT_GMT DATE,
    CRE_DT_LOC DATE,
    TIME_ZONE VARCHAR2(3 CHAR),
    CRE_USR VARCHAR2(8 CHAR),
    CHG_DT_GMT DATE,
    CHG_DT_LOC DATE,
    CHG_TIME_ZONE VARCHAR2(3 CHAR),
    CHG_USR VARCHAR2(8 CHAR),
    VFY_DT_GMT DATE,
    VFY_DT_LOC DATE,
    VFY_USR VARCHAR2(8 CHAR),
    DIVISION VARCHAR2(20 CHAR),
    SALES_ADMIN VARCHAR2(3 CHAR),
    MF_CUST_CDE VARCHAR2(14 CHAR),
    CR_CTRL_OFCE VARCHAR2(3 CHAR),
    DEFAULT_INV_CCY VARCHAR2(3 CHAR),
    AUTOBILL_OVRRD_IND NUMBER(1) not null,
    AUTOBILL NUMBER(1) not null,
    AUTOPRT_OVRRD_IND NUMBER(1) not null,
    AUTOPRT NUMBER(1) not null,
    AVE_PYMT_DAY NUMBER(3),
    TTL_INV_VAL NUMBER(12,2),
    INHERIT_CR_TERM_ASSGMT NUMBER(1) not null,
    NORMALIZED_NME VARCHAR2(70 CHAR),
    OB_PYMT_OFCE VARCHAR2(3 CHAR),
    IB_PYMT_OFCE VARCHAR2(3 CHAR),
    CGO_SMART_ID VARCHAR2(20 CHAR),
    REC_UPD_DT TIMESTAMP(6),
    NCPF_CUST_ID VARCHAR2(7) not null,
    CPF_CUST_LEVEL_UUID NUMBER(20) not null
    tablespace DBCPFP1_LG_DATA LOGGING;
    CREATE UNIQUE INDEX CPF_CUSTOMERI1 ON CPF_CUSTOMER
    (SAP_ID ASC) TABLESPACE DBCPFP1_LG_INDX;
    ALTER TABLE CPF_CUSTOMER
    ADD CONSTRAINT CPF_CUSTOMERI1 UNIQUE (SAP_ID);
    CREATE UNIQUE INDEX CPF_CUSTOMERI2 ON CPF_CUSTOMER
    (CPF_CUSTOMER_UUID ASC) TABLESPACE DBCPFP1_LG_INDX;
    ALTER TABLE CPF_CUSTOMER
    ADD CONSTRAINT CPF_CUSTOMERI2 UNIQUE (CPF_CUSTOMER_UUID);
    CREATE INDEX CPF_CUSTOMER_IDX2 ON CPF_CUSTOMER (UPPER(NAME))
    TABLESPACE DBCPFP1_LG_INDX;
    STEP 2: Create View CPF_CUSTOMER_RVW on above Table (and Public Synonym on View)
    This View is created under same OWNER as Table created in STEP 1 (IR2OWNER)
    create or replace view cpf_customer_rvw as
    select
    CPF_CUSTOMER_UUID,
    SAP_ID,
    IRIS2_ID,
    NAME,
    DRAFT_IND,
    ACTIVE_IND,
    REPLACED_BY_CUST,
    CRE_DT_GMT,
    CRE_DT_LOC,
    TIME_ZONE,
    CRE_USR,
    CHG_DT_GMT,
    CHG_DT_LOC,
    CHG_TIME_ZONE,
    CHG_USR,
    VFY_DT_GMT,
    VFY_DT_LOC,
    VFY_USR,
    DIVISION,
    SALES_ADMIN,
    MF_CUST_CDE,
    CR_CTRL_OFCE,
    DEFAULT_INV_CCY,
    AUTOBILL_OVRRD_IND,
    AUTOBILL,
    AUTOPRT_OVRRD_IND,
    AUTOPRT,
    AVE_PYMT_DAY,
    TTL_INV_VAL,
    INHERIT_CR_TERM_ASSGMT,
    NORMALIZED_NME,
    OB_PYMT_OFCE,
    IB_PYMT_OFCE,
    CGO_SMART_ID,
    NCPF_CUST_ID,
    CPF_CUST_LEVEL_UUID,
    REC_UPD_DT
    from CPF_CUSTOMER;
    CREATE OR REPLACE PUBLIC SYNONYM CPF_CUSTOMER_RVW FOR CPF_CUSTOMER_RVW;
    STEP 3: Insert Test row
    insert into cpf_customer (CPF_CUSTOMER_UUID, SAP_ID, IRIS2_ID, NAME, DRAFT_IND, ACTIVE_IND, REPLACED_BY_CUST, CRE_DT_GMT, CRE_DT_LOC, TIME_ZONE, CRE_USR, CHG_DT_GMT, CHG_DT_LOC, CHG_TIME_ZONE, CHG_USR, VFY_DT_GMT, VFY_DT_LOC, VFY_USR, DIVISION, SALES_ADMIN, MF_CUST_CDE, CR_CTRL_OFCE, DEFAULT_INV_CCY, AUTOBILL_OVRRD_IND, AUTOBILL, AUTOPRT_OVRRD_IND, AUTOPRT, AVE_PYMT_DAY, TTL_INV_VAL, INHERIT_CR_TERM_ASSGMT, NORMALIZED_NME, OB_PYMT_OFCE, IB_PYMT_OFCE, CGO_SMART_ID, NCPF_CUST_ID, CPF_CUST_LEVEL_UUID, REC_UPD_DT)
    values (2.26283572796028E15, '6588125000', '6588125', 'S M Mooseen And Sons(PVT) Limited', 0, 1, '', to_date('15-03-2005 08:55:00', 'dd-mm-yyyy hh24:mi:ss'), to_date('15-03-2005 14:25:00', 'dd-mm-yyyy hh24:mi:ss'), 'IST', 'licr2', to_date('19-02-2007 00:33:00', 'dd-mm-yyyy hh24:mi:ss'), to_date('19-02-2007 06:03:00', 'dd-mm-yyyy hh24:mi:ss'), 'IST', 'BaseAdmi', to_date('15-03-2005 09:03:00', 'dd-mm-yyyy hh24:mi:ss'), to_date('15-03-2005 14:33:00', 'dd-mm-yyyy hh24:mi:ss'), 'ninwasa', '', '', 'SRI06588125000', '463', '', 0, 0, 0, 0, null, null, 0, 'SMMOOSEENANDSONSPVTLIMITED', '', '', '', '6588125', 109966195050333, '14-JAN-09 02.49.28.325774 PM');
    commit;
    STEP 4: Create Oracle Text Index on Table CPF_CUSTOMER
    EXEC CTX_DDL.DROP_PREFERENCE('CTXCAT_IR2_STORAGE');
    EXEC CTX_DDL.CREATE_PREFERENCE('CTXCAT_IR2_STORAGE', 'BASIC_STORAGE');
    EXEC CTX_DDL.SET_ATTRIBUTE('CTXCAT_IR2_STORAGE', 'I_INDEX_CLAUSE', 'TABLESPACE COMMON_SM_INDX COMPRESS 2');
    EXEC CTX_DDL.SET_ATTRIBUTE('CTXCAT_IR2_STORAGE', 'I_INDEX_CLAUSE', 'TABLESPACE COMMON_SM_INDX COMPRESS 2');
    EXEC CTX_DDL.SET_ATTRIBUTE('CTXCAT_IR2_STORAGE', 'K_TABLE_CLAUSE', 'TABLESPACE COMMON_SM_INDX COMPRESS 2');
    EXEC CTX_DDL.SET_ATTRIBUTE('CTXCAT_IR2_STORAGE', 'R_TABLE_CLAUSE', 'TABLESPACE COMMON_SM_INDX COMPRESS 2');
    EXEC CTX_DDL.SET_ATTRIBUTE('CTXCAT_IR2_STORAGE', 'I_ROWID_INDEX_CLAUSE', 'TABLESPACE COMMON_SM_INDX storage (INITIAL 5M)');
    -- Define IR2_AB_LEXER to handle Special Characters.
    EXEC ctx_ddl.drop_preference('IR2_AB_LEXER');
    EXEC ctx_ddl.create_preference('IR2_AB_LEXER', 'BASIC_LEXER');
    EXEC ctx_ddl.set_attribute ('IR2_AB_LEXER', 'printjoins', ',_!$~%?=({;|&+-:/)}.@`^');
    --Drop Indexes
    drop index CPF_CUSTOMER_DIDX1;
    -- CATSEARCH INDEX on CPF_CUSTOMER.NAME     
    CREATE INDEX CPF_CUSTOMER_DIDX1 ON CPF_CUSTOMER(NAME) INDEXTYPE IS CTXSYS.CTXCAT PARAMETERS ('STORAGE CTXCAT_IR2_STORAGE STOPLIST CTXSYS.EMPTY_STOPLIST LEXER IR2_AB_LEXER');
    commit;
    STEP 5: Run Query to use Oracle Text Index on Base Table (works fine always. No issues seen so far)
    SELECT a.sap_id||'|'||a.name||'|' CUSTOMER_STR
    FROM cpf_customer a
    WHERE (catsearch(a.name, 'Mooseen'||'*', '')>0);
    CUSTOMER_STR
    6588125000|S M Mooseen And Sons(PVT) Limited|
    STEP 6: Run Query to use Oracle Text Index on View created under Table (get below error periodically)
    ORA-20000: Oracle Text error:
    DRG-10849: catsearch does not support functional invocation
    DRG-10599: column is not indexed
    But it works sometimes as in STEP 5 and returns 1 row. It is never consistent. We would like to
    provide access to this Table using View only. That is why we would like to get this query working consistently
    using View.
    Any help or tips would be greatly appreciated
    Thanks
    Auro

    This is a known issue with CTXCAT indexes. Sometimes the optimizer will "drive" the query off another index, and request results from the CTXCAT index on a row-by-row basis ("does the row with rowid NNNN satisfy this CATSEARCH condition?"). That's known as a functional lookup, and is not supported by the CTXCAT indextype.
    The only solution is to try to persuade the optimizer to use a different plan which does not use a functional lookup. This can be achieved by the use of hints, or sometimes by collecting or deleting statistics on the table.

  • HT204053 i have an itunes library with 1,000+ songs on a pc.  my daughter has a macbook air and i loaded my apple ID onto it.  how do i get the songs from my itunes account to show up?  This works fine on her iPhone, but having trouble on the new macbook

    i have an itunes library with 1,000+ songs on a pc.  my daughter has a macbook air and i loaded my apple ID onto it.  how do i get the songs from my itunes account to show up?  This works fine on her iPhone, but having trouble on the new macbook air

    Hey kbert73
    I would do a transfer of purchases from the phone and not sync. If you sync then it will want to start over and sync music that is on the MacBook Pro. If you want to transfer the music, check out the article below that will give you multiple options on how to move. I have also provided on how to sync with multiple computers.
    iTunes: How to move your music to a new computer
    http://support.apple.com/kb/ht4527
    Using iPhone, iPad, or iPod with multiple computers
    http://support.apple.com/kb/ht1202
    Thanks for using Apple Support Communities.
    Regards,
    -Norm G.

  • My iPad is set up for my Apple ID account and works fine with iTunes. But when I try to use it for the App Store, my wife's apple ID shows up, not mine.

    My iPad2 is set up with my Apple ID and works fine with iTunes. But when I try to use the app store, my wife's apple ID appears in the password window, not mine. How can I get my apple ID to show up?

    Sign her out and sign yourself in!

  • I have a Lacie External hdd and on usb 3. Now If I plug in the device it shows a message to connect to windows or mac (Parallels installed) so If I click on mac it works fine well and good but when I select connect to windows it shows a error.

    I have a Lacie External hdd and on usb 3. Now If I plug in the device it shows a message to connect to windows or mac (Parallels installed) so If I click on mac it works fine well and good but when I select connect to windows it shows a error.
    The error that pops up is:
    The device "Lacie Rugged USB3-FW" was unable to connect to its ideal host controller.
    Please anyone could suggest what the solution could be?
    Thanks.

    But my 1 tb hdd is already formatted via ex fat which can work on both mac and Windows no limitation of file size also like if we use ntfs or fat it has a restriction of 4gb file size.

  • Painting works fine under OS X, but vanishes under Linux (Fedora 6)

    I've written some code to draw arrays and objects, which I'm using in the CS2 class I teach (where the students are learning about references). It works fine under OS X, but (to my horror) when I tried using it in front of the students in our Linux labs, the diagrams would disappear (i.e., the window would become blank) after a few milliseconds. Sometimes we could get them to stick around by resizing the window, but this was not reliable.
    I should note that my OS X testing is under Java 1.5 (because Macs don't have 1.6 yet) and the Linux (Fedora 6, I believe) is using Java 1.6.
    The code is given below. There are two classes, ViewPanel and ObjectView. Run the main() method in ViewPanel. Both of these are in the cs2tools package.
    Any help would be greatly appreciated.
    package cs2tools;
    import java.awt.*;
    import java.awt.font.*;
    import javax.swing.*;
    import java.util.*;
    import java.util.List; // For disambiguation
    /** Provides methods to graphically display objects and arrays. */
    public class ViewPanel extends JPanel {
         /** Singleton instance to allow static method calls, hiding OOP details from students. */
         private static ViewPanel instance = null;
         private static final long serialVersionUID = 1L;
         protected static void createInstance() {
              if (instance == null) {
                   JFrame frame = new JFrame();
                   frame.setSize(640, 480);
                   frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
                   instance = new ViewPanel();
                   frame.add(instance);
                   frame.setVisible(true);
         /** Displays object at position x, y. */
         public static void display(Object object, int x, int y) {
              display(object, x, y, "");
         /** Displays object at position x, y, using name in the title. */
         public static void display(Object object, int x, int y, String name) {
              createInstance();
              instance.addObject(x, y, object, name);
              instance.repaint();
         /** Refreshes the graphics to show any changes to displayed objects. */
         public static void refresh() {
              if (instance != null) {
                   instance.repaint();
         private FontRenderContext fontRenderContext;
         private Graphics2D graphics;
         private List<Object> objects;
         private List<ObjectView> views;
         protected ViewPanel() {
              objects = new ArrayList<Object>();
              views = new ArrayList<ObjectView>();
              setBackground(new Color(0x8fbfff)); // A tasteful light blue
         protected void addObject(int x, int y, Object object, String instanceName) {
              if (objects.contains(object)) {
                   throw new Error("The object " + object + " has already been displayed");
              objects.add(object);
              views.add(new ObjectView(this, x, y, object, instanceName));
         protected FontRenderContext getFontRenderContext() {
              return fontRenderContext;
         protected void paintComponent(Graphics g) {
              super.paintComponent(g);
              graphics = (Graphics2D)g;
              fontRenderContext = graphics.getFontRenderContext();
              for (ObjectView view : views) {
                   view.draw();
              for (ObjectView view : views) {
                   view.drawPointers(objects, views);
         public static void main(String[] args) {
              int[][] arr = new int[2][3];
              arr[0] = arr[1];
              display(arr, 100, 100);
              display(arr[0], 300, 100);          
    package cs2tools;
    import java.awt.*;
    import java.awt.geom.*;
    import java.lang.reflect.*;
    import static java.awt.Color.*;
    import static java.lang.Math.*;
    import java.util.List; // For disambiguation
    import static java.lang.reflect.Array.*;
    /** View of a single object, used by ViewPanel. */
    public class ObjectView extends Rectangle2D.Double {
         /** Height of each field box. */
         public static final int BOX_HEIGHT = 20;
         /** Width of each field box. */
         public static final int BOX_WIDTH = BOX_HEIGHT * 3;
         private static final long serialVersionUID = 1L;
         private Field[] fields;
         private Rectangle2D[] nameRectangles;
         private Object object;
         private ViewPanel panel;
         private String title;
         private Rectangle2D titleBar;
         private Rectangle2D[] valueRectangles;
         public ObjectView(ViewPanel panel, int x, int y, Object object, String name) {
              super(x, y, 0, 0);
              this.object = object;
              this.panel = panel;
              fields = object.getClass().getDeclaredFields();
              // Create title bar
              titleBar = new Rectangle2D.Double(x, y, BOX_WIDTH * 2 + BOX_HEIGHT, BOX_HEIGHT);
              title = name + ":" + object.getClass().getSimpleName();
              if (object.getClass().isArray()) {
                   // Adjust size of the entire cs2tools to accomodate fields
                   setRect(getX(), getY(), BOX_WIDTH * 2 + BOX_HEIGHT, BOX_HEIGHT * (3 + getLength(object)));
                   // Create field name and value rectangles
                   nameRectangles = new Rectangle2D[getLength(object)];
                   valueRectangles = new Rectangle2D[getLength(object)];
                   y += BOX_HEIGHT;
                   for (int i = 0; i < getLength(object); i++) {
                        y += BOX_HEIGHT;
                        nameRectangles[i] = new Rectangle2D.Double(x, y, BOX_WIDTH, BOX_HEIGHT);
                        valueRectangles[i] = new Rectangle2D.Double(x + BOX_WIDTH, y, BOX_WIDTH, BOX_HEIGHT);
              } else { // Not an array
                   // Adjust size of the entire cs2tools to accomodate fields
                   setRect(getX(), getY(), BOX_WIDTH * 2 + BOX_HEIGHT, BOX_HEIGHT * (3 + fields.length));
                   // Create field name and value rectangles
                   nameRectangles = new Rectangle2D[fields.length];
                   valueRectangles = new Rectangle2D[fields.length];
                   y += BOX_HEIGHT;
                   for (int i = 0; i < fields.length; i++) {
                        fields.setAccessible(true);
                        y += BOX_HEIGHT;
                        nameRectangles[i] = new Rectangle2D.Double(x, y, BOX_WIDTH, BOX_HEIGHT);
                        valueRectangles[i] = new Rectangle2D.Double(x + BOX_WIDTH, y, BOX_WIDTH, BOX_HEIGHT);
         protected void centerDot(Rectangle2D rect, Graphics2D graphics) {
              double radius = min(rect.getWidth() / 4, rect.getHeight() / 4);
              double x = rect.getCenterX();
              double y = rect.getCenterY();
              graphics.fillOval((int)(x - radius), (int)(y - radius), (int)(radius * 2), (int)(radius * 2));
         protected void centerText(String text, Rectangle2D rect, Graphics2D graphics) {
              Rectangle2D bounds = panel.getFont().getStringBounds(text, panel.getFontRenderContext());
              double x = (rect.getWidth() - bounds.getWidth()) / 2;
              double y = ((rect.getHeight() - bounds.getHeight()) / 2) - bounds.getY();
              graphics.drawString(text, (int)(rect.getX() + x), (int)(rect.getY() + y));
         /** Draw this ObjectView, but not its pointers. */
         public void draw() {
              try {
                   Graphics2D graphics = (Graphics2D) (panel.getGraphics());
                   // Draw the outer box
                   graphics.setColor(LIGHT_GRAY);
                   graphics.fill(this);
                   graphics.setColor(BLACK);
                   graphics.draw(this);
                   // Draw the title bar
                   graphics.setColor(WHITE);
                   graphics.fill(titleBar);
                   graphics.setColor(BLACK);
                   graphics.draw(titleBar);
                   graphics.setColor(BLACK);
                   centerText(title, titleBar, graphics);
                   // Draw the fields
                   for (int i = 0; i < nameRectangles.length; i++) {
                        String name;
                        String value;
                        boolean isPrimitive;
                        if (object.getClass().isArray()) {
                             name = i + "";
                             value = get(object, i) + "";
                             isPrimitive = object.getClass().getComponentType().isPrimitive();
                        } else {                         
                             Field field = fields[i];
                             name = field.getName();
                             value = field.get(object) + "";
                             isPrimitive = field.getType().isPrimitive();
                        graphics.setColor(WHITE);
                        graphics.fill(valueRectangles[i]);
                        graphics.setColor(BLACK);
                        graphics.draw(valueRectangles[i]);
                        centerText(name, nameRectangles[i], graphics);
                        if (isPrimitive) {
                             centerText(value, valueRectangles[i], graphics);
                        } else if (value.equals("null")) {
                             graphics.setColor(BLUE);
                             centerText("null", valueRectangles[i], graphics);
                        } else {
                             graphics.setColor(BLUE);
                             centerDot(valueRectangles[i], graphics);
              } catch (IllegalAccessException e) {
                   // We checked for this, so it should never happen
                   e.printStackTrace();
                   System.exit(1);
         /** Draw lines for any pointers from this ObjectView's fields to other ObjectViews in views. */
         public void drawPointers(List<Object> objects, List<ObjectView> views) {
              try {
                   Graphics2D graphics = (Graphics2D) (panel.getGraphics());
                   graphics.setColor(BLUE);
                   for (int i = 0; i < nameRectangles.length; i++) {
                        boolean isPrimitive;
                        Object target;
                        if (object.getClass().isArray()) {
                             isPrimitive = object.getClass().getComponentType().isPrimitive();
                             target = get(object, i);
                        } else {                         
                             Field field = fields[i];
                             isPrimitive = field.getType().isPrimitive();
                             target = field.get(object);
                        if (!isPrimitive && (target != null)) {
                             for (int j = 0; j < objects.size(); j++) {
                                  if (target == objects.get(j)) {
                                       ObjectView targetView = views.get(j);
                                       int x = (int)(valueRectangles[i].getCenterX());
                                       int y = (int)(valueRectangles[i].getCenterY());
                                       int tx = (int)(targetView.getCenterX());
                                       int ty = (int)(targetView.getCenterY());
                                       if (abs(x - tx) > abs(y - ty)) { // X difference larger -- horizontal line
                                            if (x < tx) { // Draw line to left side of target
                                                 graphics.drawLine(x, y, (int)(targetView.getX()), ty);
                                            } else { // Draw line to right side of target
                                                 graphics.drawLine(x, y, (int)(targetView.getX() + targetView.getWidth()), ty);
                                       } else { // Y difference larger -- vertical line
                                            if (y < ty) { // Draw line to top of target
                                                 graphics.drawLine(x, y, tx, (int)(targetView.getY()));
                                            } else { // Draw line to bottom of target
                                                 graphics.drawLine(x, y, tx, (int)(targetView.getY() + targetView.getHeight()));
              } catch (IllegalAccessException e) {
                   // We checked for this, so it should never happen
                   e.printStackTrace();
                   System.exit(1);

    Put your posted code inside code tags, or things like array element access expressions using common indices such as 'i' will be interpreted as italic by the forum software. Code tags are the word 'code' between square braces at the start and '/code' between square braces at the end.
    The fact that your code worked on a Mac is dumb luck. The code has a fatal flaw that causes the behavior you see on the Linux machines. Incidentally, Windows shows the same 'disappearing' problem.
    The error is in your draw() and drawPointers() methods. Both methods call
    panel.getGraphics()There is no guarantee that the Graphics object returned by this call is the same Graphics object being used to paint to the screen at any given moment. On a Mac, it appears to be. Elsewhere it clearly is not. You should be passing along the Graphics object handed to you in the paintComponent() method. This is the same Graphics object associated with the screen.
    protected void paintComponent(Graphics g) {
            super.paintComponent(g);
            graphics = (Graphics2D) g;
            fontRenderContext = graphics.getFontRenderContext();
            for (ObjectView view : views) {
                view.draw(g);
            for (ObjectView view : views) {
                view.drawPointers(g, objects, views);
        } public void draw(Graphics g) {
            try {
                Graphics2D graphics = (Graphics2D) g;
    public void drawPointers(Graphics g, List<Object> objects, List<ObjectView> views) {
            try {
                Graphics2D graphics = (Graphics2D) g;

  • My beats studio 2013 work fine on my ipad but the mic/ volume control doesn't work on my iphone 5

    My beats studio 2013 work fine on my ipad but the mic/ volume control doesn't work on my iphone 5. Can anyone help me?

    Thanks, daniel.early79!
    I have an iPhone5 bought in late Dec 2012.
    I've noticed on rare occassions that the volume down button some times would not respond.
    Starting yesterday, the volume down button would not respond more consistently.
    Sometimes a reset would fix it, sometimes a reset network would fix it, but the problem would come back.
    Came across this thread, and pressing gently on the upper right hand corner fixed it!
    I remember seeing some video on Youtube or iFixit that shows how to replace the power button. It appears that the volume buttons and the power buttons are tied in together on the same piece of connector. I supposed taking the iphone in and out of cases may have warped or twisted the connector inside the case ever so slightly that the sensor for the down volume button got shifted.
    The down volume button works now, after doing the trick you suggested. I'll wait and see if it comes back before taking it in for warranty repair.

  • Facetime works fine on my iphone, but will not work on my MBA.

    Facetime works fine on my iphone, but will not work on my MBA.   Keeps telling me "unable to verify address" and says it is sending me a verification link to my email address but I never get anything.   Crazy. 
    After a while it tells then me that it cannot verify my email address because of a network connection  ("Could not verify the email address. Please check your network connection and try again. ")
    Does anyone have any ideas?

    Facetime works fine on my iphone, but will not work on my MBA.   Keeps telling me "unable to verify address" and says it is sending me a verification link to my email address but I never get anything.   Crazy. 
    After a while it tells then me that it cannot verify my email address because of a network connection  ("Could not verify the email address. Please check your network connection and try again. ")
    Does anyone have any ideas?

  • Hello I have imac (27-inch mid 2011) 3.1ghz intel core i5 1tb serial ata hard drive, amd radeon hd 6970m my problem is imac works fine in safe mode,but when you try to startup normal it's connstantly restart by it self.

    hello I have imac (27-inch mid 2011) 3.1ghz intel core i5 1tb serial ata hard drive, amd radeon hd 6970m
    my problem is
    imac works fine in safe mode,
    but when you try to startup normal it's connstantly restart by it self.

    in safe mode works perfectly,soon as I try to boot in normal mode it's keep restarting.on screen I don't  see any line vertical or horizontal picture look normal on safe mode.but unable to start normal it just restarting over and over.I try another HDD but same things happen,I replace memory but still same.works ok in safe mode but not in normal mode.I will try to post system error report.

  • How do I connect to Net Flix? I put in my user name and password which work fine with my iMac but not on my Apple TV?

    How do I connect to Net Flix? I put in my user name and password which work fine with my iMac but not on my Apple TV?

    Can you give me a screenshot of the User Accounts window in Control Panel?
    Please create a screenshot by following the guide mentioned at [[How do I create a screenshot of my problem?]].
    Once you've done this, attach the saved screenshot file to your forum post by clicking the '''Browse...''' button below the ''Post your reply'' box. You really help us to visualize the problem.

  • I am trying to connect to my Wifi Network. It is a Galaxy Nexus. I am trying to connect to this Hotspot. I have an iMac that works fine with my network but for some reason with this computer I cannot connect.

    So far I have pulled the system configuration file, I have reset safari, I deleted all old passwords from the wifi network in Keychain I restarted both devices. I am at the end here and I cannot get it to work I have an iMac that works fine with my network but for some reason this computer will not connect. It is system wide specifically to my personal hotspot. I can connect fine to any other network (wifi) but just not mine. I have not changed any wifi settings. I have been trying to figure this out. I have a MacBook Pro Late 2006 model running Lion (10.7.5) So any ideas anyone? Please help!

    12. At a WiFi hotspot, you can't get connected.  The most frequent reason is the login screen for the WiFi hotspot is only able to be connected with a single type of browser.  If Safari doesn't work, try Firefox, Chrome, Omniweb, or Opera. 
    From my tip:
    https://discussions.apple.com/docs/DOC-6411

  • WHEN I GO TO PRIVACY SETTINGS AND CLICK ON EXCEPTIONS AND TYPE IN A WEB ADDRESS TO ALLOW ALL THE TIME IT DOES NOT SAVE IT THE NEXT TIME I SIGN ON TO FIRE FOX IT IS LOST. IT WORKS FINE ON MY DESKTOP BUT NOT ON MY LAPTOP THAT I JUST BOUGHT in English.

    Question
    WHEN I GO TO PRIVACY SETTINGS AND CLICK ON EXCEPTIONS AND TYPE IN A WEB ADDRESS TO ALLOW ALL THE TIME IT DOES NOT SAVE IT THE NEXT TIME I SIGN ON TO FIRE FOX IT IS LOST. IT WORKS FINE ON MY DESKTOP BUT NOT ON MY LAPTOP THAT I JUST BOUGHT in English.

    I just updated my whatsapp...clicked on whatsapp in appstore and now can access my whatsapp

  • ANT Deployment issue. works fine in one environment but fails in other

    Hi,
    Ant script is working fine in Dev environment but is failing in the other environment. Somehow the BPEL server is not able to pick the latest deployed process , due to this the dependent BPEL processes are failing. If we restart the server , it moves forward and then fails at the point where it couldn’t find reference to the processes deployed after restart. Restarting the server at every failed interval will deploy all the BPEL processes which is not the solution.
    example : we have BPEL Processes say A, B, C, D and E. A,B are independent processes C is dependent on A, D is independent and E is dependent on D. So I have Ant script to deploy in A,B,C,D,E order. Now I run the Ant Script: It deploys A,B processes and Fails at C saying it couldn't find the process A.wsdl(But A is deployed). So if i restart now it recognizes A and B are deployed so C is also deployed succesfully it also deploys D as it is Independent but fails at E. If i restart the server E is also deployed.
    The Environment is clustered.
    Any suggestion to make my Ant script to run at a go will be highly appreciated
    Thanks
    Krishna

    Hi KrishnaBhaskarla,
    I have something related to ant script, Can you please provide me the steps for deploying applications using ant script.
    Regards
    Kumar

  • Is there a way to print from ipad 4 to a non AirPrint printer? I have a Canon Pixma MP 620 wifi which works fine with my PC but I don't want to buy a new printer. Is there an app for this or adaptors which could work?   thank, Ric

    Is there a way to print from ipad 4 to a non AirPrint printer?
    I have a Canon Pixma MP 620 wifi which works fine with my PC but I don't want to buy a new printer.
    Is there an app for this or adaptors which could work? 
    Thank, Ric

    Printopia is another option but be aware that since these solutions effectively act as a print server and AirPrint receiver, they require a computer to be running on the same WiFi network.
    Canon also has a couple of apps in the App Store that might facilitate this on non-AirPrint printers. Check out...
    Canon Easy-PhotoPrint
    Canon Mobile Printing
    PIXMA Printing Solutions

Maybe you are looking for

  • 2 analog output channels with different frequencies

    Hi, hope that somebody can help me: I created two physical tasks, analog output channels. I should give signals (triangle signals) to a scanner. The problem ist that I need these triangle signals with two different frequencies. I can create the signa

  • To fill in the material number with item category u201CBu201D for Framework Order.

    The use of framework orders (also referred to as blanket purchase orders)  enables you to procure a variety of materials or services from a vendor up to a predefined maximum value (the value limit). Instead of a specific delivery date, you specify a

  • Default display option in MB51

    Hi Folks, Can anyone help me in setting up a user specific default DISPLAY OPTION in transaction MB51. Expecting an early reply. T H A N K S, Sugopa

  • SAP Query not working

    Hi, I am facing problem with SAP Query. My query is not working for one particular date. Its giving timeout error when i just give date as input. I tried executing it by giving some particular document as input, then its giving "no data" message but

  • Unvisible Data on the report

    Hello, I use CrystalReport in VS2005. Some of my Users have the Problem to get a blank report. But the data is on the report, If they search for a text, the correct field is marked. Dim rpt As New TKursCR 'CrystalReport Dim crvDruck as New CrystalDec