5.6.1 Unary Numeric Promotion

can anyone explain why 5.6.1 is written so differently to 5.6.2? is this an equivalent simpler formulation of 5.6.1, or have i missed something?
...type:
* If the operand is of a reference type, unboxing conversion is performed. Then:
* If the operand is of compile-time type byte, short, or char, unary numeric promotion...
here's 5.6.1 and 5.6.2 from adding_generics-2_4ea:
5.6.1 Unary Numeric Promotion
Some operators apply unary numeric promotion to a single operand, which must produce a value of a numeric type:
* If the operand is of compile-time type Byte, Short, Character, or Integer it is subjected to unboxing conversion. The result is then promoted to a value of type int by a widening conversion (?5.1.2) or an identity conversion.
* Otherwise, if the operand is of compile-time type Long, Float, or Double it is subjected to unboxing conversion.
* Otherwise, if the operand is of compile-time type byte, short, or char, unary numeric promotion promotes it to a value of type int by a widening conversion (?5.1.2).
* Otherwise, a unary numeric operand remains as is and is not converted.
In any case, value set conversion (?5.1.8) is then applied.
5.6.2 Binary Numeric Promotion
When an operator applies binary numeric promotion to a pair of operands, each of which must denote a value of a numeric type, the following rules apply, in order, using widening conversion (?5.1.2) to convert operands as necessary:
* If any of the operands is of a reference type, unboxing conversion is performed. Then:
* If either operand is of type double, the other is converted to double.
* Otherwise, if either operand is of type float, the other is converted to float.
* Otherwise, if either operand is of type long, the other is converted to long.
* Otherwise, both operands are converted to type int.
After the type conversion, if any, value set conversion (?5.1.8) is applied to each operand.

5.6.1 operates on two types, 50602 operates on one type.

Similar Messages

  • Binary Numeric Promotion

    From the JLS - When an operator applies binary numeric promotion to a pair of operands, and these are both characters, both operands are converted to type int.
    So given
    byte b = 'b' + 'a';I see a compiler error as I would expect. The operands would be converted to type int and the result could not be assigned to a byte without a cast.
    However, the following all compile and run successfully..
    byte b = 'b' - 'a';
    char c = 'b' - 'a';
    char ch = 'b' + 'a';But how? Aren't the characters 'b' and 'a' converted to type int and doesn't this preclude direct assignment to byte or char without an explict cast? What is the difference?

    Thanks for your posts jverd. You've helped me see
    that I was overlooking the obvious. That is, the
    actual value of 'b' + 'a' is outside the upperrange
    of byte which is 128. 127, actually. :-)LOL. Yes indeed.

  • Dimension an array with BigInteger?

    Hi,
    I'm wondering if it is possible to dimension an HUGE array with BigInteger..
    my idea is if it is possible to the equivalent of e.g.
    boolean b[] = new boolean[new BigInteger("12345678987654322346567")];Thanks!

    No. The number in [] must be of type int (or promoted to int):
    See: http://java.sun.com/docs/books/jls/second_edition/html/expressions.doc.html#46168
    "The type of each dimension expression within a DimExpr must be an integral type, or a compile-time error occurs. Each expression undergoes unary numeric promotion (�5.6.1). The promoted type must be int, or a compile-time error occurs; this means, specifically, that the type of a dimension expression must not be long."

  • Subtraction of a positive integer of a negative integer results a positive?

    Hi
    I have the next problem and I haven't found the reason...
    I have the next Java code:
    int a = -2147483648;
    int b = 2147483647;
    System.out.println(a - b);
    The output of this lines is "1", but I don't understand why.
    Thanks

    >
    My main issue was that I wasn't sure of the Java process for this operation, and I thought that maybe the result
    -4294967295 = FFFFFFFF00000001
    could throw an exception.
    >
    The answer to that concern is in the Java Language Spec.
    http://docs.oracle.com/javase/specs/jls/se7/jls7.pdf
    See sections 4.2.1 for the value ranges (you will see your MAX and MIN 'int' values there
    >
    4.2.1 Integral Types and Values
    The values of the integral types are integers in the following ranges:
    • For byte, from -128 to 127, inclusive
    • For short, from -32768 to 32767, inclusive
    • For int, from -2147483648 to 2147483647, inclusive
    • For long, from -9223372036854775808 to 9223372036854775807, inclusive
    • For char, from '\u0000' to '\uffff' inclusive, that is, from 0 to 65535
    4.2.2 Integer Operations
    The Java programming language provides a number of operators that act on integral
    values:
    • The comparison operators, which result in a value of type boolean:
    ◆ The numerical comparison operators <, <=, >, and >= (§15.20.1)
    ◆ The numerical equality operators == and != (§15.21.1)
    • The numerical operators, which result in a value of type int or long:
    ◆ The unary plus and minus operators + and - (§15.15.3, §15.15.4)
    ◆ The multiplicative operators *, /, and % (§15.17)
    ◆ The additive operators + and - (§15.18)
    ◆ The increment operator ++, both prefix (§15.15.1) and postfix (§15.14.2)
    ◆ The decrement operator --, both prefix (§15.15.2) and postfix (§15.14.3)
    ◆ The signed and unsigned shift operators <<, >>, and >>> (§15.19)
    ◆ The bitwise complement operator ~ (§15.15.5)
    ◆ The integer bitwise operators &, ^, and | (§15.22.1)
    • The conditional operator ? : (§15.25)
    • The cast operator (§15.16), which can convert from an integral value to a value
    of any specified numeric type
    • The string concatenation operator + (§15.18.1), which, when given a String
    operand and an integral operand, will convert the integral operand to a String
    representing its value in decimal form, and then produce a newly created String
    that is the concatenation of the two strings
    >
    These are the two statements that apply directly to your question and concern
    >
    Otherwise, the operation is carried out using 32-bit precision, and the result of the
    numerical operator is of type int. If either operand is not an int, it is first widened
    to type int by numeric promotion.
    The integer operators do not indicate overflow or underflow in any way.
    >
    Yours are 'integer operators' operating on 'int' values.

  • Problem with bits operation

    Hi
    I have the next code that is throwing the
    recorreBits.java:8: possible loss of precision
    found   : int
    required: byte
      byte c =        a & b;
                             ^
    1 errorand the code is
    public class recorreBits {
         public static void main(String args[])
         byte a = 0x20;
         byte b = 0x10;
         byte c = a & b;
         System.out.println(c);
              }I'm using byte don't know whyt it found's a int. Thanks
    Edited by: Ikim on Oct 6, 2009 1:14 PM

    [JLS 15.22.1 Integer Bitwise Operators|http://java.sun.com/docs/books/jls/third_edition/html/expressions.html#15.22.1] says:
    When both operands of an operator &, ^, or | are of a type that is convertible (§5.1.8) to a primitive integral type, binary numeric promotion is first performed on the operands (§5.6.2). The type of the bitwise operator expression is the promoted type of the operands.
    So, since byte is a primitive integral type, binary numeric promotion occurs, and both are converted to int, and the result is then int. You can't assign an int value to a byte variable, unless it's a compile-time constant, so you have to cast.
    byte c = (byte)(a & b);Edited by: jverd on Oct 6, 2009 1:19 PM

  • Implicit cast differs?

    hello,
    I'm just getting weird concerning the following issue:
    public class Strange {
           public static void main(String[] args) {
                  int n = 10;
                  while (true) {
                        try {
                             n -= 0.5;
                             System.out.println(n);
                             Thread.sleep(100);
                        } catch(Exception e) {
                             e.printStackTrace();
    }First: don't mind that this class makes no sense.
    What I tried is to decrease an int by 0.5
    n starts at 10 and decreases to zero, but then it doesn't decrease anymore.
    So 0.5 is once casted implicitly to one and later to zero?
    Can anyone explain this behaviour?

    From JLS: A compound assignment expression of the form E1 op= E2 is equivalent to E1 = (T)((E1) op (E2)), where T is the type of E1, except that E1 is evaluated only once.
    So n -= 0.5;is semantically equivalent to n = (int)(n - 0.5)The expression (n - 0.5) produces a result of type double (numeric promotion.)
    Then this value is cast into an int. The language uses round toward zero when converting a floating value to an integer.
    Therefore, both double values 0.5 and -0.5 will be produce a int value 0.

  • Negative out put

    Hi all,
    The output of the code below is -2147483630. On a calculator, the answer is 2147483666. Now since the calculator answer is bigger than an int, I would think that it would cast up automatically.
    What's the reason for the negative output?
    Is my thinking backwards?
    class A
    public static void main(String[] args)
    int x = 1073741833;
    System.out.println(2 * x);
    thanx for the sugessions

    Now since the calculator answer is bigger than an int,
    I would think that it would cast up automatically. But it isn't. This is because every integer operation made on an int is guaranteed to evaluate to an int. On the other hand, operations made on "smaller" integer types also evaluate to an int. IIRC, the term "numeric promotion" in the JLS has to do a lot with this.
    An automatic up cast like that would make code depending on the size of primitive types much more obscure than what it is now. Currently you are guaranteed that a calculations made with 32 bits will always stay in 32 bits and overflowing will not make the bit count jump to 64.
    (Also, if all expressions done on integer types would in fact evaluate to longs, doing an explicit down cast to int every time you wanted to do "i = 2*i+1" or something similar would be a bit of a burden...)

  • Byte.MAX_VALUE, Integer.MAX_VALUE

    hi,
    just curious..
    byte b = (byte)Byte.MAX_VALUE+1 //does not compile
    short s = (short)Short.MAX_VALUE+1 // does not compile
    int i = (int)Integer.MAX_VALUE+1 //compiles
    can someone tell me why this happens?
    thanks,
    shishir

    thanks.
    any idea why adding 1 in int doesn't promot it to
    long?[url http://java.sun.com/docs/books/jls/third_edition/html/expressions.html#15.18.2]JLS 15.182 Additive Operators (+ and -) for Numeric Types says: Binary numeric promotion is performed on the operands (�5.6.2). The type of an additive expression on numeric operands is the promoted type of its operands.
    And [url http://java.sun.com/docs/books/jls/third_edition/html/conversions.html#170983]5.6.2 Binary Numeric Promotion says: ...Otherwise, both operands are converted to type int.
    So any two integer types yield an int result, unless at least one of them is a long. byte + byte gives int, so the result is an int. int + int (e.g., Integer.MAX_VALUE + 1) yields an int, which just silently wraps around through Integer.MIN_VALUE (0x80000000).

  • Deleted failed DC from the domain (Server 2012 R2) - Now after doing metadata and DNS cleanup, I can no longer promote a new DC to the domain

    I work for a university and teach IT courses to undergrad and graduate students. The details below are pertaining an isolated lab environment
    I had a storage failure in my lab and the DCs became corrupt. This is a university lab environment so there isn't anything crucial on here. I just would rather avoid rebuilding the domain/forest and would rather use this as a learning experience with my
    students...
    So after the storage failed and was restored, the VMs hosted became corrupt. I did a NTDSUTIL to basically repair the NDTS.dit file but one of my DCs reverted to a state before DC promotion. Naturally, the domain still had this object in AD. After numerous
    failed attempts at trying to reinstall the DC on the server through the server manager wizard in 2012 R2, I decided that a metadata cleanup of the old failed object was necessary.
    Utilizing this article, I removed all references of the failed DC from both AD and DNS (http://www.petri.com/delete_failed_dcs_from_ad.htm) 
    So now that the failed object is removed completely from the domain and the metadata cleanup was successful, I then proceeded to re-install the necessary AD DS role on the server and re-promote to the existing domain. Pre-Requisites pass but generate some
    warning around DNS Delgation, and Dynamic Updates (delegation is ignored because the lab is isolated from external comms, and dynamic updates are in fact enabled on both my _msdcs and root domain zones).
    Upon the promotion process, I get the following error message (also worth mentioning - the account performing these operations is a member of DA, EA, and Schema Admins)
    The operation failed because:
    Active Directory Domain Services could not create the NTDS Settings object for this Active Directory Domain Controller CN=NTDS Settings,CN=domainVMDC1,CN=Servers,CN=Default-
    First-Site-Name,CN=Sites,CN=Configuration,DC=domain,DC=school,DC=edu on the remote AD DC domainVMDC2. Ensure the provided network credentials have sufficient permissions.
    "While processing a change to the DNS Host Name for an object, the Service Principal Name values could not be kept in sync."
    As you can see, this error seems odd considering. Now that I'm down to a single DC and DNS server, the sync should be corrected. I've run a repadmin /syncall and it completed successfully. Since then, I've run dcdiags and dumped those to a text as well and
    here are my results...
    Directory Server Diagnosis
    Performing initial setup:
       Trying to find home server...
       Home Server = domainVMDC2
       * Identified AD Forest. 
       Done gathering initial info.
    Doing initial required tests
       Testing server: Default-First-Site-Name\domainVMDC2
          Starting test: Connectivity
             ......................... domainVMDC2 passed test Connectivity
    Doing primary tests
       Testing server: Default-First-Site-Name\domainVMDC2
          Starting test: Advertising
             ......................... domainVMDC2 passed test Advertising
          Starting test: FrsEvent
             ......................... domainVMDC2 passed test FrsEvent
          Starting test: DFSREvent
             ......................... domainVMDC2 passed test DFSREvent
          Starting test: SysVolCheck
             ......................... domainVMDC2 passed test SysVolCheck
          Starting test: KccEvent
             ......................... domainVMDC2 passed test KccEvent
          Starting test: KnowsOfRoleHolders
             ......................... domainVMDC2 passed test KnowsOfRoleHolders
          Starting test: MachineAccount
             ......................... domainVMDC2 passed test MachineAccount
          Starting test: NCSecDesc
             ......................... domainVMDC2 passed test NCSecDesc
          Starting test: NetLogons
             ......................... domainVMDC2 passed test NetLogons
          Starting test: ObjectsReplicated
             ......................... domainVMDC2 passed test ObjectsReplicated
          Starting test: Replications
             ......................... domainVMDC2 passed test Replications
          Starting test: RidManager
             ......................... domainVMDC2 passed test RidManager
          Starting test: Services
             ......................... domainVMDC2 passed test Services
          Starting test: SystemLog
             A warning event occurred.  EventID: 0x00001795
                Time Generated: 12/18/2014   00:35:03
                Event String:
                The program lsass.exe, with the assigned process ID 476, could not authenticate locally by using the target name ldap/domainvmdc2.domain.school.edu. The target name used is not valid. A target name should
    refer to one of the local computer names, for example, the DNS host name.
             ......................... domainVMDC2 passed test SystemLog
          Starting test: VerifyReferences
             ......................... domainVMDC2 passed test VerifyReferences
       Running partition tests on : ForestDnsZones
          Starting test: CheckSDRefDom
                For the partition
                (DC=ForestDnsZones,DC=domain,DC=school,DC=edu) we encountered
                the following error retrieving the cross-ref's
                (CN=3098109a-ff99-41d4-8926-0e814ac8efde,CN=Partitions,CN=Configuration,DC=domain,DC=school,DC=edu)
                 information: 
                   LDAP Error 0x52e (1326). 
             ......................... ForestDnsZones failed test CheckSDRefDom
          Starting test: CrossRefValidation
                For the partition
                (DC=ForestDnsZones,DC=domain,DC=school,DC=edu) we encountered
                the following error retrieving the cross-ref's
                (CN=3098109a-ff99-41d4-8926-0e814ac8efde,CN=Partitions,CN=Configuration,DC=domain,DC=school,DC=edu)
                 information: 
                   LDAP Error 0x52e (1326). 
             ......................... ForestDnsZones failed test
             CrossRefValidation
       Running partition tests on : DomainDnsZones
          Starting test: CheckSDRefDom
                For the partition
                (DC=DomainDnsZones,DC=domain,DC=school,DC=edu) we encountered
                the following error retrieving the cross-ref's
                (CN=2f0b8ac0-2630-441a-891f-b5fcb91498a8,CN=Partitions,CN=Configuration,DC=domain,DC=school,DC=edu)
                 information: 
                   LDAP Error 0x52e (1326). 
             ......................... DomainDnsZones failed test CheckSDRefDom
          Starting test: CrossRefValidation
                For the partition
                (DC=DomainDnsZones,DC=domain,DC=school,DC=edu) we encountered
                the following error retrieving the cross-ref's
                (CN=2f0b8ac0-2630-441a-891f-b5fcb91498a8,CN=Partitions,CN=Configuration,DC=domain,DC=school,DC=edu)
                 information: 
                   LDAP Error 0x52e (1326). 
             ......................... DomainDnsZones failed test
             CrossRefValidation
       Running partition tests on : Schema
          Starting test: CheckSDRefDom
             ......................... Schema passed test CheckSDRefDom
          Starting test: CrossRefValidation
                For the partition
                (CN=Schema,CN=Configuration,DC=domain,DC=school,DC=edu) we
                encountered the following error retrieving the cross-ref's
                (CN=Enterprise Schema,CN=Partitions,CN=Configuration,DC=domain,DC=school,DC=edu)
                 information: 
                   LDAP Error 0x52e (1326). 
             ......................... Schema failed test CrossRefValidation
       Running partition tests on : Configuration
          Starting test: CheckSDRefDom
             ......................... Configuration passed test CheckSDRefDom
          Starting test: CrossRefValidation
                For the partition
                (CN=Configuration,DC=domain,DC=school,DC=edu) we encountered
                the following error retrieving the cross-ref's
                (CN=Enterprise Configuration,CN=Partitions,CN=Configuration,DC=domain,DC=school,DC=edu)
                 information: 
                   LDAP Error 0x52e (1326). 
             ......................... Configuration failed test CrossRefValidation
       Running partition tests on : domain
          Starting test: CheckSDRefDom
             ......................... domain passed test CheckSDRefDom
          Starting test: CrossRefValidation
                For the partition (DC=domain,DC=school,DC=edu) we encountered
                the following error retrieving the cross-ref's
                (CN=domain,CN=Partitions,CN=Configuration,DC=domain,DC=school,DC=edu)
                 information: 
                   LDAP Error 0x52e (1326). 
             ......................... domain failed test CrossRefValidation
       Running enterprise tests on : domain.school.edu
          Starting test: LocatorCheck
             ......................... domain.school.edu passed test
             LocatorCheck
          Starting test: Intersite
             ......................... domain.school.edu passed test Intersite
    From what I can gather, there is a definite DNS issue but I don't have any stale records to the old DC stored anywhere. I've tried this with a new server as well and get similar errors... 
    At this rate I'm ready to rebuild the entire forest over again. I'm just reluctant to do so as I want to make this a learning experience for the students. 
    Any help would be greatly appreciated. Thanks!

    As you can see, there seems to be some errors. The one that I did correct was the one around the _msdcs NS record being unable to resolve. For whatever, reason the name wasn't resolving the IP but all other NS tabs and records were. Just that one _msdcs
    sub-zone. Furthermore, the mentioning of any connections to root hint servers can be viewed as false positives. There is no external comms to this lab so no communication with outside IPs can be expected. Lastly, they mentioned a connectivity issue yet mention
    that I should check the firewall settings. All three profiles are disabled in Windows Firewall (as they have been the entire time). Thank you in advance for your help!
    C:\Windows\system32>dcdiag /test:dns /v
    Directory Server Diagnosis
    Performing initial setup:
       Trying to find home server...
       * Verifying that the local machine domainVMDC2, is a Directory Server.
       Home Server = domainVMDC2
       * Connecting to directory service on server domainVMDC2.
       * Identified AD Forest.
       Collecting AD specific global data
       * Collecting site info.
       Calling ldap_search_init_page(hld,CN=Sites,CN=Configuration,DC=domain,DC=school,DC=edu,LDAP_SCOPE_SUBTREE,(objectCategory=ntDSSiteSettings),.......
       The previous call succeeded
       Iterating through the sites
       Looking at base site object: CN=NTDS Site Settings,CN=Default-First-Site-Name,CN=Sites,CN=Configuration,DC=domain,DC=school,DC=edu
       Getting ISTG and options for the site
       * Identifying all servers.
       Calling ldap_search_init_page(hld,CN=Sites,CN=Configuration,DC=domain,DC=school,DC=edu,LDAP_SCOPE_SUBTREE,(objectClass=ntDSDsa),.......
       The previous call succeeded....
       The previous call succeeded
       Iterating through the list of servers
       Getting information for the server CN=NTDS Settings,CN=domainVMDC2,CN=Servers,CN=Default-First-Site-Name,CN=Sites,CN=Configuration,DC=domain,DC=school,DC=edu
       objectGuid obtained
       InvocationID obtained
       dnsHostname obtained
       site info obtained
       All the info for the server collected
       * Identifying all NC cross-refs.
       * Found 1 DC(s). Testing 1 of them.
       Done gathering initial info.
    Doing initial required tests
       Testing server: Default-First-Site-Name\domainVMDC2
          Starting test: Connectivity
             * Active Directory LDAP Services Check
             The host
             3a38b19c-4bb3-4542-acb6-9e5e97cc15c4._msdcs.domain.school.edu
             could not be resolved to an IP address. Check the DNS server, DHCP,
             server name, etc.
             Got error while checking LDAP and RPC connectivity. Please check your
             firewall settings.
             ......................... domainVMDC2 failed test Connectivity
    Doing primary tests
       Testing server: Default-First-Site-Name\domainVMDC2
          Test omitted by user request: Advertising
          Test omitted by user request: CheckSecurityError
          Test omitted by user request: CutoffServers
          Test omitted by user request: FrsEvent
          Test omitted by user request: DFSREvent
          Test omitted by user request: SysVolCheck
          Test omitted by user request: KccEvent
          Test omitted by user request: KnowsOfRoleHolders
          Test omitted by user request: MachineAccount
          Test omitted by user request: NCSecDesc
          Test omitted by user request: NetLogons
          Test omitted by user request: ObjectsReplicated
          Test omitted by user request: OutboundSecureChannels
          Test omitted by user request: Replications
          Test omitted by user request: RidManager
          Test omitted by user request: Services
          Test omitted by user request: SystemLog
          Test omitted by user request: Topology
          Test omitted by user request: VerifyEnterpriseReferences
          Test omitted by user request: VerifyReferences
          Test omitted by user request: VerifyReplicas
          Starting test: DNS
             DNS Tests are running and not hung. Please wait a few minutes...
             See DNS test in enterprise tests section for results
             ......................... domainVMDC2 passed test DNS
       Running partition tests on : ForestDnsZones
          Test omitted by user request: CheckSDRefDom
          Test omitted by user request: CrossRefValidation
       Running partition tests on : DomainDnsZones
          Test omitted by user request: CheckSDRefDom
          Test omitted by user request: CrossRefValidation
       Running partition tests on : Schema
          Test omitted by user request: CheckSDRefDom
          Test omitted by user request: CrossRefValidation
       Running partition tests on : Configuration
          Test omitted by user request: CheckSDRefDom
          Test omitted by user request: CrossRefValidation
       Running partition tests on : domain
          Test omitted by user request: CheckSDRefDom
          Test omitted by user request: CrossRefValidation
       Running enterprise tests on : domain.school.edu
          Starting test: DNS
             Test results for domain controllers:
                DC: domainVMDC2
                Domain: domain.school.edu
                   TEST: Authentication (Auth)
                      Authentication test: Successfully completed
                   TEST: Basic (Basc)
                      Error: No LDAP connectivity
                      The OS
                      Microsoft Windows Server 2012 R2 Datacenter (Service Pack level: 0.0)
                      is supported.
                      NETLOGON service is running
                      kdc service is running
                      DNSCACHE service is running
                      DNS service is running
                      DC is a DNS server
                      Network adapters information:
                      Adapter [00000010] vmxnet3 Ethernet Adapter:
                         MAC address is 00:50:56:A2:2C:24
                         IP Address is static
                         IP address: *.*.100.26
                         DNS servers:
                            *.*.100.26 (domainVMDC2) [Valid]
                      No host records (A or AAAA) were found for this DC
                      The SOA record for the Active Directory zone was found
                      The Active Directory zone on this DC/DNS server was found primary
                      Root zone on this DC/DNS server was not found
                   TEST: Forwarders/Root hints (Forw)
                      Recursion is enabled
                      Forwarders are not configured on this DNS server
                      Root hint Information:
                         Name: a.root-servers.net. IP: 198.41.0.4 [Invalid (unreachable)]
                         Name: b.root-servers.net. IP: 192.228.79.201 [Invalid (unreachable)]
                         Name: c.root-servers.net. IP: 192.33.4.12 [Invalid (unreachable)]
                         Name: d.root-servers.net. IP: 199.7.91.13 [Invalid (unreachable)]
                         Name: e.root-servers.net. IP: 192.203.230.10 [Invalid (unreachable)]
                         Name: f.root-servers.net. IP: 192.5.5.241 [Invalid (unreachable)]
                         Name: g.root-servers.net. IP: 192.112.36.4 [Invalid (unreachable)]
                         Name: h.root-servers.net. IP: 128.63.2.53 [Invalid (unreachable)]
                         Name: i.root-servers.net. IP: 192.36.148.17 [Invalid (unreachable)]
                         Name: j.root-servers.net. IP: 192.58.128.30 [Invalid (unreachable)]
                         Name: k.root-servers.net. IP: 193.0.14.129 [Invalid (unreachable)]
                         Name: l.root-servers.net. IP: 199.7.83.42 [Invalid (unreachable)]
                         Name: m.root-servers.net. IP: 202.12.27.33 [Invalid (unreachable)]
                      Error: Both root hints and forwarders are not configured or
                      broken. Please make sure at least one of them works.
                   TEST: Delegations (Del)
                      Delegation information for the zone: domain.school.edu.
                         Delegated domain name: _msdcs.domain.school.edu.
                            Error: DNS server: domainvmdc2. IP:<Unavailable>
                            [Missing glue A record]
                            [Error details: 9714 (Type: Win32 - Description: DNS name does not exist.)]
                   TEST: Dynamic update (Dyn)
                      Test record dcdiag-test-record added successfully in zone domain.school.edu
                      Warning: Failed to delete the test record dcdiag-test-record in zone domain.school.edu
                      [Error details: 13 (Type: Win32 - Description: The data is invalid.)]
                   TEST: Records registration (RReg)
                      Network Adapter [00000010] vmxnet3 Ethernet Adapter:
                         Matching CNAME record found at DNS server *.*.100.26:
                         3a38b19c-4bb3-4542-acb6-9e5e97cc15c4._msdcs.domain.school.edu
                         Matching  SRV record found at DNS server *.*.100.26:
                         _ldap._tcp.domain.school.edu
                         Matching  SRV record found at DNS server *.*.100.26:
                         _ldap._tcp.a9241004-88ea-422d-a71e-df7b622f0d68.domains._msdcs.domain.school.edu
                         Matching  SRV record found at DNS server *.*.100.26:
                         _kerberos._tcp.dc._msdcs.domain.school.edu
                         Matching  SRV record found at DNS server *.*.100.26:
                         _ldap._tcp.dc._msdcs.domain.school.edu
                         Matching  SRV record found at DNS server *.*.100.26:
                         _kerberos._tcp.domain.school.edu
                         Matching  SRV record found at DNS server *.*.100.26:
                         _kerberos._udp.domain.school.edu
                         Matching  SRV record found at DNS server *.*.100.26:
                         _kpasswd._tcp.domain.school.edu
                         Matching  SRV record found at DNS server *.*.100.26:
                         _ldap._tcp.Default-First-Site-Name._sites.domain.school.edu
                         Matching  SRV record found at DNS server *.*.100.26:
                         _kerberos._tcp.Default-First-Site-Name._sites.dc._msdcs.domain.school.edu
                         Matching  SRV record found at DNS server *.*.100.26:
                         _ldap._tcp.Default-First-Site-Name._sites.dc._msdcs.domain.school.edu
                         Matching  SRV record found at DNS server *.*.100.26:
                         _kerberos._tcp.Default-First-Site-Name._sites.domain.school.edu
                         Matching  SRV record found at DNS server *.*.100.26:
                         _ldap._tcp.gc._msdcs.domain.school.edu
                         Matching  SRV record found at DNS server *.*.100.26:
                         _gc._tcp.Default-First-Site-Name._sites.domain.school.edu
                         Matching  SRV record found at DNS server *.*.100.26:
                         _ldap._tcp.Default-First-Site-Name._sites.gc._msdcs.domain.school.edu
                         Matching  SRV record found at DNS server *.*.100.26:
                         _ldap._tcp.pdc._msdcs.domain.school.edu
                   Error: Record registrations cannot be found for all the network
                   adapters
             Summary of test results for DNS servers used by the above domain
             controllers:
                DNS server: 128.63.2.53 (h.root-servers.net.)
                   1 test failure on this DNS server
                   PTR record query for the 1.0.0.127.in-addr.arpa. failed on the DNS server 128.63.2.53               
    [Error details: 1460 (Type: Win32 - Description: This operation returned because the timeout period expired.)]
                DNS server: 192.112.36.4 (g.root-servers.net.)
                   1 test failure on this DNS server
                   PTR record query for the 1.0.0.127.in-addr.arpa. failed on the DNS server 192.112.36.4               
    [Error details: 1460 (Type: Win32 - Description: This operation returned because the timeout period expired.)]
                DNS server: 192.203.230.10 (e.root-servers.net.)
                   1 test failure on this DNS server
                   PTR record query for the 1.0.0.127.in-addr.arpa. failed on the DNS server 192.203.230.10               
    [Error details: 1460 (Type: Win32 - Description: This operation returned because the timeout period expired.)]
                DNS server: 192.228.79.201 (b.root-servers.net.)
                   1 test failure on this DNS server
                   PTR record query for the 1.0.0.127.in-addr.arpa. failed on the DNS server 192.228.79.201               
    [Error details: 1460 (Type: Win32 - Description: This operation returned because the timeout period expired.)]
                DNS server: 192.33.4.12 (c.root-servers.net.)
                   1 test failure on this DNS server
                   PTR record query for the 1.0.0.127.in-addr.arpa. failed on the DNS server 192.33.4.12               
    [Error details: 1460 (Type: Win32 - Description: This operation returned because the timeout period expired.)]
                DNS server: 192.36.148.17 (i.root-servers.net.)
                   1 test failure on this DNS server
                   PTR record query for the 1.0.0.127.in-addr.arpa. failed on the DNS server 192.36.148.17               
    [Error details: 1460 (Type: Win32 - Description: This operation returned because the timeout period expired.)]
                DNS server: 192.5.5.241 (f.root-servers.net.)
                   1 test failure on this DNS server
                   PTR record query for the 1.0.0.127.in-addr.arpa. failed on the DNS server 192.5.5.241               
    [Error details: 1460 (Type: Win32 - Description: This operation returned because the timeout period expired.)]
                DNS server: 192.58.128.30 (j.root-servers.net.)
                   1 test failure on this DNS server
                   PTR record query for the 1.0.0.127.in-addr.arpa. failed on the DNS server 192.58.128.30               
    [Error details: 1460 (Type: Win32 - Description: This operation returned because the timeout period expired.)]
                DNS server: 193.0.14.129 (k.root-servers.net.)
                   1 test failure on this DNS server
                   PTR record query for the 1.0.0.127.in-addr.arpa. failed on the DNS server 193.0.14.129               
    [Error details: 1460 (Type: Win32 - Description: This operation returned because the timeout period expired.)]
                DNS server: 198.41.0.4 (a.root-servers.net.)
                   1 test failure on this DNS server
                   PTR record query for the 1.0.0.127.in-addr.arpa. failed on the DNS server 198.41.0.4               
    [Error details: 1460 (Type: Win32 - Description: This operation returned because the timeout period expired.)]
                DNS server: 199.7.83.42 (l.root-servers.net.)
                   1 test failure on this DNS server
                   PTR record query for the 1.0.0.127.in-addr.arpa. failed on the DNS server 199.7.83.42               
    [Error details: 1460 (Type: Win32 - Description: This operation returned because the timeout period expired.)]
                DNS server: 199.7.91.13 (d.root-servers.net.)
                   1 test failure on this DNS server
                   PTR record query for the 1.0.0.127.in-addr.arpa. failed on the DNS server 199.7.91.13               
    [Error details: 1460 (Type: Win32 - Description: This operation returned because the timeout period expired.)]
                DNS server: 202.12.27.33 (m.root-servers.net.)
                   1 test failure on this DNS server
                   PTR record query for the 1.0.0.127.in-addr.arpa. failed on the DNS server 202.12.27.33               
    [Error details: 1460 (Type: Win32 - Description: This operation returned because the timeout period expired.)]
                DNS server: *.*.100.26 (domainVMDC2)
                   All tests passed on this DNS server
                   Name resolution is functional._ldap._tcp SRV record for the forest root domain is registered
             Summary of DNS test results:
                                                Auth Basc Forw Del  Dyn  RReg Ext
                Domain: domain.school.edu
                   domainVMDC2                 PASS FAIL FAIL FAIL WARN FAIL n/a
             ......................... domain.school.edu failed test DNS
          Test omitted by user request: LocatorCheck
          Test omitted by user request: Intersite

  • Issues with trade in for promotion of iPhone 6

    I have had nothing but issues while trying to purchase the iPhone 6.  I have been a Verizon customer for over 4 years.  First is was my data plan had to change, I’m like ok… but the info. i was given by 3 different people was incorrect.  I was downgraded from an unlimited dat plan to a 2GB for the same price. I was told by since I was downgrading from unlimited I would be able to purchase a 2GB plan but receive 6GB …. well that was “mis-informed” as I was told when I put in my pre-order for my iPhone 6 and then had to wait 2 hours to speak with someone about the data plan because my online order would not go through until the dat plan was fixed.
    I pre-order my phone and fallout the trade in form for my iPhone 4 (which was still working).  My trade in was canceled after i received the new iPhone!  Apparently the system couldn’t catch up fast enough and then when you call the Trade in # you can not get through.  I fill out a 2nd application and this was sticks.  I mail the iPhone 4 in…. and 3 weeks later is it received and processed - but apparently in the shipping process the phone was damaged and now I am being “penalized”.  I was supposed to receive $40 for the iPhone 4 and $160 for the new phone as a promotion. 
    I am being told that my screen is cracked and the phone doesn’t turn on.  After calling numerous times again and finally getting through my case is being escalated to support - I reply to the support email about the situation…. the next day i get an e-giftcard for $36 - unacceptable.   I write again …. now a week later still no response.  I call back the trade in #.  I explain everything all over again… “Sorry Ma’am we have a picture of the device and there is a small crack at the bottom corner of the screen”.  So because the phone was damaged in shipping (in their packaging… a plain paper envelope no bubble wrapping, I am getting duped.  I am told to call customer service for help.  I call, a very nice woman answers on the phone 15 minutes she is trying to contact her supervisor, with no luck…. and she is not sure why they told me to call customer service, because it is a different dept and they can’t help anyway.
    So now I sent another email in.  This is ridiculous!  I would have never sent in my phone for a “rebate” or order the new phone if it had not been for that promotional offer.  My phone worked just fine, no cracks, no dropped calls, no Bluetooth issues, etc. like i have with this new iPhone.
    This lack of customer service is unacceptable.  I would have never signed up for a new 2yr contract with them if I knew all the issues I would have.  4 years of loyalty and this is how they treat their customers.

    The phone was an iPhone 4, and we were informed that the Find My iPhone feature was on. However, my wife turned it off, and I double-checked this before the phone was sent in. When the feature was turned off, the instructions provided by Verizon were followed exactly, however we were informed that the feature also needed to be turned off on iCloud (even though there were no directions indicating this in any of the Verizon documentation or on the website).
    At this point it isn't as much about getting the $111 as it is about letting someone know how rudely my wife was treated by Adam (he was at station 34 on Monday, February 10 - she noted this, because he refused to give out his last name). She was told several times by Adam that he does not report to anyone, that he had no supervisor, and there was no one higher up we could speak with. He was rude, condescending, and obviously blatantly lied. Additionally he intentionally kept my wife on hold for 30 minutes hoping she would give up and hang up. The reason we know that he did so intentionally, is because he also indicated that it was "actually pretty slow" in the call center. He also indicated that she had no additional recourse and should just "hang up" and "give up."
    It's really just that we don't feel like we can trust the trade-in program, and won't be trading in any additional phones through that program. Thank you for responding, at least we can be sure that there is some customer service still happening at Verizon. We have just had our faith in Verizon's customer service pretty rudely shaken.

  • Free apple 5c upgrade promotion

    Is anyone else having a problem getting their Apple I-phone 5c free upgrade my order was placed on March 16th and still have not received the phone, have made several phone calls to customer service , where I sit around on hold for them to try and figure out why my order is stuck in pending, I keep getting told all these excuses about corporate decisions and its being sent to a different department to be fixed you will receive it on this date and that date, I just feel like I am being jerked around. Now they tell me its on back order, even though I know a couple of people who have ordered their phones after me and received them. Also have read on different boards that people have received their phones. I have been very patient. Not only have I been a customer of Verizon for many years I have also been an employee for Verizon for over 25 years. It is really sad what this company I've known for many years has turned into, they are caring less and less about the customer.

    4/11 has come and gone I still haven't received the phone or an email tracking # or a back order notification. I called again now they claim 4/25 it will be shipped, this will be the 3rd back order date and the tenth time I have been promised this phone will be shipped. Obviously there is a problem with this order. Because originally it was in stock and was to be delivered in 2 days. When i called to let them know I haven't received the phone, they again told me it was in stock and it would be delivered overnight fedex free of charge. Never received, I have made numerous calls and everyone keeps telling me they don't know why my order is stuck in pending. Then they send my order to a different dept. to be processed, I ordered this phone on 3/16. I was told corporate approved this promotion and was put back on my acct. and I would receive the phone. It has been over a month. Other people have received their phones they ordered their phones after mine. At least send me a confirmation that my phone is on back order and it will be shipped on a certain date. It seems like the proper thing to do, instead of keeping me in the dark.

  • Error while assigning a character value to a numeric variable.

    I fire a sql statement and check the number of rows returned by the sql.
    I check this result with the application logs.
    The application logs keeps the sqls fired by the application and the no of rows returned, in the example below the sql returned 8454 rows.
    My script compares the two results.
    ***********Application Log***********
    4/14/2008 11:15:01 AM: 0059 SQL SELECT "CLUSTER_CD",
    4/14/2008 11:15:01 AM: 0060 "PRODUCT_DESC",
    4/14/2008 11:15:01 AM: 0061 "TEAM_CD"
    4/14/2008 11:15:01 AM: 0062 FROM "OPS$TMS"."MAP_CLUSTER_TEAM_PROD"
    4/14/2008 11:15:01 AM:      3 fields found: CLUSTER_CD, PRODUCT_DESC, TEAM_CD, 8,454 lines fetched
    ***********Application Log***********
    My script:
    #!/bin/ksh
    typeset -i resA
    typeset -i resB
    opstms_conn_string="abc/[email protected]"
    set `sqlplus -s $opstms_conn_string << EOF
    set pages 0
    WHENEVER SQLERROR CONTINUE
    SELECT count(*)
    FROM MAP_CLUSTER_TEAM_PROD;
    exit
    EOF`
    resA=$1 ##returns 8454
    resB=`grep '3 fields found: CLUSTER_CD, PRODUCT_DESC, TEAM_CD,' BCVP_Main_Loader.qvw.log | awk '{print $10}'`
    ##resB returns 8,454
    ## here i get syntax error
    if [ $resA -eq $resB ]; then
    echo "QA passed for sql1"
    else
    echo "QA failed for sql1"
    fi
    The problem is as resB is integer variable it does not accept character value: 8,454 so returns a syntax error:
    How do I change the value assigned to resB into a numeric variable?
    error:
    + grep 3 fields found: CLUSTER_CD, PRODUCT_DESC, TEAM_CD, BCVP_Main_Loader.qvw.log
    run.ksh[52]: 8,454: syntax error

    Change:
    resB=`grep '3 fields found: CLUSTER_CD, PRODUCT_DESC, TEAM_CD,' BCVP_Main_Loader.qvw.log | awk '{print $10}'`
    to this:
    resB=`grep '3 fields found: CLUSTER_CD, PRODUCT_DESC, TEAM_CD,' BCVP_Main_Loader.qvw.log | awk '{print $10}' | tr -d ,`
    to drop the comma. Or you could do it in awk(1):
    resB=`grep '3 fields found: CLUSTER_CD, PRODUCT_DESC, TEAM_CD,' BCVP_Main_Loader.qvw.log | awk '{ gsub( /,/, "", $10 ); print $10}'`
    Or you could to it all in awk(1):
    resB=`awk '
    /3 fields found: CLUSTER_CD, PRODUCT_DESC, TEAM_CD/ {
    gsub( /,/, "", $10 )
    print $10
    ' BCVP_Main_Loader.qvw.log`
    (This example was not tested, it's just for a model.)
    Someone more of an SQL guru than I can probably tell you how to change your numeric locale to avoid presenting those commas in the first place and avoid the problem.
    HTH

  • Problem in creation of promotion

    Dear Friends,
    We would like to create promotion and the scenario is.
    We have 4 products.
    if customer purchase 10 carton in any combination of these 4 products.
    customer will be eligible for one free carton of any of these 4 product.
    how can we create promotion for this scanrio.
    any help highly appricated.
    regard
    Malik

    Hi malik
    If you have 4 products and if customer purchases 10 cartons in the combination of these 4 products if the customer will be eligible for 1 free carton of these 4 products then  , using Free goods you can configure it.
    While maintaining the Free goods condition record VBN1 give the  product 5 and for this product 5 you assign all the 4 products in exclusive method then it is possible.
    Regards
    Srinath

  • Brand New MacB Air and i haven't been able to get passed the format which has had to be done twice because, I have a French Numeric Keyboard and Language in English.  The minute I type in my password, the keyboard gives me letters that i did NOT type.

    I live in Switzerland and can only buy a Mac Air with a French or German keyboard, no chance to buy an English keyboard Mac here,.  When setting up  I chose the French numerique keyboard, although there are two choices French or French numerique.  I put in my language as English.  When all was set up I came to the start page and had to put in my password, by the grace of g....I just happened to see the first letter I typed before it turned into a dot.  My password which was supposed to start with the number 2 showed a french e with accent before it quikly became a dot.
      Because of the dot system, this meant that I had no clue what the keyboard was typing as my password ...........and true enough my password was not accepted despite my trying all combinations.  I have had to reformat twice now thanks to Apple Chat and both times my password was not accepted.  I am in the process of formatting it again, this time on my own.  If the Start page does not accept my password again this can only mean that the Mac left the factory with faults.  I could not be more disappointed with the money spent and the time and trouble that Apple Chat and I have spent in trying to correct a brand new out of the box Mac.  I have a cheap Toshiba laptop also with a french keyboard and english language which gave me no trouble at all.  I am not impressed with the so called King of computers!  First of all the dot system is daft.  People want to be able to see and confirm their passwords before they are set for good.  Second,  this problem is going to give me a lot of grief.  Switzerland business is not renowned for its after sales service or the time it takes to do repairs.  When I had an issue with my Vaio laptop which was still under warranty, they kindly picked it up from my house, repaired and promptly returned it.  How's that for good proper service.

    i didn't read a lot of your 2nd paragraph, but it seems like the password is the issue, right?
    do a true clean install
    reboot your machine and hold down command+option+r, you should see a spinning globe - if you don't see the globe or anything that reads internet recovery, shut down and try again
    at menu, chose disk utility and once there, find your HD on the left side, select the physical name and erase it as mac journaled
    exit disk utlity
    at menu, choose install OSX
    this time, when it asks for a password just hit continue, it will let you complete without a password
    you should be able to get into your laptop, now figure out what password you'll be able to use with your kb issue

  • Can i use my husbands upgrade for the iphone 6 promotion

    My line is technically not eligible for upgrade, but my husbands line is (we are on a family plan with my mom). Last time I upgraded, they let me use my husbands upgrade since his was available. Can I do this for the iphone 6 promotion or will they not allow it?

    Can I transfer upgrade eligibility from one line to another?
    If you have multiple devices on your account and one is eligible for an upgrade, you can transfer upgrade eligibility to another line on your account whenupgrading your device in My Verizon. When you transfer eligibility from one line to another, the original line is no longer eligible for the upgrade discount.
    To transfer upgrade eligibility from one line to another line on your account:Go to the Upgrade Device page in My Verizon.
    Click Transfer Upgrade.
    Note: If the Transfer Upgrade link isn’t appearing, you may not be eligible to transfer an upgrade at this time
    Select the mobile number you want to upgrade. This will transfer upgrade eligibility to that line.
    Select the device you want to upgrade to and click Next.
    Follow the onscreen prompts to complete the remaining steps to upgrade your device.
    You’ve successfully transferred your upgrade eligibility to another line.

Maybe you are looking for