Authoring 4 class for Servers that rollup to 1 class
Hi,
I am new to authoring the classes, and would like some assistance
I want to create 4 classes that discover applications, that then everything gets added to 1 class for Reporting, Notifications, and Monitoring Purposes as a Windows Computer Object.
Is this creating
Class types
1 x Hosting Class, 4 x Abstract classes
Relationships types
1x Hosting relationship 4 x Containment Relationships
All this needs to be on the based on the Windows computer roll,
Currently my 4 Classes are working 100% so I would like them to be added to 1 class
One way I did find for this to work is to target all my discoveries to the 1 class I want to roll up, but I loose the flexability the 4 I would like to have as well.
any assistance will do.
Hi
You can not have a discovery for abstract class, an abstract class is blue print inherited by child class.
if you application is has 4 modules base of windows computer role create 4 different class of hosted type and write discovery to populate all this class objects, once 4 class object are populated you can create a computer group and add 4 class as membership
so that you can use this group for notification and reporting.
refer below link for more information on hoe to author MP class
https://channel9.msdn.com/Series/System-Center-2012-R2-Operations-Manager-Management-Packs
https://channel9.msdn.com/Series/System-Center-2012-R2-Operations-Manager-Management-Packs/-Mod6
regards
sridhar v
Similar Messages
-
Loadbalance for servers thats belongs from different Vlan
Hi,
We are using FWSM and ACE module in our switch. We have to configure our new application in cisco ACE. Our exiciting servers and vip are in vlan5 and new servers and vips are in vlan 6. vlan 6 is defined in FWSM. We have craeated one interface vlan 6 for the application. While checking the interface status through "show interface vlan 6" we are getting the following error.
Not assigned from the Supervisor, down on Supervisor
We have already assigned vlan group to supervisor. We have allocated same interfce vlan to context also.
kindly suggest what chould be the issue.
Kindly suggest can we do the loadbalance for servers thats belongs from different Vlan???
Thanks in advance.
Regards,
RanjithHi Daniel,
We are using cisco 6509 switch with FWSM and ACE module.
We have created interface VLAN 6 in FWSM and ACE and assigned the IP as follows.
FWSM Interface VLAN 6 is 10.6.10.55 and ACE Interfce VLAN 6 is 10.6.10.60.
We have 2 servers in the same vlan (.49 and .50). and they are physicaly connected to switch vlan 6 and logicaly connected to FWSM interface vlan 6.
We have defined the VIP as 10.6.10.51 and that is not pinging from our network.
Server default gateway and ACE default gateway is FWSM interface vlan 6 IP(ie, 10.6.10.55).
We dont want to change the server gateway as ACE interface vlan 6 ip.
KIndly suggest how can i achive the loadbalancing with out changing my server gateway to ACE IP.
Thanks in advance.
Regards,
Ranjith -
Invalid Valuation Class for Plant
Hello,
I'm creating a material using t-code MM01, and when I enter a valuation class in the Accounting 1 view, I get error message ZA 038 "Invalid valuation class for this plant". This valuation class was working before, so I want to look into the configuration to see what may have been changed. Can anyone point me in the right direction?
Thanks,
CynthiaHi,
the message u got is custom defined message.
The reason for the designing the message may be that the material that u want to create is not to be meant for the plant u used.
i hope this will solve the issue.
Thank You,
Purnachandra RM -
I have a form that collects some info (let's say username and email address). I wrote a Java class for it that has the set and get methods. I am wondering how I can redirect to the page from the class itself in case something fails (like an '@' not in an email address etc.). Also, if that's possible, how can I tell the original page that the validation failed so I can print a nice red error message?
Thanks!Just submit the form through a servlet and let it handle all the business logic. Let the validator throw an exception or so and then let the servlet or bean handle it and let the JSP display a message based on that condition.
You may find this article useful to get some ideas of how to layer things properly and get it all to work together: [http://balusc.blogspot.com/2008/07/dao-tutorial-use-in-jspservlet.html]. -
Class for moving images (ImageView)
Hi! I'm trying to create a class for move an image (using ImageView class). For first, I create a simple testing class:
package javafxapplication2;
import javafx.stage.Stage;
import javafx.scene.Scene;
import javafx.scene.image.Image;
import javafx.scene.image.ImageView;
import javafx.animation.KeyFrame;
import javafx.animation.Timeline;
import javafx.scene.input.MouseEvent;
var image: ImageView;
var timeline = Timeline {
def im = image;
keyFrames: [
KeyFrame {
time: 0s,
values: [
im.x => 20.0,
im.y => 20.0
KeyFrame {
time: 1s,
values: [
im.x => 150.0,
im.y => 150.0
Stage {
title: "Test"
scene: Scene {
width: 550, height: 350
content: [
image = ImageView {
x: 20.0, y: 20.0
image: Image {
url: "http://www.google.it/logos/2010/joseffrank-hp.gif";
onMousePressed: function(e: MouseEvent) {
timeline.play();
}But it does not works! And I can't use the "bind" variables, because in an extern class like this:
package javafxapplication2;
import javafx.animation.Timeline;
import javafx.animation.KeyFrame;
var element: Element;
var fromBoxX : Number;
var fromBoxY: Number;
var toBoxX: Number;
var toBoxY: Number;
var timeline = Timeline {
def e = element;
keyFrames: [
KeyFrame {
time: 0s,
values: [
e.x => fromBoxX,
e.y => fromBoxY
KeyFrame {
time: 1s,
values: [
e.x => toBoxX,
e.y => toBoxY
public function move (el: Element, fBox: Box, tBox: Box): Void {
element = el;
fromBoxX = el.matrix.getMatrixIndexes(fBox.location).getY() * el.board.squareSize;
fromBoxY = el.matrix.getMatrixIndexes(fBox.location).getX() * el.board.squareSize;
toBoxX = el.matrix.getMatrixIndexes(tBox.location).getY() * el.board.squareSize;
toBoxY = el.matrix.getMatrixIndexes(tBox.location).getX() * el.board.squareSize;
timeline.playFromStart();
public class Elements {}I can't use it!
Is here anybody that can help me? (Sorry for my bad english)It is because the image variable is null when the timiline is createed.
Try this:
import javafx.stage.Stage;
import javafx.scene.Scene;
import javafx.scene.image.Image;
import javafx.scene.image.ImageView;
import javafx.animation.KeyFrame;
import javafx.animation.Timeline;
import javafx.scene.input.MouseEvent;
var image: ImageView;
Stage {
title: "Test"
scene: Scene {
width: 550, height: 350
content: [
image = ImageView {
x: 20.0, y: 20.0
image: Image {
url: "http://www.google.it/logos/2010/joseffrank-hp.gif";
onMousePressed: function(e: MouseEvent) {
timeline.play();
var timeline = Timeline {
def im = image;
keyFrames: [
KeyFrame {
time: 0s,
values: [
im.x => 20.0,
im.y => 20.0
KeyFrame {
time: 1s,
values: [
im.x => 150.0,
im.y => 150.0
} -
I have created a jsp in which I am calling a selector class for image display, it seems my class is not being called for image to display.
Component has the sling:superResourceType set to /foundation/components/image
It is displaying the correct img tag in html as
<img src="/content/mywebsite/en/topics/world/_jcr_content/image.relateditem.jpg/1368463356576. jpg" alt="myimg_summ" title="img_summ">
where the page is located at /content/mywebsite/en/topics/world it has some image
I see no compiled class in /var/classes/apps/myapps/....
What could be the problem that may cause this issue.
I appreciate any help.
ThanksHi Akhter,
Which version of CQ? Make sure the bundle org.apache.sling.scripting.java exists in felix console & running. If it is missing install the hf https://helpx.adobe.com/cq/kb/Hotfix_36357.html
http://localhost:4502/system/console/bundles/org.apache.sling.scripting.java
Thanks,
Sham -
Hi Experts,
Iam working on change pointers for the Material.
In BD52 transaction iam able to enter some fieds for the material.
But i need to enter Material Classication, and i found AUSP-ATWRT field.
Now, i want to pass this table & field into BD52 transaction. But it is asking Object Class for AUSP.
I know Object class for the table MARA ( is Material)
Could you please let me know how can i find Object Class for AUSP table?
Thanks
kakiAUSP - Characteristic values
-
Provide a class for authoring a simple letter.
Provide a class for authoring a simple letter. In the constructor, supply the names of the sender and the recipient: public Letter(String from, String to) Supply a method public void addLine(String line) to add a line of text to the body of the letter. Supply a method public String getText() that returns the entire text of the letter. The text has the form:
Dear recipient name :
blank line
first line of the body
second line of the body
last line of the body
blank line
Sincerely,
blank line
sender name
Also supply a program LetterPrinter that prints this letter:
Dear John:
I am sorry we must part.
I wish you all the best.
Sincerely,
Mary
Construct an object of the Letter class and call addLine twice.
Hints: (1) Use the concat method to form a longer string from two shorter strings. (2) The special string "\n" represents a new line. For example, the statement
body = body.concat("Sincerely,").concat("\n");
adds a line containing the string "Sincerely," to the body.
Complete the following class in your solution:
This class models a simple letter.
public class Letter
Constructs a letter with a given sender and recipient.
@param from the sender
@param to the recipient
public Letter(String from, String to)
Adds a line to the body of this letter.
public void addLine(String line)
Gets the text of this letter.
public String getText()
private String sender;
private String recipient;
private String body;
}I've answered the question and I've gotten the right answer. However, when I uploaded in our online homewok (which calls WileyPlus, "Launch LabRat") it gives me and error because it's a machine not a human to correct my answer. So, I thought people here could help me to come up with some new codes that would actually work in the "Launch LabRat".
Here's how I answered the problem (it works perfectly in the BlueJ, but "LabRat" fails the solution):
This class models a simple letter.
public class Letter
Constructs a letter with a given sender and recipient.
@param from the sender
@param to the recipient
public Letter(String from, String to)
sender = from;
recipient = to;
text = text.concat("Dear ").concat( recipient).concat(":").concat("\n").concat("\n");
Adds a line to the body of this letter.
public void addLine(String line)
text = text.concat(line).concat("\n");
Gets the text of this letter.
public String getText()
text = text.concat("\n").concat("Sincerely, ").concat("\n").concat("\n").concat(sender);
return text;
private String sender;
private String text = "";
private String recipient;
This is the Tester
public class LetterTester
public static void main(String[] args)
Letter departure = new Letter("Mary", "John");
departure.addLine("I am sorry we must part.");
departure.addLine("I wish you all the best.");
String departureLetter = departure.getText();
System.out.println(departureLetter);
} -
Hi,
Im trying to create a Rest WS with a @GET method that will return me an Emp object. I need the output as a JSON string.
I have created a dynamic web project and added javax RS jars:
When im trying to run this, i'm getting the below mentioned error:
FlushResultHa E org.apache.wink.server.internal.handlers.FlushResultHandler handleResponse The system could not find a javax.ws.rs.ext.MessageBodyWriter or a DataSourceProvider class for the com.rest.assignment.EmpBean type and application/json mediaType. Ensure that a javax.ws.rs.ext.MessageBodyWriter exists in the JAX-RS application for the type and media type specified.
RequestProces I org.apache.wink.server.internal.RequestProcessor logException The following error occurred during the invocation of the handlers chain: WebApplicationException (500 - Internal Server Error)
Please help as im stuck with this from long.
Thanks in advance.
Below is the code for my service class:
package com.rest.assignment;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.Enumeration;
import java.util.HashSet;
import java.util.Properties;
import java.util.Set;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.Application;
import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.Response;
@Path("/restService")
public class RestService extends Application {
@GET
@Path("/getEmpDetails")
@Produces(MediaType.APPLICATION_JSON)
public Response getStringResponse()
EmpBean empBean = new EmpBean();
String filePath = "C:/Program Files/IBM/workspace/HelloWorld/src/com/rest/resources/EmpData.properties";
Properties properties = new Properties();
try {
properties.load(new FileInputStream(filePath));
} catch (FileNotFoundException e) {
e.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
Enumeration e = properties.propertyNames();
String result="";
String[] empDetailsArr;
while (e.hasMoreElements()) {
String key = (String) e.nextElement();
String empDetails = properties.getProperty(key);
empDetailsArr=empDetails.split(",");
empBean.setFirstName(empDetailsArr[0]);
empBean.setLastName(empDetailsArr[1]);
empBean.setEmpId(empDetailsArr[2]);
empBean.setDesignation(empDetailsArr[3]);
empBean.setSkillSet(empDetailsArr[4]);
result = empDetailsArr[1];
//return empBean;
return Response.ok(empBean).type(MediaType.APPLICATION_JSON_TYPE).build();
@Override
public Set<Class<?>> getClasses() {
Set<Class<?>> classes = new HashSet<Class<?>>();
classes.add(RestService.class);
classes.add(EmpBean.class);
return classes;
and my empBean goes like this:
package com.rest.assignment;
public class EmpBean {
private String firstName;
private String lastName;
private String empId;
private String designation;
private String skillSet;
public String getFirstName() {
return firstName;
public void setFirstName(String firstName) {
this.firstName = firstName;
public String getLastName() {
return lastName;
public void setLastName(String lastName) {
this.lastName = lastName;
public String getEmpId() {
return empId;
public void setEmpId(String empId) {
this.empId = empId;
public String getDesignation() {
return designation;
public void setDesignation(String designation) {
this.designation = designation;
public String getSkillSet() {
return skillSet;
public void setSkillSet(String skillSet) {
this.skillSet = skillSet;
Web.xml goes like this:
<?xml version="1.0" encoding="UTF-8"?>
<web-app id="WebApp_ID" version="3.0" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd">
<display-name>restWS</display-name>
<welcome-file-list>
<welcome-file>index.html</welcome-file>
<welcome-file>index.htm</welcome-file>
<welcome-file>index.jsp</welcome-file>
<welcome-file>default.html</welcome-file>
<welcome-file>default.htm</welcome-file>
<welcome-file>default.jsp</welcome-file>
</welcome-file-list>
<servlet>
<servlet-name>REST</servlet-name>
<servlet-class>com.ibm.websphere.jaxrs.server.IBMRestServlet</servlet-class>
<init-param>
<param-name>javax.ws.rs.Application</param-name>
<param-value>com.rest.assignment.RestService</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>REST</servlet-name>
<url-pattern>/rest/*</url-pattern>
</servlet-mapping>
</web-app>
When i try to return a string from my get method, it gives me a proper response. i get this exception when im trying to return a JSON response.Hi,
Im trying to create a Rest WS with a @GET method that will return me an Emp object. I need the output as a JSON string.
I have created a dynamic web project and added javax RS jars:
When im trying to run this, i'm getting the below mentioned error:
FlushResultHa E org.apache.wink.server.internal.handlers.FlushResultHandler handleResponse The system could not find a javax.ws.rs.ext.MessageBodyWriter or a DataSourceProvider class for the com.rest.assignment.EmpBean type and application/json mediaType. Ensure that a javax.ws.rs.ext.MessageBodyWriter exists in the JAX-RS application for the type and media type specified.
RequestProces I org.apache.wink.server.internal.RequestProcessor logException The following error occurred during the invocation of the handlers chain: WebApplicationException (500 - Internal Server Error)
Please help as im stuck with this from long.
Thanks in advance.
Below is the code for my service class:
package com.rest.assignment;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.Enumeration;
import java.util.HashSet;
import java.util.Properties;
import java.util.Set;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.Application;
import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.Response;
@Path("/restService")
public class RestService extends Application {
@GET
@Path("/getEmpDetails")
@Produces(MediaType.APPLICATION_JSON)
public Response getStringResponse()
EmpBean empBean = new EmpBean();
String filePath = "C:/Program Files/IBM/workspace/HelloWorld/src/com/rest/resources/EmpData.properties";
Properties properties = new Properties();
try {
properties.load(new FileInputStream(filePath));
} catch (FileNotFoundException e) {
e.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
Enumeration e = properties.propertyNames();
String result="";
String[] empDetailsArr;
while (e.hasMoreElements()) {
String key = (String) e.nextElement();
String empDetails = properties.getProperty(key);
empDetailsArr=empDetails.split(",");
empBean.setFirstName(empDetailsArr[0]);
empBean.setLastName(empDetailsArr[1]);
empBean.setEmpId(empDetailsArr[2]);
empBean.setDesignation(empDetailsArr[3]);
empBean.setSkillSet(empDetailsArr[4]);
result = empDetailsArr[1];
//return empBean;
return Response.ok(empBean).type(MediaType.APPLICATION_JSON_TYPE).build();
@Override
public Set<Class<?>> getClasses() {
Set<Class<?>> classes = new HashSet<Class<?>>();
classes.add(RestService.class);
classes.add(EmpBean.class);
return classes;
and my empBean goes like this:
package com.rest.assignment;
public class EmpBean {
private String firstName;
private String lastName;
private String empId;
private String designation;
private String skillSet;
public String getFirstName() {
return firstName;
public void setFirstName(String firstName) {
this.firstName = firstName;
public String getLastName() {
return lastName;
public void setLastName(String lastName) {
this.lastName = lastName;
public String getEmpId() {
return empId;
public void setEmpId(String empId) {
this.empId = empId;
public String getDesignation() {
return designation;
public void setDesignation(String designation) {
this.designation = designation;
public String getSkillSet() {
return skillSet;
public void setSkillSet(String skillSet) {
this.skillSet = skillSet;
Web.xml goes like this:
<?xml version="1.0" encoding="UTF-8"?>
<web-app id="WebApp_ID" version="3.0" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd">
<display-name>restWS</display-name>
<welcome-file-list>
<welcome-file>index.html</welcome-file>
<welcome-file>index.htm</welcome-file>
<welcome-file>index.jsp</welcome-file>
<welcome-file>default.html</welcome-file>
<welcome-file>default.htm</welcome-file>
<welcome-file>default.jsp</welcome-file>
</welcome-file-list>
<servlet>
<servlet-name>REST</servlet-name>
<servlet-class>com.ibm.websphere.jaxrs.server.IBMRestServlet</servlet-class>
<init-param>
<param-name>javax.ws.rs.Application</param-name>
<param-value>com.rest.assignment.RestService</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>REST</servlet-name>
<url-pattern>/rest/*</url-pattern>
</servlet-mapping>
</web-app>
When i try to return a string from my get method, it gives me a proper response. i get this exception when im trying to return a JSON response. -
"this computer is no longer authorized for applications that are installed
"this computer is no longer authorized for applications that are installed on the ipad "name of ipad" Would you like to autoriize for items purchased from the itunes store?
if you do not autorize ....
Why am I getting this message I only have 1 computer the ipad connects to, it hasnt changed so why do I suddenly have to autorize it again????I've gotten the same issue now on my ipad.
My mac mini is authorized. I only have ONE itunes account. I sync my original ipad today and I get this message. So i say sure authorize, even tho it is. Enter login and password, comes back with this computer is already authorized. I knew that but ok. hit ok. Up pops message that this computer is no longer authorized, blah blah blah. Ok ill try again. Authorize credentials entered. Get message that computer is already authorized. Itunes is most recent 10.2.1. Ipad is updated to 4.3.1.
I deauthorized computer and reauthorized it. Still get loop.
google for solutions, find lots of problems, no answers outside of reinstall itunes and it "might" work, but not for everyone. Not gonna do that yet.
Figure Ill call, I mean its not that an old a device and its surely a bug in the software, I havent changed a single thing since I last synced and only tried got the sync message when i plugged it in to update the OS.
/rant on Go through a gazillion voice prompts and question, finally get operator and he'll help me if i spend 80 or 30 bucks depending on the service program I want. Yah know thats just total #$%@.
How about some customer service eh? How about posting a solution to the forums. If you dont have one, at least tell people that.
I get the same bit of attitude when I walk in the apple store. Love the products, have been an apple user since the IIe, but I just want the products I bought from you, the software that I get from you, the music that I buy from you, the apps that I buy from you, etc etc to WORK with each other.
/rant off
has anyone seen a solution for this. -
why am I still getting this message after logging in? "This computer is no longer authorized for apps that are installed on the iPhone “*************s iPhone”. Would you like to authorize this computer for items purchased from the iTunes Store?" - after I have logged in and get the message that the computer is already authorized!!!?? - and then the above message pops up again?
Click here and follow the instructions.
(71175) -
when i pluged in my ipod,computer start scanning,without finishing scan,it says"your computer is no more authorized for app that are installed in"yadav ipod",would you like to authorizes this computer for item purchased from itune" what should i do to fix this problem,,,
What the message says. In iTunes g the the Store tab in ther upper part of the screen and then clink on Authorize this computer.
-
while trying to sync with my iphone I recieve the message: This computer is no longer authorized for apps that are installed on the iPhone “Terri George’s iPhone”. Would you like to authorize this computer for items purchased from the iTunes Store? When I put in my password and hit authorize, I get a message telling me there was an unknown error (-50). Would love to sync today. Any help would be appreciated.
The -50 error is documented in this article:
iTunes: Specific update-and-restore error messages and advanced troubleshooting
Here is a synopsis:
Error 13, 14, 35 and 50 (or -50)
These errors are typically resolved by performing one or more of the steps listed below:
Perform USB isolation troubleshooting, including trying a different USB port directly on the computer. See the advanced steps below for USB troubleshooting.
Put a USB 2.0 hub between the device and the computer.
Try a different USB 30-pin dock-connector cable.
Eliminate third-party security software conflicts.
There may be third-party software installed that modifies your default packet size in Windows by inserting one or more TcpWindowSize entries into your registry. Your default packet size being set incorrectly can cause this error. Contact the manufacturer of the software that installed the packet-size modification for assistance. Or, follow this article by Microsoft: How to reset Internet Protocol (TCP/IP) to reset the packet size back to the default for Windows.
Connect your computer directly to your Internet source, bypassing any routers, hubs, or switches. You may need to restart your computer and modem to get online.
Try to restore from another known-good computer and network. -
when syncing iPad to MacBook Pro itunes says "this computer is no longer authorized for apps that are installed on the ipad" . When I enter my id and password it tells me the computer is authorized.
http://support.apple.com/kb/TS1389
-
Using the UI editor for a class that extends an abstract class
Hi,
At the moment it's unfortunately impossible to use the UI editor to edit a class that extends a certain abstract class. There is a way to circumvent this problem, by using a proxy class. Does anyone know how to create a proxy class for this purpose and how to register it?
Hopefully a future JDeveloper release will solve this problem. Is this a planned feature?
Regards,
PeterI hope it works for you now (why using , but not indentation?).
Maybe you are looking for
-
How many times a char showed up in a string
Hi assume that i have this String: String s = "I have son and he has son and his son that has a son also" how can i determine how many times 's' showed up in this string? thanks
-
Hi, I am new to SAP BW ,while creating a Datasource i am experiencing this error as "No Conversion exit entered" .Please help me on this . Thanks & Regards Sameer Khan
-
Hello there everybody! I have installed Windows 7 on my MacBook Pro 2006 15' without any problems, and without any modification. I did hear that some users couldn't install it, but I have got it working fine with BootCamp 4.0.1 on Lion. So anyways, w
-
*** HD-DVD template for regular widescreen DVD project?
I have a sample of HDV projects that I have converted to .m2v in DVDSP in order to show on DVD. For now, I have to use a DVDSP template as the background menu. I'm not happy with how the menu looks on my widescreen LCD tv so I'm wondering if it's pos
-
Integer i = new Integer (42); Long l = new Long (42); if(i.equals(1)) System.out.println("Equal"); else System.out.println("NOT Equal");Why it is Not Equal?can you explain me?