URGENT: Strange behaviour! Help!

Hi All.
When I run the enclosed program I am getting some strange behaviour. For instance, when I click on the EDIT button nothing happens, but when I click on the DELETE button everything is fine!
And I can also not run the code in edit() directly after add(). Nothing happens. PLEASE HELP ME. I am going mad because I cannot see what is wrong!
I want to run the code associated with the buttons to update my JTable. Please tell me if there is something wrong in the code.
As I say - it works fine when I click the DELETE button, but on the others it doesn't work.
Please tell me if you need more information!
HOPE TO HEAR FROM SOMEONE BEFORE I KILL MYSELF OUT OF FRUSTRATION!!!!
C
// The "Main" class.
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import javax.swing.border.*;
import javax.swing.event.*;
import javax.swing.JPanel;
import javax.swing.JTable;
import javax.swing.table.AbstractTableModel;
import javax.swing.JScrollPane;
import javax.swing.JFrame;
import javax.swing.SwingUtilities;
import javax.swing.JOptionPane;
public class Team
    extends JFrame
    implements ActionListener {
  JLabel LTeamSetup = new JLabel();
  JButton Edit = new JButton();
  Font customFont1 = new Font("SansSerif", Font.BOLD, 18);
  Font customFont2 = new Font("SansSerif", Font.PLAIN, 12);
  JButton Delete = new JButton();
  JButton Close = new JButton();
  JButton Add = new JButton();
  Border border1;
  TitledBorder titledBorder1;
  TeamDataModel myModel = new TeamDataModel();
  JTable Table = new JTable(myModel);
  JScrollPane scrollPane = new JScrollPane(Table);
  public Team() {
    super("Add Team Window");
    setDefaultCloseOperation(JFrame.HIDE_ON_CLOSE);
    setSize(790, 560);
    setLocation(3,5);
    setVisible(true);
    try {
      new DBTeam();
      jbInit();
    catch (Exception e) {
      e.printStackTrace();
  public void actionPerformed(ActionEvent event) {
    if (event.getActionCommand() == "CLOSE") {
      close();
    if (event.getActionCommand() == "ADD") {
      add();
    if (event.getActionCommand() == "DELETE") {
      delete();
    if (event.getActionCommand() == "EDIT") {
      edit();
  public void close() {
    this.dispose();
  public void add() {
    new TeamAdd();
  public void delete() {
    DBTeam.numRows();
    DBTeam.rows();
    Table.tableChanged(new TableModelEvent(myModel));
    Table.repaint();
  public void edit() {
    DBTeam.numRows();
    DBTeam.rows();
    Table.tableChanged(new TableModelEvent(myModel));
    Table.repaint();
  ///////////////////////////SETUP SWING FRAME////////////////////////
  private void jbInit() throws Exception {
    border1 = BorderFactory.createCompoundBorder(BorderFactory.createBevelBorder(BevelBorder.LOWERED,Color.white,Color.white,new Color(124, 124, 124),new Color(178, 178, 178)),BorderFactory.createEmptyBorder(1,1,1,1));
    this.getContentPane().setLayout(null);
    LTeamSetup.setBounds(new Rectangle(23, 4, 203, 50));
    LTeamSetup.setEnabled(true);
    LTeamSetup.setFont(new java.awt.Font("SansSerif", 1, 36));
    LTeamSetup.setForeground(Color.black);
    LTeamSetup.setText("Team Setup");
    LTeamSetup.setBounds(new Rectangle(41, 13, 390, 50));
    Edit.setText("EDIT");
    Edit.setBounds(new Rectangle(647, 157, 94, 45));
    Edit.setActionCommand("EDIT");
    this.setResizable(false);
    this.setTitle("Team Setup");
    Delete.addActionListener(this);
    Delete.setBounds(new Rectangle(647, 214, 94, 45));
    Delete.setText("DELETE");
    Close.setText("CLOSE");
    Close.setBounds(new Rectangle(641, 480, 105, 26));
    Close.addActionListener(this);
    Add.setText("ADD");
    Add.setBounds(new Rectangle(647, 99, 94, 45));
    Add.addActionListener(this);
    scrollPane.setBounds(new Rectangle(40, 96, 567, 412));
    this.getContentPane().add(LTeamSetup, null);
    this.getContentPane().add(Delete, null);
    this.getContentPane().add(Close, null);
    this.getContentPane().add(Add, null);
    this.getContentPane().add(Edit, null);
    this.getContentPane().add(LTeamSetup, null);
    this.getContentPane().add(scrollPane, null);
    scrollPane.getViewport().add(Table, null);
    repaint();
}

if (event.getActionCommand() == "CLOSE") {
if (event.getActionCommand() == "ADD") {
if (event.getActionCommand() == "DELETE") {
if (event.getActionCommand() == "EDIT") {And these look highly dubious, too. Shouldn't you be doing
event.getActionCommand().equals("CLOSE")
etc.?

Similar Messages

  • URGENT: Strange behaviour by Web Dynpro applications

    Hi,
    We are running NW04s SP8 Portal and WAS and we are developing all our applications with Web Dynpro JAVA.
    As our most of the applications are with multiple views, we are keeping one Web Dynpro view as default.
    The applications run perfectly for a while. But, after running the same application for 5-6 times, the Web Dynpro application will start opening the "non-default" view as the first view. If we re-deploy the same application, it would work for a while and again the problem will start coming.
    I have been working with Web Dynpro JAVA since 2.5 yrs, I havent come across this kind of error. I mean, it is the basic thing in Web Dynpro to set the default view for starting the application.
    Can anyone please throw some light on this behaviour? or Is it related to some bug in Web Dynpro framework?
    Thanks and Regards,
    Mausam

    hi,
    I have never faced or heard anything like that, it is really strange.
    But can you just check if it has anything to take with cache, i mean like what often happens  in internet explorer.
    May be it is storing non-default views in cache and picking up those..
    It may be like babbling but whats wrong in trying.
    regards,
    abhijeet

  • Very strange behaviour master-detail-detail please help

    Very strange behaviour master-detail-detail please help
    Hello,
    I have a parent-child-grandchild report which show's some really strange behaviour.
    The data template has 3 queries Q1, Q2 and Q3.
    Q2 is bound to Q1 using a bind variable
    Q3 is bound to Q2 using another bind variable
    For a certain record in Q1 the output should be
    2 records in Q2
    and 1 record in Q3 for each record in Q2
    Q1 record
    Q2 record A
    Q3 record AA
    Q2 record B
    Q3 record BC
    The results conforms to the expected output.
    For another record in Q1 the output should be
    2 records in Q2
    and 2 records in Q3 for each record in Q2
    Q1 record
    Q2 record A
    Q3 record AA
    Q3 record AB
    Q2 record B
    Q3 record BC
    Q3 record BD
    In stead of the expected output, the result shows
    Q1 record
    Q2 record A
    Q3 record AA
    Q3 record AB
    Q2 record B
    Q3 record AB
    For another record in Q1 the output should be
    5 records in Q2
    and 2 records in Q3 for each record in Q2
    Q1 record
    Q2 record A
    Q3 record AA
    Q3 record AB
    Q2 record B
    Q3 record BC
    Q3 record BD
    Q2 record C
    Q3 record CE
    Q3 record CF
    Q2 record D
    Q3 record DG
    Q3 record DH
    Q2 record E
    Q3 record EI
    Q3 record EJ
    In stead of the expected output, the result shows
    Q1 record
    Q2 record A
    Q3 record AA
    Q3 record AB
    Q2 record B
    Q3 record BC
    Q3 record BD
    Q2 record C
    Q3 record CE
    Q3 record CF
    Q2 record D
    Q3 record DG
    Q3 record DH
    Q2 record E
    Q3 record DH
    So for the last record of Q2 I don't get the appropriate records from Q3 when there are multiple records to be shown, but only the last record which belongs to the previous Q2
    What is going on?
    Please help me out...
    Kind regards,
    Jan-Marcel

    Hi Tim,
    Thanks for your reply. Below you will find the datatemplate on the scott/tiger schema.
    Please help me out.
    Kind regards,
    Jan-Marcel
    <dataTemplate name="scott" description="Template scott" dataSourceRef="otcy001" version="1.1">
      <parameters>
        <parameter name="p_deptno" dataType="number"/>
      </parameters>
      <dataQuery>
        <sqlStatement name="Q1">
          <![CDATA[
            select empno            mgr_empno
                 , ename            mgr_name
                 , job              mgr_job
                 , hiredate         mgr_hiredate
                 , sal              mgr_sal
                 , comm             mgr_comm
              from emp
             where deptno = nvl(:p_deptno, deptno)
               and mgr is null
          ]]>
        </sqlStatement>
        <sqlStatement name="Q2">
          <![CDATA[
            select empno            mgr2_empno
                 , ename            mgr2_name
                 , job              mgr2_job
                 , hiredate         mgr2_hiredate
                 , sal              mgr2_sal
                 , comm             mgr2_comm
                 , mgr              mgr2_mgr
              from emp
             where mgr = :mgr_empno
          ]]>
        </sqlStatement>
        <sqlStatement name="Q3">
          <![CDATA[
            select empno            emp_no
                 , ename            emp_name
                 , job              emp_job
                 , hiredate         emp_hiredate
                 , sal              emp_sal
                 , comm             emp_comm
                 , mgr              emp_mgr
              from emp
             where mgr = :mgr2_empno
          ]]>
        </sqlStatement>
      </dataQuery>
      <dataStructure>
        <group name="G_mgr1" source="Q1">
          <element name="q1_mgr_empno"    value="mgr_empno"/>
          <element name="q1_mgr_name"     value="mgr_name"/>
          <element name="q1_mgr_job"      value="mgr_job"/>
          <element name="q1_mgr_hiredate" value="mgr_hiredate"/>
          <element name="q1_mgr_sal"      value="mgr_sal"/>
          <element name="q1_mgr_comm"     value="mgr_comm"/>
          <group name="G_mgr2" source="Q2">
            <element name="q2_mgr_empno"    value="mgr2_empno"/>
            <element name="q2_mgr_name"     value="mgr2_name"/>
            <element name="q2_mgr_job"      value="mgr2_job"/>
            <element name="q2_mgr_hiredate" value="mgr2_hiredate"/>
            <element name="q2_mgr_sal"      value="mgr2_sal"/>
            <element name="q2_mgr_comm"     value="mgr2_comm"/>
            <element name="q2_mgr2_mgr"     value="mgr2_mgr"/>
            <group name="G_emp" source="Q3">
              <element name="q3_emp_empno"    value="emp_empno"/>
              <element name="q3_emp_name"     value="emp_name"/>
              <element name="q3_emp_job"      value="emp_job"/>
              <element name="q3_emp_hiredate" value="emp_hiredate"/>
              <element name="q3_emp_sal"      value="emp_sal"/>
              <element name="q3_emp_comm"     value="emp_comm"/>
              <element name="q3_emp_mgr"      value="emp_mgr"/>
            </group>
          </group>
        </group>
      </dataStructure>
    </dataTemplate>

  • Strange Reassociation behaviour - help on troubleshoot

    Hi there,
    I have a production wlc wich has several ssid's working.
    In a particular ssid, the wifi clients are bar code readers, using a wpa psk encription/authentication.
    My client had bought a new bar code readers, and since then, we are having problems.
    I had capture a debug client <mac> and attached here.
    I cant find a reason for so much reassociation requests... even for the same AP.
    Please give a light in here please.
    My Best Regards,
    Petrónio

    Thank You leolaohoo,
    I'll try it asap.
    Do you detect any strange behaviour on the log ???
    I detect a strange shortcut on the flow ...
    START -> AUTHCHECK -> 8021X_REQD -> L2AUTHCOMPLETE -> RUN
    *apfMsConnTask_0: Sep 23 13:41:06.809: e0:2a:82:68:b3:da 10.120.109.101 RUN (20) Change state to START (0) last state RUN (20)
    *apfMsConnTask_0: Sep 23 13:41:06.809: e0:2a:82:68:b3:da 10.120.109.101 AUTHCHECK (2) Change state to 8021X_REQD (3) last state RUN (20)
    *apfMsConnTask_0: Sep 23 13:41:06.809: e0:2a:82:68:b3:da 10.120.109.101 8021X_REQD (3) Plumbed mobile LWAPP rule on AP ac:a0:16:ca:b8:30 vapId 1 apVapId 1
    *Dot1x_NW_MsgTask_2: Sep 23 13:41:06.878: e0:2a:82:68:b3:da 10.120.109.101 8021X_REQD (3) Change state to L2AUTHCOMPLETE (4) last state RUN (20)
    *Dot1x_NW_MsgTask_2: Sep 23 13:41:06.878: e0:2a:82:68:b3:da 10.120.109.101 L2AUTHCOMPLETE (4) Change state to RUN (20) last state RUN (20)
    From "Policy Enforcement Module (PEM)" Figure, in "http://www.cisco.com/en/US/products/hw/wireless/ps430/products_tech_note09186a008091b08b.shtml" i see it bypass dhcp states.
    But nevertheless, if we have "RUN" states, then we could afirm, that " Client has successfully completed the required L2 and L3 policies and can now transmit traffic to the network" . Im i right ?
    Petrónio

  • APEX Listener and EPG - strange behaviour

    Hi
    For some years, I've used EPG for APEX but have struggled with performance particularly as I can have up to 150 student developers using at any one time.
    I do a fair amount of work using ORDImage and have successfully developed APEX applications to upload image files and display full-size and thumbnail images.
    After upgrading to APEX 4.1 (from 4.0), I decided to install APEX Listener standalone.
    Before I did so I checked that my applications still worked in 4.1 and they did.
    However, just installing APEX Listener but not configuring it (yet) has meant that my image display in a report using a procedure based on wpg_docload.download_file( l_ordimage_image.source.localData ) no longer works in EPG - the images are not displayed.
    Configuring APEX Listener and running the same application through that DOES display the images.
    So this part of the application works under APEX Listener but not under EPG.
    My application also allows users to upload images from APEX_APPLICATION_FILES using standard code. Under APEX Listener after uploading, I'm left with a blank page with a wwv_flow.accept URL although the image does indeed upload. Under EPG it works as expected and I get a success confirmation.
    So this part of the application works under EPG but not under APEX Listener.
    Has anyone else come across different behaviour depending on the mode of connection?
    Thanks
    Brian
    [Oracle EE 11gR2, Windows Server 2008R2, APEX 4.1, APEX Listener 1.1.3]

    Hi Brian,
    it sounds like you have both EPG and APEX Listener running on the same machine, so your problem might result from a port conflict. Note that both services use TCP port 8080 as default.
    At least a port conflict would explain the strange behaviour in your case, some things working on one web server and some on the other.
    Some parts of your initial post hint to that direction, e.g.
    However, just installing APEX Listener but not configuring it (yet) has meant that my image display in a report using a procedure based on >wpg_docload.download_file( l_ordimage_image.source.localData ) no longer works in EPG - the images are not displayed.... because the APEX Listener only interfere with the EPG if it is at least running on the same machine as your database and furthermore, if it is unconfigured in terms of ist database connection, a port conflict might be the only way it could cause anything like that.
    However, if you are sure that's not the issue, please check if you see any error in the APEX Listener's log for the following action you performed:
    My application also allows users to upload images from APEX_APPLICATION_FILES using standard code. Under APEX Listener after uploading, I'm left with a blank >page with a wwv_flow.accept URL although the image does indeed uploadIf you actually see just a blank screen, something very bad must have happened and you should see some kind of stack trace there.
    For further investigations, if necessary, it would be helpful to know how you deployed or started your APEX Listener and which JDK version you use.
    For the moment, I still think the port conflict is my best guess.
    You could avoid it by either changing the port for EPG (I'd not recommend that if you have other users still using it) or by changing the port for your APEX Listener.
    -Udo

  • Strange behaviour of Runtime.getRuntime().exec(command)

    hello guys,
    i wrote a program which executes some commands in commandline (actually tried multiple stuff.)
    what did i try?
    open "cmd.exe" manually (administrator)
    type "echo %PROCESSOR_ARCHITECTURE%" and hit enter, which returns me
    "AMD64"
    type "java -version" and hit enter, which returns me:
    "java version "1.6.0_10-beta"
    Java(TM) SE Runtime Environment (build 1.6.0_10-beta-b25)
    Java HotSpot(TM) 64-Bit Server VM (build 11.0-b12, mixed mode)"
    type "reg query "HKLM\SOFTWARE\7-zip"" returns me:
    HKEY_LOCAL_MACHINE\SOFTWARE\7-zip
    Path REG_SZ C:\Program Files\7-Zip\
    i wrote two functions to execute an command
    1) simply calls exec and reads errin and stdout from the process started:
    public static String execute(String command) {
              String result = "";
              try {
                   // Execute a command
                   Process child = Runtime.getRuntime().exec(command);
                   // Read from an input stream
                   InputStream in = child.getInputStream();
                   int c;
                   while ((c = in.read()) != -1) {
                        result += ((char) c);
                   in.close();
                   in = child.getErrorStream();
                   while ((c = in.read()) != -1) {
                        result += ((char) c);
                   in.close();
              } catch (IOException e) {
              return result;
         }the second function allows me to send multiple commands to the cmd
    public static String exec(String[] commands) {
              String line;
              String result = "";
              OutputStream stdin = null;
              InputStream stderr = null;
              InputStream stdout = null;
              // launch EXE and grab stdin/stdout and stderr
              try {
                   Process process;
                   process = Runtime.getRuntime().exec("cmd.exe");
                   stdin = process.getOutputStream();
                   stderr = process.getErrorStream();
                   stdout = process.getInputStream();
                   // "write" the parms into stdin
                   for (int i = 0; i < commands.length; i++) {
                        line = commands[i] + "\n";
                        stdin.write(line.getBytes());
                        stdin.flush();
                   stdin.close();
                   // clean up if any output in stdout
                   BufferedReader brCleanUp = new BufferedReader(
                             new InputStreamReader(stdout));
                   while ((line = brCleanUp.readLine()) != null) {
                        result += line + "\n";
                   brCleanUp.close();
                   // clean up if any output in stderr
                   brCleanUp = new BufferedReader(new InputStreamReader(stderr));
                   while ((line = brCleanUp.readLine()) != null) {
                        result += "ERR: " + line + "\n";
                   brCleanUp.close();
              } catch (IOException e) {
                   // TODO Auto-generated catch block
                   e.printStackTrace();
              return result;
         }so i try to execute the commands from above (yes, i am using \\ and \" in java)
    (1) "echo %PROCESSOR_ARCHITECTURE%"
    (2) "java -version"
    (3) "reg query "HKLM\SOFTWARE\7-zip""
    the first function returns me (note that ALL results are different from the stuff above!):
    (1) "" <-- empty ?!
    (2) java version "1.6.0_11"
    Java(TM) SE Runtime Environment (build 1.6.0_11-b03)
    Java HotSpot(TM) Client VM (build 11.0-b16, mixed mode, sharing)
    (3) ERROR: The system was unable to find the specified registry key or value.
    the second function returns me:
    (1) x86 <-- huh? i have AMD64
    (2) java version "1.6.0_11"
    Java(TM) SE Runtime Environment (build 1.6.0_11-b03)
    Java HotSpot(TM) Client VM (build 11.0-b16, mixed mode, sharing)
    (3) ERROR: The system was unable to find the specified registry key or value.
    horray! in this version the java version is correct! processor architecture is not empty but totally incorrect and the reg query is still err.
    any help is wellcome
    note: i only put stuff here, which returns me strange behaviour, most things are working correct with my functions (using the Runtime.getRuntime().exec(command); code)
    note2: "reg query "HKLM\HARDWARE\DESCRIPTION\System\CentralProcessor\0" /t REG_SZ" IS working, so why are "some" queries result in ERR, while they are working if typed by hand in cmd.exe?

    ok, i exported a jar file and execute it from cmd:
    java -jar myjar.jar
    now the output is:
    (1) "" if called by version 1, possible to retrieve by version 2 (no clue why!)
    (2) "java version "1.6.0_10-beta"
    Java(TM) SE Runtime Environment (build 1.6.0_10-beta-b25)
    Java HotSpot(TM) 64-Bit Server VM (build 11.0-b12, mixed mode)"
    (3) C:\Program Files\7-Zip\
    so all three problems are gone! (but its a hard way, as i need both functions and parse a lot of text... :/ )
    thanks for the tip, that eclipse changes variables (i really did not knew this one...)

  • Strange behaviour: two servers on the same port

    Hi!
    I hope this is the right section for this post. I need help about a strange behaviour involving a ServerSocket.
    For my thesis I need to write a program that receives data from a pre-existing DSMS client, filters them and then sends them to a pre-existing DSMS server. And here is my problem: if I try to create a ServerSocket on the same port of the DSMS server, my program throws no exception, and the servers seem running on the same port. This is a behaviour that I'd like to avoid, but I cannot understand what the problem is. Can you help me?
    The source code of the DSMS server can be found here (it's written in C++): http://infolab.stanford.edu/stream/code/stream-0.6.0.tar.gz
    The source code of my server class, instead, is this one:
    import java.io.*;
    import java.net.*;
    public class ThreadGenerator {
         private ServerSocket server;
         public void connect(String servPort, String cHost, String cPort) {
              try {
                   server = new ServerSocket(servPort);
                   System.out.println("SERVER running on port "+servPort);
              } catch (BindException e) {
                   System.out.println("Address already in use!");
              } catch (Exception e) {
                   System.err.println(e);
              try {
                   while(true){
                        Socket client = server.accept();
                        StreamThread T = new StreamThread(client, cHost, cPort);
                        T.start();
              } catch (EOFException e) {
                   System.out.println("Server closed connection!");
              } catch (Exception e) {
                   System.err.println(e);
    }I'm programming on Mac OSX Tiger, with Java 1.5.0.
    Thanks in advance for your help.

    The problem is still happening to me, I tried in this very moment. The code I'm using is the one I posted, and the second server is the one that I linked. I don't think there's anything else to add.
    If you're sure that the problem is not in my code, then it means that it is in the linked server, which partially solves the problem. But I'd like to know, if it's possibile, if there is any other way to check if the port is already in use.

  • Cursor shows strange behaviour in 10.9.5

    HI,
    I'm using a 15" MBPr late 2013, i7, 16 GB RAM, 1 TB SSD, running on 10.9.5. Lately I registered a very strange behaviour of the cursor when using the built in trackpad. If hovering over one of the symbols in the bar at the upper right corner of the screen and then moving the cursor downward, the menu of the symbol on the right of the cursor pops up (not the one the cursor ist pointing on).
    For example: the symbol for WiFi is located left from the one regulating the volume. When hovering over WiFi and moving downwards to activate/deactivate it, the volume-controle pops up ! If I want to use the WiFi, I have to hover over the symbol for bluetooth-connectivity instead....
    Any idea whats happening here ?
    Help is very much appreciated !
    MIchael

    OK, found the solution by myself. The reason seemed to be related to the resolution of the display. Changed it to another one (no matter which one), waited for the display to change and the changed the res back to optimal for display.
    The cursor now works fine and exactly....
    Really weird.

  • Strange behaviour from new 2012R2 in old domain

    Hi all,
    At work (education level), I'm starting to take charge of windows admin, so beiing a noob admin I'm finding strange behaviours that I hope you can help me solve them all :-)
    We've one (big) domain with about 5000 computers (workers and students all together), and around 50000 users (again, workers and students all together) setup like this:
    DC-DOMAIN-1:
    Windows Server 2008R2
    Shares NETLOGON and SYSVOL
    DC-DOMAIN-2:
    Windows Server 2003 R2 x64
    Shares CertEnroll, NETLOGON, SMSLOGON, SYSVOL
    Checking RootDSE, I see 'domainControllerFunctionaly is Windows 2003' (DC-DOMAIN-2)
    So, with this setup, I've noticed these strange behaviours, hope list isn't too big  (guess there will be more behaviours but these seemed too odd):
    1) On DC-DOMAIN-2, WinServer 2003 eventlog, inside 'Directory Service', I found this warning event ID 1083 (Source NTDS Replication):
    Active Directory could not update the following object with changes received from the domain controller at the following network address because Active Directory was busy processing information.
    Object:CN=<an user name>, CN=Users, DC=DOMAIN
    Usually followed by an information event (eventid 1955) which says:
    ctive Directory encountered a write conflict when applying replicated changes to the following object.
    Object:
    <SAME USER OBJECT THAN PREVIOUS EVENT ID>
    Time in seconds:
    0
    Event log entries preceding this entry will indicate whether or not the update was accepted.
    A write conflict can be caused by simultaneous changes to the same object or simultaneous changes to other objects that have attributes referencing this object. This commonly occurs when the object represents a large group with many members, and the functional level of the forest is set to Windows 2000. This conflict triggered additional retries of the update. If the system appears slow, it could be because replication of these changes is occurring.
    User Action
    Use smaller groups for this operation or raise the functional level to Windows Server 2003.
    And having as result that user being blocked in domain.
    2) I've added a new print server based on Windows Server 2012R2 (running inside an updated ESX 5.5 with VMXNET3 ethernet adapter as recommended by vmware), and seen in the event viewer these warnings/errors:
    At System log:
    Error Event ID 5783, Source NETLOGON:
    The session setup to the Windows NT or Windows 2000 Domain Controller \\DC-DOMAIN-2.fulldns.name for the domain DOMAIN is not responsive. The current RPC call from Netlogon on \\PRINTSERVER to \\DC-DOMAIN-2.fulldns.name has been cancelled.
    I've seen Event ID 5783 with DC-DOMAIN-1 too....
    Error Event ID 5719, Source NETLOGON:
    This computer was not able to set up a secure session with a domain controller in domain DOMAIN due to the following:
    The remote procedure call failed and did not execute.
    This may lead to authentication problems. Make sure that
    this computer is connected to the network. If the problem persists, please contact your domain administrator.
    ADDITIONAL INFO:
    If this computer is a domain controller for the specified domain, it sets up the secure session to the primary domain controller emulator in the specified domain. Otherwise, this computer sets up the secure session to any domain controller in the specified domain.
    At Microsoft-Windows-TerminalServices-RemoteConnectinoManager/Admin found also this warning:
    Warning Event ID 20499 Source TerminalServices-RemoteConnectionManager:
    Remote Desktop Services has taken too long to load the user configuration from server \\DC-DOMAIN-2.fulldns.name for user administrator
    3) If I try Group Policy Modeling on DC-DOMAIN-1 (server 2008R2), everything works fine, no matter if I try it against DC-DOMAIN-1 or DC-DOMAIN-2, but if I try this from the Server 2012R2 (the one from point 2), I get this:
    Simulation against DC-DOMAIN-2: Gets executed, but all GPO show as inaccessible, empty or disabled.
    Simulation against DC-DOMAIN-1: Sometimes it gets executed as DC-DOMAIN-2, sometimes I get an error saying query can't be executed.
    4) From server 2012R2, I usually manage printing GPO. If I click on the domain root (GPMC, forest, Domains, DOMAIN-NAME-ROOT) right pane, I get a pop up saying: 
    'A processing error ocurred collecting data using this base domain controller. Please change the base domain controller and try again'
    After closing popup, right pane says something like 'DC-DOMAIN-2.fulldns.name' is the baseline domain controller for this domain.
    No infrastructure Status information exists for this domain.
    Click the Detect Now button below to gather infrastructure status from all of the domain controllers in this domain.
    Pressing 'Detect Now' does nothing, and trying to select New Baseline DC shows again same pop up than before.
    5) Last, but not least, I've feeling that GPO takes too much to apply. I've found scenarios in which even after executing 'gpupdate /force' correctly on client computer either local or domain admin, I can't see the new changes (gpresult says it has been
    updated though). But couldn't find anything on eventlog that informs about problems with GPOs...
    For all these strange behaviours I've noticed in last month that I started checking things as sys admin, I believe domain is damaged, or something is wrong there (not just my new server 2012R2, even if it's running inside an ESX, blehh), so please, any hint
    on what to check, what to change, what to fix, would be highly appreciated.
    Thanks in advance.

    Hi Paul,
    Honestly, I'm still trying to figure out all broken things reported by tests :( Guess Jesper's suggestion about adding a new 2008 DC to get rid of 2003 and start checking again after that may be best option.
    I'll try to summarize list of things I believe are wrong:
    running
    DCDIAG /V /C /D /E /s:yourdcname > c:\dcdiag.log  for every DC, shows different errors. They show things such as:
    another domain running here (not administered by us, only relationship is that our users are shared with that domain, nothing else) appear when Printing out pDsInfo (as if they were DC of our domain too, but they do not even share RootDomain). Guess it
    may be for a bug old sys admin had when clonning from his 2008R2 template, that forgot to change SID... I already noticed 1 year ago our print server shared SID with those DC, guess there may be more servers sharing SID too :-(
    Within Starting test: Replications, I see few messages at Replication Latency Check, such as the one for CN=Schema, CN=Configuration, DC=<ourdomain>: 
    Latency information for 35 entries in the vector were ignored.
                      35 were retired Invocations.  0 were either: read-only replicas and are not verifiably latent, or dc's no longer replicating this nc.  0 had no latency information (Win2K DC)
    On Services test, I see an 
       Invalid service type: RpcSs on DC-DOMAIN-3, current value
                WIN32_OWN_PROCESS, expected value WIN32_SHARE_PROCESS
    On SystemLog, I see LOTS of warnings/errors such as:
    A warning event occurred.  EventID: 0x80000002
                Time Generated: 07/28/2014   08:21:54
                (Event String (event log = System) could not be retrieved, error
                0x503)
             An error event occurred.  EventID: 0xC0000003
                Time Generated: 07/28/2014   08:22:18
                (Event String (event log = System) could not be retrieved, error
                0x3afc)
    Missing entries on DNS (we've a static DNS)
    netdiag.exe /v > c:\netdiag.log Showed again DNS problems such as our primary DNS pointing to all DC, secondary
    DNS pointing just to DC with FSMO roles,...
    repadmin.exe /showrepl * /verbose /all /intersite > c:\repl.txt  Gave no errors, now I must check in detail
    if every replica is correct
    And finally,
    dnslint /ad /s "ip address of your dc"  gave more DNS problems:
    One or more DNS servers may not be authoritative for the domain
    One or more DNS servers did not respond to UDP queries
    One or more zone files may have expired
    SOA record data was unavailable and/or missing on one or more DNS servers
    Sumarizing, guess it will be better to fix DNS problems, promote new 2008R2 DC to get rid of 2003 one, promote domain to 2008 too, check again for messages and relationship with other domain, and then come back here for support if needed 
    EDIT: Almost forgot to talk about SYSVOL folder. As said before, there are 426 GPO folders inside Policies. Of them, 375 have an inetres.adm files in it (smallest one 1398 KB, almost all of them 2307 or 2707 kb).... 

  • Strange Behaviour into Runtime Workbench

    Hi all,
    I have a question for us.
    Into our system PI 7.1 we have a strange behaviour in Runtime Workbench - Message Monitoring.
    When I choose for the fiel "FROM" the value "Database" I obtain the list of software component that I find the value "Integration Server".
    But when I choose the value "Database (Overview)" the value "Integration Server" into list of software component doesn't exist.
    Why Do the system have this behaviour?
    best regards,
    Davide Bruno

    Hey,
           The old way of seeing msg use - the db option... In Pi 71 the db overiew options gives you an aggregated view of ur messages. this is very helpful in tracking repeated failures, anylysing the types of failures etc...The "strange" view is actually a pretty neat tool... We used to do this in excel sheets after dowloading the  report from sxmb_moni..
    regards,
    Arvind R

  • Strange behaviour - any ideas?

    Strange behaviour began when i was unable to open a new page in photoshop.
    The next day i was unable to print from word or photoshop or emails.
    However i could print from freehand and excel!
    I used disk 1 to verify and repair disk.
    this did not solve the problem as then when i tried to open Safari the toolbar opened but no window.
    I have reinstalled the operating system making an archive but this also has not had an effect.
    Any ideas on what to do next or should I just reinstall the operating system over the old one?
    many thanks 4 any help

    Sarah, to help the knowlegable users here please advise which model G5 iMac you have & include this info in your system info preference by clicking on the "My Settings" link in the right hand column.-->
    This way, you won't have to keep repeating yourself and the knowlegable users will be able to provide you with the correct trouble shooting information/solutions if the problem is your computer.
    Also, it will be helpful if you will advise which version of Word, Photoshop you have, which email program & the type of printer you are using.
    Thank you.

  • Strange behaviour on text insert into a HTML pane

    Hi all,
    I am trying to fix a problem on inserting a span tag into an existing html page (in an EDITABLE JEditorPane).
    The behaviour:
    Assuming the cells in a table (3 rows, 2 columns) are numbered from 1 to 6, with cell one being the top left most, cell 2 top right, cell 3 middle left, etc.
    1. Inserting the text "<span></span>" in cell 4 causes during any attempt to later type into cell 5 the characters to be appended instead into cell 4, directly after the close span tag.
    2. The insertion in the first place behaves strange. If I have the caret positioned for cell 5 so that I can insert there
    (via the function void javax.swing.text.html.HTMLEditorKit.insertHTML(HTML Document doc, int offset, String html, int popDepth, int pushDepth, Tag insertTag) )
    even though the caret position is visible in cell 5, the insertion seems to take place in cell 4.
    I can sort of compensate for this by adding 1 to the offset. However, then when inserting into a line of text, for example, "the quick red fox jumped over the lazy dog"
    I insert directly before the 'j' in 'jumped', the insertion looks like this "the quick red fox j<span>..</span>umped over the lazy dog"
    So that is no solution.
    IMPORTANT! Just to prove it is not the span tag causing the trouble, if this span tag already exists in a cell on 'Load' of the html file, the strange behaviour is not observed.
    Something is going wrong here. It is me? Or is it a bug?
    Please help!!
    Here is a test app, and the test html you can use (place in current directory).
    Please test like this:
    1. run application (the html should be loaded into the pane)
    2. the span tag is programmed to automatically insert at cell 4 (by using the +1 method on the insert)
    3. another span tag was already existing in the html file, at cell 8
    4. Attempt to type into cell 5
    result: the text appears instead at cell 4
    5. Type into cell 9
    result: the text correctly is entered into cell 9
    See the difference!!
    Help!
    The test java app:
    package small.test;
    import java.awt.BorderLayout;
    import java.awt.Container;
    import java.io.File;
    import java.io.FileReader;
    import java.io.IOException;
    import java.io.StringReader;
    import javax.swing.JEditorPane;
    import javax.swing.JFrame;
    import javax.swing.JPanel;
    import javax.swing.JScrollPane;
    import javax.swing.SwingUtilities;
    import javax.swing.text.JTextComponent;
    import javax.swing.text.html.HTML;
    import javax.swing.text.html.HTMLDocument;
    import javax.swing.text.html.HTMLEditorKit;
    import javax.swing.text.html.parser.ParserDelegator;
    public class HtmlInsertTest extends JEditorPane
         public HtmlInsertTest()
         public static void main(String args[])
              JFrame frame = new JFrame("Loading/Saving Example");
              Container content = frame.getContentPane();
              frame.setSize(600, 600);
              final HtmlInsertTest editorPane = new HtmlInsertTest();
              editorPane.setEditable(true);
              JScrollPane scrollPane = new JScrollPane(editorPane);
              content.add(scrollPane, BorderLayout.CENTER);
              editorPane.setEditorKit(new HTMLEditorKit());
              JPanel panel = new JPanel();
              content.add(panel, BorderLayout.SOUTH);
              frame.setSize(600, 600);
              doLoadCommand(editorPane);
              editorPane.insertHTML("<span>inserted text</span>", 84);
              frame.setVisible(true);
         public static String getHTML()
              return
              "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0 Transitional//EN\">"+
              "<HTML>"+     "<HEAD>"+
              "     <META HTTP-EQUIV=\"CONTENT-TYPE\" CONTENT=\"text/html; charset=utf-8\">"+
              "     <TITLE></TITLE>"+          
              "</HEAD>"+
              "<BODY LANG=\"en-AU\" DIR=\"LTR\">"+
              "<P STYLE=\"margin-bottom: 0cm\">This is a test xhtml document. "+
         "     </P>"+
         "     <P STYLE=\"margin-bottom: 0cm\">"+
         "     </P>"+
         "     <P STYLE=\"margin-bottom: 0cm\">Here is a table:</P>"+
         "     <P STYLE=\"margin-bottom: 0cm\">"+
         "     </P>"+
         "     <p></p>"+
               "     <TABLE WIDTH=100% BORDER=1 BORDERCOLOR=\"#000000\" CELLPADDING=4 CELLSPACING=0>"+
         "          <TR VALIGN=TOP>"+
         "               <TD WIDTH=50%>"+
         "                    <P>It has</P>"+
         "               </TD>"+
         "               <TD WIDTH=50%>"+
         "                    <P>2 columns</P>"+
         "               </TD>"+
         "          </TR>"+
         "          <TR VALIGN=TOP>"+
         "               <TD WIDTH=50%><P>And 4 rows</P></TD>"+
         "               <TD WIDTH=50%><P></P></TD>"+
         "          </TR>"+
         "          <TR VALIGN=TOP>"+
         "               <TD WIDTH=50%><P></P></TD>"+
         "               <TD WIDTH=50%><P></P></TD>"+
         "          </TR>"+
         "          <TR VALIGN=TOP>"+
         "               <TD WIDTH=50%><P></P></TD>"+
         "               <TD WIDTH=50%><P><span>existing text</span></P></TD>"+
         "          </TR>"+
         "          <TR VALIGN=TOP>"+
         "               <TD WIDTH=50%><P></P></TD>"+
         "               <TD WIDTH=50%><P></P></TD>"+
         "          </TR>"+
         "     </TABLE>"+
         "     <P STYLE=\"margin-bottom: 0cm\">"+
         "     </P>"+
         "     <P STYLE=\"margin-bottom: 0cm\">"+
         "     </P>"+
         "     <P STYLE=\"margin-bottom: 0cm\">"+
         "     </P>"+
         "     <P STYLE=\"margin-bottom: 0cm\">We will test the drag and drop"+
         "     functionality with this document. "+
         "     </P>"+
         "     <P STYLE=\"margin-bottom: 0cm\">It will be loaded with the hlml editor.</P>"+
         "     <P STYLE=\"margin-bottom: 0cm\">"+
         "     </P>"+
         "     <P STYLE=\"margin-bottom: 0cm\">"+
         "     </P>"+
         "     </BODY>"+
         "     </HTML>";
         public static void doLoadCommand(JTextComponent textComponent)
              StringReader reader = null;
              try
                   System.out.println("Loading");
                   reader = new StringReader(getHTML());
                   // Create empty HTMLDocument to read into
                   HTMLEditorKit htmlKit = new HTMLEditorKit();
                   HTMLDocument htmlDoc = (HTMLDocument)htmlKit.createDefaultDocument();
                   // Create parser (javax.swing.text.html.parser.ParserDelegator)
                   HTMLEditorKit.Parser parser = new ParserDelegator();
                   // Get parser callback from document
                   HTMLEditorKit.ParserCallback callback = htmlDoc.getReader(0);
                   // Load it (true means to ignore character set)
                   parser.parse(reader, callback, true);
                   // Replace document
                   textComponent.setDocument(htmlDoc);
                   System.out.println("Loaded");
              catch (Exception exception)
                   System.out.println("Load oops");
                   exception.printStackTrace();
              finally
                   if (reader != null)
                        reader.close();
         public void insertHTML(String text, int offset)
              SwingUtilities.invokeLater(new insertAction(this, text, offset));
         class insertAction implements Runnable
              String text = "";
              int offset = 0;
              JEditorPane jEditorPane1 = null;
              public insertAction(JEditorPane _jEditorPane1, String _text, int _offset)
                   jEditorPane1 = _jEditorPane1;
                   text = _text;
                   offset = _offset;
              @Override
              public void run()
                   HTMLDocument doc = (HTMLDocument)jEditorPane1.getDocument();
                   HTMLEditorKit kit = (HTMLEditorKit)jEditorPane1.getEditorKit();
                   try
                        System.out.println("reading from string reader");
                        kit.insertHTML(     doc,
                                          offset,//+1
                                          text,
                                          0,//0
                                          0,//0
                                          HTML.Tag.SPAN);
                        System.out.println(jEditorPane1.getText());
                   catch (Exception e)
                        System.out.println("error inserting html: " + e);
    }Edited by: svaens on Jul 16, 2009 6:34 PM
    fix another stuffed up attempt at a SSCCE.

    Well, I know nothing about HTML in JEditorPanes. I have never been able to figure out how insertions work.
    My comment was a warning to others. Some people (like me) avoid answering posting of this type for reasons given in the JavaRanch link. Others will answer anyway. Other might first check the other site to see if they are wasting there time, but they can only do that if a link was posted with the original question.
    The only suggestion I have is to repost the question, (since this posting is now completely off topic) making sure to then respond to this posting stating that a fresh question has been asked so you don't get a discussion going on in two places.

  • Strange behaviour of .swf movies - AS2/AS3

    Hello from Italy,
         this is my first post and I think I need some help from the experts...
         I am putting together an interactive Flash movie which is made of several different small movies. For the sake of clarity, I'll call them A.swf, B.swf, ..., Z.swf. The movies are launched from each other depending on certain buttons I've implemented.
         The first one, A.swf, is actually a sort of "main menu": it grants access to all the other movies and it is also the point of return from them when a certain button is pressed.
         Important: All the movies are scripted in AS3, except for the last one which, for a number of reasons, is scripted in AS2.
         The return from any (but the last) movie to the first, say B.swf to A.swf, is implemented like this:
    function eventResponseSole(event:MouseEvent):void {
    var myLoader:Loader = new Loader();
    addChild(myLoader);
    var url:URLRequest = new URLRequest("A.swf");
    myLoader.load(url);
    sole_btn.addEventListener(MouseEvent.CLICK, eventResponseSole);
         This is, of course, AS3.
         The last movie, which is scripted in AS2, returns to A.swf like this:
    luna_btn.onRelease = function() {
    loadMovie("A.swf", _root);
         The strange behaviour is this: if I launch Z.swf and navigate with the proper button up to A.swf, everything works. But if I launch A.swf, navigate to Z.swf and attempt to return, this doesn't work. There are no problems, instead, moving up and down between movies scripted in AS3, that is with the first bit of code I've pasted. My guess is that the syntax in AS2 is correct, but something stops A.swf from "launching itself" when the control is transferred to Z.swf, but the movie is launched in the original window. Is this diagnosis reasonable? And if so, would someone kindly provide a way out of this? Re-doing Z.swf in AS3 is not an option, I'm afraid, it will have to stay as it is. I also have to add I've tried some solutions by setting _lockroot, but this doesn't seem to work.
         Many thanks in advance!
         Marco Olivotto

    Mixing AS2 into AS3 is not without stipulations... and I am no expert on translating those stipulations, but here is what the Flash documentation says regarding the matter... the third paragraph may be significant to your case:
    - ActionScript 3.0 code can load a SWF file written in ActionScript 1.0 or 2.0, but it cannot access the SWF file's variables and functions.
    - SWF files written in ActionScript 1.0 or 2.0 cannot load SWF files written in ActionScript 3.0. This means that SWF files authored in Flash 8 or Flex Builder 1.5 or earlier versions cannot load ActionScript 3.0 SWF files.
    The only exception to this rule is that an ActionScript 2.0 SWF file can replace itself with an ActionScript 3.0 SWF file, as long as the ActionScript 2.0 SWF file hasn't previously loaded anything into any of its levels. An ActionScript 2.0 SWF file can do this through a call to loadMovieNum(), passing a value of 0 to the level parameter.

  • IPhoto: strange behaviour with preview thumbnails

    Is there a simple way in iPhoto 8 to rebuild the thumbnail database?
    I recently noticed a strange behaviour iPhoto 8 has with previews: In some of my event categories, iPhoto does not display the correct preview thumbnail of the picture, but a preview thumbnail of another event. When I click on the thumbnail, it reloads the appropriate preview and it does not happen again - with that picture. Also, if I double click an event to open it, the small thumbnail of the event's key photo that is to be displayed in the title bar (next to the All Events button) is not always correct.
    Thank you for your help!
    Stefan

    I have similar problems (lately) with iPhoto 6.0.6 -- thumbnails do not equal the images they 'thumbnail' of.
    Sometimes when it opens, it (recently) asked me to rebuild the thumbnails, but not always.
    Can I force a thumbnail rebuild using the command you gave - Apple-option while opening iPhoto? In iPhoto 6.0.6 this primarily forces a new selection of a library.

  • Nokia C3-01 -strange behaviour/ problems with Noki...

    When I was choosing my new mobile, I had two options : Samsung Wave 533 and Nokia C3-01. After a lot of hesitance I decided to pick up Nokia, believing to its high quality despite its poor media potential. However, now I think that it was a bad idea.
          Firstly, I have never thought that Touch and Type won't have ability to adjust brightness of the screen (AWFUL IN THE NIGHT), set up more then one alarm and use many of JAVA applications. When I tried to install some applications, it said- out of memory. Out of memory?! My old SE K770i could much more! What annoys me the most is that I can't use my e-mail account via Nokia Mail. When I press the icon of it , there is an error Null pointer exception and  applications shuts. Other strange behaviour- while I was typing sms , suddenly there was hard, long vibration, screen  went white and mobile restarted. Other users of C3-01, check this: go to messages, then other messages , then direct , start typing and try to go back to menu- screen turns white, mobile restarts (I'm polish , so names may be a little bit different) . How on earth, can mobile restart so often?.
        , Secondly,the funniest one- Ovi shop. Important thing in every Nokia. Guess what- I can't use it! When I to launch the apllication and try to go to the shop, there is information that it's not avaible for my phone. I used it a week ago and worked properly.
          All in all, I hope that Nokia will share an update of software to this model. I am just so disappointed. What I am sure about that next mobile will not be from finnish enterprise.
    Solved!
    Go to Solution.

    Sorry Brother, Your Device is totally misfunctioned and FAULTY, You Need to go back to Nokia Care Centre and GET IT REPLACED.
    Your Device is faulty.
    Please Dont Blame Nokia Or the C3-01 Device Because both are QUALITY PRODUCTS.
    I have C3-01 Since 4 Months Now and I havent Had a Single Complain about my device even though I am a Rough Handler and Using the Mobile Upto its Extend.
    You Have 2 options, Try To Fix your Device at Home By :
    Soft reset your Nokia C3-01 Touch and Type you need to press *#7780# and then Dial. The security code is 12345. Once you complete this, your phone will come back to factory settings, but you will not loose personal data. Anyway it is recommended to make a backup before performing any of the mentioned procedures.
    To hard reset your Nokia C3-01 Touch and Type you just have to press *#7370# and press Dial. The phone will request the security code that is by default 12345. Please be aware that you will loose all the data in your phone, so you should backup all relevant information.
    If Problem still persist then Connect to PC Suite/Ovi Suite and Reinstall the Firmware.
    BUT U NEED YOUR DEVICE TO BE UPDATED TO ITS LATEST FIRMWARE = v06.05
    If still not fixed then, REPLACE YOUR DEVICE ASAP, because as given by Nokia, C3-01 Device Works according to its Specification as Specified.
    If I've helped in any way, a click upon the White star to the left would always be appreciated.
    If however my answer also solves your problem clicking below " ACCEPT AS SOLUTION " it will benefit other users!

Maybe you are looking for