Generation of images of the map

Hi,
Some images of my map, are created with a box gray with a button to close. This seldom occurs and for a few levels of zoom.
After I clear the cache of the level of zoom they are generated successfully.
Is there as detect situation in the application?
Thank you.

Any help would be appreciated. I'm sorry I don't know much about how the classpath works and how data is loaded upon running a program, I've been raised in the safe environment of IDE's and buttons to click to run my programs.. :) Then you need to read the applicable class/classpath documentation here:
[http://java.sun.com/javase/6/docs/technotes/tools/index.html#general]
and this:
http://java.sun.com/javase/6/docs/technotes/guides/lang/resources.html

Similar Messages

  • HT5557 Can I add an interactive map as a widget? So I can zoom in and out of the map pin?

    I would like to add an interactive map as a widget to my ibook photos to show where the photo was taken. Is this possible or will I have to add a cropped image of the map?

    Perhaps this will help:
    iBooks Author: About HTML widget creation
    Regards.

  • Displaying images in the JavaHelp Viewer

    I have developed a small help system which works, but images are not displayed in the JavaHelp viewer. They are displayed when I load the .html file into a browser.
    All images are collected into an .images file, and are referenced there. The Map entries for each image resembles the Map entries in the sample, but I believe that none of the images within that directory are being displayed by the javahelp system.
    Directory layout in eclipse is:
    <pre>
    <project>
    &brvbar;
    +----help
    &brvbar; &brvbar;
    &brvbar; +-images
    &brvbar; &brvbar;
    &brvbar; +-prj.hs
    &brvbar; &brvbar;
    &brvbar; +-prj.html
    &brvbar; &brvbar;
    &brvbar; +-prjMap.jhm
    &brvbar; &brvbar;
    &brvbar; +-prjTOC.xml
    &brvbar; &brvbar;
    </pre>
    Sample image declaration from Map file: <mapID target="SuccessWin1"
    url="images/Successwin1.png"/>
    When executing in the eclipse IDE, I copy all friles from the help directory to the bin directory so it is in the classpath. When building the .jar, all files from help, and images are placed directly at the first level of the jar so that the '...="images/..."' reference in the Map will succeed. Yet it does not.
    Many thanks for any suggestions.

    I have developed a small help system which works, but images are not displayed in the JavaHelp viewer. They are displayed when I load the .html file into a browser.
    All images are collected into an .images file, and are referenced there. The Map entries for each image resembles the Map entries in the sample, but I believe that none of the images within that directory are being displayed by the javahelp system.
    Directory layout in eclipse is:
    <pre>
    <project>
    &brvbar;
    +----help
    &brvbar; &brvbar;
    &brvbar; +-images
    &brvbar; &brvbar;
    &brvbar; +-prj.hs
    &brvbar; &brvbar;
    &brvbar; +-prj.html
    &brvbar; &brvbar;
    &brvbar; +-prjMap.jhm
    &brvbar; &brvbar;
    &brvbar; +-prjTOC.xml
    &brvbar; &brvbar;
    </pre>
    Sample image declaration from Map file: <mapID target="SuccessWin1"
    url="images/Successwin1.png"/>
    When executing in the eclipse IDE, I copy all friles from the help directory to the bin directory so it is in the classpath. When building the .jar, all files from help, and images are placed directly at the first level of the jar so that the '...="images/..."' reference in the Map will succeed. Yet it does not.
    Many thanks for any suggestions.

  • I have a 2nd generation iPod that only displays an image of the cord, and an arrow to connect to iTunes. I've done this and it says it needs to be restored. Tried that but I get an error: 1611.  Any suggestions?

    I have a 2nd generation iPod that won't do anything but display the Apple logo for a brief second then an image of the cord suggesting it should be connected to iTunes. I tried to restore it via iTunes but I get an Error: 1611. It does nothing else.  I tried turning off using both buttons...nothing. Any suggestions?

    Error 1611: This error may indicate a hardware issue with your device. Follow the steps in this article. Alsoattempt to restore while connected with a known-good 30-pin Dock Connector cable, computer, and network to isolate this issue to the device. The MAC address being missing or the IMEI being the default value (00 499901 064000 0) can also confirm a hardware issue. Out-of-date or incorrectly configured proxy or security software, such as FoxyProxy, can cause error 1611. To troubleshoot third-party security software, follow these steps.
    Above from:
    http://support.apple.com/kb/TS3694#error1611
    Note it could be a hardware problem

  • Change the mapping generation code from sql*loader to pl/sql

    I want to use a mapping with a flat file operator to generate pl/sql code even if a mapping generate sql*loader code as default.
    I tried to change the Language generation property of the mapping but an API8548 error message is shown. The suggested solution by OWB is to change the language generation code in the property inspector of the mapping.
    I can't use external table because I have to work with a remote machine.
    What i have to do to change the generation code from SQL*Loader to PL/SQL?

    How about breaking this out into 2 mappings? In the first mapping, map a flat file operator to an table using SQL*Loader code. Then define a second mapping using the table as source and therefore generate PL/SQL. Then use process flow to launch the 2nd map to run after completion of first.

  • TS4006 My Apple iPod Touch 4th Generation was stolen if the thief signed out of my iCloud account on the device will it go away on the web map on my computer and keep me from locking it remotely?

    My Apple iPod Touch 4th Generation was stolen if the thief signed out of my iCloud account on the device will it go away on the web map on my computer and keep me from locking it remotely? I was asking my grandmother who works in apple tech support at at&t but she didnt know. so im hoping somebody will come by and say yes to my question because my iPod touch is still appearing in my iCloud.com account.

    Yes. If it was signed out from iCloud, it will disappear from the Devices list in Find my iPhone.

  • Can we save satellite images from the Apple ios Maps app?

    The Apple Maps app has a more recent image of my property than Google: I'd therefore like to save the satellite image to file. Is this possible?
    The only option I can find is the 'Print' command, but this just prints the Standard map without any satellite imagery.
    As an alternative, can we view Apple's maps on a standard browser, e.g. Safari ?

    You can do a screen capture of the Maps display. Just press the On/Off and Home buttons at the same time (briefly) and you will hear a click. The image can be seen in the photos App.

  • Overlapped polygon boundaries of the map image shows wrong colors.

    On using mapviewer getMapImageURL function to create gif,png image, the overlapped polygon boundaries of the map image generated shows different colors compared to the map window . Please help me on this.

    Can you post example images someplace for us to look at?
    Also are you using the java or javascript api?

  • What will happen to the maps app of my 1st generation iPad once iOS 6 is released?

    My iPad won't be able to upgrade to iOS 6. Will the maps app still get data from Google? Will it be a dead link on my home screen? Or will Apple delete it?

    The Google Maps app is baked into iOS 5, therefore it will stay on your iPad. If you were to buy or upgrade a product with iOS 6 you wouldn't see Google Maps.

  • Help displaying an image using the canvas!!!!!!!!

    Hey guys
    I don't know whether I am not grasping some concepts well.I have been going mad trying to get the code working
    Here is the code
    import javax.microedition.midlet.*;
    import javax.microedition.lcdui.*;
    import java.io.*;
    * @author Administrator
    * @version
    public class MyMIDlet extends javax.microedition.midlet.MIDlet implements CommandListener{
    private Display display;
    private MyCanvas canvas;
    private Command exitcommand = new Command("Exit",Command.SCREEN,1);
    private Image source;
    public MyMIDlet() {
    protected void startApp() throws MIDletStateChangeException{
    if (display == null){
    initMIDlet();
    protected void pauseApp() {
    protected void destroyApp(boolean unconditional)throws MIDletStateChangeException {
    exitMIDlet();
    public void commandAction(Command c, Displayable d) {
    if (c == exitcommand){
    exitMIDlet();
    protected void initMIDlet() {
    display = Display.getDisplay(this);
    canvas = new MyCanvas(this);
    System.err.println("Canvas instiated succesfully");
    canvas.addCommand(exitcommand);
    canvas.setCommandListener(this);
    display.setCurrent(canvas);
    public void exitMIDlet() {
    notifyDestroyed();
    import javax.microedition.lcdui.*;
    import javax.microedition.midlet.*;
    import java.io.*;
    public class MyCanvas extends Canvas implements Runnable {
    private MIDlet midlet;
    private Image offscreen;
    private Image currentimage;
    private Graphics g;
    //MID profile application
    /** Creates a new instance of MyCanvas */
    public MyCanvas(MIDlet midlet) {
    this.midlet = midlet;
    try{
    currentimage = Image.createImage("/bird0.png");
    }catch(IOException e){
    System.err.println(e.getMessage());
    if (currentimage!= null){
    System.err.println("Image create successfully");
    }else{
    System.err.println("Image not created");
    try{
    Thread t = new Thread(this);
    t.start();
    }catch(Execption e){}
    protected void paint(Graphics g){
    Graphics saved = g;
    int x = getWidth();
    int y = getHeight();
    g.setColor(255,255,255);
    g.drawImage(currentimage,x,y,g.TOP|g.VCENTER);
    public void run() {
    repaint();
    I know for a fact that the Canvas class 's paint method is called by the system and not the application. This poses a problem for me because I am not sure how to pass the image to the piant method, so that it can be painted.
    When I run the program(using J2ME wtk04), this is the outcome.
    Image created succesfully
    Canvas instiatiated successfully
    null
    Here are my questions
    1) when is the paint method precisely called by the system?after a reference to the canvas class is created?
    2) is it wise to create the image when instiating the canvas class?( initially created the image using a separate thread)-when sould the image be created?
    3)how to let the application know when to use the image when painting the display area?
    I am just trying the logistics here. It is very crucial to me to understand the bolts of this as the core f my project fouses on the man machine interface development.(For the project, the cilent application is quering for the map using HTTP)
    I use a png file of size 161 bytes. Is that too big for testing purposes.
    I would all the help that I can get. thanks in advance

    1) when is the paint method precisely called by the system?after a reference to the canvas class is created?
    After the canvas is set as the current display, and after that, after the repaint() is called.
    2) is it wise to create the image when instiating the canvas class?( initially created the image using a separate thread)-when sould the image be created?
    It's better to create the image in the very begining of the program e.g. in the midlet initialization. You can call the created image as often as you like later on
    3)how to let the application know when to use the image when painting the display area?
    you have to tell it :))
    you can use if-then, switch, or anything else
    and you can use clipping too

  • Jquery zoom plugin that shows images above the zoomed image on mouse rollover

    Hi all, after much effort and help from this forum I've managed to get a zoom effect to work on my image. It needed to be a loupe effect like this - http://www.dailycoding.com/Posts/imagelens__a_jquery_plugin_for_lens_effect_image_zooming. aspx
    This is the plugin I've used.
    Problem now is that I need images to appear above the image on mouse rollover. Currently - if I place images above this image and place my cursor over the image the zoom effect works but it ignores the images placed on top and just zooms in on the image shown below.
    I would be very appreciative of anyone who can help me with this issue.
    Thanks.
    I wondered if it was possible to stop the jquery zoom plugin working when I mouseover the image on top of the map. Maybe that would be a solution?

    > the image I have above the roll over I have just
    > inserted shows the image that should be shown when I
    roll over the image I
    > have
    > just inserted
    url address please. words will not work for this.
    random guess- check that the name and/or ID of every item on
    the page is
    unique.
    Alan
    Adobe Community Expert, dreamweaver
    http://www.adobe.com/communities/experts/

  • Problem in drawing image on the fly using jsp

    I have been searching the forum and web for the problem but in vain. I have wrote a jsp which creates an image on the fly from the data selected from the database. But after the image is drawn, it throws an IllegalStateException. The offending code is at the time of releasePageContext() method of the compiled jsp. I am using the following code in jsp to display the image.
    BufferedImage bi = obj.getBufferedImage();
    javax.imageio.ImageIO.write(bi,"png",response.getOutputStream());
    I even tried to do the same with servlet, but the problem is that when I am using forward action in jsp I am getting the image but the control is in the servlet and if I am including the servlet, I am getting junk characters instead of image. I have set the content type in servlet and also in jsp.
    Thank you in advance.

    Hi all,
    I've developed a web application using glassfish server... my database is postgresql.... i try to generate a report using Jasper Reports.... i've succesfully developed the report template..... My problem when ever i try to generate a report it gets the data from the back end.... and throws the following error.....
    StandardWrapperValve[jsp]: Servlet.service() for servlet jsp threw exception
    java.lang.IllegalStateException: getOutputStream() has already been called for this response
    at org.apache.coyote.tomcat5.CoyoteResponse.getWriter(CoyoteResponse.java:652)
    at org.apache.coyote.tomcat5.CoyoteResponseFacade.getWriter(CoyoteResponseFacade.java:196)
    at org.apache.jasper.runtime.JspWriterImpl.initOut(JspWriterImpl.java:149)
    at org.apache.jasper.runtime.JspWriterImpl.flushBuffer(JspWriterImpl.java:142)
    at org.apache.jasper.runtime.PageContextImpl.release(PageContextImpl.java:216)
    at org.apache.jasper.runtime.JspFactoryImpl.internalReleasePageContext(JspFactoryImpl.java:134)
    at org.apache.jasper.runtime.JspFactoryImpl.releasePageContext(JspFactoryImpl.java:89)
    at org.apache.jsp.GenerateBirthCertificate_jsp._jspService(GenerateBirthCertificate_jsp.java:149)
    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:111)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:353)
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:409)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:317)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
    at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:397)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:278)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:536)
    at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:240)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:179)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
    at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:73)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:182)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
    at com.sun.enterprise.web.VirtualServerPipeline.invoke(VirtualServerPipeline.java:120)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:137)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:536)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
    at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:231)
    at com.sun.enterprise.web.connector.grizzly.ProcessorTask.invokeAdapter(ProcessorTask.java:667)
    at com.sun.enterprise.web.connector.grizzly.ProcessorTask.processNonBlocked(ProcessorTask.java:574)
    at com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:844)
    at com.sun.enterprise.web.connector.grizzly.ReadTask.executeProcessorTask(ReadTask.java:287)
    at com.sun.enterprise.web.connector.grizzly.ReadTask.doTask(ReadTask.java:212)
    at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:252)
    at com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThread.java:75)
    i've written my code in jsp.... My code is....
    <%@page contentType="text/html"%>
    <%@page pageEncoding="UTF-8"%>
    <%@ page language="java" import="java.io.*, net.sf.jasperreports.engine.*, java.sql.*, java.util.*" %>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>CDAC Portal</title>
    </head>
    <body>
    <%
    try {
    Connection con=null;
    String query="";
    String regNo="";
    regNo=request.getParameter("regNo");
    regNo = regNo.toUpperCase();
    out.println("Registration No :"+regNo);
    Class.forName("org.postgresql.Driver");
    con = DriverManager.getConnection("jdbc:postgresql://192.168.31.79:5432/Municipality","postgres","");
    System.out.println("connected succefully");
    ServletContext context = this.getServletConfig().getServletContext();
    File reportFile = new File(context.getRealPath("/reports/birth_cert.jasper"));
    query="select * from birth_details where regn_unit='"+regNo+"'";
    Map parameters = new HashMap();
    parameters.put("regNo",""+regNo);
    parameters.put("query",""+query);
    byte[] bytes = null;
    try {               
    bytes = JasperRunManager.runReportToPdf(reportFile.getPath(), parameters, con);
    response.setContentType("application/pdf");
    response.setContentLength(bytes.length);
    ServletOutputStream ouputStream = response.getOutputStream();
    ouputStream.write(bytes, 0, bytes.length);
    ouputStream.flush();
    ouputStream.close();
    } catch (JRException e) {
    System.out.println("Error : "+e);
    con.close();
    } catch(Exception exc) {
    System.out.println("Connection pool error :"+exc.toString());
    %>
    </body>
    </html>
    can anyone help me hw to solve this problem....
    Thanks in advance
    R Vijay,
    Project Engineer,
    CDAC, Chennai.
    India
    [email protected]
    [email protected]

  • How to display an image on the HTML page by using applet

    Dear friends,
    I am now writing an java applet, I want to display an image on the HTML page, and tried the following commands:
    {color:#ff00ff}{color:#000000}Image map; //put in the class definition
    map=getImage(getCodeBase(),"hhh.gif"); //put in the function of init()
    g.drawImage(map,0,300,this); //put in the function of paint(){color}
    {color}
    However, when I run it, the image wasn't displayed at all.
    I hope who guys ever come across this problem could help me to solve it. Thank you in advance!
    Hawaii

    Hi,
    I am no expert on Images
    but
    from personal exp.
    are you sure that map actually contains the image?
    try using
    ImageIcon ii = ImageIcon(String name);
    map = ii.getImage();I saw a tutorial on images i think on sun
    where they use ImageIcon to load the image

  • Is it possible to use an image as the "base" of a mapviewer?

    Hi,
    I am trying to use a jpg image as the "base" of a mapviewer. After Insert the image, I create a "georaster theme" for it. Then, I create a "base map" by using the georaster theme created in the previous step. Up till now, both "georaster theme" and "base map" can be preview normally. After that, I create a "title layer" by using the "base map" which I created. However, only a write rectangle shown up when I preview the "title layer".
    So, I wonder it is possible to make a map by using an image as it base? If yes, would you mind telling me how to make it done. And, what value should I input for the following parameter:
    a) When I import an image in mapbuilder:
    1) Top X coordinate , Top Y coordinate
    2) X resolution, Y resolution
    b) When I make a title layer:
    1) Max X , Min X, Max Y, Min Y
    2) Zoom in scale (Once I zoom in the image, the image is gone?? It's very strange)
    Here's the property of that image:
    Dimension = 288 * 175
    Width = 288 pixels
    Height = 175 pixels
    Horizontal resolution = 72 dpi
    Vertical resolution = 72 dpi

    iMacs late 2009 or newer can be used in Target display
    mode.  Any older, no can do.
    The only other way is via network Screen Sharing or
    some otherVPN network like solution.  The issue here
    though is that video performance will be pretty severely
    hampered.

  • JAVA, sqlserver - Need to load an image from the sql server database

    hi,
    I need to load an image from the sql server database using java. I have connected to the database and getting all other records except the records for a photo (datatype = LONGVARBINARY) and Remarks (datatype = LONGVARCHAR).
    I am using java and sql server db. The photo and remarks are stored in the db. and i need to show the image and the remarks fetching them from there.
    I get the error :
    Thread-9 org.hibernate.MappingException: No Dialect mapping for JDBC type: -1
    How can I achieve this?
    Thanks,
    Gargi

    Exactly. And are you using MySQL?
    No. You are using Microsoft SQL server if I have to believe your initial post. A quick google tells me that the dialect class to use is:
    org.hibernate.dialect.SQLServerDialect

Maybe you are looking for

  • 2nd MBP has messed up my home network--help please

    I have a linksys wireless router. I have a MBP 1.83 gz and my MBP 2.2 GZ just arrived today. I turned them both on, both will get onto my wireless network (which is WEP protected) and then after two or three minutes neither computer can go online. In

  • Gmail: Mails sent to myself are marked as READ when using IMAP -how to fix?

    I just started using IMAP with my Gmail account and Apple Mail. But when I send an e-mail to myself (from my imap account to my imap account), the e-mail will of course go to my inbox but it will be marked as read. I don't have the option to "mark as

  • PDF Output Issue

    Hi All , I am facing a strange issue in PDF output format. When I preview PDF output i am seeing some special character like *0E-00001111232* . The actual value should be *$ 2,343,500*. When ever i face this issue immediately if i download and upload

  • Location of mapes stored that are created in Import Manager

    Hi SDNers, I need to delete some maps that I have created in MDM Import Manager, can you please tell me where are the stored in the MDM Repository or server? Please Guide, Gautam Purohit.

  • Credit card template numbers

    I'm looking for a numbers template that works like a budget sheet and amortization table for credit cards. Anyone have one or suggest one?