Basic error troubleshooting

I am posting as a newbie trying to understand the programming errors I am creating in my code. I posted last week concerning an error message I was receiving in a simple program I was creating while trying to learn from the "Learning Java" book. Everyone was very helpful then. I have another programming error I am attempting to understand and would appreciate any help you guys can provide.
In my current project I have an error message that states "<identifyer> expected". This is occurring at the end of my code at this line:
   Synchronized private Color currentColor() {
        return someColors[colorIndex];
    }Here is the complete program:
* HelloJava3.java
* Created on February 2, 2007, 3:57 PM
* To change this template, choose Tools | Template Manager
* and open the template in the editor.
package hellojava3;
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
* @author singraham
public class HelloJava3 {
     * Creates a new instance of HelloJava3
    public HelloJava3() {
     * @param args the command line arguments
    public static void main(String[] args) {
        JFrame frame = new JFrame("HelloJava2");
        frame.getContentPane().add(new HelloComponent2("Hello, Java!"));
        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        frame.setSize(300, 300);
        frame.setVisible(true);
class HelloComponent3 extends JComponent
        implements MouseMotionListener, ActionListener
    String theMessage;
    int messageX = 125, messageY = 95; // Coordinates of the message
    JButton theButton;
    int colorIndex;  // Current index into someColors
    static Color[] someColors = {
        Color.black, Color.red, Color.green, Color.blue, Color.magenta };
    publick HelloComponent3(String message) {
        theMessage = message;
        theButton = new JButton("Change Color");
        setLayout(new FlowLayout());
        add(theButton);
        theButton.addActionListener(this);
        addMouseMotionListener(this);
    public void paintComponent(Graphics g) {
        g.drawString(theMessage, messageX, messageY);
    public void mouseDragged(MouseEvent e) {
        messageX = e.getX();
        messageY = e.getY();
        repaint();
    public void mouseMoved(MouseEvent e) {
    public void actionPerformed(ActionEvent e) {
        // Did somebody push our button?
        if (e.getSource() == theButton)
            changeColor();
    synchronized private void changeColor() {
        // Change the index to the next color, awkwardly.
        if (++colorIndex == someColors.length)
            colorIndex = 0;
        setForeground(currentColor()); // Use the new color.
        repaint();
    Synchronized private Color currentColor() {
        return someColors[colorIndex];
}I have been reading where this error is an indicator that there is a missing { or } somewhere above where this error is occurring. I am really going blind trying to see such an omission but I cannot see any missing brackets. I have counted and recounted and to the best of my knowledge I have matched all opening brackets { with a closing bracket } yet this error is still present.
Can anyone point out what I obviously am missing? Is there a simple way to track down some of these beginning errors or is there a way as a newbie to format the code when I create it so I can minimize the chances of these basic errors? I am using NetBeans 5.5 to write these programs and am not too adept at using that program yet either. I would appreciate any comments anyone may have.
Thanks,
Steve

int colorIndex;As far as I see you do not initialize it. Initialize
it, in your constructor, to the index corresponding
to the initial foreground color.Oh, ok I understand what you are saying. I am working through the O'Reilley "Learning Java" book. This program is one of the programs from Chapter 2. I have been pretty much typing what the book has been telling me to type without knowing too much about why I am doing it. I am not sure why they did not want me to "initialize" the color as you say. I am sure when I get into some more of the later chapters they will explain this in more detail.
Thanks,
Steve

Similar Messages

  • How can I get localized Error messages for basic errors ?

    I'm running JDK 1.6
    and I wrote :
    Locale.setDefault(Locale.CANADA_FRENCH);
                    try
                    java.io.File f = new java.io.File("c:/temp/xxnonexistentx");
                    byte aa[] = new byte[2];
                    java.io.FileInputStream fis = new java.io.FileInputStream(f);
                    fis.read(aa);
                    fis.close();
                    catch (Exception e)
                        System.err.println(" Err " + e.getLocalizedMessage());
            }And I get
    Err c:\temp\xxx (The system cannot find the file specified)why do I always get the US English error message. This is really a basic error, why does it seem that there is no localized version in French ?
    I also tried with
            Locale.setDefault(Locale.GERMAN);But I always get English �ber Alles !
    WHY ?

    As a developper I prefer my error messages in my
    langage. .NET does it (if I want), I like it. Do you
    know that O'Reilly & Flanagan Java reference book
    (1500 pages) in French sells very well in France ?
    Not so much the English version.As I said, I sympathize to some extent. With this part, yes.
    End-users do see some error messages (this file not
    found is an example), you want, me and all other
    people, to translate this type of messages in how
    many languages, each separately, over and over ?If I'm an end-user I don't want to see Java error messages. Or if I must, I only want to see them in the context of "This error message occurred, please pass it on to the technical support people when you call them". So, given that, I don't care if the system only produces German messages. This part I don't sympathize with.

  • AS2 Seeburger error troubleshooting

    Hi,
    I just would like to ask if anybody knows how to troubleshoot errors on AS2 Seeburger.  We usually have the below errors in the Seeburger Monitor:
    - Error on send, will not be retried     Could not send ansynchrone MDN to partner!
    - Error on receive, task will not be retried     Cannot initiate received message to backend system AND max retry reached!
    - Error on receive, task will not be retried      Could not send ansynchrone MDN to partner - url not set!
    - Initiation to Backend Pending                    Could not send ansynchrone MDN to partner!
    - MIC error
    Do you happen to have materials about Seeburger which shows how to resolve and prevent such issues?  I also need to get the root cause of these issues, can you kindly help me identify the actions I need to take to get to the root cause?
    I look forward to hearing form you.
    Kind regards,
    Grace

    - Error on send, will not be retried Could not send ansynchrone MDN to partner!
       1. Tell Business partner to not to request MDN when  they send document to you.
       2. check the authentication certificate in your sender agreement
    - Error on receive, task will not be retried Cannot initiate received message to backend system AND max retry reached!
       1.Sender might be using wrong certificate.
    - Error on receive, task will not be retried Could not send ansynchrone MDN to partner - url not set!
      same like first answer
    - Initiation to Backend Pending Could not send ansynchrone MDN to partner!
    same like like first answer
    - MIC error
    valide sender is not identified, check the AS2 id and certifcates

  • Windows Media Player Error; Troubleshooting Error

    Question #1
    When I try to play music in windows Media Player I get the following message:
    Windows Media Player cannot play the file because there is a problem with your sound device.  There might not be a sound device installed on your computer, it might be in use by another program, or it might not be functioning properly.
    The sound was working about a week ago, and I do have IDT High Definition Audio CODEC driver on my laptop. 
    Question @2
    When I run any Troubleshooting program I get the following error code:
    Pkg ID: AudioPlaybackDiagnostics  (This varies depending on what I'm troubleshooting)
    Path: Unknown (This varies)
    Error Code:  0x8E5E0247  (This error code is always the same)
    Source:  Engine
    User: Leyna-PC\Leyna
    Context:  Elevated  (This is usually restricted)

    Hi Mike,
    Try the following.
    Download the IDT Audio installer on the link below and save it to your Downloads folder.
    http://ftp.hp.com/pub/softpaq/sp63501-64000/sp63555.exe
    When done, open windows Control Panel, open Device Manager and open up Sound, Video and Game Controllers.  Right click the IDT device and select Uninstall - you should also get a prompt to remove the current driver, tick the box to allow this and then proceed with the uninstall.
    When done, download and reinstall the Chipset driver on the link below.
    Chipset Driver - Windows 8.1
    When complete, shut down the notebook by holding down the Shift key as you click Shutdown to temporrily prevent a hybrid boot.
    Start the notebook and let Windows fully load - it will automatically load an audio driver, but just let this complete.  Then open your Downloads folder, right click on the IDT installer and select 'Run as Administrator' to start the installation.  When this has completed, right click the speaker icon in the Taskbar and select Playback Devices.  Left click 'Speakers and Headphones' once to highlight it and then click the Set Default button - restart the notebook and try playing the mp3 file.
    Regards,
    DP-K
    ****Click the White thumb to say thanks****
    ****Please mark Accept As Solution if it solves your problem****
    ****I don't work for HP****
    Microsoft MVP - Windows Experience

  • Partition error, troubleshooting has been unsuccessful.

    Like many before me, whenever I attempt to partition my hard drive using boot camp, I recieve the "Files cannot be moved" error message. After troubleshooting online for a couple of days, I'm still nowhere. I've download iDefrag and defragmented the disk, and have removed any large files that could have caused the error, yet, I still get the same message when I try and partition my HD again. I don't see any point in reformatting the disk like the error message asks as my HD is already in the extended journaled version, and I already defragmented the disk.
    What else can I do? Is there some other benefit to reformatting the disk that I'm unaware of? I'll admit that my computer knowledge is limited, but I do consider myself somewhat useful.
    For reference, I'm using a Macbook Pro 2011, 8gb ram, 750gb HD, running Lion.
    Reponses are very much appreciated. Options that don't include reinstalling the OS would be great, but I know that it might be the only option at this point...

    Shrink the partition then try
    The error and reason to erase and restore - preferably from a clone - is to consolidate ALL free space into one contiguous chunk.
    iDefrag works best when run from and booted from another hard drive where it is free to work, not from the same. IOW, boot from your backup clone. And the #1 step is to backup before doing anything.
    I prefer to have bootable backups in addition to any other type backup.
    Multiple sets, redundant, and so if a drive or one set fails, if TimeMachine dies I have another set.
    Before Lion the user had to insure that they had an emergency boot partition to perform repairs and mainteance, or use a DVD which is limited, older version, or use fsck and Safe Boot.
    Shrink
    Repair
    Resize again to extend the partition
    Personally I like to do the above knowing I have bootable backup, doing it from another drive rather than "pick yourself up by your own bootstraps"
    Some methods work for some but not 100% and consistent for everyone.
    They are all just tools and techniques.
    Cloning - superduper, carbon copy cloner, Clone X 4, etc
    defrag programs like iDefrag and iPartition
    Shrinking partition
    Repair the boot drive (from your Lion Recovery )
    Paragon CampTune 9.5.x also ($19, resizes partition between Windows and Mac also)

  • Portal runtime error troubleshooting

    Does anyone know what this error is or what logs you would look at to troubleshoot it?\
    Thanks
    Portal Runtime Error
    An exception occurred while processing a request for :
    iView : pcd:portal_content/com.sap.portal.migrated/ep_5.0/roles/com.sap.pct.hcm.manager/mystaff/nf_2/reporting/reporting/com.sap.pct.hcm.rpt_objectselection
    Component Name : com.sap.pct.hcm.rpt_objectselection.default
    The exception was logged. Inform your system administrator..
    Exception id: 03:34_16/09/04_0018
    See the details for the exception ID in the log file

    Try the console logs of the application server failing ( if you are in a clustered environment write javascript:document.cookie in the IE address bar to get the cookies you have, and from here you can get the cluster id from the cookie sapj2ee*).
    The console logs are under cluster/server/managers/console_logs

  • Basic CSS Troubleshooting commands

    What are some basic troubleshooting commands to look for items such as how many users on a content vip, how many users are using the services for a vip - are the services truly balanced, other items concerning utilization of the content & services, utlization of the CSS as a whole.
    Thank You,
    Drew

    A few to add
    sh rule-summary -- To check the Content Statistics. No of connections
    Find ip address -- Displays configuration lines with real IP address
    * Does not work for Virutual IP
    Show log sys.log tail XX -- To check the log
    XX: No. of lines
    llama --Debug mode (use caution)

  • I am getting a basic error in AppletPanel.

    Hello Friends,
    I am new to Java3D. Was surfing the web to find out a way as how to have a map of a city in 3d view and came across this code by a certain Mr. Daniel Selman... I am pasting his code as well as the error i am getting when i am trying to run it using eclipse...
    Copyright (C) 2001   Daniel Selman
    First distributed with the book "Java 3D Programming"
    by Daniel Selman and published by Manning Publications.
    http://manning.com/selman
    This program is free software; you can redistribute it and/or
    modify it under the terms of the GNU General Public License
    as published by the Free Software Foundation, version 2.
    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.
    The license can be found on the WWW at:
    http://www.fsf.org/copyleft/gpl.html
    Or by writing to:
    Free Software Foundation, Inc.,
    59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
    Authors can be contacted at:
    Daniel Selman: [email protected]
    If you make changes you think others would like, please
    contact one of the authors or someone at the
    www.j3d.org web site.
    * This example creates a 3D fly-over of the city of Boston. The viewer is
    * animated using a RotPosScaleTCBSplinePathInterpolator as well as 3
    * helicopters. The example uses PointSounds attached to the helicopters to
    * generate 3D spatial audio.
    import java.applet.Applet;
    import java.awt.BorderLayout;
    import java.awt.Color;
    import java.awt.Component;
    import java.awt.Dimension;
    import java.awt.Frame;
    import java.awt.GraphicsConfigTemplate;
    import java.awt.GraphicsDevice;
    import java.awt.GraphicsEnvironment;
    import java.awt.image.BufferedImage;
    import java.io.File;
    import java.io.InputStream;
    import java.net.URL;
    import java.util.Enumeration;
    import java.util.Vector;
    import javax.media.j3d.Alpha;
    import javax.media.j3d.Appearance;
    import javax.media.j3d.AudioDevice;
    import javax.media.j3d.Background;
    import javax.media.j3d.BackgroundSound;
    import javax.media.j3d.Behavior;
    import javax.media.j3d.BoundingSphere;
    import javax.media.j3d.Bounds;
    import javax.media.j3d.BranchGroup;
    import javax.media.j3d.Canvas3D;
    import javax.media.j3d.ColoringAttributes;
    import javax.media.j3d.DistanceLOD;
    import javax.media.j3d.GeometryArray;
    import javax.media.j3d.GraphicsConfigTemplate3D;
    import javax.media.j3d.Group;
    import javax.media.j3d.ImageComponent2D;
    import javax.media.j3d.Locale;
    import javax.media.j3d.MediaContainer;
    import javax.media.j3d.Node;
    import javax.media.j3d.PhysicalBody;
    import javax.media.j3d.PhysicalEnvironment;
    import javax.media.j3d.PointSound;
    import javax.media.j3d.QuadArray;
    import javax.media.j3d.Shape3D;
    import javax.media.j3d.Sound;
    import javax.media.j3d.Switch;
    import javax.media.j3d.Texture;
    import javax.media.j3d.Transform3D;
    import javax.media.j3d.TransformGroup;
    import javax.media.j3d.View;
    import javax.media.j3d.ViewPlatform;
    import javax.media.j3d.VirtualUniverse;
    import javax.media.j3d.WakeupCondition;
    import javax.media.j3d.WakeupCriterion;
    import javax.media.j3d.WakeupOnCollisionEntry;
    import javax.media.j3d.WakeupOnCollisionExit;
    import javax.media.j3d.WakeupOr;
    import javax.swing.JButton;
    import javax.swing.JPanel;
    import javax.swing.JSlider;
    import javax.swing.event.ChangeEvent;
    import javax.swing.event.ChangeListener;
    import javax.vecmath.Color3f;
    import javax.vecmath.Point2f;
    import javax.vecmath.Point3d;
    import javax.vecmath.Point3f;
    import javax.vecmath.Quat4f;
    import javax.vecmath.Vector3d;
    import javax.vecmath.Vector3f;
    import javax.vecmath.Vector4f;
    import com.sun.j3d.audioengines.javasound.JavaSoundMixer;
    import com.sun.j3d.loaders.Scene;
    import com.sun.j3d.loaders.objectfile.ObjectFile;
    import com.sun.j3d.utils.applet.MainFrame;
    import com.sun.j3d.utils.behaviors.interpolators.RotPosScaleTCBSplinePathInterpolator;
    import com.sun.j3d.utils.behaviors.interpolators.TCBKeyFrame;
    import com.sun.j3d.utils.geometry.Primitive;
    import com.sun.j3d.utils.geometry.Sphere;
    import com.sun.j3d.utils.image.TextureLoader;
    * This example uses a Spline Interpolator to animate a fly-over the city of
    * Boston. The city is rendered using satellite images with a Level of Detail
    * behavior. The scene includes a number of moving helicopters, each with an
    * associated sound.
    public class SplineInterpolatorTest extends Java3dApplet {
      // size of the 3D window - enlage on powerful systems
      private static int m_kWidth = 200;
      private static int m_kHeight = 200;
      // a shared appearance for the buildings we create
      private Appearance m_BuildingAppearance = null;
      // the size of the high resolution "world".
      // the world is centered at 0,0,0 and extends
      // to +- LAND_WIDTH in the x direction and
      //+- LAND_LENGTH in the z direction.
      // These dimensions are loosely based on pixel
      // coordinates from the texture images
      private static final float LAND_WIDTH = 180;
      private static final float LAND_LENGTH = 180;
      // the satellite images used as textures have
      // been manually edited so that the water in the
      // images corresponds to the following RGB values.
      // this allows the application to avoid creating
      // buildings in the water!
      private static final float WATER_COLOR_RED = 0;
      private static final float WATER_COLOR_GREEN = 57;
      private static final float WATER_COLOR_BLUE = 123;
      public SplineInterpolatorTest() {
        initJava3d();
      // scale eveything so we can use pixel coordinates
      protected double getScale() {
        return 0.1;
      protected int getCanvas3dWidth(Canvas3D c3d) {
        return m_kWidth;
      protected int getCanvas3dHeight(Canvas3D c3d) {
        return m_kHeight;
      protected Bounds createApplicationBounds() {
        m_ApplicationBounds = new BoundingSphere(new Point3d(0.0, 0.0, 0.0),
            10.0);
        return m_ApplicationBounds;
      // we want a texture mapped background of a sky
      protected Background createBackground() {
        // add the sky backdrop
        Background back = new Background();
        back.setApplicationBounds(getApplicationBounds());
        BranchGroup bgGeometry = new BranchGroup();
        // create an appearance and assign the texture image
        Appearance app = new Appearance();
        Texture tex = new TextureLoader("sky.gif", this).getTexture();
        app.setTexture(tex);
        Sphere sphere = new Sphere(1.0f, Primitive.GENERATE_TEXTURE_COORDS
            | Primitive.GENERATE_NORMALS_INWARD, app);
        bgGeometry.addChild(sphere);
        back.setGeometry(bgGeometry);
        return back;
      // this controls how close to a helicopter we can
      // be and still hear it. If the helicopters sound
      // scheduling bounds intersect our ViewPlatformActivationRadius
      // the sound of the helicopter is potentially audible.
      protected float getViewPlatformActivationRadius() {
        return 20;
      // creates the objects within our world
      protected BranchGroup createSceneBranchGroup() {
        BranchGroup objRoot = super.createSceneBranchGroup();
        // create a root TG in case we need to scale the scene
        TransformGroup objTrans = new TransformGroup();
        objTrans.setCapability(TransformGroup.ALLOW_TRANSFORM_WRITE);
        objTrans.setCapability(TransformGroup.ALLOW_TRANSFORM_READ);
        Transform3D t3d = new Transform3D();
        objTrans.setTransform(t3d);
        Group hiResGroup = createLodLand(objTrans);
        createBuildings(objTrans);
        createHelicopters(objTrans);
        // connect
        objRoot.addChild(objTrans);
        return objRoot;
      // we create 2 TransformGroups above the ViewPlatform:
      // the first merely applies a scale, while the second
      // has a RotPosScaleTCBSplinePathInterpolator attached
      // so that the viewer of the scene is animated along
      // a spline curve.
      public TransformGroup[] getViewTransformGroupArray() {
        TransformGroup[] tgArray = new TransformGroup[2];
        tgArray[0] = new TransformGroup();
        tgArray[1] = new TransformGroup();
        Transform3D t3d = new Transform3D();
        t3d.setScale(getScale());
        t3d.invert();
        tgArray[0].setTransform(t3d);
        // create an Alpha object for the Interpolator
        Alpha alpha = new Alpha(-1, Alpha.INCREASING_ENABLE
            | Alpha.DECREASING_ENABLE, 0, 0, 25000, 4000, 100, 20000, 5000,
            50);
        // ensure the Interpolator can access the TG
        tgArray[1].setCapability(TransformGroup.ALLOW_TRANSFORM_WRITE);
        try {
          // create the Interpolator and load the keyframes from disk
          RotPosScaleTCBSplinePathInterpolator splineInterpolator = Utils
              .createSplinePathInterpolator(new UiAlpha(alpha),
                  tgArray[1], new Transform3D(), new URL(
                      getWorkingDirectory(),
                      "rotate_viewer_spline.xls"));
          // set the scheduling bounds and attach to the scenegraph
          splineInterpolator.setSchedulingBounds(getApplicationBounds());
          tgArray[1].addChild(splineInterpolator);
        } catch (Exception e) {
          System.err.println(e.toString());
        return tgArray;
      // overidden so that the example can use audio
      protected AudioDevice createAudioDevice(PhysicalEnvironment pe) {
        return new JavaSoundMixer(pe);
      // creates a Switch group that contains two versions
      // of the world - the first is a high resolution version,
      // the second if a lower resolution version.
      public Group createLodLand(Group g) {
        Switch switchNode = new Switch();
        switchNode.setCapability(Switch.ALLOW_SWITCH_WRITE);
        Group hiResGroup = createLand(switchNode);
        createEnvirons(switchNode);
        // create a DistanceLOD that will select the child of
        // the Switch node based on distance. Here we are selecting
        // child 0 (high res) if we are closer than 180 units to
        // 0,0,0 and child 1 (low res) otherwise.
        float[] distanceArray = { 180 };
        DistanceLOD distanceLod = new DistanceLOD(distanceArray);
        distanceLod.setSchedulingBounds(getApplicationBounds());
        distanceLod.addSwitch(switchNode);
        g.addChild(distanceLod);
        g.addChild(switchNode);
        return hiResGroup;
      // creates a high resolution representation of the world.
      // a single texture mapped square and a larger (water colored)
      // square to act as a horizon.
      public Group createLand(Group g) {
        Land land = new Land(this, g, ComplexObject.GEOMETRY
            | ComplexObject.TEXTURE);
        Group hiResGroup = land.createObject(new Appearance(), new Vector3d(),
            new Vector3d(LAND_WIDTH, 1, LAND_LENGTH), "boston.gif", null,
            null);
        Appearance app = new Appearance();
        app.setColoringAttributes(new ColoringAttributes(
            WATER_COLOR_RED / 255f, WATER_COLOR_GREEN / 255f,
            WATER_COLOR_BLUE / 255f, ColoringAttributes.FASTEST));
        Land base = new Land(this, hiResGroup, ComplexObject.GEOMETRY);
        base.createObject(app, new Vector3d(0, -5, 0), new Vector3d(
            4 * LAND_WIDTH, 1, 4 * LAND_LENGTH), null, null, null);
        return hiResGroup;
      // creates a low resolution version of the world and
      // applies the low resolution satellite image
      public Group createEnvirons(Group g) {
        Land environs = new Land(this, g, ComplexObject.GEOMETRY
            | ComplexObject.TEXTURE);
        return environs.createObject(new Appearance(), new Vector3d(),
            new Vector3d(2 * LAND_WIDTH, 1, 2 * LAND_LENGTH),
            "environs.gif", null, null);
      // returns true if the given x,z location in the world
      // corresponds to water in the satellite image
      protected boolean isLocationWater(BufferedImage image, float posX,
          float posZ) {
        Color color = null;
        float imageWidth = image.getWidth();
        float imageHeight = image.getHeight();
        // range from 0 to 1
        float nPixelX = (posX + LAND_WIDTH) / (2 * LAND_WIDTH);
        float nPixelY = (posZ + LAND_LENGTH) / (2 * LAND_LENGTH);
        // rescale
        nPixelX *= imageWidth;
        nPixelY *= imageHeight;
        if (nPixelX >= 0 && nPixelX < imageWidth && nPixelY >= 0
            && nPixelY < imageHeight) {
          color = new Color(image.getRGB((int) nPixelX, (int) nPixelY));
          return (color.getBlue() >= WATER_COLOR_BLUE
              && color.getGreen() <= WATER_COLOR_GREEN && color.getRed() <= WATER_COLOR_RED);
        return false;
      // creates up to 120 building objects - ensures that
      // buildings are not positioned over water.
      public Group createBuildings(Group g) {
        m_BuildingAppearance = new Appearance();
        BranchGroup bg = new BranchGroup();
        Texture tex = new TextureLoader("boston.gif", this).getTexture();
        BufferedImage image = ((ImageComponent2D) tex.getImage(0)).getImage();
        final int nMaxBuildings = 120;
        for (int n = 0; n < nMaxBuildings; n++) {
          Cuboid building = new Cuboid(this, bg, ComplexObject.GEOMETRY
              | ComplexObject.TEXTURE);
          float posX = (int) Utils.getRandomNumber(0, LAND_WIDTH);
          float posZ = (int) Utils.getRandomNumber(0, LAND_LENGTH);
          if (isLocationWater(image, posX, posZ) == false) {
            building.createObject(m_BuildingAppearance, new Vector3d(posX,
                0, posZ), new Vector3d(Utils.getRandomNumber(3, 2),
                Utils.getRandomNumber(8, 7), Utils
                    .getRandomNumber(3, 2)), "house.gif", null,
                null);
        g.addChild(bg);
        return bg;
      // creates three helicopters
      public void createHelicopters(Group g) {
        for (int n = 0; n < 3; n++)
          createHelicopter(g);
      // edit the positions of the clipping
      // planes so we don't clip on the front
      // plane prematurely
      protected double getBackClipDistance() {
        return 50.0;
      protected double getFrontClipDistance() {
        return 0.1;
      // creates a single helicopter object
      public Group createHelicopter(Group g) {
        BranchGroup bg = new BranchGroup();
        Helicopter heli = new Helicopter(this, bg, ComplexObject.GEOMETRY
            | ComplexObject.SOUND);
        heli.createObject(new Appearance(), new Vector3d(Utils.getRandomNumber(
            0, LAND_WIDTH), Utils.getRandomNumber(15, 5), Utils
            .getRandomNumber(0, LAND_LENGTH)), new Vector3d(10, 10, 10),
            null, "heli.wav", null);
        g.addChild(bg);
        return bg;
      public static void main(String[] args) {
        SplineInterpolatorTest splineInterpolatorTest = new SplineInterpolatorTest();
        splineInterpolatorTest.saveCommandLineArguments(args);
        new MainFrame(splineInterpolatorTest, m_kWidth, m_kHeight);
    * Copyright (C) 2001 Daniel Selman
    * First distributed with the book "Java 3D Programming" by Daniel Selman and
    * published by Manning Publications. http://manning.com/selman
    * This program is free software; you can redistribute it and/or modify it under
    * the terms of the GNU General Public License as published by the Free Software
    * Foundation, version 2.
    * This program is distributed in the hope that it will be useful, but WITHOUT
    * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
    * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
    * details.
    * The license can be found on the WWW at: http://www.fsf.org/copyleft/gpl.html
    * Or by writing to: Free Software Foundation, Inc., 59 Temple Place - Suite
    * 330, Boston, MA 02111-1307, USA.
    * Authors can be contacted at: Daniel Selman: [email protected]
    * If you make changes you think others would like, please contact one of the
    * authors or someone at the www.j3d.org web site.
    * Java3dApplet
    * Base class for defining a Java 3D applet. Contains some useful methods for
    * defining views and scenegraphs etc.
    * @author Daniel Selman
    * @version 1.0
    abstract class Java3dApplet extends Applet {
      public static int m_kWidth = 300;
      public static int m_kHeight = 300;
      protected String[] m_szCommandLineArray = null;
      protected VirtualUniverse m_Universe = null;
      protected BranchGroup m_SceneBranchGroup = null;
      protected Bounds m_ApplicationBounds = null;
      //  protected com.tornadolabs.j3dtree.Java3dTree m_Java3dTree = null;
      public Java3dApplet() {
      public boolean isApplet() {
        try {
          System.getProperty("user.dir");
          System.out.println("Running as Application.");
          return false;
        } catch (Exception e) {
        System.out.println("Running as Applet.");
        return true;
      public URL getWorkingDirectory() throws java.net.MalformedURLException {
        URL url = null;
        try {
          File file = new File(System.getProperty("user.dir"));
          System.out.println("Running as Application:");
          System.out.println("   " + file.toURL());
          return file.toURL();
        } catch (Exception e) {
        System.out.println("Running as Applet:");
        System.out.println("   " + getCodeBase());
        return getCodeBase();
      public VirtualUniverse getVirtualUniverse() {
        return m_Universe;
      //public com.tornadolabs.j3dtree.Java3dTree getJ3dTree() {
      //return m_Java3dTree;
      public Locale getFirstLocale() {
        java.util.Enumeration e = m_Universe.getAllLocales();
        if (e.hasMoreElements() != false)
          return (Locale) e.nextElement();
        return null;
      protected Bounds getApplicationBounds() {
        if (m_ApplicationBounds == null)
          m_ApplicationBounds = createApplicationBounds();
        return m_ApplicationBounds;
      protected Bounds createApplicationBounds() {
        m_ApplicationBounds = new BoundingSphere(new Point3d(0.0, 0.0, 0.0),
            100.0);
        return m_ApplicationBounds;
      protected Background createBackground() {
        Background back = new Background(new Color3f(0.9f, 0.9f, 0.9f));
        back.setApplicationBounds(createApplicationBounds());
        return back;
      public void initJava3d() {
        //  m_Java3dTree = new com.tornadolabs.j3dtree.Java3dTree();
        m_Universe = createVirtualUniverse();
        Locale locale = createLocale(m_Universe);
        BranchGroup sceneBranchGroup = createSceneBranchGroup();
        ViewPlatform vp = createViewPlatform();
        BranchGroup viewBranchGroup = createViewBranchGroup(
            getViewTransformGroupArray(), vp);
        createView(vp);
        Background background = createBackground();
        if (background != null)
          sceneBranchGroup.addChild(background);
        //    m_Java3dTree.recursiveApplyCapability(sceneBranchGroup);
        //  m_Java3dTree.recursiveApplyCapability(viewBranchGroup);
        locale.addBranchGraph(sceneBranchGroup);
        addViewBranchGroup(locale, viewBranchGroup);
        onDoneInit();
      protected void onDoneInit() {
        //  m_Java3dTree.updateNodes(m_Universe);
      protected double getScale() {
        return 1.0;
      public TransformGroup[] getViewTransformGroupArray() {
        TransformGroup[] tgArray = new TransformGroup[1];
        tgArray[0] = new TransformGroup();
        // move the camera BACK a little...
        // note that we have to invert the matrix as
        // we are moving the viewer
        Transform3D t3d = new Transform3D();
        t3d.setScale(getScale());
        t3d.setTranslation(new Vector3d(0.0, 0.0, -20.0));
        t3d.invert();
        tgArray[0].setTransform(t3d);
        return tgArray;
      protected void addViewBranchGroup(Locale locale, BranchGroup bg) {
        locale.addBranchGraph(bg);
      protected Locale createLocale(VirtualUniverse u) {
        return new Locale(u);
      protected BranchGroup createSceneBranchGroup() {
        m_SceneBranchGroup = new BranchGroup();
        return m_SceneBranchGroup;
      protected View createView(ViewPlatform vp) {
        View view = new View();
        PhysicalBody pb = createPhysicalBody();
        PhysicalEnvironment pe = createPhysicalEnvironment();
        AudioDevice audioDevice = createAudioDevice(pe);
        if (audioDevice != null) {
          pe.setAudioDevice(audioDevice);
          audioDevice.initialize();
        view.setPhysicalEnvironment(pe);
        view.setPhysicalBody(pb);
        if (vp != null)
          view.attachViewPlatform(vp);
        view.setBackClipDistance(getBackClipDistance());
        view.setFrontClipDistance(getFrontClipDistance());
        Canvas3D c3d = createCanvas3D();
        view.addCanvas3D(c3d);
        addCanvas3D(c3d);
        return view;
      protected PhysicalBody createPhysicalBody() {
        return new PhysicalBody();
      protected AudioDevice createAudioDevice(PhysicalEnvironment pe) {
        JavaSoundMixer javaSoundMixer = new JavaSoundMixer(pe);
        if (javaSoundMixer == null)
          System.out.println("create of audiodevice failed");
        return javaSoundMixer;
      protected PhysicalEnvironment createPhysicalEnvironment() {
        return new PhysicalEnvironment();
      protected float getViewPlatformActivationRadius() {
        return 100;
      protected ViewPlatform createViewPlatform() {
        ViewPlatform vp = new ViewPlatform();
        vp.setViewAttachPolicy(View.RELATIVE_TO_FIELD_OF_VIEW);
        vp.setActivationRadius(getViewPlatformActivationRadius());
        return vp;
      protected Canvas3D createCanvas3D() {
        GraphicsConfigTemplate3D gc3D = new GraphicsConfigTemplate3D();
        gc3D.setSceneAntialiasing(GraphicsConfigTemplate.PREFERRED);
        GraphicsDevice gd[] = GraphicsEnvironment.getLocalGraphicsEnvironment()
            .getScreenDevices();
        Canvas3D c3d = new Canvas3D(gd[0].getBestConfiguration(gc3D));
        c3d.setSize(getCanvas3dWidth(c3d), getCanvas3dHeight(c3d));
        return c3d;
      protected int getCanvas3dWidth(Canvas3D c3d) {
        return m_kWidth;
      protected int getCanvas3dHeight(Canvas3D c3d) {
        return m_kHeight;
      protected double getBackClipDistance() {
        return 100.0;
      protected double getFrontClipDistance() {
        return 1.0;
      protected BranchGroup createViewBranchGroup(TransformGroup[] tgArray,
          ViewPlatform vp) {
        BranchGroup vpBranchGroup = new BranchGroup();
        if (tgArray != null && tgArray.length > 0) {
          Group parentGroup = vpBranchGroup;
          TransformGroup curTg = null;
          for (int n = 0; n < tgArray.length; n++) {
            curTg = tgArray[n];
            parentGroup.addChild(curTg);
            parentGroup = curTg;
          tgArray[tgArray.length - 1].addChild(vp);
        } else
          vpBranchGroup.addChild(vp);
        return vpBranchGroup;
      protected void addCanvas3D(Canvas3D c3d) {
        setLayout(new BorderLayout());
        add(c3d, BorderLayout.CENTER);
        doLayout();
      protected VirtualUniverse createVirtualUniverse() {
        return new VirtualUniverse();
      protected void saveCommandLineArguments(String[] szArgs) {
        m_szCommandLineArray = szArgs;
      protected String[] getCommandLineArguments() {
        return m_szCommandLineArray;
    * Utils
    * @author Daniel Selman
    * @version 1.0
    class Utils {
      // convert an angular rotation about an axis to a Quaternion
      static Quat4f createQuaternionFromAxisAndAngle(Vector3d axis, double angle) {
        double sin_a = Math.sin(angle / 2);
        double cos_a = Math.cos(angle / 2);
        // use a vector so we can call normalize
        Vector4f q = new Vector4f();
        q.x = (float) (axis.x * sin_a);
        q.y = (float) (axis.y * sin_a);
        q.z = (float) (axis.z * sin_a);
        q.w = (float) cos_a;
        // It is necessary to normalise the quaternion
        // in case any values are very close to zero.
        q.normalize();
        // convert to a Quat4f and return
        return new Quat4f(q);
      // convert three rotations about the Euler axes to a Quaternion
      static Quat4f createQuaternionFromEuler(double angleX, double angleY,
          double angleZ) {
        // simply call createQuaternionFromAxisAndAngle
        // for each axis and multiply the results
        Quat4f qx = createQuaternionFromAxisAndAngle(new Vector3d(1, 0, 0),
            angleX);
        Quat4f qy = createQuaternionFromAxisAndAngle(new Vector3d(0, 1, 0),
            angleY);
        Quat4f qz = createQuaternionFromAxisAndAngle(new Vector3d(0, 0, 1),
            angleZ);
        // qx = qx * qy
        qx.mul(qy);
        // qx = qx * qz
        qx.mul(qz);
        return qx;
      static public double getRandomNumber(double basis, double random) {
        return basis + ((float) Math.random() * random * 2f) - (random);
      static public double getRandomNumber(double basis, double random,
          double scale) {
        double value = basis + ((float) Math.random() * random * 2f) - (random);
        return value * scale;
      static public StringBuffer readFile(URL urlFile) {
        // allocate a temporary buffer to store the input file
        StringBuffer szBufferData = new StringBuffer();
        Vector keyFramesVector = new Vector();
        try {
          InputStream inputStream = urlFile.openStream();
          int nChar = 0;
          // read the entire file into the StringBuffer
          while (true) {
            nChar = inputStream.read();
            // if we have not hit the end of file
            // add the character to the StringBuffer
            if (nChar != -1)
              szBufferData.append((char) nChar);
            else
              // EOF
              break;
          inputStream.close();
        } catch (Exception e) {
          System.err.println(e.toString());
          return null;
        return szBufferData;
      static public RotPosScaleTCBSplinePathInterpolator createSplinePathInterpolator(
          Alpha alpha, TransformGroup tg, Transform3D axis, URL urlKeyframes) {
        TCBKeyFrame[] keyFrames = readKeyFrames(urlKeyframes);
        if (keyFrames != null)
          return new RotPosScaleTCBSplinePathInterpolator(alpha, tg, axis,
              keyFrames);
        return null;
      static public TCBKeyFrame[] readKeyFrames(URL urlKeyframes) {
        StringBuffer szBufferData = readFile(urlKeyframes);
        if (szBufferData == null)
          return null;
        Vector keyFramesVector = new Vector();
        // create a tokenizer to tokenize the input file at whitespace
        java.util.StringTokenizer tokenizer = new java.util.StringTokenizer(
            szBufferData.toString());
        // each keyframe is defined as follows
        // - knot (0 >= k <= 1)
        // - position (x,y,z)
        // - rotation (rx,ry,rz)
        // - scale (x,y,z)
        // - tension (-1 >= t <= 1)
        // - continuity (-1 >= c <= 1)
        // - bias (-1 >= b <= 1)
        // - linear (int - 0 or 1)
        while (true) {
          try {
            float knot = Float.parseFloat(tokenizer.nextToken());
            float posX = Float.parseFloat(tokenizer.nextToken());
            float posY = Float.parseFloat(tokenizer.nextToken());
            float posZ = Float.parseFloat(tokenizer.nextToken());
            float rotX = Float.parseFloat(tokenizer.nextToken());
            float rotY = Float.parseFloat(tokenizer.nextToken());
            float rotZ = Float.parseFloat(tokenizer.nextToken());
            float scaleX = Float.parseFloat(tokenizer.nextToken());
            float scaleY = Float.parseFloat(tokenizer.nextToken());
            float scaleZ = Float.parseFloat(tokenizer.nextToken());
            float tension = Float.parseFloat(tokenizer.nextToken());
            float continuity = Float.parseFloat(tokenizer.nextToken());
            float bias = Float.parseFloat(tokenizer.nextToken());
            int linear = Integer.parseInt(tokenizer.nextToken());
            TCBKeyFrame keyframe = new TCBKeyFrame(knot, linear,
                new Point3f(posX, posY, posZ),
                createQuaternionFromEuler(rotX, rotY, rotZ),
                new Point3f(scaleX, scaleY, scaleZ), tension,
                continuity, bias);
            keyFramesVector.add(keyframe);
          } catch (Exception e) {
            break;
        // create the return structure and populate
        TCBKeyFrame[] keysReturn = new TCBKeyFrame[keyFramesVector.size()];
        for (int n = 0; n < keysReturn.length; n++)
          keysReturn[n] = (TCBKeyFrame) keyFramesVector.get(n);
        // return the array
        return keysReturn;
    //this class defines an Alpha class that returns a random
    //value every N milliseconds.
    class UiAlpha extends Alpha implements ChangeListener {
      protected Alpha m_Alpha = null;
      protected float m_AlphaValue = 0.5f;
      JButton m_Button = null;
      boolean m_bAuto = true;
      public UiAlpha(Alpha alpha) {
        m_Alpha = alpha;
        Frame frame = new Frame("Alpha Control Panel");
        JPanel panel = new JPanel();
        frame.add(panel);
        addUiToPanel(panel);
        frame.pack();
        frame.setSize(new Dimension(400, 80));
        frame.validate();
        frame.setVisible(true);
      protected void addUiToPanel(JPanel panel) {
        JSlider slider = new JSlider();
        slider.addChangeListener(this);
        panel.add(slider);
        m_Button = new JButton("Auto");
        m_Button.addChangeListener(this);
        panel.add(m_Button);
      public void stateChanged(ChangeEvent e) {
        if (e.getSource() instanceof JSlider) {
          m_AlphaValue = ((JSlider) e.getSource()).getValue() / 100.0f;
          m_bAuto = false;
        } else {
          m_bAuto = true;
      // core method override
      // returns the Alpha value for a given time
      public float value(long time) {
        if (m_bAuto == true)
          return m_Alpha.value(time);
        return m_AlphaValue;
    class Land extends ComplexObject {
      public static final float WIDTH = 1.0f;
      public static final float LENGTH = 1.0f;
      public static final float HEIGHT = 0.0f;
      public Land(Component comp, Group g, int nFlags) {
        super(comp, g, nFlags);
      protected Group createGeometryGroup(Appearance app, Vector3d position,
          Vector3d scale, String szTextureFile, String szSoundFile) {
        int nFlags = GeometryArray.COORDINATES | GeometryArray.NORMALS;
        if ((m_nFlags & TEXTURE) == TEXTURE)
          nFlags |= Geom                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            

    If this is not your document class, since button1 is not created within the class, there is nothing provided to reference it as an external object.  You need to pass in a reference to it.

  • "Need Help" link no longer exists for developer error troubleshooting

    I am completing the "Contact Management" tutorial--which is quite well documented, I must say--and have discovered that the old Interakt Collection had links pop up to diagnose possible solutions to error messages. These have been surreptitiously deleted--thanks a lot, Adobe--with no update in the documentation... What a fantastic idea, though, and a wonderful way to pinpoint problems for learning developers (such as myself)... Ah well, too bad...

    Incidentally, what has become of this resource? Even in archived form, it could prove to be an invaluable aid...

  • Adobe Digital Edition Errors/Troubleshooting

    When installing Adobe Digital Editions, I  received a corruption error message."
    This occurs because the installation software coming from  Adobe's Web site is unable to communicate and pass information through  your companies Firewall or PC security to save to the computer, or there  is potential that your network is "locked down" limiting the  accessibility on the PC to install or uninstall software.
    Resolution: http://www.naic.org/documents/account_manager_ADE_Install_Assistance.pdf
    "I'm having problems opening my  electronic documents."
    The Electronic documents cannot be opened by Adobe Reader,  they can only be used with Adobe Digital Editions. Be sure that Adobe  Digital Editions was successfully installed and the File type  associations are set correctly for your machine.
    Resolution: http://www.naic.org/documents/account_manager_ADE_File_Type_Vista.pdf
                       http://www.naic.org/documents/account_manager_ADE_File_Type_WinXP.pdf
    "I downloaded my publication but now can  not access it in Adobe Digital Editions."
    You may have "Authorized Computer" after initially downloading  Adobe Digital Editions as "Do Not Authorize". The publication you  downloaded is licensed for a different user account and can not be  opened under your authorized ID.
    Resolution: Uninstall Adobe Digital Editions and  reinstall. Do not authorize the computer, then contact an NAIC  Representative to assist you in obtaining your publication.
    If you are getting error "E_ADEPT_REQUEST_EXPIRED http://adeactivate.adobe.com/adept/Activate 2010-04-11T06:51:59-07:00%20(1270993919000)%20is%20before%202010-08-11T06:21:57-07:00%20( 1281532917795)"
    Resolution: Please check your system date and time is set correctly, most likely it will fix problem.
    "I am getting the error 'Error getting  License: License server communication problem:  E_LIC_ALREADY_FULFILLED_BY_ANOTHER_USER' when opening Adobe Digital  Editions."
    This error message is a result of a several different issues:
    User has installed an Adobe ID on more than one machine
    User has modified the clocks on their computer
    User has modified their account from a "Do Not Authorize" to  an "Adobe Activated ID"
    User has uninstalled and re-installed Adobe Digital  Editions, but the installation is not being completely removed from the  computer.
    Resolution: Follow these steps:
    Uninstall Adobe Digital Editions using one of these two  methods:
    Start > Programs > Adobe > Adobe Digital Editions  > Uninstall
    Start > Settings > Control Panel > Add Remove  Programs
    Initiate Uninstall
    In order to remove all remnants of Adobe Digital Editions /  Adobe Adept from the machine a "Registry Edit" will need to be  performed:Start > Run > Regedit
    Search for HKEY_CURRENT_USER > Software > Adobe >  Adept and Delete the full "Adept" folder
    Remove only the structures that are under the "SOFTWARE"  extensions. This will remove the Adobe ID / License and Activation Keys
    Clear any outstanding tasks that may be associated to Adobe  Digital Editions downloads
    C:\data\my digital editions
    C:\my documents\my digital editions
    Delete any documents within these folders:
    Restore > Tasks
    Restore > Failed
    Re-install Adobe Digital Editions
    Ebook associated with different user account:
    You will need to work with their publisher tech support to get a new .acsm file/download link which has not yet been associated with a particular user and then activate your computer with the new Adobe ID. Please refer to the below forum link, if that helps.
    http://forums.adobe.com/thread/544883?tstart=0
    "I need to deactivate my Adobe  Digital Editions ID/Password."
    Resolution: Follow these steps to remove the Adobe  Digital Editions ID/Password:
    Open Adobe Digital Editions
    Press CTRL+SHIFT+D (Win) and CMD+SHIFT+D (Mac)
    Deauthorize Computer screen will appear explaining – "Are  you sure you want to deauthorize this computer? If you have protected  items in your Digital Editions library, they may no longer be readable."
    Select Deauthorize
    After selecting "Deauthorize" – a message appears stating  "Your computer was successfully deauthorized. Restarting Adobe Editions  will require you to reactivate your computer."
    Click on "Quit"
    Adobe Digital Editions will close
    Double-click on the Adobe Digital Editions shortcut to  reopen.
    The Setup Assistant will appear, click "Continue"
    Select the option "Don’t Authorize Computer"
    Click "Activate"
    Click Continue at the "Warning" screen
    Select the option "Finished"
    Open Adobe Digital Editions - Previous products downloaded  should now be available. If items are not or an E-LIC error is  identified, a "uninstall" and "reinstall" may be required
    Authorizing your ereader with ADE
    In most cases you can register your ereader quickly and simply. IF the following instructions do not work, please contact our ereader manufacturer directly.
    1. Connect your ereader to your computer.
    2. The ADE Authorize Device  window will pop up. [On rare occasions where the pop up does not happen automatically, please try pressing CTRL + SHIFT + E after connecting your ereader.]
    3. Click on Authorize Device.
    4. ADE should now recognize your ereader, and will list it within the “Bookshelves” area of the ADE window.
    Note: Nook readers come with an Adobe ADE type directory preinstalled. It MUST be deleted from the Nook before ADE will recognize the Nook. Delete the directory from the Nook. Fire up ADE and everything works perfectly!
    For error: "E_ACT_TOO_MANY_ACTIVATIONS http://adeactivate.adobe.com/adept/Activate 552:8552:8552 urn:uuid:5268ee4f-5511-4b47-b668-f42b089db9c0"
    Resolution: Open a ticket from Adobe Support Portal and request to reset the ADE activation limit (happens when you try to activate the device/computer more then 6 times). Include the error message and the Adobe ID used to activate ADE.
    Ctrl+shift+T will enable error logging and can be used to find the issue with the complicated errors by Adobe specialist.
    If you get error: E_AUTH_FAILED http://adeactivate.adobe.com/adept/SignInDirect email address
    Resolution: Try signing in at Adobe.com and confirm the Adobe ID is working fine. If the Adobe ID is not certified it will show this error.
    Further help with ADE
    Adobe have an excellent FAQ page which should point you in the right direction;
    www.adobe.com/products/digitaleditions/faq  (press F1 in ADE)
    Note: There is no free Live Support for the free products but you can open a ticket at Adobe Support portal.

    Set your Computer to work with our eBook provider
    1.  Download and install Adobe Digital Editions. This software requires  Flash.
    2. Open up Adobe Digital Editions. It will ask you to activate  your software with an Adobe ID.
    3. If you create an Adobe ID:
    a.  You may download the book to more than one computer as long as the  computers all
    use the same Adobe ID. (Up to 6 computers can be  activated using one Adobe ID.)
    b. You can transfer your eBooks only  to Nooks that are using the same Adobe ID.
    4. If you decide to  continue anonymously:
    a. You will not be able to transfer eBooks to  your Nook!
    b. You may only download to one computer.
    c. You can  activate an Adobe ID at any time. However, you may lose the rights to  see any
    eBooks that were downloaded previously.
    5. We recommend  that you create an Adobe ID. Follow the steps to do so.
    6. Activate  your Nook by plugging it into your computer with Adobe Digital Editions  open.
    7. Adobe Digital Editions will detect your Nook and ask to  activate it using the same Adobe ID as
    your copy of Adobe Digital  Editions. Follow the prompts. (It may take a few minutes for Digital
    Editions  to see your Nook.)
    Getting your eBook on  to your Nook
    1. Open up Adobe Digital Editions.
    2. Plug in your Nook. If you have not previously set it up, Adobe   Digital Editions will ask to register
    your Nook using the same Adobe  ID as your Digital Editions.
    3. Your Nook will appear on the left  under Bookshelves.
    4. To transfer your eBook to the Nook, click on  your previously  downloaded eBooks and drag them
    to the Nook icon.  The book will transfer.
    5. Unplug your Nook.
    6. To find your new  eBook, go to My Library.
    7. On the touch screen, scroll up until  you see My Documents.
    8. Your new book will be in My Documents.
    9. Enjoy!

  • Too large error troubleshooting jdev10.1.3.3- jhs10.3.2.52

    Hi, how are you? I have in my jheadstart application definitiion cases where one detail or detail-detail group has list of values, when I run the application I take the following error: •     Error: code segment of method _jspService(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse) too large
    , then I set the generate groups in region file- generate search area in region file properties- generate and run the application , but I cannot open the detail groups or both the list of values in master groups. Then I uncheck these properties and run again but sometimes I take again the above too large error, which prevents me from running the application. i' ve heard that if one buys the jheadstart license can have access to one patch that faces the too large problem successfully, we have the jheadstart license by oracle, could you inform about any possible solution that could solve this problem?

    Yes, if you have a JHeadstart license, you can download the latest 10.1.3.3 release from cso.oracle.com.
    Can you download this version and see whether it solves your problem?
    Steven Davelaar,
    JHeadstart team.

  • C5240 error troubleshooting

    I have a c5240 all in one.  It shows the flashing exclamation mark to alert a problem.  Message reads....Print Cartridges...Refer to printer documentation.   What the heck does that mean.  Can't clear this out and don't want to have to go buy a new printer but may have to.  Help PLEASE.....................

    Hi jones--5
    One possibility is that there's some debris on the cartridge contacts that's preventing good connection with the printer. Try cleaning the contacts as described in step4 in the link below
    http://h10025.www1.hp.com/ewfrf/wc/document?docname=c01611456&tmp_task=solveCategory&lc=en&dlc=en&cc...
    Did that resolve the issue or are you still seeing the error message?
    Kind Regards
    Ciara
    Although I am an HP employee, I am speaking for myself and not for HP.
    Twitter: @Ciara_B_HP

  • Error troubleshooting in AD Module - Get-Aduser w/created filter

    Hi All,
    I'm working as an intern with my university, and I've been tasked with clearing out old student accounts in AD. There are currently over 4000 users in our system, and it's estimated that there are over 3500 old accounts that need to be deleted.
    We are at the 2008 R2 Domain Functional Level.
    I am going to script this through Powershell, but I'm having a terrible time getting a certain query to run properly.
    I am using the following:
    get-aduser -filter {created -lt '1/1/2010' -and lastlogontimestamp -notlike '*'} -properties created
    I will sometimes narrow my query by adding another filter for created -gt '1/1/2008', for instance.
    When I run the command as written, however, it will return several hundred users, but then it spits out the following error after the last displayed result:
    Get-ADUser : The specified method is not supported
    At C:\Users\Administrator.CSC\Desktop\test1.ps1:4 char:15
    + get-aduser <<<< -filter {created -lt '1/1/2010'} -properties created | ft name,samaccountname,created
    + CategoryInfo : NotSpecified: (:) [Get-ADUser], ADException
    + FullyQualifiedErrorId : The specified method is not supported,Microsoft.ActiveDirectory.Management.Commands.GetADUser
    If I narrow my search scope by created date, I can sometimes get the error to not appear. My guess is that there are several accounts in the database that trigger the error (or at least, that's how it appears).
    I have tried running this on both a DC and a non-dc server with server management tools installed. It doesn't matter what other filters are used, so omitting the lastlogontimestamp filter doesn't prevent the error.
    My supervisor seems to think there may be errors in the AD database, but I've done every AD health check I can think of.
    Does anyone have any suggestions?
    Thanks,
    Brandon

    If you have access to Microsoft Connect (I believe you must be an MVP), it would help to vote on this report, as that should help prioritize it.
    You don't need to be a MVP for access to Connect, here's a direct link to the bug report Richard opened:
    https://connect.microsoft.com/PowerShell/feedbackdetail/view/963333/ad-module-cmdlets-raise-error-if-there-are-more-than-256-results
    The command from the report does appear to work for me in v4 (Win7):
    PS C:\> Get-ADUser -Properties Created -Filter "Created -gt '9/1/2014'" | measure
    Count : 260
    I also tested the command that failed in the post above and v3 appears to be working for me as well (WS2012):
    PS C:\> $start = (Get-Date).AddDays(-1)
    PS C:\> get-aduser -filter {modified -gt $start} | measure
    Count : 263
    Perhaps the count needs to be higher to replicate this.
    EDIT: I just created a bunch of new user accounts and I still can't replicate this (v3 on WS2012 again):
    PS C:\> $start = (Get-Date).AddDays(-1)
    PS C:\> get-aduser -filter {modified -gt $start} | measure
    Count : 1803
    EDIT2: DC is WS2008SP2.
    Don't retire TechNet! -
    (Don't give up yet - 13,085+ strong and growing)

  • Probably a basic error.. can't find it

    Hi ! thanks to read it and if you can help.. yeah! hehe. My level: Newbie, but not bad
    Basicaly:
    1. I created a flash animation in Adobe Flash CS5
    2. The swf works just fine in Flash as well as a standalone flash animation!
    The problem:
    1. In Flash Catalyst, i import the swf, but the animation doesn't starts!
    2. When i press CTRL+ENTER to preview my project in FC, the swf doesn't works
    Flash Catalyst works perfectly. I'm talking about my swf only, created in Adobe Flash CS5 and then imported in FC

    Ok! sorry for the delay
    That was a stupid error. We have to ADD an ACTION to start the animation BUT!! I was struggling to find that evidence because the FlashEFF animation starts automaticly... without adding any action. On the other hand, motion tweens doesn't starts automatic so, we have to add an action (start).
    Thanks for your help Chris
    best,
    Max

  • Basic error handling: how to catch all errors in a portion of code (and act accordingly)

    I have a portion of code in a VI that I know is likely to fail at some point (opening a file, then reading two arrays from it: the file can be absent, or contain the wrong data).
    I would like to be able to catch any errors that may occur during this procedure, and if such an error occurs launch a pre-defined action (return a default value, for instance).
    Is there a simple way to do this, in a way similar to the disabling of a portion of code with a Diagram Disable structure ?

    use the "bundle by name" function to set the individual elements of the error cluster to the values you want.
    CLA, LabVIEW Versions 2010-2013

Maybe you are looking for

  • Making loops match up to the tempo

    So I have a live recording that I want to use a drum break from, I can grab the loop and add it to my library but I cant set the tempo cause I don't know what it is. The old garageband I use to be able to adjust the tempo and watch the grid move as t

  • Customer Invoice cancellation with no tax return to customer.

    Hi friends, Please give your expert advice. Requirement is- Need to configure the invoice cancellation against the original invoice and here  don't  want to give taxes back to the customer. So in the accounting docs of the cancellation invoice, tax v

  • Hadeling multiple files in sender and receiver adapter

    Hi , In my sender FTP server multiple files gets created at a same time i want to send this same files to the target FTP server am not doing any file content conversion. Just pick this multiple files at a single poll and drop it in the target FTP sys

  • Mini-display not recognizing any LCD

    I have an IMac 27-inch OS 10.6.7 Intel-based.  I cannot get the Mini-Display port to recognize any LCD screen.  I have two adapters.  One for VGA and the other for DVI.  I have tried two different monitors with the same results. Neither VGA nor DVI w

  • Bar char pareto

    Hi, I want to display a bar chart(not column) that allows a pareto sorting of the  bar values on the Y axis. Any suggestions?