Custom TreeCellRenderer not working in Program

The following 2 lines set my TreeCellRenderer
FSDirectoryCellRenderer renderer1 = new FSDirectoryCellRenderer();
jtree.setCellRenderer(renderer1);
Rendering is not working in the Below Program. But If I comment the above 2 lines the default rendering is working. There is a probelm with my rendering class FSDirectoryCellRenderer which I am not able to figure out. PLease help me out
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Component;
import javax.swing.ImageIcon;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JScrollPane;
import javax.swing.JTextField;
import javax.swing.JTree;
import javax.swing.UIManager;
import javax.swing.border.BevelBorder;
import javax.swing.border.SoftBevelBorder;
import javax.swing.event.TreeSelectionEvent;
import javax.swing.event.TreeSelectionListener;
import javax.swing.tree.DefaultMutableTreeNode;
import javax.swing.tree.DefaultTreeCellRenderer;
import javax.swing.tree.DefaultTreeModel;
import javax.swing.tree.TreeCellRenderer;
import javax.swing.tree.TreePath;
public class UniversityLayout extends JFrame {
     private JTree jtree = null;
     private DefaultTreeModel defaultTreeModel = null;
     private JTextField jtfStatus;
     public UniversityLayout() {
          super("A University JTree Example");
          setSize(300, 300);
          Object[] nodes = buildJTree();
          DefaultTreeCellRenderer renderer = new DefaultTreeCellRenderer();
          renderer.setOpenIcon(new ImageIcon("opened.gif"));
          renderer.setClosedIcon(new ImageIcon("closed.gif"));
          renderer.setLeafIcon(new ImageIcon("leaf.gif"));
          jtree.setCellRenderer(renderer);
          jtree.setShowsRootHandles(true);
          jtree.setEditable(false);
          jtree.addTreeSelectionListener(new UTreeSelectionListener());
          FSDirectoryCellRenderer renderer1 = new FSDirectoryCellRenderer();
          jtree.setCellRenderer(renderer1);
          JScrollPane s = new JScrollPane();
          s.getViewport().add(jtree);
          getContentPane().add(s, BorderLayout.CENTER);
          jtfStatus = new JTextField(); // Use JTextField to allow copy operation
          jtfStatus.setEditable(false);
          jtfStatus.setBorder(new SoftBevelBorder(BevelBorder.LOWERED));
          getContentPane().add(jtfStatus, BorderLayout.SOUTH);
          TreePath path = new TreePath(nodes);
          jtree.setSelectionPath(path);
//          jtree.scrollPathToVisible(path);
     class FSDirectoryCellRenderer extends JLabel implements TreeCellRenderer {
          private Color textSelectionColor;
          private Color textNoSelectionColor;
          private Color backgroundSelectionColor;
          private Color backgroundNoSelectionColor;
          private boolean sel;
          public FSDirectoryCellRenderer() {
               super();
               textSelectionColor = UIManager.getColor("Tree.selectionForeground");
               textNoSelectionColor = UIManager.getColor("Tree.textForeground");
               backgroundSelectionColor = UIManager
                         .getColor("Tree.selectionBackground");
               backgroundNoSelectionColor = UIManager
                         .getColor("Tree.textBackground");
               setOpaque(false);
          public Component getTreeCellRendererComponent(JTree tree, Object value,
                    boolean selected, boolean expanded, boolean leaf, int row,
                    boolean hasFocus) {
               DefaultMutableTreeNode node = (DefaultMutableTreeNode) value;
               Object obj = node.getUserObject();
               setText(obj.toString());
               if (obj instanceof Boolean) {
                    setText("Loading");
               if (obj instanceof NodeIconData) {
                    NodeIconData nodeIconData = (NodeIconData) obj;
                    if (expanded) {
                         setIcon(nodeIconData.getExpandedIcon());
                    } else {
                         setIcon(nodeIconData.getNormalIcon());
               } else {
                    setIcon(null);
               setFont(jtree.getFont());
               setForeground(selected ? textSelectionColor : textNoSelectionColor);
               setBackground(selected ? backgroundSelectionColor
                         : backgroundNoSelectionColor);
               sel = selected;
               return this;
     private Object[] buildJTree() {
          Object[] nodes = new Object[4];
          DefaultMutableTreeNode root = new DefaultMutableTreeNode(new College(1, "College"));
          DefaultMutableTreeNode parent = root;
          nodes[0] = root;
          DefaultMutableTreeNode node = new DefaultMutableTreeNode(new College(2, "Class 1"));
          parent.add(node);
          parent = node;
          parent.add(new DefaultMutableTreeNode(new College(3, "Section A")));
          parent.add(new DefaultMutableTreeNode(new College(4, "Section B")));
          parent = root;
          node = new DefaultMutableTreeNode(new College(5, "Class 2"));
          parent.add(node);
          nodes[1] = node;
          parent = node;
          node = new DefaultMutableTreeNode(new College(6, "Science"));
          parent.add(node);
//          nodes[2] = node;
          parent = node;
          parent.add(new DefaultMutableTreeNode(new College(7, "Computer Science")));
          parent.add(new DefaultMutableTreeNode(new College(8, "Information Science")));
          parent = (DefaultMutableTreeNode)nodes[1];
          node = new DefaultMutableTreeNode(new College(9, "Arts"));
          parent.add(node);
          nodes[2] = node;
          parent = (DefaultMutableTreeNode)nodes[2];
          parent.add(new DefaultMutableTreeNode(new College(10, "Drawing")));
          node = new DefaultMutableTreeNode(new College(11, "Painting"));
          parent.add(node);
          nodes[3] = node;
          parent = (DefaultMutableTreeNode)nodes[1];
          parent.add(new DefaultMutableTreeNode(new College(12, "Telecom")));
          defaultTreeModel = new DefaultTreeModel(root);
          jtree = new JTree(defaultTreeModel);
          return nodes;
     public static void main(String argv[]) {
          UniversityLayout frame = new UniversityLayout();
          frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
          frame.setVisible(true);
     class UTreeSelectionListener implements TreeSelectionListener {
          public void valueChanged(TreeSelectionEvent e) {
               TreePath path = e.getPath();
               Object[] nodes = path.getPath();
               String status = "";
               for (int k = 0; k < nodes.length; k++) {
                    DefaultMutableTreeNode node = (DefaultMutableTreeNode) nodes[k];
                    College nd = (College) node.getUserObject();
                    status += "." + nd.getId();
               jtfStatus.setText(status);
class College {
     protected int id;
     protected String name;
     public College(int id, String name) {
          this.id = id;
          this.name = name;
     public int getId() {
          return id;
     public String getName() {
          return name;
     public String toString() {
          return name;
}

It works fine for me (after commenting out the part about NodeIconData, whose source you didn't provide). What is the behavior you expect to see but don't? Is it that when you click on a tree node, it doesn't appear "selected?"
Why not extends DefaultTreeCellRenderer? You appear to be doing minimal configuring (sometimes changing the text and/or icon of the node).
     class FSDirectoryCellRenderer extends DefaultTreeCellRenderer {
          public FSDirectoryCellRenderer() {
               super();
               setOpaque(false);
          public Component getTreeCellRendererComponent(JTree tree, Object value,
                    boolean selected, boolean expanded, boolean leaf, int row,
                    boolean hasFocus) {
               super.getTreeCellRendererComponent(tree, value, selected, expanded,
                                   leaf, row, hasFocus);
               DefaultMutableTreeNode node = (DefaultMutableTreeNode) value;
               Object obj = node.getUserObject();
               setText(obj.toString());
               if (obj instanceof Boolean) {
                    setText("Loading");
//               if (obj instanceof NodeIconData) {
//                    NodeIconData nodeIconData = (NodeIconData) obj;
//                    if (expanded) {
//                         setIcon(nodeIconData.getExpandedIcon());
//                    } else {
//                         setIcon(nodeIconData.getNormalIcon());
//               } else {
                    setIcon(null);
               return this;
     }

Similar Messages

  • Spotlight not working within program. Please HELP!

    Spotlight not working within programs. Cannot not locate files on network volumes.
    For example: if I am using Photoshop or MultiAd Creator Pro, and want to open a file, I will do File>Open and  use spotlight in the "Open" dialog, and it doesn't ever find anything? I can see the files but if I search it fails to locate. Same thing happens if I try to "Place Graphic" In MultiAd and other programs. It appears to be a universal issue regardless of program.
    I tried re-indexing spot light via the system preferences (privacy, drag in volume, remove volume). I also tried re-indexing via terminal.
    I tried mounting the volumes via afp, smb, cifs and nothing works!!
    This issue is handicapping production.
    Anyone??
    Thank you in advance RR

    Spotlight alternatives.
    EasyFind – Spotlight Replacement
    Find Any File

  • 3D in photoshop cc does not work, the program will be cut off automatically

    3D in photoshop cc does not work, the program will be cut off automatically.What can I do?

    my problem is as follows.If I want to make a 3d creation in photoshop, then
    asked me to cc in clicking function 3D, after new JUST by layer and then
    JUST PRESET and then sphere. Then opens a new window where in it says: you
    are about to make a 3d layer.Do you want to switch on the 3d workspace? I
    choose YES Then I get to see a new window stating that the program no
    longer work properly and quits. Am I doing something wrong or is my pc not
    suitable? data from my laptop are: processor a4-5000 AMD APU with radion
    (tm) HD graphics 64-bit operating system, hr 4.00 1.50 Gb x64processor
    honor!
    mijn probleem is als volgt.Als ik een 3d creatie wil maken in photoshop cc,
    dan wordt mij gevraagt om in functie 3D aan te klikken, daarna NIEUW NET
    VAN LAAG en dan VOORINSTELLING VOOR NET en dan BOL.
    Dan opend zich een nieuw venster waar in staat:u staat op het punt een 3d
    laag te maken.Wilt u overschakelen op de 3d werkruimte?
    Ik kies dan voor JA
    Vervolgens krijg ik een nieuw venster te zien waarin staat dat het
    programma niet goed meer werkt en wordt afgesloten.
    Doe ik iets verkeerd of is mijn pc niet geschikt?
    gegevens van mijn laptop zijn :
    processor AMD a4-5000 APU with radion(tm) HD graphics 1.50 hr
    4.00 Gb
    64 bits besturingsysteem, x64processor
    2014-12-18 10:14 GMT+01:00 c.pfaffenbichler <[email protected]>:
        3D in photoshop cc does not work, the program will be cut off
    automatically  created by c.pfaffenbichler
    <https://forums.adobe.com/people/c.pfaffenbichler> in *Photoshop General
    Discussion* - View the full discussion
    <https://forums.adobe.com/message/7025920#7025920>

  • Since 2012 I have Photoshop Elements always worked without any problem, however now the language is suddenly German how can this be changed, removed the program and re-installed, not working. Program is downloaded and updated via the apple app store?

    Since 2012 I have Photoshop Elements always worked without any problem, however now the language is suddenly German how can this be changed, removed the program and re-installed, not working. Program is downloaded and updated via the apple app store?

    I've done some research on the SQLite database. Whenever Aperture hangs up (like during auto-stack or opening the filter hud) there are thousands of SQLite queries happening. These SQLite queries cause massive file I/O because the database is stored on the disk as 1kb pages. However, the OS is caching the database file; mine's only 12MB. I'm trying to track down some performance numbers for SQLite on osx but having trouble.
    It's starting to look like most of the speed problems are in the libraries that Aperture uses instead of the actual Aperture code. Of course, that doesn't completely let the developers off the hook since they choose to use them in the first place.
    Oh, and if anyone is curious, the database is completely open to queries using the command line sqlite3 tool. Here's the language reference http://www.sqlite.org/lang.html
    Hmm, just found this. Looks like someone else has been playing around in the db http://www.majid.info/mylos/stories/2005/12/01/apertureInternals.html
    Dual 1.8 G5   Mac OS X (10.4.3)   1GB RAM, Sony Artisan Monitor, Sony HC-1 HD Camera

  • The customer themes not working after installing support package.

    Hi,
      In a Web dynpro ABAP aplication that i made in a project, we have a customer theme. We transported the development of a new host that had a higher level of support package, and it has stopped working properly the customer theme. We´ve gone from 7.0 sp 9 to sp 20. Well, when you run the programa WD_THEMES, in the ALV appeared to me not the customer theme. So I exported the standar themes and with Eclipse, I´ve copied and re-created the customer theme by modifying the latter.
    Once changed, I try exporting to the test environment and it is here that the level of support package was sp18. I could not import it because the version was not the same.In the development environment was 7.0.19.1 and in the test environment was 7.0.15.1.
    The question that comes to me is when we have a customer theme in a environment and upgrade the level of support package, is the version of all themes listed in the program updated or only the standar themes?. If this is so, if we upgrade the level of support package we will have to re-export the standar themes, copy one of theme and go back to redo our theme, right?.
    Thanks and hope your answer.

    Hi Karthik,
    Let me clarify on "Not working"
    It showned synchrozation successuffly but no data transfer between client and middleware and vs.  For instance, the user never receive any new work orders, or their times never got transfered back to R/3.  Even though, there is no error on the client.
    It appear that step 1-4 are required otherwise, you get ABAP Runtime error (using ST22):
    Runtime Error          CALL_FUNCTION_NOT_FOUND    
    Except.                CX_SY_DYN_CALL_ILLEGAL_FUNC
    Date and Time          02/07/2007 08:12:27        
    After we performed step 1-4 but there were data transfer between client and R/3.  The only way to get it working, we had to delete client and re-assign MAM 2.5 back to each users.
    No, we didn't apply client patch SP19.  We are still using SP16.
    As we speak, everything is working because we had to re-assign MAM 2.5 for every users. but I hope we don't have to do this next time we apply another Support Package.
    Thanks.
    Dai Ly

  • Customer Workflows Not Working from SRM Inbox

    Hi everyone,
    We are upgrdaing our EBP v3.5 system to SRM 5.0 (SRM SERVER 5.5 SP 5).
    We are using integrated ITS and have many bespoke workflows which need to executeable in the SRM inbox via the integrated ITS and ultimately the portal (EP 7.0).
    We have various issues with our bespoke workflows not working. The 2 errors we have found are:
    1. When the users click on the workitem from the SRM inbox they sometimes see 'Service Cannot be Reached' error.
    2. Other times they see the workitem details with no user decision buttons shown.
    3. Other times the user decision buttons are shown but if the user clicks on one, they see a blank page with text "workitem currently locked by user WF_BATCH" at the top. This is an 'advance with dialog' task which works fine via SAPGUI.
    Any ideas on any of the specific issues, or anything which we need to do generally to get custom workitems to be executeable via the ITS?
    Thanks a lot,
    Nick

    Hi abhijit,
    I checked that but I set it to blank in debug mode..but its still disappearing...the button disappears after pressing enter on error message.
    actually the BADI when I implemented there is one method where I set E_ADD_ON_ACTIVE flag to 'X' to bring that button(recommended by SAP). that method is not getting called...

  • Flex 4: Custom ScrollBar not working in Custom DropDownList

    Hello,
    I'm having an odd issue that I just cannot figure out. I have a custom DropDownList .as component (to pass color values) and a custom skin. In this skin I am using a custom Scroller (same AS file component with mxml skin). When I use this configuration, clicking on the scrollbar just closes the DropDown. If I remove the skin from my custom scrollbar it works, which leads me to believe it has something to do with the DropDown skin. Even if I revert my custom Scroller to the spark Scroller, it still doesn't work. I've narrowed it down to what seems like a problem with my DropDownList skin.
    Not really sure what code to put here, but all I've been doing is right clicking my project and making new ActionScript components and MXML skins from the default skin. Here is my DropDownList skin, not sure if I should paste any other code? I have no idea what would be causing this, so I don't really know what code to place.
          [HostComponent("ccm.DropDown.DropDownList")]          

    Woops, the code didn't place correctly, here it is:
    <s:SparkSkin xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark"
        xmlns:fb="http://ns.adobe.com/flashbuilder/2009" alpha.disabled=".5" xmlns:Scroller="ccm.Scroller.*" xmlns:DropDown="ccm.DropDown.*">
        <fx:Metadata>
              [HostComponent("ccm.DropDown.DropDownList")]
         </fx:Metadata>
        <!-- host component -->
         <fx:Script fb:purpose="styling">
              <![CDATA[           
                   import flash.filters.BitmapFilterQuality;
                   import flash.filters.BitmapFilterType;
                   import mx.controls.Alert;
                   import spark.filters.*;
                   /* Define the content fill items that should be colored by the "contentBackgroundColor" style. */
                   static private const contentFill:Array = [];
                    * @private
                   override public function get contentItems():Array {return contentFill};
                    * @private
                   override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void
                        openButton.setStyle("cornerRadius", getStyle("cornerRadius"));
                        super.updateDisplayList(unscaledWidth, unscaledHeight);
              ]]>
         </fx:Script>
         <s:states>
              <s:State name="normal" />
              <s:State name="open" />
              <s:State name="disabled" />
         </s:states>
         <!---
         The PopUpAnchor control that opens the drop-down list.
         <p>In a custom skin class that uses transitions, set the
         <code>itemDestructionPolicy</code> property to <code>none</code>.</p>
         -->
         <s:PopUpAnchor id="popUp"  displayPopUp.normal="false" displayPopUp.open="true" includeIn="open"
                           left="0" right="0" top="0" bottom="0" itemDestructionPolicy="auto"
                           popUpPosition="below" popUpWidthMatchesAnchorWidth="true" >
              <!---
              This includes borders, background colors, scrollers, and filters.
              @copy spark.components.supportClasses.DropDownListBase#dropDown
              -->
              <s:Group maxHeight="134" minHeight="22" >
                   <s:Rect id="fill" left="1" right="1" top="1" bottom="0" bottomLeftRadiusX="16.5" bottomRightRadiusX="16.5" topLeftRadiusX="16.5" topRightRadiusX="16.5" >
                        <s:fill>
                             <s:SolidColor color="0xFFFFFF" />
                        </s:fill>
                        <s:filters>
                             <s:GlowFilter
                                  color="0x000000"
                                  alpha=".35"
                                  blurX="6"
                                  blurY="6"
                                  strength="1"
                                  quality="{BitmapFilterQuality.HIGH}"
                                  inner="true"
                                  knockout="false"/>
                        </s:filters>
                   </s:Rect>
                   <!--- @private -->
                   <Scroller:Scroller id="scroller" left="8" top="8" right="8" bottom="8" hasFocusableChildren="false" minViewportInset="1"
                                          showButtons="false"
                                          trackColor="{hostComponent._trackColor}"
                                          thumbColor="{hostComponent._thumbColor}"
                                          skinClass="ccm.Scroller.ScrollerSkin">
                        <!--- @copy spark.components.SkinnableDataContainer#dataGroup-->
                        <s:DataGroup id="dataGroup" itemRenderer="ccm.DropDown.DropDownItemRenderer">
                             <s:layout>
                                  <s:VerticalLayout gap="0" horizontalAlign="contentJustify"/>
                             </s:layout>
                        </s:DataGroup>
                   </Scroller:Scroller>
              </s:Group>
         </s:PopUpAnchor>
         <!---  The default skin is DropDownListButtonSkin.
         @copy spark.components.supportClasses.DropDownListBase#openButton
         @see spark.skins.spark.DropDownListButtonSkin -->
         <DropDown:DropDownButton id="openButton" left="0" right="0" top="0" bottom="0" focusEnabled="false"
                                        skinClass="ccm.DropDown.DropDownButtonSkin"
                                        buttonColor="{hostComponent._buttonColor}"
                                        /> 
         <!--- @copy spark.components.DropDownList#labelDisplay -->
         <s:Label id="labelDisplay" verticalAlign="middle" maxDisplayedLines="1"
                    mouseEnabled="false" mouseChildren="false"
                    left="12" right="30" top="2" bottom="2" width="75" verticalCenter="1" />
    </s:SparkSkin>

  • File upload custom renaming not working with {KT_ext}

    Hi,
    I used many times custom renaming with file upload, and used {KT_ext} for file's extension, but in first ADDT project is not working. I use this:
    $uploadObj->setRenameRule("{GET.id_cd}_{track}.{KT_ext}");
    Does anybody know if {KT_ext} is broken in ADDT?
    Thank you,
    Ruben

    Hi Günter,
    {track} and {id_track} are both table fields, and setRenameRule worked right with both, but it didn't with {KT_ext}.
    I've changed {track} with {id_track} in first page, and it stills fail to put extension.
    But maybe is this, in first page the column for Update Transaction is like this
    $upd_cds_peces->addColumn("mp3", "FILE_TYPE", "POST", "mp3");
    and in the second page (where it works right) is
    $upd_cds_peces->addColumn("mp3", "FILE_TYPE", "FILES", "mp3");
    Althought in both cases the file is uploaded and DDBB field is filled, maybe in first case the TNG doesn't expect a file and cannot find its extension.
    I'll try to change it,
    thanks,
    Ruben
    Edit: Yes, it was this... Now it works. Thank you Günter for your help!

  • RFC Function module is not working in program while Background

    Hi All,
    we have a one program in BI  system which is calling RFC function module. it is executing the program in foreground very well. Same program we have executed in background , it is not working at all. Thiis RFC function module exists in R/3 4.6c system.

    Hello Raju,
    Transactional call of a remote-capable function module specified in func using the RFC interface. You can use the addition DESTINATION to specify an individual destination in dest. If the destination has not been specified, the destination NONE is used implicitly. Character-type data objects are expected for func and dest.
    When the transactional call is made, the name of the called function, together with the destination and the actual parameters given in parameter list, are registered for the current SAP LUW in the database tables ARFCSSTATE and ARFCSDATA of the current SAP system under a unique transaction ID (abbreviated as TID, stored in a structure of type ARFCTID from the ABAP Dictionary, view using transaction SM58). Following this registration, the program making the call is continued by way of the statement CALL FUNCTION.
    When executing the COMMIT WORK statement, the function modules registered for the current SAP LUW are started in the sequence in which they were registered. The statement ROLLBACK WORKdeletes all previous registrations of the current SAP LUW.
    If the specified destination is not available for COMMIT WORK, an executable called RSARFCSE is started in the background. This attempts to start the functional modules registered for an SAP LUW in their destination, every 15 minutes up to a total of 30 times. You can make changes to these parameters using transaction SM59. If the destination does not become available within the given time, this is noted in the database table ARFCSDATA as a CPICERR entry. By default, this entry in database table ARFCSSTATE is deleted after 8 days.
    Thanks and Regards,
    SAP Shori

  • Custom Field not working

    Hi,
    I've made a project level custom field in PWA that takes "Total Slack" (in-built duration field) and based on a switch formula gives out 3 values viz. High, Medium, Low The field formula is as mentioned below:
    Switch([Total Slack] <= -7, "High", [Total Slack] >= 0, "Low", [Total Slack] > -7 And [Total Slack] <= -1, "Medium")
    The formula works very well and displays value as High for projects with Total slack less than -7. However, the formula is not working for Total Slack between -7 and -1 i.e. greater than - 7 and less than -1. The formula returns the value as "High"
    only.
    I've tried editing and publishing the project both from PWA as well as Proj Professional after updating task duration to calculate Total Slack.
    This field is critical and used in many views. I am looking for a solution to resolve this issue. Any help in this regard would be appreciated.

    The next step then would be to move away from the SWITCH statement and use a nested if statement, along the lines of....
    iif ([Total
    Slack]/[Minutes
    Per
    Day]<=-7,"High",iif([Total
    Slack]/[Minutes
    Per
    Day]<=-1,"Medium","Low"))
    Please note that I haven't validated this formula as I don't have MSProject on this PC, but it should be good enough to take you forward.
    Ben Howard [MVP] | web |
    blog |
    book | P2O

  • Urgent--custom servlet not working with https/gateway of the portal server

    We have created the custom servlet to add some more authentication to the login screen. I have explained detaildely below.
    We have set if password reset change password screen should come by using identity server.
    First screen comes which asks �user id� and �password�.
    after this next screen comes with �old password�, �New Password� and �Confirm Password� (as we have forcefully asked user to change password after reset by using identity server ).
    On this page we have added two new filed �Date of Birth� and �Date of Joining�.
    And we are forcefully transferring request to our Custom Servlet which will validate the �Date of Birth� and �Date of Joining� from the database and submit the same a form as required by Login Servlet to validate the default parameters �old Password�, �New Password� and �Confirm Password� (which is the default validation without adding custom Servlet).
    This whole process is working with �http� protocol and giving �unable to connect� host with �https� protocol.
    Without custom Servlet process is like this, which is working
    Login (usrid, password) � Login (Old Password, New Password, Confirm Password) � Portal home Page
    With custom Servlet , Which is not working with �https� Protocol. we are getting the message "Authentication Failed" screen.
    Login (usrid, password) --> Login (Old Password, New Password, Confirm Password , Date of Birth, Date of Joinig) --> Custom Servlet validate Date of Birth, Date of Joining --> Login (Old password, new Password, Confirm Password) --> Protal Home Page
    This one works with http, whereas this one gives the "Authentication Failed" screen with the https.
    Please let me know if anybody have implemented this and help me to resolve the issue.
    Best Regards
    Ramkumar

    Hi,
    I am also getting this error message in the sun ONE webserver error log file....
    [20/Nov/2004:13:42:39] failure ( 6162): for host 172.16.5.21 trying to GET /amserver/UI/Login, service-j2ee reports:
    StandardWrapperValve[LoginServlet]: WEB2792: Servlet.service() for servlet LoginServlet threw exception
    com.iplanet.jato.CompleteRequestException
    at com.sun.identity.authentication.UI.AuthenticationServletBase.onUncaughtException(AuthenticationServletBase
    .java:141)
    at com.iplanet.jato.ApplicationServletBase.fireUncaughtException(ApplicationServletBase.java:1023)
    at com.iplanet.jato.ApplicationServletBase.processRequest(ApplicationServletBase.java:469)
    at com.iplanet.jato.ApplicationServletBase.doPost(ApplicationServletBase.java:324)
    at com.iplanet.jato.ApplicationServletBase.doGet(ApplicationServletBase.java:294)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:787)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:908)
    at org.apache.catalina.core.StandardWrapperValve.invokeServletService(StandardWrapperValve.java:771)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:322)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:509)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:212)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:509)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:209)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:509)
    at com.iplanet.ias.web.connector.nsapi.NSAPIProcessor.process(NSAPIProcessor.java:161)
    at com.iplanet.ias.web.WebContainer.service(WebContainer.java:586)
    Regards
    Ramkumar R

  • Java object with ArrayList of custom objects not working

    I have a custom java object that has an ArrayList of another set of custom objects (code listed below). I can pull back a Customer object (to flex client) and it's recognized as a Customer action script object, but the ArrayList in the Customer object is not recognized as an ArrayCollection of Accounts. Instead it is an ArrayCollection of Action Script Objects.
    At first I thought something was wrong with my action script Account class, but then I tried to pull back just an Account and it was recognized as an action script Account. It's just when I have my Customer object with an ArrayList of Accounts that it isn't getting converted.
    Is there something else I need to do to have that ArrayList be recognized as an ArrayCollection of Accounts on the Flex Client side? Is there some way of specifying what type an ArrayCollection is mapped to?
    Thanks in advance for the help!
    public class Customer {
         private String name;
         private String address;
         private ArrayList<Account> accounts;
         public Customer(){
         public String getName(){
              return name;
         public void setName(String str){
              name = str;
         public String getAddress(){
              return address;
         public void setAddress(String str){
              address = str;
         public ArrayList<Account> getAccounts(){
              return accounts;
         public void setAccounts(ArrayList<Account> list){
              accounts = list;
    public class Account {
         private long accountNumber;
         private String type;
         private double balance;
         public Account(){
         public long getName(){
              return accountNumber;
         public void setName(long l){
              accountNumber= l;

    I accidently found how to make this work. I may have missed something while reading about blazeDS reflection, but I thought I'd pass this along anyway.
    What I have is I have an class A. In class A I have an arraycollection of Class B. If I want that arraycollection to return to the server with the correct class, then I need to include Class B in the compiled swf. How I have done that is to create a dummy variable of type B. Importing B will not work you actually need to have a member variable of type B even if you don't need it.
    Example
    import dataobjects.B;
    [RemoteClass(alias="dataobjects.A")]
    public class A {
       private var _b:B; //This is never used, but needed to include B object in swf to be reflected.
       private var_ bList:ArrayCollection = new ArrayCollection();
      public function A(){
      public function set bList(list:ArrayCollection):void{
         _bList = list;
      public function get bList():ArrayCollection{
        return _bList;

  • IOS 5 Custom Vibrations not working

    I am trying to assign a custom vibration to a specific person in my Contacts on my iPhone 4.  I have activated, created and saved the vibration as instructed and I have assigned it in the edit contact screen.  (When in the edit contact screen I have three 'sound' option menus:  One titled 'Ringtone';  underneath that, one titled 'Vibration' and then separate and under that, one titled 'text tone').  I have assigned my custom vibration under the 'Vibration' menu.
    However, whenever that specific contact sends me a text message, my phone still vibrates with the default two 'vibrations', just like it always has.  It will not do the custom vibration.
    I have a feeling it has something to do with the 'text tone' option menu, but it does not give me any option to assign a vibration in that menu.  I have not been able to get any other vibrations other than the default vibration when I am sent a text.
    How do I get this working?  I have tried it on a few other contacts with the same results.

    After hours of fiddling I've come to the same conclusion as all of you. Customer vibes ONLY work with phone calls.
    cpage,
    I'm with you, apple needs to enable custome vibrations for:
    1. Calls
    2. Texts
    3. Emails
    PLEASE READ THIS APPLE.
    Thanks.

  • New custom mof not working on half of computer inventory

    Hello!   Hopefully someone can help me with this one.  3 days ago I created a custom mof with RegKeytoMof 3.1.   I've used this before and have never
    had an issue.  However, this latest mof add doesn't seem to work on around 1000 computers.   I can't quite figure out what is wrong.   
    They're all either Windows 7/Windows 8 and all 64bit.   No consistency I can see with the ones not working.  The entries are in the registry and show in wmi.  
    However, the inventoryagent.log doesn't show it scanning for this.  
    I've tried a full inventory sync and a install (with uninstall checked).   Still same results.  
    I am on SCCM 2012 R2 
    Here are the mof entries.   Thanks for the help!!! 
    // RegKeyToMOF by Mark Cochrane (thanks to Skissinger, Steverac, Jonas Hettich & Kent Agerlund) 
    // this section tells the inventory agent what to collect 
    // 12/13/2013 6:55:36 PM 
    #pragma namespace ("\\\\.\\root\\cimv2") 
    #pragma deleteclass("InternetExplorer", NOFAIL) 
    [DYNPROPS] 
    Class InternetExplorer 
    [key] string KeyName; 
    String MkEnabled; 
    String Version; 
    String Build; 
    String W2kVersion; 
    Uint32 IntegratedBrowser; 
    String svcKBFWLink; 
    String svcVersion; 
    String svcUpdateVersion; 
    String svcKBNumber; 
    [DYNPROPS] 
    Instance of InternetExplorer 
    KeyName="RegKeyToMOF_32"; 
    [PropertyContext("Local|HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Internet Explorer|MkEnabled"),Dynamic,Provider("RegPropProv")] MkEnabled; 
    [PropertyContext("Local|HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Internet Explorer|Version"),Dynamic,Provider("RegPropProv")] Version; 
    [PropertyContext("Local|HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Internet Explorer|Build"),Dynamic,Provider("RegPropProv")] Build; 
    [PropertyContext("Local|HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Internet Explorer|W2kVersion"),Dynamic,Provider("RegPropProv")] W2kVersion; 
    [PropertyContext("Local|HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Internet Explorer|IntegratedBrowser"),Dynamic,Provider("RegPropProv")] IntegratedBrowser; 
    [PropertyContext("Local|HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Internet Explorer|svcKBFWLink"),Dynamic,Provider("RegPropProv")] svcKBFWLink; 
    [PropertyContext("Local|HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Internet Explorer|svcVersion"),Dynamic,Provider("RegPropProv")] svcVersion; 
    [PropertyContext("Local|HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Internet Explorer|svcUpdateVersion"),Dynamic,Provider("RegPropProv")] svcUpdateVersion; 
    [PropertyContext("Local|HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Internet Explorer|svcKBNumber"),Dynamic,Provider("RegPropProv")] svcKBNumber; 
    #pragma namespace ("\\\\.\\root\\cimv2") 
    #pragma deleteclass("InternetExplorer_64", NOFAIL) 
    [DYNPROPS] 
    Class InternetExplorer_64 
    [key] string KeyName; 
    String MkEnabled; 
    String Version; 
    String Build; 
    String W2kVersion; 
    Uint32 IntegratedBrowser; 
    String svcKBFWLink; 
    String svcVersion; 
    String svcUpdateVersion; 
    String svcKBNumber; 
    [DYNPROPS] 
    Instance of InternetExplorer_64 
    KeyName="RegKeyToMOF_64"; 
    [PropertyContext("Local|HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Internet Explorer|MkEnabled"),Dynamic,Provider("RegPropProv")] MkEnabled; 
    [PropertyContext("Local|HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Internet Explorer|Version"),Dynamic,Provider("RegPropProv")] Version; 
    [PropertyContext("Local|HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Internet Explorer|Build"),Dynamic,Provider("RegPropProv")] Build; 
    [PropertyContext("Local|HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Internet Explorer|W2kVersion"),Dynamic,Provider("RegPropProv")] W2kVersion; 
    [PropertyContext("Local|HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Internet Explorer|IntegratedBrowser"),Dynamic,Provider("RegPropProv")] IntegratedBrowser; 
    [PropertyContext("Local|HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Internet Explorer|svcKBFWLink"),Dynamic,Provider("RegPropProv")] svcKBFWLink; 
    [PropertyContext("Local|HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Internet Explorer|svcVersion"),Dynamic,Provider("RegPropProv")] svcVersion; 
    [PropertyContext("Local|HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Internet Explorer|svcUpdateVersion"),Dynamic,Provider("RegPropProv")] svcUpdateVersion; 
    [PropertyContext("Local|HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Internet Explorer|svcKBNumber"),Dynamic,Provider("RegPropProv")] svcKBNumber; 
    // RegKeyToMOF by Mark Cochrane (thanks to Skissinger, Steverac, Jonas Hettich & Kent Agerlund) 
    // this section tells the inventory agent what to report to the server 
    // 12/13/2013 6:55:36 PM 
    #pragma namespace ("\\\\.\\root\\cimv2\\SMS") 
    #pragma deleteclass("InternetExplorer", NOFAIL) 
    [SMS_Report(TRUE),SMS_Group_Name("InternetExplorer"),SMS_Class_ID("InternetExplorer"), 
    SMS_Context_1("__ProviderArchitecture=32|uint32"), 
    SMS_Context_2("__RequiredArchitecture=true|boolean")] 
    Class InternetExplorer: SMS_Class_Template 
    [SMS_Report(TRUE),key] string KeyName; 
    [SMS_Report(FALSE)] String MkEnabled; 
    [SMS_Report(TRUE)] String Version; 
    [SMS_Report(FALSE)] String Build; 
    [SMS_Report(FALSE)] String W2kVersion; 
    [SMS_Report(FALSE)] Uint32 IntegratedBrowser; 
    [SMS_Report(FALSE)] String svcKBFWLink; 
    [SMS_Report(TRUE)] String svcVersion; 
    [SMS_Report(FALSE)] String svcUpdateVersion; 
    [SMS_Report(FALSE)] String svcKBNumber; 
    #pragma namespace ("\\\\.\\root\\cimv2\\SMS") 
    #pragma deleteclass("InternetExplorer_64", NOFAIL) 
    [SMS_Report(TRUE),SMS_Group_Name("InternetExplorer64"),SMS_Class_ID("InternetExplorer64"), 
    SMS_Context_1("__ProviderArchitecture=64|uint32"), 
    SMS_Context_2("__RequiredArchitecture=true|boolean")] 
    Class InternetExplorer_64 : SMS_Class_Template 
    [SMS_Report(TRUE),key] string KeyName; 
    [SMS_Report(FALSE)] String MkEnabled; 
    [SMS_Report(TRUE)] String Version; 
    [SMS_Report(FALSE)] String Build; 
    [SMS_Report(FALSE)] String W2kVersion; 
    [SMS_Report(FALSE)] Uint32 IntegratedBrowser; 
    [SMS_Report(FALSE)] String svcKBFWLink; 
    [SMS_Report(TRUE)] String svcVersion; 
    [SMS_Report(FALSE)] String svcUpdateVersion; 
    [SMS_Report(FALSE)] String svcKBNumber; 

    This appears to be resolved... I think something got corrupted on my custom client settings after the mof import.   I deleted it and recreated a new client settings for our pcs.  I then re-enabled the hardware inventory for these 2 mof entries.
      I updated the policy and then did another hardware inventory cycle.  I now see the entry in the log and in resource explorer.

  • Custom Scriptmaps Not Working in DW6

    I use custom scriptmaps. I have modified every version of DW going back to Macromedia. The process is outlined here:
    http://helpx.adobe.com/dreamweaver/kb/change-add-recognized-file-extensions.html
    I made these changes for DW6 and I can open the files, but the soure code formatting is not working.
    DW6 does not recognize the page as HTML.
    Thank you.

    It works fine for me (after commenting out the part about NodeIconData, whose source you didn't provide). What is the behavior you expect to see but don't? Is it that when you click on a tree node, it doesn't appear "selected?"
    Why not extends DefaultTreeCellRenderer? You appear to be doing minimal configuring (sometimes changing the text and/or icon of the node).
         class FSDirectoryCellRenderer extends DefaultTreeCellRenderer {
              public FSDirectoryCellRenderer() {
                   super();
                   setOpaque(false);
              public Component getTreeCellRendererComponent(JTree tree, Object value,
                        boolean selected, boolean expanded, boolean leaf, int row,
                        boolean hasFocus) {
                   super.getTreeCellRendererComponent(tree, value, selected, expanded,
                                       leaf, row, hasFocus);
                   DefaultMutableTreeNode node = (DefaultMutableTreeNode) value;
                   Object obj = node.getUserObject();
                   setText(obj.toString());
                   if (obj instanceof Boolean) {
                        setText("Loading");
    //               if (obj instanceof NodeIconData) {
    //                    NodeIconData nodeIconData = (NodeIconData) obj;
    //                    if (expanded) {
    //                         setIcon(nodeIconData.getExpandedIcon());
    //                    } else {
    //                         setIcon(nodeIconData.getNormalIcon());
    //               } else {
                        setIcon(null);
                   return this;
         }

Maybe you are looking for

  • WiFi problem with iOS 7.0.3 and iPhone 5

    My iPhone 5 has been working flawlessly with iOS6. After updating it to iOS 7 I have an irritating problem with the WiFi connection at work. Everything is OK for some time, then the WiFi connection just stops working. There is a WiFi icon max signal

  • Creating RosettaNet data types in XI 2.0: 'xml:lang' attribute

    Has anybody successfully created a RosettaNet interface in XI 2.0? I am working with the PIP 3A2 messages, but some of the elements have an attribute named 'xml:lang', which is a standardized attribute from the W3C's XML namespace.  The attribute nam

  • Importing data from SQL Server

    I'm relatively new to Oracle, and my question is about importing data. I have an SQL 2000 server and I export a database using Microsoft OLE DB provider for Oracle. The process finished OK but when I tried to query the tables qith SQL Plus Worksheet,

  • AOL and Attachments from PC

    My wife receives her mail via AOL and when her friends that are still using PC's send her an attachment, the body of the email in Mail.app looks like this: --0-1990961540-1171588785=:87728 Content-Type: multipart/alternative; boundary="0-371302901-11

  • NIScope CPU usage 100% when waiting for trigger

    Hello, I'm using a NI 5102 DAQ card and want to acquire single bursts. However when the Multi Fetch.vi is waiting for a trigger (and this can be up to a minute) the CPU usage goes up to 100 %. Is there any way to overcome this? Attachments: Current_P