Writing JSPs to play chess; I get a null at a point, where I shouldn't

I am writing a set of JSP pages in order to play chess online. I know it is better to do this task using an applet, but the man I am working for doesn't want it to be an applet. The idea is two clients play a game, while in fact manipulating a single object in the application or ServletContext object. If one of the clients makes a move - he modifies the Game object and the thread (a loop checking if the Game object has changed), created by the other client stops and his service method visualizes the move his opponent has made. As soon as a client submits a move - his service method creates and join()s the thread waiting for the next change in the Game object.
MY PROBLEM IS: THE SECOND TIME THE HOST PLAYS A MOVE HIS OPPONENT GETS A NULL INSTEAD OF VALID Game OBJECT. CAN ANYONE TELL ME WHY BECAUSE I HAVEN'T SET IT TO NULL ANYWHERE IN THE CODE
I have the following files: chessOnline.jsp, hostGame.jsp, joinGame.jsp, play.jsp, quitGame.jsp and a few .class files: Game.class, MovesStateChecker and GameOnChecker.
chessOnline.jsp has two functions:
1. to join a created game
2. to create a new game
joinGame.jsp and hostGame.jsp are just like play.jsp with the difference that they initialize the game; the code is quite the same.
---------------------------------------MovesStateChecker ----------------------------------------
public class MovesStateChecker extends Thread
     private ServletContext sc;
     private int movesNumber;
     public MovesStateChecker(String name,ServletContext sc,int movesNumber)
          super(name);
          this.movesNumber=movesNumber;
          this.sc=sc;
     public void run()
          Game g=null;
          int retries=0;
          while(true)
               try {
                    Thread.sleep(1500);
               } catch (InterruptedException e) {}
               g=(Game)sc.getAttribute(this.getName());
               if(g==null){retries+=1;continue;}
               if(g.getMoves().size()>movesNumber){break;}
---------------------------------------end of MovesStateChecker.class------------------------
---------------------------------------joinGame.jsp--------------------------------------------------
<%@ page contentType="text/html; charset=iso-8859-1" language="java" import="java.util.Map,java.io.IOException,chessoffice.*,java.sql.*" errorPage="" %>
<%
response.setHeader("Cache-Control","no-cache"); //Forces caches to obtain a new copy of the page from the origin server
response.setHeader("Cache-Control","no-store"); //Directs caches not to store the page under any circumstance
response.setDateHeader("Expires", 0); //Causes the proxy cache to see the page as "stale"
response.setHeader("Pragma","no-cache"); //HTTP 1.0 backward compatibility
%>
<html>
<head>
<link rel="stylesheet" href="styles.css" type="text/css" />
<title>Read</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<%
     if (Strings.dbCheckSession(request))
          String user =(String)session.getAttribute("sessionUser");
          if(request.getParameter("gameId")==null || request.getParameter("gameId").equals(""))
               response.sendRedirect(response.encodeURL("/jsp/chessOnline.jsp"));
          else
               Game joinedGame=(Game)application.getAttribute(request.getParameter("gameId"));
               if(joinedGame.getBlack()==null)
               {joinedGame.setBlack(user);}
               else
               {joinedGame.setWhite(user);}
               joinedGame.setGameOn(true);
               application.setAttribute(request.getParameter("gameId"),joinedGame);
               MovesStateChecker msc=new MovesStateChecker(joinedGame.getId(),application,0);
               msc.start();
               msc.join();
               Game g=(Game)application.getAttribute(request.getParameter("gameId"));
               if(g==null)
                    response.sendRedirect(response.encodeURL("/jsp/chessOnline.jsp?error=opponentQuit"));
               else
                    out.println(g.getWhite()+" - white player<br />");
                    out.println(g.getBlack()+" - black player<br />");
                    out.println(g.getMoves().size()+" - size of Moves array list (number of moves)<br />");
                    out.println(g.isGameOn()+ " - is the game on <br />");
                    out.println(g.getDesk().get("b2")+" - b2 position<br />");
                    out.println(g.getDesk().get("b4")+" - b4 position<br />--------------------<br />");
                    out.println("<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">");
                    out.println("<tr><td>");
                    Read.drawDesk(false,g.getDesk(),out);
                    out.println("</td><td>");
                    Read.drawInfoForm(request.getParameter("gameId"),out);
                    out.println("</td></tr>");
                    out.println("</table><br /><hr />");
                    Read.drawQuitForm(request.getParameter("gameId"),out);
     else response.sendRedirect(response.encodeURL("/jsp/index.jsp"));
%>
</body>
</html>
---------------------------------------end of joinGame.jsp-----------------------------------------
----------------------------------------hostGame.jsp-------------------------------------------------
<%@ page contentType="text/html; charset=iso-8859-1" language="java" import="java.io.IOException,chessoffice.*,java.util.*,java.sql.*" errorPage="" %>
<%!
     public Map initGameMap() {
          Map m=Collections.synchronizedMap(new HashMap(64,(float)0.1));
          for(int ver=8;ver>=1;ver--)     {
               for(int hor=0;hor<=7;hor++) {
                    switch(ver) {
                         case 1: m.put(""+Read.chars[hor]+ver,"white/"+Read.bfigs[hor]+".gif");break;
                         case 2: m.put(""+Read.chars[hor]+ver,"white/p.gif");     break;
                         case 7: m.put(""+Read.chars[hor]+ver,"black/p.gif");     break;
                         case 8: m.put(""+Read.chars[hor]+ver,"black/"+Read.bfigs[hor]+".gif");break;
                         default: m.put(""+Read.chars[hor]+ver,null);break;
          return m;
%>
<%
response.setHeader("Cache-Control","no-cache"); //Forces caches to obtain a new copy of the page from the origin server
response.setHeader("Cache-Control","no-store"); //Directs caches not to store the page under any circumstance
response.setDateHeader("Expires", 0); //Causes the proxy cache to see the page as "stale"
response.setHeader("Pragma","no-cache"); //HTTP 1.0 backward compatibility
%>
<html>
<head>
<script language="JavaScript" type="text/javascript">
     function selectFigure(cell)
          /*oldPos=cell.name;
          bgImage=cell.background;
          document.write(bgImage.substring(0,bgImage.indexOf("."))+"_"+bgImage.substring(bgImage.indexOf(".")-1,bgImage.length()));
          cell.background=bgImage.substring(0,bgImage.indexOf("."))+"_"+bgImage.substring(bgImage.indexOf(".")-1,bgImage.length());
          alert("cell name is: "+cell.background);
</script>
<title>chess online</title>
<link rel="stylesheet" href="styles.css" type="text/css" />
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<%
     if (Strings.dbCheckSession(request))
          String user=(String)session.getAttribute("sessionUser");
          Game initialGame=new Game();
          initialGame.setId(user);
          if(request.getParameter("color")!=null)
               if(request.getParameter("color").equals("white"))
                    initialGame.setWhite(user);
               else
                    initialGame.setBlack(user);
          else
               initialGame.setWhite(user);
          initialGame.setGameOn(false);
          initialGame.setWhiteTime(10*60*1000);
          initialGame.setBlackTime(10*60*1000);
          initialGame.setMoves(new ArrayList());
          initialGame.setDesk(this.initGameMap());
          initialGame.setCaptured(new ArrayList());
          application.setAttribute(initialGame.getId(),initialGame);
          GameOnChecker goc=new GameOnChecker(initialGame.getId(),application);
          goc.start();
          goc.join();
          Game g=(Game)application.getAttribute(user);
          out.println(g.getWhite()+" - white player (host)<br />");
          out.println(g.getBlack()+" - black player<br />");
          out.println(g.getMoves().size()+" - size of Moves array list (number of moves)<br />");
          out.println(g.isGameOn()+ " - is the game on<br />");
          out.println(g.getDesk().get("b2")+" - b2 position<br />");
          out.println(g.getDesk().get("b4")+" - b4 position<br />-------------------<br />");
          out.println("<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">");
          out.println("<tr><td>");
          Read.drawDesk(false,g.getDesk(),out);
          out.println("</td><td>");
          Read.drawInfoForm(user,out);
          out.println("</td></tr>");
          out.println("</table><br /><hr />");
          Read.drawQuitForm(user,out);
     else response.sendRedirect(response.encodeURL("/jsp/index.jsp"));
%>
</body>
</html>
----------------------------------------end of hostGame.jsp----------------------------------------
----------------------------------------play.jsp-------------------------------------------------
<%@ page contentType="text/html; charset=iso-8859-1" language="java" import="chessoffice.*,java.sql.*" errorPage="" %>
<%
response.setHeader("Cache-Control","no-cache"); //Forces caches to obtain a new copy of the page from the origin server
response.setHeader("Cache-Control","no-store"); //Directs caches not to store the page under any circumstance
response.setDateHeader("Expires", 0); //Causes the proxy cache to see the page as "stale"
response.setHeader("Pragma","no-cache"); //HTTP 1.0 backward compatibility
%>
<html>
<head>
<link rel="stylesheet" href="styles.css" type="text/css" />
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<%
boolean overtake=(request.getParameter("overtake").equals("true"))?true:false;
String bgImage=request.getParameter("bgImage");
String oldPos=request.getParameter("old");
String newPos=request.getParameter("new");
String gameId=request.getParameter("gameId");
if(newPos!=null && oldPos!=null && bgImage!=null && gameId!=null)
     //tuk trqbva da ima proverka na hod-a
     //posle se suzdava obekt ot tipa Move i se zapisva v Game.moves:
     Move m=new Move(oldPos,newPos,overtake,bgImage);
     Game loadedGame=(Game)application.getAttribute(gameId);
     loadedGame.updateDesk(m);
     int currentMovesNumber=loadedGame.getMoves().size();
     application.setAttribute(gameId,loadedGame);
     MovesStateChecker msc=new MovesStateChecker(loadedGame.getId(),application,currentMovesNumber);
     msc.start();
     msc.join();
     Game g=(Game)application.getAttribute((String)session.getAttribute("sessionUser"));
     if(g==null)
          out.println("izvadenata igra e NULL");
          //response.sendRedirect(response.encodeURL("/jsp/chessOnline.jsp?error=opponentQuit"));
     else
          out.println(g.getWhite()+" - white player<br />");
          out.println(g.getBlack()+" - black player<br />");
          out.println(g.getMoves().size()+" - size of Moves array list (number of moves)<br />");
          out.println(g.isGameOn()+ " - is the game on <br />");
          out.println(g.getDesk().get("b2")+" - b2 position<br />");
          out.println(g.getDesk().get("b4")+" - b4 position<br />--------------------<br />");
          out.println("<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">");
          out.println("<tr><td>");
          Read.drawDesk(false,g.getDesk(),out);
          out.println("</td><td>");
          Read.drawInfoForm(request.getParameter("gameId"),out);
          out.println("</td></tr>");
          out.println("</table><br /><hr />");
          Read.drawQuitForm(request.getParameter("gameId"),out);
%>
</body>
</html>
----------------------------------------play.jsp----------------------------------------
------------------------------------------chessOnline.jsp----------------------------------------------------
<%@ page contentType="text/html; charset=iso-8859-1" language="java" import="java.util.*,java.io.*,chessoffice.*,java.sql.*" errorPage="" %>
<%!
public void drawJoinGameForm(javax.servlet.jsp.JspWriter out,ServletContext application) throws IOException
     out.println("<form action=\"joinGame.jsp\" method=\"get\">");
     out.println("<select style=\"width:300\" name=\"gameId\" size=\"6\" size=\"120\">");
     Enumeration e=application.getAttributeNames();
     while(e.hasMoreElements())
          String el=(String)e.nextElement();
          if(el.length()<=20 && ((Game)application.getAttribute(el)).isGameOn()==false)
          out.println("<option value=\""+el+"\" >"+el+"</option>");     
     out.println("</select>");
     out.println("<br /><input type=\"submit\" value=\"Join Game\" />");
     out.println("</form>");
public void drawHostGameForm(javax.servlet.jsp.JspWriter out) throws IOException
     out.println("<form action=\"hostGame.jsp\" method=\"get\" name=\"hostGameForm\">");
     out.println("<input type=\"submit\" value=\"Host New Game\" />");
     out.println("<br />Choose your color:<br />");
     out.println("<input type=\"radio\" name=\"color\" value=\"white\" checked=\"checked\" /> White");
     out.println("<input type=\"radio\" name=\"color\" value=\"black\" /> Black");
     out.println("</form>");
public void drawCancelForm(String user,javax.servlet.jsp.JspWriter out) throws IOException
     out.println("<form action=\"quitGame.jsp\" method=\"get\">");
     out.println("<input type=\"hidden\" name=\"gameId\" value=\""+user+"\" />");
     out.println("<input type=\"submit\" value=\"Cancel Game\" />");
     out.println("</form>");
%>
<%
     response.setHeader("Cache-Control","no-cache"); //Forces caches to obtain a new copy of the page from the origin server
     response.setHeader("Cache-Control","no-store"); //Directs caches not to store the page under any circumstance
     response.setDateHeader("Expires", 0); //Causes the proxy cache to see the page as "stale"
     response.setHeader("Pragma","no-cache"); //HTTP 1.0 backward compatibility
%>
<html>
<head>
<link rel="stylesheet" href="styles.css" type="text/css" />
<title>Chess Online</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<%
     if (Strings.dbCheckSession(request))
          if(request.getParameter("error")!=null && request.getParameter("error").equals("opponentQuit"))
               out.println("<br /><br />"+request.getParameter("error"));
          out.println("<table border=\"0\" align=center>");
          out.println("<tr><td rowspan=\"2\">");
          drawJoinGameForm(out,application);
          out.println("<br /><p>As soon as you join, your opponent, who is hosting the game, is on the move and your browser is waiting/loading.</p>");
          out.println("</td><td>");
          drawHostGameForm(out);
          out.println("</td><td>");
          drawCancelForm((String)session.getAttribute("sessionUser"),out);
          out.println("</td></tr>");
          out.println("<tr><td align=\"right\" colspan=\"2\">");
          out.println("<p>After hosting a game by clicking on the button 'Host New Game' your browser will be in process of loading a page."
          +" As soon as an opponent joins your game you will be able to make the first move. If you do not wish to wait any longer for "
          +"an opponent to join - click on 'Cancel Game'.</p>");
          out.println("</td></tr>");
          out.println("</table>");
     else response.sendRedirect(response.encodeURL("/jsp/index.jsp"));
%>
</body>
</html>
-----------------------------------end of chessOnline.jsp--------------------------------------------------
I also have a Read.class - its name doesn't mean anything - I have stored some out.println(); operations there - drawDesk(...), drawQuitForm(...), drawInfoForm(...) etc.
MY PROBLEM IS: THE SECOND TIME THE HOST PLAYS A MOVE HIS OPPONENT GETS A NULL INSTEAD OF VALID Game OBJECT. CAN ANYONE TELL ME WHY BECAUSE I HAVEN'T SET IT TO NULL ANYWHERE IN THE CODE

This forum is about JMS, NOT JSP!!!

Similar Messages

  • I have downloaded a movie from ITunes.  It shows up in my video app.  When I go to play it I get an error message: "The requested URL was not found on this server". When I checked back on iTunes, where you click to rent or buy a movie it says "Downloaded"

    I have downloaded a movie from ITunes.  It shows up in my video app.  When I go to play it I get an error message: "The requested URL was not found on this server". When I checked back on iTunes, where you click to rent or buy a movie it says "Downloaded".  Any advice on what I can do in order to watch this movie that I rented a couple of weeks ago?

    Select the content which is causing a problem and use the 'Report a problem' button in Your Purchase History on your computer.

  • I'm using iTunes 10.6.1 on an iMac 2,66 Ghz intel core Duo with8GB DDR3 and Lion 10.7.3 I hav 260000 mp3 stored on A My Book 3 TB external Fire wire 800 Drive - when I play songs I get short interuptions every 20 to 30 seconds. Can't iTunes handle that?

    I'm using iTunes 10.6.1 on an iMac 2,66 Ghz intel core Duo with8GB DDR3 and Lion 10.7.3 I have 260000 mp3 stored on a My Book 3 TB external fire wire 800 Drive - when I play songs I get short interruptions every 20 to 30 seconds. Can't iTunes handle that number of songs?

    I'm using iTunes 10.6.1 on an iMac 2,66 Ghz intel core Duo with8GB DDR3 and Lion 10.7.3 I have 260000 mp3 stored on a My Book 3 TB external fire wire 800 Drive - when I play songs I get short interruptions every 20 to 30 seconds. Can't iTunes handle that number of songs?

  • ITunes will no longer play my music, all the albumss are there but it if I click on a song to play it I get a message saying " The song (name of song) could not be played because the original file coul not be found. Would you like to locate it."

    iTunes will no longer play my music, all the albumss are there but it if I click on a song to play it I get a message saying " The song (name of song) could not be played because the original file coul not be found. Would you like to locate it."

    You get this message because  iTunes can’t find the file. This can happen for a number of reasons:
    The song file or a folder in its path was renamed
    The song file or the folder it is in has been moved
    The song file has been deleted
    The device containing the song files e.g. external drive is not accessible or the drive letter has changed.
    Do any of these aply to you?

  • I was reviewing my list of songs in my library "on my I-Pod".  I noticed that a few of the songs on the list have an Exclamation Point in front of the track, and the track won't play. How do I get rid of the Exclamation Point so that the track will play.

    I was reviewing my list of songs in my library "on my I-Pod". I noticed that a few of those tracks on the list have an Exclamation Point in front of the track and will not play. How do I get rid of the Exclamation Point so that the track will play.

    Hello enrique a.
    Instead of trying to re-invent the wheel on this one, take a look at an article such as this one to help you take care of these exclamations.  Basically, it means iTunes is unable to locate the file on your computer anymore.
    http://ipod.about.com/od/itunesproblems/qt/Fixing-The-Itunes-Exclamation-Point.h tm
    B-rock

  • I'm trying to run a .jsp page and all I get is the following error. Thoughts?

    Running Coldfusion 8 / JRun 4 updater 7 / Coldfusion 8 hotfix
    2.
    I'm trying to run a .jsp page and all I get is the following
    error. Thoughts?
    Could not invoke Java compiler, please make sure jikesw is in
    I:\JRun4/bin or put a JDK bin directory in your path.
    jrunx.compiler.JavaCompiler$NoCompilerFoundException: Could
    not invoke Java compiler, please make sure jikesw is in
    I:\JRun4/bin or put a JDK bin directory in your path.
    at
    jrunx.compiler.JavaCompiler.outProcessCompile(JavaCompiler.java:474)
    at
    jrunx.compiler.JavaCompiler.compile(JavaCompiler.java:132)
    at
    jrunx.compiler.JavaCompiler.compile(JavaCompiler.java:100)
    at jrun.jsp.Translator.compilePage(Translator.java:176)
    at jrun.jsp.Translator.translate(Translator.java:254)
    at jrun.jsp.Translator.translate(Translator.java:101)
    at jrun.jsp.JSPEngine.translateJSP(JSPEngine.java:707)
    at jrun.jsp.JSPServlet.translate(JSPServlet.java:125)
    at jrun.jsp.JSPServlet.service(JSPServlet.java:113)
    at
    jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:106)
    at
    jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
    at
    jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:286)
    at
    jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:543)
    at
    jrun.servlet.jrpp.JRunProxyService.invokeRunnable(JRunProxyService.java:203)
    at
    jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:428)
    at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)

    You're right, that ws another fix I tried. There is no fix fo
    rthe issue described, but it still seems like an old issue. My
    class paths are short. Here is my jvm.config (pretty standard):
    # VM configuration
    # Where to find JVM, if {java.home}/jre exists then that JVM
    is used
    # if not then it must be the path to the JRE itself
    java.home=I:/JRun4/jre
    # If no java.home is specified a VM is located by looking in
    these places in this
    # order:
    # 1) bin directory for java.dll (windows) or
    lib/<ARCH>/libjava.so (unix)
    # 2) ../jre
    # 3) registry (windows only)
    # 4) JAVA_HOME env var plus jre (ie $JAVA_HOME/jre)
    # Arguments to VM
    java.args=-server -Xmx1000m -Dsun.io.useCanonCaches=false
    -XX:MaxPermSize=256m -XX:+UseParallelGC
    -Dcoldfusion.rootDir={application.home}/
    # commas will be converted to platform specific separator and
    the result will be passed
    # as -Djava.ext.dirs= to the VM
    java.ext.dirs={jre.home}/lib/ext
    # where to find shared libraries
    java.library.path={application.home}/lib,{application.home}/servers/cfusion/cfusion-ear/cf usion-war/WEB-INF/cfusion/lib,{application.home}/servers/cfusion/cfusion-ear/cfusion-war/W EB-INF/cfusion/jintegra/bin,{application.home}/servers/cfusion/cfusion-ear/cfusion-war/WEB -INF/cfusion/jintegra/bin/international
    system.path.first=false
    # set the current working directory - useful for Windows to
    control
    # the default search path used when loading DLLs since it
    comes
    # before system directory, windows directory and PATH
    java.user.dir={application.home}/../lib
    # JVM classpath
    java.class.path={application.home}/servers/lib,{application.home}/lib

  • Every song I play in Itunes gets deleted out of its album

    Hi, I hope someone can help me. Every song I play in Itunes gets deleted out of its album and gets put into a Various Artists album.
    What can I do to stop this from happening?
    Thanks in advance

    That sounds like the tags have been updated by some other software, perhaps Windows Media Player, then iTunes comes along, reads the tag as you play the track and moves it around according to the new information. The damage is likely already done.
    See Getting iTunes & Windows Media Player to play nicely.
    tt2

  • Play chess with others over iPhone?

    On websites like RedHotPawn.com, I can play chess with others in a "correspondence" fashion. I.e. I login to the website and see that my opponent has made a move. I then make a move. My opponent will then make a move when convenient (i.e. this is not real-time, but it works well and is fun).
    I would like to do this from an iPhone when I buy one. I'm guessing I can just hit that website from my iPhone, but was wondering if there was a more iPhone-specific offering that anyone knew of.
    I guess ideally a website like RHP would detect the user's device and create a webpage acccordingly?
    I'm interested in any info anyone may have to offer.
    Thanks,
    Ron

    As long as the website you normally play on doesn't require a plug-in like flash player then you should be able to navigate too and use it on the iphone. You can also check the iphone section of this website and see if there are any chess webapps that you can play over the network, there probably are some.

  • I'm trying to sync my lady's iphone and it keep cancelling sync... I've synced 4 other phones with no problem... here's acting like it's playing hard to get... Help

    My lady's iphone won't sync... Every attempt ends in a mesage saying "cancelling sync." I've synced my phone with no problems.. I'm stomped as to why her phone is playing hard to get.. Please help!

    Hi,
    I do have iDVD, but, and I shouldn't have included the mention of eventually needing a DVD, my primary concern is to try and make an MPEG 4.  I've tried using share to go to .m4v and the system tells me to shut iMovie down, and won't render it at all.  That one time I did run the MPEG 4 as I said, the image looked terrible - not just mildly so, but in some parts almost unwatchable.
    I'm running blind on editing at this point because of the size of the project - sound is garbled and it takes forever to do any sort of editing - all I get is the spinning wheel of death.  I really just need to get an MPEG 4.

  • I have an hd movie on both my ipad and iPhone 5, using airplay with my iPhone 5 plays perfectly but gets stuck with my ipad 2, almost like its buffering? I just want it to play smoothly like with my iPhone. Any suggestion?

    I have an hd movie on both my ipad and iPhone 5, using airplay on my apple tv with my iPhone 5 plays perfectly but gets stuck with my ipad 2, almost like its buffering? I just want it to play smoothly like with my iPhone. Any suggestion?

    About 6 months ago I discovered iTunes was set by default to 720p. These MUST BE CHANGED TO 1080P!!!!!!!!.......So I installed FULL 1080P file on my laptop on iTunes...  When I download movies on iPhone 5s/iPad mini the file is 720p So within about 60 seconds of starting download of 1080p files into my laptop of iTunes purchases. It was at that moment that I realized it was that file my laptop has on file to sync to my Apple device...Ten minutes later when the first 1080P HD file was downloaded  I must say... The resolution is amazing... I now use this same process to install movie files from iTunes.. In FULL 1080P.. Not 720P... Works on my iPad mini also... Avatar is 5.4 GB if installed over Wi-Fi... However sync with laptop and file is 6.5 GB in size... Called Apple told them... No reply yet.... You must delete 720P files from your laptop... Look for file size in any movie purchase and you will see DOWNLOAD IN 1080P.. This will open preferences in iTunes for you to the correct tab so you can change setting to 1080p from default of 720p... DELETE any downloaded movies already downloaded into laptop... You can check file quality by right click on any movie folder and the look at movie info... Will say 720p HD... Delete to recycle bin and iCloud will appear on each movie... Now download 1080P HD file... When completed. Right click any file to verify it is 1080P HD... The sync with device...... And get ready to be upset with Apple for holding back your device for the last 2 years 3 months and 16 days......And be ready to catch your jaw from hitting the floor when you see your screen in full 1080P HD.... Apple Engineer's were asleep.....
    You will notice better pic quality... Apple by default is still sending the 720P file to the new iPhone 6 plus over wifi and sync.. howve this process above will give you full HD file for your Apple device...

  • I have an ipod nano 5th generation. the problem with it's that it doesn't show in itunes when connected to the laptop and it switches on on its own and songs start playing the battery gets consumed too fast after full charge. what is the actual problem?

    i have an ipod nano 5th generation. the problem with it's that it doesn't show in itunes when connected to the laptop and it switches on on its own and songs start playing the battery gets consumed too fast after full charge. what is the actual problem?

    What have you tried so far in terms of troubleshooting this issue?  Are you plugging the iPod into a high powered USB 2.0 port on the back of your PC? Have you tried a different USB cable?
    What happens if you try to reset the device with it still connected to the PC?
    How to reset iPod
    Has this iPod ever worked on this PC or is this the first time you have time you have tried connecting it?
    Have you carefully worked through each and every single suggestion in this Apple support document?
    iPod not recognized in 'My Computer' and in iTunes for Windows
    B-rock

  • Problem with viewing a rented movie. Whem I try playing it I get a message saying my apple tv is not authorized.

    Problem with viewing a rented movie. Whem I try playing it I get a message saying my apple tv is not authorized.

    is this a rental from the Apple TV or one you have in iTunes. If from the Apple TV try restarting the Apple TV, if from iTunes, try de/re-authorising your account.

  • I downloaded album and half of the songs dont play can i get a refund

    i downloaded emeli sande's album and the sng do not play can i get a refund if i can how?

    Welcome to the Apple Community.
    Try deleting the problematic file (electing to remove original file if/when prompted) and then re-downloading the file from the iTunes store.
    You can re-download content purchased from the iTunes store (availability varies depending on location) using the purchased option from the Quick Links section in the top right corner of the iTunes homepage in your iTunes application on your computer.
    You can re-download content purchased from the iTunes store (availability varies depending on location) using the purchased option at the bottom of the screen of the iTunes app (or video app) on your iOS device.
    If the problem re-occurs, select the content which is causing a problem and use the 'Report a problem' button in Your Purchase History using your computer.

  • I can download ok but when I try to Play movie I get error -42110

    I can download ok but when I try to Play movie I get error -42110, can anyone explain why and how to resolve? I have restarted my machine and all installations are up to date

    From iTunes: Advanced iTunes Store troubleshooting - Apple Support :
    "Error 3001,"  "-42110," or "5103"
    This alert is related to iTunes Store movie rentals and authorization issues.
    Make sure you are using the most recent version of iTunes and QuickTime. They both can be downloaded free of charge.
    If your iTunes is up to date, remove the SC Info folder.

  • Since my update, when I try to view videos(rather I already owned or just rented from iTunes) the movie starts playing then I get a pop up can't download view. I've reset my settings, still not working.

    Since my update, when I try to view videos(rather I already owned or just rented from iTunes) the movie starts playing then I get a pop up can't download view. I've reset my settings, still not working.

    You said:
    We still couldn't get it to stop timing out. I tried to download the firmware from iClarified but iTunes said it didn't recognise the software.
    Just what did yo do to gt iTunes to see the download:

Maybe you are looking for

  • Error while creating Supplier Contact through API

    Hi, I am not able to create supplier contact through an API: ap_vendor_pub_pkg.create_vendor_contact The return status (x_return_status)from the API is 'U' and x_msg_data is 'FND'. Please help with your suggestions ! Thanks, Sambit

  • Error message when uploading - need help to fix

    I am getting this error message when uploading to ftp host: ﷯Error: Error uploading file master_a-master.css. Click Resume to try again. If this problem persists, try again later. [421 Idle timeout (600 seconds): closing control connection] how do I

  • Crystal Report Best Practice Question

    Hello All; I have got a task regarding parameter passing to Crystal Report via Crystal Report, I would like to find best way to achieve it. Imagine that I have got parameterized and non reports-parameterized. I am developing a report manager that wil

  • DP91- Resource Related Billing

    Dear Gurus, Need help on below requirement its more about split billing during the week... if single week comes under 2 months ( first two days under one month and remaining days under next month ) then DP91 should create two billing requests for eac

  • Question about opening project in newer version of flash

    I have a few FLA files I made under Flash 10. When I try to open them in CS5, I get an error message saying it's incompatible because CS5 doesn't support sliders or documents. My guess is that the FLAs have a slider or two in them. Has anyone run int