UDPDatagramConnection unexpected behavior when receiving packets from datagrams

I have problems with the UDPDatagramConnection class and hope that the community could direct me to a solution. I almost got run and it works for awhile, but then everything hangs, and I'm not sure that understand why (even if I have a theory that I would communicate and see if that makes sense). Here are some details on the implementation.

-L' goal:

Create a Midlet BlackBerry client that communicates with my .NET Server through UDP sockets. I already have a client functional .NET that communicates with the server, so server disorders are not probable.

SerializableAttribute public class UDPRepeaterCommunicationLayerClass extends CBaseMessageWrappingClass implements CommunicationInterface
{
...

private UDPDatagramConnection m_receiveSocket = null;
private UDPDatagramConnection m_sendSocket = null;
Private Thread m_UDPreceiveThread = null;
private String m_connectAddress;

...

UDPRepeaterCommunicationLayerClass (String dAddress, UnsolicitatedDisconnectNoticeable dDelegate, JitteringThresholdReachedDelegatable

dJitterDelegate, Boolean isServer) throws IOException
{
Super (7);
m_messagesToProcess = new Vector();
m_pendingACK = new Hashtable();
m_connectAddress = dAddress;
m_isServer = isServer;
m_unsolicitedDisconnectToCall = dDelegate;
m_jitteringFallbackToCall = dJitterDelegate;
        ConstructSocket (m_connectAddress);
}

The connector is correctly created here...

I have create one to receive (that I have problems with) and one for sending so that I've not done with
problems of shared resources (such as using the same buffer and having to synchronize methods to send and receive)
While the receiver one block - which would have resulted in a deadlock...

private void ConstructSocket (String dAddress)
{
Try
{
If (PhoneInputMidlet.m_debug) System.out.println ("checking if the coverage is sufficient.");
If (!.) CoverageInfo.isOutOfCoverage ())
{
If (PhoneInputMidlet.m_debug) System.out.println ("cover enough.");
If (dAddress is nothing)
{
dAddress = UDPRepeaterCommunicationLayerClass.m_protocol + ":/ / localhost:7180;» "7181 /";
Simulator: 19780/rim.net.gprs
For T-Mobile: 19780/internet3.voicestream.com
For ATT: 19780/proxy
dAddress = UDPRepeaterCommunicationLayerClass.m_protocol + "://" + UDPRepeaterCommunicationLayerClass.m_ipAddress + ":" 7180;
}
If (PhoneInputMidlet.m_debug) System.out.println ("Open Connector" + dAddress);
m_connectorReceiveAddress = dAddress + ";". " 3000 ";
m_connectorReceiveAddress train with String "" datagram://192.168.1.102:7180; ". 3000 ".
m_connectorSendAddress = dAddress;
                m_receiveSocket = (UDPDatagramConnection) Connector.open (m_connectorReceiveAddress, Connector.READ_WRITE, true);
m_sendSocket = (UDPDatagramConnection) Connector.open (m_connectorSendAddress, Connector.READ_WRITE, true);
m_address = m_receiveSocket.getLocalAddress () + ":" + String.valueOf (m_receiveSocket.getLocalPort ());
If (PhoneInputMidlet.m_debug) System.out.println ("obtained connector address:" + m_address);
SetMaxPacketSize (kDefaultMaxPacketSize);
}
on the other
{
If (PhoneInputMidlet.m_debug) System.out.println ("coverage is not sufficient.");
}
}
catch (IOException e) {}
}

Later in the code, I call StartReceiveThread to start my receiver thread... Which works very well...

' Public Sub StartReceiveThread (CommunicationInterface dCommIntf, MessageProcessable dDelegate)
{
CUDPReceiverThread dThreadObj = new CUDPReceiverThread (this);
m_UDPreceiveThread = new Thread (dThreadObj);
m_UDPreceiveThread.setpriority (thread. MAX_PRIORITY);   I tried to not change the priority here too...
m_UDPreceiveThread.start ();
Super. StartReceiveThread (dCommIntf, dDelegate);
SetMaxPacketSize (GetMaxPacketSize ());
}

It is the functional real entry point of my thread of reception. Note that I'm giving as I should
While other threads have CPU...

Private Sub UDPReceiveThreadEntryPoint() throws IOException
{
SetMaxPacketSize (GetMaxPacketSize ());
While (m_UDPreceiveThread! = null)
{
            DoOneReceiveCycle();
Thread.Yield ();
}
}

This is where I expect the problem to be. I walk in here without problems, I get even packets that are received successfully
and through my quality control (checking, checking the size compared to a value of size passed in a header). But then,.
everything stops even if my server is still bombing the client with packets. This isn't what I expect.
I have expect only not to block (even if it's a call blocking), the method of reception provided there is always incoming UDP packets.

The server will never send a package that is greater than GetMaxPacketSize() which respects the limits of the carrier (coming to)
1428 bytes). See code.

Private boolean DoOneReceiveCycle() throws IOException
{
If (PhoneInputMidlet.m_debug) System.out.println ("entering DoOneReceiveCycle");
gotOne Boolean = false;
Try
{
If (m_receiveSocket! = null)
{
Datagram dDatagram = m_receiveSocket.newDatagram (GetMaxPacketSize ());
                dDatagram.reset ();
                Byte [] dBuffer = new byte [GetMaxPacketSize ()];
                dDatagram.setData (dBuffer, 0, GetMaxPacketSize());
If (PhoneInputMidlet.m_debug) System.out.println ("Calling receive...");
                m_receiveSocket.receive (dDatagram);
If (PhoneInputMidlet.m_debug) System.out.println ("made reception (obtained with" + dDatagram.getData () .length + "bytes) ');
System.arraycopy (dDatagram.GetData (), dBuffer, 0, 0, dDatagram.getData () .length);
int nBytesRec = dDatagram.getData () .length;
m_bytesUsed += nBytesRec;
CTransportHeader dHeader = new CTransportHeader (dBuffer);
CommSucceeded();
If (dHeader! = null)
{
int dLength = dHeader.m_packetSize;
gotOne = true;
Try
{
If (PhoneInputMidlet.m_debug) System.out.println ("Performing quality control on packet");
PerformQualityControl (nBytesRec, dHeader, dBuffer);
If (PhoneInputMidlet.m_debug) System.out.println ("processing package (quality control succeeded)" ");
ProcessReceivedDatagram (dDatagram, dBuffer, dLength);
CommSucceeded();
}
catch (CQualityAssuranceException e)
{
System.out.println (try ());
System.out.println (e.getMessage ());
}
catch (e NegativeArraySizeException)
{
System.out.println (try ());
System.out.println (e.getMessage ());
gotOne = false;
}
}
}
on the other
{
If (PhoneInputMidlet.m_debug) System.out.println ("cannot call receive on a socket that is closed.");
}
}
catch (InterruptedIOException (e)
{
System.out.println (try ());
System.out.println (e.getMessage ());
}
catch (System.Exception e)
{
System.out.println (try ());
System.out.println (e.getMessage ());
If (PermanentCommProblems())
{
If (m_receiveSocket! = null)
{
We had trouble with this datagram and taking... We'll reset everything since then...
m_receiveSocket.close ();
m_receiveSocket = (UDPDatagramConnection) Connector.open (m_connectorReceiveAddress, Connector.READ_WRITE, true);
}
}
}
If (PhoneInputMidlet.m_debug) System.out.println ("output DoOneReceiveCycle");
Return gotOne;
}

-The prayer:

Anyone an idea what I am doing wrong? The only assumption that I have is that the threading in java, is cooperative and non-preemptive. And, therefore, it may not receive a performance inside the call blocking. The result in an impasse which sucks all CPU away from my main thread which is necessary to analyze the messages that are received and send support delivery receipts. If this is the case, I am in a bad place. If this isn't the case, please let me know, and I hope that you can report to a part of the solution to get this puppy running.

Thank you!

For the record, here are my findings regarding this problem.

(1) receive, by definition a blocking call, does NOT have in-house Thread.yield (). Which, alone, is enough to starve other threads in the CPU and provided the watchdog available on BlackBerry, it is a serious gap in architecture not to do.

(2) performance, efficiency and performance more... The model available for the thread BlackBerry java is cooperative (non-preemptive). Accordingly, in my code, I only had one call yield() and it wasn't enough. When I started putting yield() calls everywhere, the problem disappeared. As a by-product of this conclusion, I extrapolate that the java VM does not give internally in most (maybe all) of his calls (even the call blocking the reception). This is a disaster, I think, in terms of acrobatics that we must cross in order to bypass this aspect.

(3) in order to bypass the hungry from my other son at the time received nothing, I had to periodically send an empty datagram (since we can't even define a timeout). The ATT in the world will be happy about this since I use the bandwidth in order to work around a design flaw (providing them with $$$).

If someone is able to confirm my findings, I'd appreciate it. Thank you.

Tags: BlackBerry Developers

Similar Questions

  • A transport-level error has occurred when receiving results from the server. (provider: TCP provider, error: 0 - the semaphore timeout period has expired.)

    Hello

    I get the below error message while my windows application inserts data in SQL Server.

    A transport-level error has occurred when receiving results from the server. (provider: TCP provider, error: 0 - the semaphore timeout period has expired.)

    I use LINQ-to-SQL.  SQL Server is installed on Windows server 2003.

    We are using SQL server 2008 r2.

    When we insert large data base records, approximately 1 million we get this question.

    Please suggest.

    Hello

    When you use Windows server, we ask you to send the query in the link depending on whether they are the experts.

    http://social.technet.Microsoft.com/forums/WindowsServer/en-us/home?category=WindowsServer

    Thank you.

  • Impossible to receive packets from UDP broadcast on a PPP connection

    I'm fighting for two days now with no success. I have two modems (don't ask, some special stuff), which uses the dial-up access (PPP). I tried on windows XP and it works like a charm. I'll send unicast and broadcast UPD packets. If I repeat that on Windows 7, I can send only the data of unicast, broadcast packets seems to be lost somewhere, I tried to use the Microsoft network monitor, and I can see that broadcast packets are received on my PPP connection. But after that, they are gone. Somewhere in the kernel. I don't really understand why. I've disabled the firewall, antivirus, motor base, tried to open a session of abandoned filtering packed in the Windows Filtering Platform, clean the WIN7 machine I tried all without success.

    Here is an example of a packet received on the interface, but there most recent scope of my application:

    No.     Time               Source                Destination           Protocol Length Info
          1 13:20:56.093380000 192.168.1.50          192.168.1.255         UDP      49     Source port: x11  Destination port: x11
    
    Frame 1: 49 bytes on wire (392 bits), 49 bytes captured (392 bits)
        Encapsulation type: Ethernet (1)
        Arrival Time: May  7, 2014 13:20:56.093380000 Central Europe Daylight Time
        [Time shift for this packet: 0.000000000 seconds]
        Epoch Time: 1399461656.093380000 seconds
        [Time delta from previous captured frame: 0.000000000 seconds]
        [Time delta from previous displayed frame: 0.000000000 seconds]
        [Time since reference or first frame: 0.000000000 seconds]
        Frame Number: 1
        Frame Length: 49 bytes (392 bits)
        Capture Length: 49 bytes (392 bits)
        [Frame is marked: False]
        [Frame is ignored: False]
        [Protocols in frame: eth:ip:udp:data:vssmonitoring]
        [Coloring Rule Name: UDP]
        [Coloring Rule String: udp]
    Ethernet II, Src: ae:4e:20:00:01:00 (ae:4e:20:00:01:00), Dst: Xerox_00:00:00 (01:00:01:00:00:00)
        Destination: Xerox_00:00:00 (01:00:01:00:00:00)
            Address: Xerox_00:00:00 (01:00:01:00:00:00)
            .... ..0. .... .... .... .... = LG bit: Globally unique address (factory default)
            .... ...1 .... .... .... .... = IG bit: Group address (multicast/broadcast)
        Source: ae:4e:20:00:01:00 (ae:4e:20:00:01:00)
            Address: ae:4e:20:00:01:00 (ae:4e:20:00:01:00)
            .... ..1. .... .... .... .... = LG bit: Locally administered address (this is NOT the factory default)
            .... ...0 .... .... .... .... = IG bit: Individual address (unicast)
        Type: IP (0x0800)
    Internet Protocol Version 4, Src: 192.168.1.50 (192.168.1.50), Dst: 192.168.1.255 (192.168.1.255)
        Version: 4
        Header length: 20 bytes
        Differentiated Services Field: 0x00 (DSCP 0x00: Default; ECN: 0x00: Not-ECT (Not ECN-Capable Transport))
            0000 00.. = Differentiated Services Codepoint: Default (0x00)
            .... ..00 = Explicit Congestion Notification: Not-ECT (Not ECN-Capable Transport) (0x00)
        Total Length: 34
        Identification: 0x0032 (50)
        Flags: 0x00
            0... .... = Reserved bit: Not set
            .0.. .... = Don't fragment: Not set
            ..0. .... = More fragments: Not set
        Fragment offset: 0
        Time to live: 126
        Protocol: UDP (17)
        Header checksum: 0xb817 [correct]
            [Good: True]
            [Bad: False]
        Source: 192.168.1.50 (192.168.1.50)
        Destination: 192.168.1.255 (192.168.1.255)
        [Source GeoIP: Unknown]
        [Destination GeoIP: Unknown]
    User Datagram Protocol, Src Port: x11 (6001), Dst Port: x11 (6001)
        Source port: x11 (6001)
        Destination port: x11 (6001)
        Length: 14
        Checksum: 0xafd1 [validation disabled]
            [Good Checksum: False]
            [Bad Checksum: False]
    Data (6 bytes)
    
    0000  34 34 34 34 34 34                                 444444
        Data: 343434343434
        [Length: 6]
    VSS-Monitoring ethernet trailer, Source Port: 127
        Src Port: 127
    

    I'm out of my ideas, if anyone could help with any idea, please do. I don't know if this possibility is removed on win7 or not.

    Hello

    I suggest you to report your query in the TechNet forums to improve assistance in this regard.

    http://social.technet.Microsoft.com/forums/Windows/en-us/home?category=w7itpro

    Hope this information helps.

  • unexpected behavior when the button is clicked - & quot; playhead & quot; jumps to wrong frame

    I'm working on a flash site and I'm running on an actionscript issue that has me a little deadlock.

    The timeline main .fla is long of 42 images. Images 1-23 are the preloader, each frame between the 24-31 images contains one of the sections of the site, and frames 36-42 contain paragraphs of one of the main sections. 32-35 are empty frames just to help me keep things visually separated while I work on this project.

    I have a subnavigation for this paragraph of installation in frames 36-42. For each of the buttons in this sub navigation, I have attached a very simple actionscript that links to other pages of the paragraph. I used actionscript as I've mentioned below, where 'web' is in this case, the name of the image I'm aiming:
    on (release) {}
    gotoAndPlay ("web");
    }

    When I click on a link to take me to the last image, that is be named "specevents" (special events), it takes me to which frame correctly. If I click on the "specevents" button once again within this framework, I picked the preloader screen. This type of jump also happens in some of the other secondary navigation buttons, that is, by clicking on a link for a framework which I am already in will take me to a quite unexpected setting (always the same framework for each button, however).

    In fact, looking a bit more closely, I find whenever I click on one of the sub - nav links, I have to move an image. As part of the "specevents" is the last image, it brings back me to the first frame of the movie.

    It's all a bit strange for me, because apparently, I used the same method on the main navigation buttons, and they do not have something unexpected when you click it.

    FYI - the page in question here, can be found at: http://gravitygroup.com/testflashy/ the 'our work' section sub navigation, that's what I'm looking at.

    Any ideas? Thank you!

    AHA! figured it out. The problem is that I got my sub - nav buttons grouped together so I could move around as a unit. I have them removed, and everything works now!

    Thank you for taking the time to help!

  • Unexpected behavior when you listen to "currentStateChange".

    In one of my projects, I tried to call a function when a component of the Application view state has changed. In the mxml Application tag, I added:

    currentStateChange = "{someFunctionX (event)}" just like I would any other time, I would like to add a handler in mxml. " I ran the application and nothing happened. I then tried to place a breakpoint inside the function of Manager (someFunctionX) and FlashBuilder indicated that the breakpoint was not valid because the code was inaccessible.

    After a lot of trial and error, I finally managed to make it work by removing the braces of around the outside of the line manager as he looked like this:

    currentStateChange = "someFunctionX (event)" "

    Anyone know why the tag application behaves like that? I've never had this problem with any other component. Is it a bug or if the s:Application is supposed to work this way?

    The braces are not absolutely necessary, and I'm unable to reproduce this problem here. Can you your zip code and also the list of the Flash Builder version you are using?

    Thank you.

  • Unable to receive calls from Apple Watch, using WIFI AT & T calls, when the iPhone is turned on, turned off or in Airplane Mode.

    I work on this issue and wanted to involve the community.

    I have tests the functionality Apple Watch and have been unable to solve my problems with WIFI call. I use the AT & T and I am connect to the strip of the 5 GHz on my router Xfinity.

    I am able to make/receive calls from my iPad and Mac laptop when iPhone is off / Mode plane; However, this feature does not work on the watch. I can make and receive calls from the watch when the phone is turned on.

    Another problem is that I am not able to send and receive messages (blue or green bubble) of the watch - once again when the phone is turned off or in flight Mode

    I'll copy in 2 portions of the Web site: http://help.apple.com/watch/

    http://help.Apple.com/watch/#/apd0443fb403

    If your Apple Watch is in range of a Wi - Fi network that the iPhone is connected to before, you can always do the following (even if the iPhone is off):

    • Send and receive digital messages Touch
    • Send and receive messages using Messages
    • Make and receive phone calls (if you have active calls, Wi - Fi, and you are within range of a Wi - Fi connected to your iPhone before)
    • Check current weather conditions
    • Track your inventory

    http://help.Apple.com/watch/#/apd2fe746e86

    Make calls via Wi - Fi

    If your cellular operator offers Wi - Fi calls, you can use Apple Watch to make and receive calls over Wi - Fi instead of cellular network - even when your pair iPhone isn't with you or is disabled. Apple Watch comes to be in range of a Wi - Fi network that is connected to your iPhone in the past.

    To see if your carrier offers Wi - Fi calls, see the article Apple Support phone with Wi-Fi calls, then enable the calls on your iPhone and Apple Watch Wi - Fi.

    Note: You can make emergency calls via Wi - Fi, but when possible, use rather iPhone over a cellular connection - your location information will be more specific.

    Enable on iPhone Wi - Fi calls. On iPhone, go to settings > phone and turn on Wi - Fi calling and application to other devices.

    Enable calls on Apple Watch Wi - Fi. Open the Apple Watch app on iPhone, tap My Watch, tap phone, then turn on Wi - Fi calls. If you do not see the parameter, make sure that you have activated calls on iPhone Wi - Fi.

    Answer please if you are able to perform any of these functions! And any troubleshooting you can think!

    AspiringAppleGuru wrote:

    I have... to connect to the 5 GHz on my... router bandwidth.

    Hello

    These features are not available because Apple Watch cannot connect to a network of GHz Wi - Fi 5.

    If your watch is not connected to your iPhone via Bluetooth, but lying in a 2.4 GHz Wi - Fi network your iPhone plugged in before, the watch can connect to this network and you can continue to use certain features, including Wi - Fi calls (when it is supported by your operator, you already have in place).

    More information:

    On Bluetooth and Wi - Fi on Apple Watch - Apple Support

    Use Apple Watch without her sister iPhone - Apple Support

  • I encountered the problem with the last iOS 9.3.2 update I can't receive call from people, I can call any body, but when l'm calling people any body can ring me just now, I thing the problem where new soft

    I encountered the problem with the last iOS 9.3.2 update I can't receive call from people, but I can call any body, but when l called people any body can ring me only at this time, I think that the problem of the new update. can u check this and answer my question.

    and my phone

    iPhone 6plus

    You see a Crescent Moon at the top of the screen icon? If Yes, disable does not bother to: settings - do not disturb = Off.

  • Receving packets from external source on PIX

    Hi.I have a rather strange problem. We have a PIX515E in our society and for the last two days we received packets with an invalid domain on our server DNS addresses outside of our network. What is really strange is that from the outside, the traffic can enter only our DMZ (not inside network) through specific ports (generally port 80 tcp) for specific services and the problem that is happening inside.

    Is it possible to monitor these packets when they arrive on a PIX or better yet block them (they got 4 different IP addresses of 4 different ranges)? Maybe it's possible that a PC inside is providing access to these packages?

    Any help is welcome.

    See the document below for more details

    ASA 7.x/6.x PIX and superior: open / blocking the example of Configuration of Ports

    http://www.Cisco.com/en/us/products/ps6120/products_configuration_example09186a0080862017.shtml

  • Oracle text index - unexpected behavior

    We have a SEARCH_TABLE (in Oracle 12.1.0.1.0) with a couple of files (actually about 10,000,000 records):

    ID ADDRESS

    1     | WIMPEL | 57. 9733BK | GRONINGEN |

    2     | JOHAN WILSSTRAAT | 7 ||| 1333PV | ALMERE |

    3     | ABRAHAM KUYPERHOF | 10. 8091XN | WEZEP |


    To support research on the table addresses, we apply an Oracle text index:

    create index ST_CTX1 on SEARCH_TABLE (address)

    indexType is ctxsys.context

    parameters ("DATASTORE CTXSYS. DEFAULT_DATASTORE');


    Our research focuses on whole words (without jokers). When searching through the data, it usually comes back with the correct results.


    SELECT THE ID

    OF SEARCH_TABLE

    WHERE CONTAINS (ADDRESS, 'GRÖNING') > 0

    ;

    Returns nothing, that is correct. Once the search argument 'GRÖNING' is replaced by 'GRONINGEN', ID 1 is correctly selected. According to this behavior, the following query returns no records:

    SELECT THE ID

    OF SEARCH_TABLE

    WHERE CONTAINS (ADDRESS, 'ABR & KUYPERHOF') > 0

    ;


    Surprisingly, however, the following query returns record ID 3:

    SELECT THE ID

    OF SEARCH_TABLE

    WHERE CONTAINS (ADDRESS, ' A & KUYPERHOF ') > 0

    ;

    (Even if data does not contain the complete word 'A'). This unexpected behavior only seems to occur when you use "A" as the initial character.

    The following query (with the search starting with the character 'J' argument) returns no data. Which is the expected behavior.

    SELECT the ID

    OF SEARCH_TABLE

    WHERE CONTAINS (ADDRESS, 'J & WILSSTRAAT') > 0

    ;

    Anyone has an idea why the text index returns with A situations? Any ideas on how to solve this problem are appreciated.

    Mark

    According to the list of empty words by default in 11.2, the letters a, d, i, s, and t are listed, so would be removed from the wanted list of tokens.  Thus, 'A & WILSSTRAAT' becomes '& WILSTRAAT' and search text line with a single word.  'j' is not an empty word, so it is considered to be a token is valid and is not in your tables.  Look in CTXSYS. CTX_STOPWORDS to see what you have.

  • Hard drive remove unexpected behavior of vSphere 4.1

    Hello

    I'm having some trouble with to remove a hard drive from a virtual computer by using the cmdlet Remove-hard drive in PowerCLI. I can list the disks attached to the virtual machine and I'm trying to delete is in the list, but when I run the command remove the disc it returns an error indicating that the VMDK file is not attached to a virtual machine. I am able to remove the disc using the user interface of vCenter.

    Please see below for the relevant order details and error output.

    Thank you.

    Brian

    PS C:\Users\administrator. W2K8 > get-disk hard - vm "w2k8-sql1.

    CapacityKB persistence Filename
    ---------- -----------                                                    --------
    52428800 persistent [nfsstore1] w2k8-sql1/w2k8-sql1 - 000002.vmdk
    8388608 persistent [sql2_db_mt] w2k8-sql1/w2k8 - sql1.vmdk
    3148740 IndependentPersis... 8 sql1/w2k8 - sql1_SD_netapp1_hoida4fUQZfc_0.vmdk
    3148740 IndependentPersis... 8 sql1/w2k8 - sql1_SD_netapp1_hoida4fUQgQ1_1.vmdk
    8388608 persistent [sql2_log_mt] w2k8-sql1/w2k8 - sql1.vmdk
    7325640 IndependentPersis... 8 sql1/w2k8 - sql1_SD_netapp1_hoida4fVHLK5_2.vmdk
    7325640 IndependentPersis... 8 sql1/w2k8 - sql1_SD_netapp1_hoida4fVHRVR_3.vmdk
    9437184 permanent... .kup w2k8-sql2_backup)] w2k8-sql2/w2k8 - sql2.vmdk
    9437184 permanent... .kup w2k8-sql2_backup)] w2k8-sql2/w2k8 - sql2.vmdk


    PS C:\Users\administrator. W2K8 > get-hard drive - data store '(backup w2k8-sql2_backup) sql2_db' - datastorepath '[sql2_db (Ba '.
    "BACKUP w2k8-sql2_backup)] w2k8-sql2/w2k8 - sql2.vmdk | Hard drive remove

    Confirm
    Are you sure you want to perform this action?
    Operation "Remove disc" target "w2k8 - sql2.vmdk.
    [Y] yes [A] Yes to all [N] no [L] no to all [S] Suspend [?] Help (default is "Y"): y
    Remove-hard drive: 2011-10-14 13:32:29 Remove-disk hard FlatHardDisk The ' w2k8 - sql2.vmdk' is not attached to
    a virtual machine. The requested operation is only supported for devices connected to the virtual computer.
    At line: 1 char: 156
    + get-hard drive - data store '(backup w2k8-sql2_backup) sql2_db' - datastorepath ' [sql2_db (backup w2k8-sql2_backup)] w2k8-
    "SQL2/w2k8 - sql2.vmdk | Hard drive remove < < < <
    + CategoryInfo: InvalidArgument: (w2k8 - sql2.vmdk:FlatHardDiskImpl) [Remove-hard drive], VimException
    + FullyQualifiedErrorId: Client20_VirtualDeviceServiceImpl_TryValidateDeviceOwnerIsVm_IsDatastore, VMware.VimAutom
    ation.ViCore.Cmdlets.Commands.RemoveHardDisk

    Hello, bmoncsko-

    Welcome to the communities.  As for your question, it seems that it would be a 'feature' (or bug) in how hard drive Remove works.  I tested what you did and got the same results using PowerCLI 4.1u1 and 5.0.

    However, it works when you select the hard drive to the virtual computer by name through the pipeline (instead of the path of the data store), as:

    ## get the VM's harddisks, displaying their names as wellGet-HardDisk -VM myVM | ft Name,CapacityKB,Filename
    
    ## determine from above the name of the harddisk to be removed, and use that to choose that harddisk, then remove itGet-VM myVM | Get-HardDisk | ?{$_.Name -eq "Hard disk 4"} | Remove-HardDisk -DeletePermanently -Confirm:$false
    

    It would be interesting to know if other people receive the same behavior when trying to remove the hard drive as you did, but this piece of code, you should get going at the moment.

  • Unexpected behavior of class constructor

    Hello world

    I came across an unexpected behavior with definitions of AS3 classes this morning. To tell him quickly, I can't create an instance of a class inside the same methods of the class. Too bad.

    Here is an example:

    package {}

    import flash.display.MovieClip;

    import flash.events.Event;

    SerializableAttribute public class Test extends MovieClip {}

    private var _double:Boolean;

    _T:test private var;

    public void Test(double:Boolean_=_true):void { }

    This ._double = double;

    trace ("new test (" + the ._double + ")" ");

    this.addEventListener (Event.ADDED_TO_STAGE, this ._onAddedToStage);

              }

    private void _onAddedToStage(pEvt:Event) { }

        

    this.removeEventListener (Event.ADDED_TO_STAGE, this ._onAddedToStage);

    trace ("creating a double?");

    If (this ._double) { }

                        trace ("yes");

    this ._t = new Test (false);

    } else {}

                        trace("no");

                   }

              }

         }

    }

    What I'm trying to do seems a bit strange: when an instance is created, it generates a new one in him passing a parameter to stop treated duplication, so I shouldn't have infinite loop like that. Moinde I had a beautiful #2136 error when running (data not valid in the file SWF?):

    New Test (true)

    creating a double?

    Yes

    : Error #2136: blah blah blah

    Can someone explain to me what is happening here? I would like to understand the sub-process that prevents from doing.

    Thanks for the reply,

    Fran_cois

    Hello

    I changed your code in Test.as:

    package
    {
    import flash.display.MovieClip;
    import flash.events.Event;
    SerializableAttribute public class Test extends MovieClip
    {
    private var _double:Boolean;
    private var _t:Test;

    public void Test(double:Boolean_=_true):void
    {
    This ._double = double;
    trace ("new test (" + the ._double + ")" ");
    this.addEventListener (Event.ADDED_TO_STAGE, this ._onAddedToStage);

    }
    private void _onAddedToStage(pEvt:Event)
    {
    this.removeEventListener (Event.ADDED_TO_STAGE, this ._onAddedToStage);

    trace ("create a double?");

    If (this ._double)
    {
    trace ("Yes");
    This ._t = new Test (false);
    addChild (this._t);                      It's the new line!

    }
    on the other
    {
    trace ("no");
    }
    }
    }
    }

    and then used this class not as a document, as a class in the fla file:

    var ttt:Test = new Test();
    addChild (ttt);

    So, it does not work as expected...

  • iOS 10 Mail: moving Messages, inconsistent behavior when you tapoterez folder icon

    iPhone 6, iOS 10

    I see inconsistent behavior when I try to move a message in Mail from in the message.

    In previous versions of iOS, during playback of an e-mail message, I could tap the icon of the folder at the bottom of the messages, and which would lead to the top of the hierarchy of the folders for the email of the message account. From there on, it was just a matter of tapping on the file I want to move the message to, and he settled there the message and look back to the Inbox display (or the folder view I moved this message of).

    In iOS 10, when I hit this folder icon, two things happen: it happens the same thing I described above, or sometimes, rather than see the hierarchy of folders, I see three buttons slide up from the bottom of the screen. The top button allows me to move the message directly to a folder in my account called 'Action' I created (I don't know why he chose this particular file to the default value for this button - maybe because it is first in alphabetical order of all my folders created by the user), the second button says "Another mailbox" and when it takes me to the hierarchy of the mailbox as described above, and the third button is a Cancel button.

    I can't understand what dictates which of those two things happening. I tried again and again on a bunch of different messages. Some do happen, some do the other thing happens, and sometimes I'll have a different behavior in the message even if I try again later.

    I prefer the old way. But I could get used to the new way, if I could at least choose what default folder appears in the first box.

    Anyone else seeing this?

    Someone knows how to change the default folder in the first box of this new process?

    Thank you!

    I seem to have solved the problem on my own. I went to settings > Mail, and in the "Threading" section, I have disabled "Complete Threads."

  • Suddenly I can't receive emails from a particular address on one of the three e-mail accounts that I have on Thunderbird.

    These emails come from a non-response address, and I get quite a number on a daily basis, so I was wondering if Thunderbird has a sort of virus protection that prevents me to receive. They won't in the junk mail folders or spam folders. I checked with HER on the Web site that sends these emails, and they said that everything was going well at their end. It shows emails through. However, I could not receive even their test sent from their account message no answer. BUT when they sent from another account, it came through fine. So the problem seems to be with my receipt of messages from addresses no answer. This began to happen on December 14.

    I thought maybe it's something in my antivirus software, which is something called Symantec Endpoint Protection (provided by my employer), so I tried also the implementation of all the email accounts three on another computer. This serves as my Thunderbird email software but has another antivirus (Avast free) program, but I'm having the same problem.

    Finally, I tried bypassing Thunderbird by accessing my three email accounts from the web. Still not received the mails no reply. Would it be to say that Firefox is also involved?

    Obviously, * something * on both my think computers these emails 'no response' are spam or virus even. (Yet, I get spam every day a lot of other sites, go figure!) The only thing that the two computers have in common is Thunderbird and Firefox. The computer, I tap on the Windows XP Home with service pack 3 rums. The other computer running Windows7 Home.

    My last effort would move to Outlook from M$, and I really don't want to do that! Can anyone of you offer any help? I'm sorry that I'm not a geek and cannot re - program anything, but I will try very hard to understand what you're saying.

    Thank you in advance.

    Susan

    It is between the sender and your Inbox. That's all you can say. Your provider should be able to track your account and see if the message comes from their server.

    Thunderbird is a software email client. It runs on your computer and helps you manage your e-mail. It can not download messages that do not in your Inbox on your server vendors.

  • Why fonts Html sent via TB change when received by OE?

    As of the trials, while trying the installer of TB as I want to, I send me html email, fonts = Tahoma 12 point and he then received on two different computers, in two different email clients - TB on that and Outlook Express 6 on the other.

    From: OE OE and also tuberculosis: no problem - fonts appear exactly as sent.

    The CT of tuberculosis and OE: no problem during his return to the TB, but EXCHANGE of POLICE WHEN RECEIVED BY OE (both Roman - serif font, when one serif was composed!).

    The police in question - Tahoma - is considered to be web-safe; not only that, it's the default font on my OE, then I don't understand why OE should be badly made a TB email which uses this font.

    I have read in the previous posts of the forum (from 2006-7), that TB is not 'say' what the police she would prefer the recipient mail client. Is this true? Can we change it? (If OE can do it, why not TB)?

    I read some posts where the idea of trying to format the e-mail is pooh-poohed; I'm sure that there are a myriad of technical barriers involved (sure seems like it, at least with TB), but it's 2015 - people use email for business, not just recreational, and presentation is very important in these communications.

    BTW: I checked my OE settings, to see if there is anything which would determine the fonts displayed on incoming emails, but I can't find anything to that effect. The default font is Tahoma.

    I would really like to know what is the cause! I thought I was about to solve this email migration/trek...

    Thank you, in advance, for any help!

    As far as I know, and that's how it works on my computer.

    If you set the default font in Options, and when the composition, it will appear to use this font. But if you check the source of a sent message, you will see that no police is mentioned which means the recipients personal choice of how they want to see the message will prevail.

    However, if you compose the message, and then select the text and choose a font in the menu drop-down available, then a defined font is specified. If the recipient is allowing messages to use other fonts and the font is available on their computer, it will then display.

    Test:
    I put tools > Options > display > font default formatting "new mail".
    I put the 'Advanced' to 'allow messages to use other fonts ".

    Write a new message.
    In the first line of text I used everything that is automatically selected when I started typing, which was new Courier.

    I wrote a second line and then highlighted text and selected 'Times new roman '.
    Sent the email to myself.

    When he arrived, the first line has been mail because it is the default display font chosen, but because I allow the sender defined in other fonts, I see the second line with Times new roman.

    If I then go back to tools > Options > display > formatting and click "Advanced", then uncheck the "allow messages to use other fonts '.
    Low and here it is - all of the text in the received message has now changed my default display setting - Courier New.

    So, it depends on where you specifically set a font using the formatting bar and also depends on whether the recipient is to use other fonts. Of course, it will depend on if the recipient has made the available font, that otherwise he will use it that is available.

  • When I return from the page of google search for a link then button does not return return

    When I return from the page of google search for a link, then button does not return back. Instead, the same page refills. I need to go back click back button twice or even more. How to fix? I cheked it it another browser and there is no such behavior. It seems completele Firefox problem.

    the problem was resolved after remooving extenshion «user agent overrider»

Maybe you are looking for

  • (Two copies) Soak Test

    What should I do to get test impregnation on my XT1033, I registered on the Motorola feedback network, but still no Motorola upgrade notification and I would ask if anyone has received try impregnation or official update say please?

  • Compaq: Defragment system

    Defragmentation of disks are performed every week as planned, but the system (now fragmented 12%) woundn can't defragment. When I pointed out the 'system' and click on defragment, progress stops approximately 1.7% or more. The message says that it mu

  • WD Mycloud and KDL-55HX820

    I bought a new account storage device that has the DLNA server. I copied a bunch of photos and videos. When I go to media on my ir TV can't even see my account. How can you my TV to see the account so that I can play the videos/photos on my TV Thank

  • GlobalEvent and NotificationsManager

    I use both methods (such as store runtime) for inter-app communication and all work just as well in their context. That said, the line between using deferred (in particular) events and GlobalEvent looks a little blurry for me... * make a real differe

  • How to acess, Skype profile to set parameters when crash anotification come tell me that the error cannot run

    original title: Skype How to acess, Skype profile to set parameters when crash anotification come tell me that the error cannot run