Receiveing data over RTP doesn't work

First of all , excuse my english.....it really sucks
Second of all , this is my problem:
I modified the JMStudio source to suit my needs.....leaving just what i needed.The application works......it sends data just fine but it does't receives it.I tried to rewrite the function thousand of times in different modes but it doesn't work.
This is my source code :
          private void openRtp () {
OpenRtpDialog dlgOpenRtp;
String strAction;
String strAddress;
String strPort;
String strTtl;
RTPManager           receptie=RTPManager.newInstance();
InetAddress      adresaip=null;
int                    port,ttl;
ReceiveStreamListener receptiestr = null;
ReceiveStreamEvent     x = null;
dlgOpenRtp = new OpenRtpDialog ( this, cfgJMApps );
     dlgOpenRtp.isVisible ();
strAction = dlgOpenRtp.getAction ();
if ( !strAction.equals(JMDialog.ACTION_OPEN) )
return;
strAddress = dlgOpenRtp.getAddress();
strPort = dlgOpenRtp.getPort ();
strTtl = dlgOpenRtp.getTtl ();
               try {
                    adresaip=InetAddress.getByName(strAddress);
               } catch (UnknownHostException e) {
                    // TODO Auto-generated catch block
                    e.printStackTrace();
port=Integer.valueOf(strPort).intValue();
ttl=Integer.valueOf(strTtl).intValue();
SessionAddress adresa=new SessionAddress(adresaip,port,ttl);
     try {
                    receptie.initialize(adresa);
               } catch (InvalidSessionAddressException e) {
                    // TODO Auto-generated catch block
                    e.printStackTrace();
               } catch (IOException e) {
                    // TODO Auto-generated catch block
                    e.printStackTrace();
if ( receptie == null ) {
MessageDialog.createErrorDialog ( this, JMFI18N.getResource("jmstudio.error.sessionmngr.create") );
return;
receptie.addReceiveStreamListener(receptiestr);
receptiestr.update(x);
update(x);
// the rest will be done when we get NewReceiveStreamEvent
updateMenu ();
pls tell me what i do wrong cause it's driving me insane......the function from the JMStudio works in the original but doesn't work in my version so it makes me think that the problem is from somewhere else.
For further assistance i'll be watching this thread closely.
Thank you for your help.
Yours gratefully,
Sorin

I'm just going to point you in the direction of some sample code...
[http://java.sun.com/javase/technologies/desktop/media/jmf/2.1.1/solutions/AVReceive.html]
Go look at their "initialize" function and figure out what the sample code is doing that you aren't...
And remember, it could simply be a matter of doing something wrong with IP address... You can't use 127.0.0.1 for RTP transmissions, and you can't broadcast to the same computer if your transmit code is binding the destination port as the transmission port. IE, if you tell it to broadcast to the remote computer on port 2600, and it uses the local port 2600 to broadcast on...then you won't be able to read from port 2600 on the local computer.

Similar Messages

  • Bought a new Mac, migrated data, now CS4 doesn't work. Why?

    I bought a new Mac, had the Apple guys migrate my data and apps to it. Now CS4 doesn't work.
    I researched a bit and found that I SHOULD have deactivated and uninstalled CS4 from my old Mac. I've now done that.
    But do I have to uninstall CS4 files from my new Mac now--and reinstall? Will that work?

    Hi,
    I have a question related to one you answered above: "bought a new Mac, migrated data, now CS4 doesn't work."
    My situation is a little different. I am hoping you can help me with it. I hope I am not violating any protocols by asking you specifically?  A year ago I reinstalled my Mac's operating system. My CS4 is on my computer under "Previous System." I am unable to open it from there and I do not want to attempt migrating it for reasons noted above. I did try to reinstall it as you suggested to hbrady67 by dowloading from CS4 products with my serial number but I got this message: "Upgrade Check  We looked in the default location for qualifying products installed on the machine, but none were found. You may verify upgrade eligibility now by completing the fields to the right. 1) Select a product you already own. 2) Enter a serial number for this product.  CS4 wasn't in the list of selections. The protocol suggested won't work for me since I am not doing an upgrade but trying to reinstall what I already have. Can you direct me on where to go/what to do?  Thank you very much.      Bergi.
    I found the solution to this problem. I was able to download the trial version of what I have and enter the serial number from there. However, it still asked for a serial number from previous software: "your setup is for an upgrade version of Adobe Creative Suite 4." (I entered the serial number that I have for CS2. And it was accepted.  Thank you.  Bergi

  • One day after having received my ipod , it doesn't work properly.

    I've spend my entire day fixing an ipod i received yesterday
    As I'm writing, I've received my video ipod of 30gb yesterday. Back then, I followed the instructions carefully , and I installed I-tunes and Ipod updater as instructed. I transfered some of my musics and pictures in the ipod and transfered a short video that I had converted first. My computer Toshiba satellite M45-S169 is well known for its performances, so obviously it incorporates USB 2.0 ports. Actually, all seemed fine.
    I woke up this morning and went out with my ipod. Arrived at the library, I felt like using a machintosh..when I turned on the screen of the MAC, at the same time my ipod froze. I was speechless, the blacklight was on and I couldn't turn it off. I did what was instructed in the support site, which means that I reseted it. Afterwards, a sad ipod icon appeared on the screen. Once again I tried what was instructed but I couldn't put my ipod into disk mode. So, I plugged it in my computer trying to restore or update it as instructed but my computer didn't recognize it anymore. So, I re-installed all the softwares, and I updated them. Then, I restarted my computer but it didn't work. Finally, I did the last possible solution; it was said on the website that it might be my battery, so I let it charge during 1 to 2 hours but it wouldn't charge.
    whenever I plug the ipod in the computer I see a black screen with an apple, then it shifts to a screen with a small battery with an exclamation point, which quickly shifts into a discharged battery with a lightning bolt, which last about 1min(it depends) before shifting to the screen with a sad Ipod icon with the blacklight on, and the apple screen once again. It does it over and over ...
    Please help!!
    Even though I'm pretty sure you will not have an answer considering that i have spend all my day on it.
    I guess i will just ship it back with my big thanks to apple.
    My Ipod and I ( A story of someone who bought a Ipod to use it only 1hours)
    Should I prosecute apple ? Excuse me, i'm just crying the money I have spend months to earn in order to buy this crap. A lot of struggle to buy it,a lot of struggle to fix it, and nothing in return. It is sad, isn't it ?
    I was really impatient to receive my ipod. I paid it, and I trusted apple. However, I was wrong. The first product apple that I bought just doesn't work whereas I was starting to be interested in others Apple products. I've lost my time on internet reading about the features of the ipod 5th generation 30go, which are badly detailed. I'm not complaining about the fact that the ipod is not perfect, which I understand. I'm complaining about the fact that apple don't aware his consumers of the high frequence of bugs. I don't find it quite professional. So, when a ipod froze, we think that it is uncommon before reading the articles throughout the support website and find out that it is considered as 'normal' to encounter those kind of issues.
    morality: I will never buy an Apple product again.
    I was stupid enough to make them engraved on the back of my ipod: 'It is wise to learn. It is god-like to create'.

    Did you have it connected to the library mac when it froze? If so, why? I would be hesitant to hook my ipod to a unprotected public computer since it may be infested with viruses or have unknown hardware problems.
    In any case, if you can get it to an Apple store they can probably help you with it, it sounds like it needs replacing.
    A certain percentage of any complex product will turn out to be defective and will have to be returned, it sounds like you were unlucky enough to get one. Looking over the forums here it may seem like the ipod is plagued with bugs, but don't forget that there are millions who never have a problem and so have no reason to pipe up here. Personally I think Apple deserves a thumbs up for continuing to host these forums in spite of how they may cast a negative light on thier products to the casual observer.
    5G 60GB Black iPod   Windows XP Pro  

  • LC + ActiveDirectory + LDAP over SSL = doesn't work

    Hi,
    I installed Active Directory Certificate Services. Now I want setup LDAP over SSL. Unfortunatelly it doesn't work. I pressed "Test" and always get "Invalid username or invalid password" (
    German: "Ungültiger Benutzername oder ungültiges Kennwort"). I'm pretty sure username and password are fine (it worked before I installed Active Directory Certificate Services and used LDAP without SSL).
    On server.log, I got this:
    2011-11-12 00:51:28,202 INFO  [com.adobe.idp.um.businesslogic.synch.LdapHelper] Following stacktrace is generated due to the Test LDAP Server Configuration action
    javax.naming.AuthenticationException: [LDAP: error code 49 - 80090308: LdapErr: DSID-0C0903A9, comment: AcceptSecurityContext error, data 52e, v1db1]
            at com.sun.jndi.ldap.LdapCtx.mapErrorCode(LdapCtx.java:3041)
            at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2987)
            at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2789)
            at com.sun.jndi.ldap.LdapCtx.connect(LdapCtx.java:2703)
            at com.sun.jndi.ldap.LdapCtx.<init>(LdapCtx.java:293)
            at com.sun.jndi.ldap.LdapCtxFactory.getUsingURL(LdapCtxFactory.java:175)
            at com.sun.jndi.ldap.LdapCtxFactory.getUsingURLs(LdapCtxFactory.java:193)
            at com.sun.jndi.ldap.LdapCtxFactory.getLdapCtxInstance(LdapCtxFactory.java:136)
            at com.sun.jndi.ldap.LdapCtxFactory.getInitialContext(LdapCtxFactory.java:66)
            at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:667)
            at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:288)
            at javax.naming.InitialContext.init(InitialContext.java:223)
            at javax.naming.ldap.InitialLdapContext.<init>(InitialLdapContext.java:134)
            at com.adobe.idp.um.businesslogic.synch.LdapHelper.createContext(LdapHelper.java:663)
            at com.adobe.idp.um.businesslogic.synch.LdapHelper.testServerConfig(LdapHelper.java:682)
            at com.adobe.idp.um.ui.config.ConfigDirectoryEditAction.testServerSettings_onClick(ConfigDirectoryEditAction.java:215)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:597)
            at com.cc.framework.adapter.struts.ActionUtil.handleFormAction(Unknown Source)
            at com.cc.framework.adapter.struts.FWAction.handleFormAction(Unknown Source)
            at com.cc.framework.adapter.struts.ActionUtil.execute(Unknown Source)
            at com.cc.framework.adapter.struts.FWAction.execute(Unknown Source)
            at com.cc.framework.adapter.struts.FWAction.execute(Unknown Source)
            at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
            at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
            at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
            at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
            at com.adobe.framework.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:173)
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
            at com.adobe.idp.um.auth.filter.AuthenticationFilter.doFilter(AuthenticationFilter.java:154)
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
            at com.adobe.idp.um.auth.filter.PortalSSOFilter.doFilter(PortalSSOFilter.java:91)
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
            at com.adobe.idp.um.auth.filter.CSRFFilter.doFilter(CSRFFilter.java:41)
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
            at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
            at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
            at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
            at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
            at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433)
            at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
            at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
            at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
            at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
            at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:543)
            at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
            at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241)
            at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
            at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:580)
            at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
            at java.lang.Thread.run(Thread.java:619)
    Do you have some Idea?
    cu Floh

    I have not done it for Netscape yet but I have done it for Novell and JNDI.. Here is the settings for Novell
    // Dynamically set JSSE as a security provider
    Security.addProvider(new com.sun.net.ssl.internal.ssl.Provider());
    // Dynamically set the property that JSSE uses to identify
    // the keystore that holds trusted root certificates
    System.setProperty("javax.net.ssl.trustStore", m_connectionData.getLocal("KeyStore").toString());
    ssf = new LDAPJSSESecureSocketFactory();
    // Set the socket factory as the default for all future connections
    LDAPConnection.setSocketFactory(ssf);

  • Syncing with iTunes over wifi doesn't work

    My iTunes sometimes does not recognize my iPhone... but sometimes it does. When I click to sync it will start but it will get an error eventually like "Sync failed to start" or "Unknown error -50".
    I am not sure why iTunes will not sync. It used to work, but lately it hasn't been.
    I put a bunch of new music on iTunes yesterday from old CD's I had and when I went to sync it showed it did, but when I went to play my music on my iPhone all the songs were just grayed out so I couldn't click on them....
    so I used to USB cord and it synced fine...
    So can it not send that much data over wifi or something?
    I'm using iTunes on my Windows 7 laptop. I also have an iPad it won't sync with either.
    Thx.

    Which application are you trying to use?
    The manual mentions setting up an NMEA port where you post describes a COM port.  In the printing world a COM port is a USB physical port or oldschool Serial port.  These may not be the same thing which might explain why your app is not working. 
    Lookup your installed ports (WinXP):
    1. Navigate to Start > Run
    2. Enter "cmd"
    3. Click OK
    4. Enter "netstat -a"
    5. Scroll through the list and review all available ports
    If your port is not mentioned above by the port number you selected from the Wi-Fi over GPS screen then it is not active and will not be useful for your apps.  From the manual it looks like the default port number is 10110.
    I would check the support site for your application to see if it is compatible with NMEA.  They might have more steps for you on how to configure your app to utilize the GPS over WiFi feature of the MiFi.

  • LInks over shape doesn't work

    I just recently reformatted my iWeb pages and I love them. The problem is that most of them are buried under a pictures category (I want them that way). When I created hyperlinks in iWeb it changed the color of my font. So I inserted a shape behind the text and put the hyperlinks there.
    That doesn't work. I also tried putting the hyperlinks back on the text and when I publish, they don't work either. I like the shapes and don't want to remove them. How can I keep the pink shapes under my pictures page and keep the text white?
    http://web.mac.com/kryst1012/iWeb/Krystin/Photos.html

    Keep all of your shapes right where they are! To make your text into hyperlinks then, just insert another shape...make it big or small enough to cover your text. Go ahead and drag it right over your text. Now attach the hyperlink to this shape. Now in the INspector,click over to the Graphics tab and change the opacity of this shape to 1%.
    You have now created a "hotspot" hyperlink over your text! All without moving any of your other shapes around! Publish and see the results... Let me know if it works out for you!

  • Data Driven Test doesn't work in coded UI

    Hi,
    I have written my first coded ui data driven test (Visual Studio 2012).  Although the test ran and was marked passed. I don't think it actually did anything.  
    I have 2 fields (Input and Output) on my csv file.
    n my app,  I want to enter the input field in a field called GoTo which is an UITbedit field, hit enter.  This should open another window where I want to validate the window title = to my Output 
    Here is my code
            [DataSource("Microsoft.VisualStudio.TestTools.DataSource.CSV", "|DataDirectory|\\Data/MainData.csv", "MainData#csv", DataAccessMethod.Sequential), DeploymentItem("MainData.csv"), TestMethod]
            public void DataDrivenTest()
                //string paramVal = TestContext.DataRow["Input"];
                this.UIMap.EnterGoToValueMainParams.TextInputEditText =
                    TestContext.DataRow["Input"].ToString();
        this.UIMap.EnterGoToValueMain();
                this.UIMap.PressEnter();
                this.UIMap.AssertWindowTitleExpectedValues.TextOutputEditText =
                    TestContext.DataRow["Output"].ToString();
    During playback, it appeared that the coded ui test had looped through the csv file, but it didn't actually write anything to the edit field that I was testing.

    It still doesn't work,
    I modified my code as follows:
                this.UIMap.EnterGoToValueMainParams.TextInputEditText =
                       TestContext.DataRow["Input"].ToString();
                this.UIMap.EnterGoToValueMain();
                this.UIMap.PressEnter();
                this.UIMap.AssertWindowTitleExpectedValues.TextOutputEditText =
                       TestContext.DataRow["Output"].ToString();
                this.UIMap.AssertWindowTitle();
    The application appears to loop through the file, but it is placing my original entered test "1" in the edit field during both iterations.  The playback is slow enough that I can see what is being entered. It doesn't seem to be replacing the
    "1" with a "5" from my input file.

  • "Move Current Track Automation Data to Region" doesn't work for all

    I have been using the 'Move Current Track Automation Data to Region' and while it works fine for some types of automation data like channel volume, pan and some plugin parameters, it doesn't work for all of them.
    I haven't done exhaustive research into which parameters work and which don't, but most of the parameters for individual voices within Ultrabeat don't - which is annoying as that is what I was trying to use it for.
    Any ideas about this, or workarounds?

    OK, well an update on this in case anyone's interested.
    With some further experimentation I have discovered that this problem did not exist in Logic 7 - ie you can move current track automation data for individual Ultrabeat voices to the region.
    It's also possible to move automation data for individual Ultrabeat voices using 'Move All Track Automation Data to Region,' so I suppose this is a kind of workaround, though it can be annoying if you don't want to move all track automation data.
    I'm now assuming this is a bug in Logic 8; is there any way to convert a Logic 8 project to work in Logic 7, as this along with the touch tracks bug is making working in Logic 8 very frustrating?

  • Xcelsius/Dashboard Design - mouse over capability doesn't work/losing hover

    Hello there,  I am currently in a tough situation.  If any Xcelsius gurus can provide me with a solution, I would very much appreciate your help.
    I currently have a dashboard with pie chart component in the default view.  It has a radio button with two values.  The mouse over doesn't work when the dashboard is loaded.  However, when I make a selection in the radio button, the mouse over works for both the options.  I have noticed this is a bug but if anyone has a solution or way around it, let me know.
    Another issue - I have a 'All' view and 'Region' views in the menu bar.  When a user clicks on a particular Region, then clicks all and goes back to a region, I lose the drill down capability on the pie chart thats on the Region view.  initially, the mouse over and drill down works fine.  However, after going to the All view and coming back to a region, this capability is lost.  It acts the same way as the problem above.  User can't hover nor drill down.  If anyone has a solution to this, let me know.

    FYI this is the article on the main forum page:
    Announcement: New to Spry, or  the Spry forums?
    Hide Details
    Before you post a topic please verify that:
    You are using the latest Spry files
    The latest version of the Adobe Spry Framework is 1.6.1, this is the same version that ships with Dreamweaver CS4. If you use Dreamweaver CS3 (uses Spry 1.4), its wise to upgrade your files to the latest version. This can easily be done using the Spry Updater that can be found here.
    After that we will have a look at your code.
    Ben

  • Send & receive data over GPRS

    Hi All !!!
    I am developing a program to receive and send data over GPRS. A remote device is sending data at a particular port (6600) of my server. I am able to read that through ServerSocket. However I am not being able to send any data to that device.
    Any help?

    I am using the code:
    // Constructor
    public ServerSocketReader(Socket socket) {
    super("MultiSocketThread");
    this.clientSocket = socket;
    this.setDaemon(true);
    public void run() {
    try {
    OutputStream out = clientSocket.getOutputStream();
    InputStreamReader in = new InputStreamReader(clientSocket.getInputStream ());
    //BufferedWriter bw = new BufferedWriter(new FileWriter(_filepath, true));
    java.util.Date date = new java.util.Date();
    SimpleDateFormat sdf = new SimpleDateFormat("EEE, dd-MMM-yy HH:mm:ss");
    GprsProtocol protocol = new GprsProtocol();
    int charCount = 0;
    char[] cBuffer = new char[1000];
    byte[] bBuffer;
    String fromClient = "", toClient = "START";
    int ii = 0;
    while ((ii = in.read()) != -1) {
    fromClient = fromClient + (char)ii;
    if (fromClient.endsWith("2Y")) { //according to protocol
    toClient = protocol.processInput(fromClient); //Protocol
    bBuffer = toClient.getBytes();
    for (int k=0; k<bBuffer.length; k++) {
    out.write ((char)bBuffer[k]);
    out.flush();
    fromClient = "";
    out.close ();
    in.close ();
    clientSocket.close ();
    //bw.close();
    } catch (IOException ioe) {
    //out.println("Error::" + e);
    System.out.println("Error in writing file : ");
    ioe.printStackTrace();
    } catch (Exception e) {
    System.out.println("Error in ServerSocketReader : ");
    e.printStackTrace();
    finally {
    //this.destroy();
    I am geeting the error at line :-
    while ((ii = in.read()) != -1) {
    the error is :-
    java.net.SocketException: A connection with a remote socket was reset by that socket.: A connection with a remote socket was rese
    by that socket.
    at java.net.SocketInputStream.socketRead(Native Method)
    at java.net.SocketInputStream.read(SocketInputStream.java:104)
    at java.net.SocketInputStream.read(SocketInputStream.java:82)
    at java.io.InputStreamReader.fill(InputStreamReader.java(Compiled Code))
    at java.io.InputStreamReader.read(InputStreamReader.java:256)
    at java.io.InputStreamReader.read(InputStreamReader.java:229)
    at ServerSocketReader.run(ServerSocketReader.java(Compiled Code))

  • Format date with "yyww" doesn't work

    Format a date to the format "yyww" doesn't work correctly for the first week of some years. It seams to be weeks that start in December that doesn't work.
    DateFormat df = new SimpleDateFormat("yyww", Locale.FRANCE);
    String in = "0801";
    // Gives: Mon Dec 31 00:00:00 CET 2007
    Date d = (Date) df.parseObject(in);
    System.out.println(d);
    // !? Gives: 0701
    String out = df.format(d);
    System.out.println(out);Any help appreciated!

    You're right. ISO 8601 Whichever year contains Thursday determines which year the week belongs to.
    The U.S. locale plays by different rules though. At least according to GergorianCalendar, if even one day falls in the new year, it is week 01. This little program displays this:
    import java.io.UnsupportedEncodingException;
    import java.text.SimpleDateFormat;
    import java.util.Calendar;
    import java.util.GregorianCalendar;
    import java.util.Locale;
    import java.util.TimeZone;
    import java.text.MessageFormat;
    import javax.swing.JOptionPane;
    public class CalendarTest {
         public static void main(String args[]) throws UnsupportedEncodingException {
              try {
                  if (args.length != 0) {
                       doYear(new Integer(args[0]).intValue());
                       return;
              } catch (NumberFormatException nfe) {
              doYear(2005);
              doYear(1998);
              doYear(1993);
          * Method main
          * @param args
         public static void doYear(int year) throws UnsupportedEncodingException {
              System.out.println();
              System.out.println(year);
              GregorianCalendar a = new GregorianCalendar(TimeZone.getTimeZone("GMT-8"), Locale.US);
              GregorianCalendar b = new GregorianCalendar(TimeZone.getTimeZone("GMT+1"), Locale.GERMANY);
              a.set(Calendar.YEAR, year);
              a.set(Calendar.MONTH, Calendar.JANUARY);
              a.set(Calendar.DAY_OF_MONTH, 1);
              b.set(Calendar.YEAR, year);
              b.set(Calendar.MONTH, Calendar.JANUARY);
              b.set(Calendar.DAY_OF_MONTH, 1);
              while (a.get(Calendar.DAY_OF_WEEK) != a.getFirstDayOfWeek()) {
                   a.add(Calendar.DAY_OF_MONTH, -1);
              while (b.get(Calendar.DAY_OF_WEEK) != b.getFirstDayOfWeek()) {
                   b.add(Calendar.DAY_OF_MONTH, -1);
              do {
                   System.out.println("US:  " + a.getTime() + " " + a.get(Calendar.WEEK_OF_YEAR));
                   a.add(Calendar.DAY_OF_MONTH, 1);
              } while (a.get(Calendar.DAY_OF_MONTH) != 8);
              System.out.println();
              do {
                   System.out.println("DE:  " + b.getTime() + " " + b.get(Calendar.WEEK_OF_YEAR));
                   b.add(Calendar.DAY_OF_MONTH, 1);
              } while (b.get(Calendar.DAY_OF_MONTH) != 8);
    }

  • Http tunneling (t3 over http) doesn't work!!  (examples too)

    Hi,
    I'm trying to get http tunneling (t3 connection over http protocol) to work. I
    ran some examples included with Weblogic that try establishing that connection
    (PingTest, HelloApplet, SimpleT3Client), as well as my own test program, and they
    all give an error similar to this :
    Couldn't get a reference to server. Exception :
    javax.naming.CommunicationException. Root exception is java.net.ConnectException:
    No server found at HTTP://<IP>:<port>
    at weblogic.rjvm.RJVMFinder.findOrCreate(RJVMFinder.java:161) at weblogic.rjvm.ServerURL.findOrCreateRJVM(ServerURL.java:200)
    at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialContextFactoryDelegate.java,
    Compiled Code) at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialContextFactoryDelegate.java:148)
    at weblogic.jndi.WLInitialContextFactory.getInitialContext(WLInitialContextFactory.java:123)
    at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:671) at
    javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:242) at javax.naming.InitialContext.init(InitialContext.java:218)
    at javax.naming.InitialContext.<init>(InitialContext.java:194)
    (I replaced the actual Ip and port with <IP> and <port>).
    Now, the server is started and working at that ip and port - it services web http
    requests correctly, etc. Regular T3 connection (not over http) also works with
    it.
    Does anyone know the reason for this problem and/or how to fix it?
    Thanks, Leonid Portnoy

    It appears that one has to use the "Java Plugin" for this mode to work. The
    question is does the version of plugin need to be "in sync" with the JVM
    version on the server. ?.
    /rk
    "Adomas Svirskas" <[email protected]> wrote in message
    news:[email protected]...
    >
    It seems that the solution is to have these two lines in the
    properties file:
    weblogic.httpd.enable=true
    weblogic.httpd.tunnelingenabled=true
    Now it works.
    Thanks,
    Adomas
    "Adomas Svirskas" <[email protected]> wrote:
    Hi Leonid,
    Have you found a solution for this? I have these problems too.
    Thanks,
    Adomas
    "Leonid Portnoy" <[email protected]> wrote:
    Hi,
    I'm trying to get http tunneling (t3 connection over http protocol)to
    work. I
    ran some examples included with Weblogic that try establishing thatconnection
    (PingTest, HelloApplet, SimpleT3Client), as well as my own test program,
    and they
    all give an error similar to this :
    Couldn't get a reference to server. Exception :
    javax.naming.CommunicationException. Root exception is
    java.net.ConnectException:
    No server found at HTTP://<IP>:<port>
    at weblogic.rjvm.RJVMFinder.findOrCreate(RJVMFinder.java:161) atweblogic.rjvm.ServerURL.findOrCreateRJVM(ServerURL.java:200)
    atweblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialCon
    textFactoryDelegate.java,
    Compiled Code) atweblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialCon
    textFactoryDelegate.java:148)
    atweblogic.jndi.WLInitialContextFactory.getInitialContext(WLInitialContextFact
    ory.java:123)
    atjavax.naming.spi.NamingManager.getInitialContext(NamingManager.java:671)
    at
    javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:242)
    at javax.naming.InitialContext.init(InitialContext.java:218)
    at javax.naming.InitialContext.<init>(InitialContext.java:194)
    (I replaced the actual Ip and port with <IP> and <port>).
    Now, the server is started and working at that ip and port - it services
    web http
    requests correctly, etc. Regular T3 connection (not over http) alsoworks
    with
    it.
    Does anyone know the reason for this problem and/or how to fix it?
    Thanks, Leonid Portnoy

  • Mails over iCloud doesn´t work !!!

    Mac OS X 10.7.2 : I can´t receive mails over iCloud and I can´t send the Information to the Support over iCloud !!! ???
    p99-imap.mail.me.com / username / pwd
    the error-message: wrong pwd !?!?!?
    I have not change the pwd

    iCloud seems very unreliable!  It keeps going down once a week!   Starts with the "server rejected password" then it is all down hill from there!

  • MiFi 4620L GPS over Wifi doesn't work

    I have tried without success to get the GPS function to work on my Mifi 4260L. Their is no indicator on the device to say whether it is working or not. I have it turned on in the settings menu and I have installed the proper driver on my computer. The application I am trying to use can see the COM port listed but it does not receive any GPS data. Does anybody know how to fix this problem or what I am doing wrong? Thanks in advance.

    Which application are you trying to use?
    The manual mentions setting up an NMEA port where you post describes a COM port.  In the printing world a COM port is a USB physical port or oldschool Serial port.  These may not be the same thing which might explain why your app is not working. 
    Lookup your installed ports (WinXP):
    1. Navigate to Start > Run
    2. Enter "cmd"
    3. Click OK
    4. Enter "netstat -a"
    5. Scroll through the list and review all available ports
    If your port is not mentioned above by the port number you selected from the Wi-Fi over GPS screen then it is not active and will not be useful for your apps.  From the manual it looks like the default port number is 10110.
    I would check the support site for your application to see if it is compatible with NMEA.  They might have more steps for you on how to configure your app to utilize the GPS over WiFi feature of the MiFi.

  • Just bought 2013 MBP, VPN over L2TP doesn't work

    I've already been looking at other articles about this issue, but they all seem to be related to the OS X Server edition of Mavericks. I'm assuming this issue is probably the same on the regular edition of Mavericks as well. Does anyone know if/when a patch will come out to fix this issue and does anyone know a work around in the mean time, that doesn't involve copying racoon over from Mountain Lion, since I never had Mountain Lion in the first place

    A new Mac comes with 90 days of free tech support from AppleCare.
    AppleCare: 1-800-275-2273
    Best.

Maybe you are looking for

  • The video Getting Started With Firefox won't play on my new MacBook Pro; how to make it play?

    I went from Firefox Bookmarks to the introduction to Firefox, I could read the information but could not play the video

  • Reconnecting Application and opening a new applications

    My issue is that using server 2012 R2, I have setup any connections that have been disconnected and try to reconnect. All the programs seems to work fine except our internal ERP software which reconnects then opens another instance of the software. H

  • Parsing text files

    I have written a vi that parses data out of text files which makes use of the open text file vi. When I compile the vi to run as a stand alone application, The open file dialogue will only accept .vi files for opening. Why is this? Thanks, Russ T.

  • Import mailboxes in Lion is creating a mailbox with a number

    Sorry for my English first, It is not my language. I had a problem after changing the name of a folder in Mail.app, some mails diseppear. So I decide to reimport the mailbox still present inside user/library/Mail. My emails were correctly imported bu

  • Run parlayx example error

    I want to test Parlay X PresenceConsumer application with OCMS(version 10.1.3.4) reference to parlayxjdeveloper.pdf. I use Oracle JDeveloper 10g Release 3 (10.1.3.4). After successful deploy on OCMS and invoke the URL(http://127.0.0.1:8888/presencede