White border problem when zooming with SWF in PDF
Hi Everyone,
I have posted my original querry in the Indesign forum:
http://forums.adobe.com/message/5176893#5176893
I'm having problems with zooming whedn trying to create a PDF with SWF inserted.. at certain levels of zoom I get a white border on the left and right of the document which squashes the content into the middle and makes it a little pixelated. I also get a thin white border on the right when zooming out. Does anyone have any ideas where I might be going wrong?
Thanks,
Em
Not wishing to be rude, but that workflow is not supposed to be used that way.
InDesign's ability to export SWFs is intended for showing the file in a Web page, and Acrobat's ability to embed SWFs is only intended for small annotations placed within the pages of a conventional PDF file. By placing the entire Layout as a SWF you are in effect playing the entire thing as a movie in Flash Player - all the advantages of the PDF format are completely lost, there is no vector-rendering of any content or text, and users will find it very hard to understand what's going on (the navigation buttons in Acrobat or Reader will not work, text is not searchable or accessible, multiple pages cannot be printed, etc.).
It's not entirely trivial to do this 'correctly', as at the moment we don't have full support in the PDF standard for all the interactive features that InDesign can apply to page objects - that's why they are grouped into PDF and non-PDF in the various selection menus in InDesign. Rather than saving as a SWF you should be using Export to Interactive PDF, and ensuring that the various interactive items and media are all selected on the export dialog.
Basic stuff such as links and video will export just fine that way, and the PDF will preserve everything else in the Layout as native text or graphics so it'll look fine, navigate properly and be searchable. Animations and buttons will not work as expected, so you may have to revise their behavior if PDF is your intended output destination.
Similar Messages
-
Problem when zooming in on a PDF in iBooks
In iBooks, when pinching to zoom in on (enlarge) a section of certain PDFs, entire square or rectangular sections of the document go completely black or white, rendering that portion unreadable until I zoom back out. Sometimes, leaving iBooks and then returning fixes the problem, only to resurface on another page of the document. Sometimes nothing fixes it and I just have to quit iBooks and hope it doesn't resurface on next launch. See the screencaps below.
iPad Air 128GB iOS 7.0.4I have this same problem and it's been drving me nuts for months.
Any solutions appreciated, guys. -
My iPhone 5 got problem when connect with lighting cable, this will keep pop up message "this accessory may not be supported", I can't charge or sync at all. I tried plug and unplug many time, still can't detect/charge my iPhone5, but sometime will 'lucky' that can connect to my iTunes and charge battery…
This message will auto pop up also when I don't have plug anything in my iPhone 5, It is very annoying…
The lighting cable is original and now i'm using OS 7.0.4 / iTunes is 11.1.3
What I can do to fix this problem? Thank you.I would try using another cable you can likely borrow one to test from somebody
if it's the same then likely the connector in your iphone have been damaged -
Problem when working with package???Please, help me!!!
I got 3 .java files from one Java tutorial as follow:
Server.java (in package mygame.server)
Utilities.java (in package mygame.shared)
Client.java (in package mygame.client)
All the above files are placed in "E:\Java Programmes\source"
After compiling, i got correspponding .class files:
Server.class (placed in "E:\Java Programmes\class\mygame\server")
Utilities.class (placed in "E:\Java Programmes\class\mygam\shared")
Clients.class (placed in "E:\Java Programmes\class\mygame\client")
But when i run Server.class which contains main method, i got error as follow:
E:\Java Programmes>java class\mygame\server\Server
Exception in thread "main" java.lang.NoClassDefFoundError: class\mygame\server\S
erver (wrong name: mygame/server/Server)
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
That was very puzzled for me. I cannot find out what wrong with my files. Please., any boby, help me!!! I always got this problem when working with package and managing files. Thanls a lot.java -cp "E:\Java Programmes\class" mygame.server.Server
-
Problem when streaming with the CLI flash media encoder 2.5
I have a problem when streaming with Flash Media Encoder 2.5. When I run the GUI, everything works, but when I use the commandline with the same profile I have created using the GUI, it says it can't connect to the server.
I have to use this version of the encoder, because the other is not working with the server, and I have to create a program to remotely control the flash media encoder, so I have to use the CLI. What can i do to go over this problem?
Any help would be really appreciated. Thankyou.First of all, thankyou.
There is no authentication needed. I can't use Flash Live Media Encoder 3 because it is not supported by the people which manages the server i have to connect to.
In fact, I don't know why they dont support it, but that is the way it is.
Through the GUI, i connect directly and without problems, without user/pass.
Thankyou again. -
Nexus 1000V. problem when working with the console VMWare
I have a problem when working with the console VMWare.
Sometimes it is impossible to connect any of the hypervisor to the guest OS managed by them.
I get the message: "Unable connect to the MKS: Host address lookup for server <name of the hypervisor> failed: No such host is known."
This message always appears in conjunction with the reconfiguration of virtual switch: "Reconfigure vNetwork Distributed Switch .... Initiated by Cisco_Nexus_1000V_ ....."
Upon completion of the reconfiguration, Communication console, with guest OS is restored, or on its own or after a reboot srv-vc.
In this time, I do not see any message in Nexus 1000v log.
What is this?
Thanks in advance.Smells of a DNS issue. Are you sure your ESX hosts are reachable from your client via DNS hostname? Try pinging them from a command prompt/terminal. You may have DNS server issues.
As a temp fix, edit your [windowspath]/system32/etc/drivers/hosts file and manually add the ESX host name and IP, then re-test.
Regards,
Robert -
Problem when iterating with JSTL
hi ,
i have occured a problem when iterating with JSTL
althought this error,my application works fine but i would like to know why this error:
ther is my iteration code:
<c:forEach items="#{sWIMmoduleStatistiques.listeModules}" var="m">
<h:panelGroup>
<br>
<div class="connectorChartHeader" onclick="toggleImage('${m.nomChart}');" >
<span class="headerTitle">${m.nom}</span>
</div>
<br><br>
<img src="${m.nomChart}" id="${m.nomChart}" />
</h:panelGroup>
</c:forEach>
the error is:
javax.servlet.jsp.JspTagException: Don't know how to iterate over supplied "items" in <forEach>
at org.apache.taglibs.standard.tag.common.core.ForEachSupport.toForEachIterator(ForEachSupport.java:274)
at org.apache.taglibs.standard.tag.common.core.ForEachSupport.supportedTypeForEachIterator(ForEachSupport.java:238)
at org.apache.taglibs.standard.tag.common.core.ForEachSupport.prepare(ForEachSupport.java:155)
at javax.servlet.jsp.jstl.core.LoopTagSupport.doStartTag(LoopTagSupport.java:256)
at org.apache.jsp.pages.modulesStatistiques_jsp._jspx_meth_c_005fforEach_005f0(modulesStatistiques_jsp.java:434)
at org.apache.jsp.pages.modulesStatistiques_jsp._jspx_meth_h_005fpanelGrid_005f0(modulesStatistiques_jsp.java:399)
at org.apache.jsp.pages.modulesStatistiques_jsp._jspx_meth_f_005fview_005f0(modulesStatistiques_jsp.java:181)
at org.apache.jsp.pages.modulesStatistiques_jsp._jspService(modulesStatistiques_jsp.java:109)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:630)
at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:436)
at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:374)
at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302)
at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:410)
at com.sun.faces.application.ViewHandlerImpl.executePageToBuildView(ViewHandlerImpl.java:473)
at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:141)
at org.ajax4jsf.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:108)
at org.ajax4jsf.application.AjaxViewHandler.renderView(AjaxViewHandler.java:196)
at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:109)
at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:266)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at TimeoutFilter.doFilter(TimeoutFilter.java:60)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:177)
at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:267)
at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:380)
at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:507)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Thread.java:595)that line generated an error:
java.lang.NumberFormatException: For input string: "class"
java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
java.lang.Integer.parseInt(Integer.java:447)
java.lang.Integer.parseInt(Integer.java:497)
javax.el.ListELResolver.coerce(ListELResolver.java:166)
javax.el.ListELResolver.getValue(ListELResolver.java:51)
javax.el.CompositeELResolver.getValue(CompositeELResolver.java:53)
com.sun.faces.el.FacesCompositeELResolver.getValue(FacesCompositeELResolver.java:72)
org.apache.el.parser.AstValue.getValue(AstValue.java:118)
org.apache.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:186)
org.apache.jasper.el.JspValueExpression.getValue(JspValueExpression.java:101)
javax.faces.component.UIOutput.getValue(UIOutput.java:184)
com.sun.faces.renderkit.html_basic.HtmlBasicInputRenderer.getValue(HtmlBasicInputRenderer.java:201)
com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.getCurrentValue(HtmlBasicRenderer.java:284)
com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeEnd(HtmlBasicRenderer.java:154)
javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:861)
javax.faces.component.UIComponent.encodeAll(UIComponent.java:946)
javax.faces.render.Renderer.encodeChildren(Renderer.java:148)
javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:837)
javax.faces.component.UIComponent.encodeAll(UIComponent.java:936)
javax.faces.component.UIComponent.encodeAll(UIComponent.java:942)
com.sun.faces.application.ViewHandlerImpl.doRenderView(ViewHandlerImpl.java:271)
com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:202)
org.ajax4jsf.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:108)
org.ajax4jsf.application.AjaxViewHandler.renderView(AjaxViewHandler.java:196)
com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:109)
com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
javax.faces.webapp.FacesServlet.service(FacesServlet.java:266)
TimeoutFilter.doFilter(TimeoutFilter.java:64)
org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:177)
org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:267)
org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:380)
org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:507) -
If you’re using the paired remote and the Apple TV status light flashes white, the problem isn’t with the remote.
Then what is the problem since I have troubleshoot my remote, it is working but cannot do anything on apple TV?If your problem persists get yourself a micro USB cable (sold separately), you can restore your Apple TV from iTunes:
Remove ALL cables from Apple TV. (if you don't you will not see Apple TV in the iTunes Source list)
Connect the micro USB cable to the Apple TV and to your computer.
Reconnect the power cable (only for Apple TV 3)
Open iTunes.
Select your Apple TV in the Devices list, and then click Restore.
(You may already have a micro USB cable if you have a camera or other digital device) -
Problem when load more swf files work with xml files into my movie
hi ;
I have one flash file & more of swf files which work with xml files .
when I load one swf file into my flash file and remove it and load anther one on the same movieclip in my flash file it load the old swf file.
when i load one on movieclip and remove it and load anther swf on anther movieclip the file doesn`t work and stoped.
when test my flash file to load and remove swf files without xml file it work fine but when repleaced the swf files with other work with xml files the problem hapend.
thanks;YOu should trace the names of the files that are being targeted for loading to see if they agree with what you expect. If you want help with the coding you will need to show the code that is relevant to your problem (not all of it)
-
Repair Tool Performance Problem when Zoom on Image
Aperture Friends,
I experience a huge performance hit when editing images with the Repair/Clone tool only when "zoomed" into an image. The curious part is that the repair while "zoomed in" function works fine for about 3 images, then from the 4th image on, the software grinds to almost a complete stop for several seconds after selection a source point and trying to use the repair. The mouse cursor even changes to a spinning rainbow DVD look during this time.
These are 15-20MB Raw files from a Canon 5d and we are using the most recent version of AP on a nearly brand new iMac 27", of course with Snow L, and all patches applied. The library is less than 20GB and we are not using Reference files as of yet.
I realize that these may be large files, but it is curios that it works with blazing speed to start with, then degrades.
Is this a common problem, or an identified issue? Might you more experienced folks know a resoulution?hi!
i'm experiencing a similar problem on my imac i5 with the difference it is slow all the time. even after a reboot it's quite impossible to use the clone/repair tool. my library is about 40GB with referenced files (all on external HD fw800). i work with a 5D Mk II (which is still not supported for tethered shooting, by the way!).
(sorry if i nicked your thread )
best regards,
günther -
Link problem when converting MS Word to PDF with Acrobat Professional
Hello all,
I have the following problem:
When I have a MS Word document with links to other files inside and I convert it to PDF the links are converted from relative paths to absolute paths.
The problem is created by Acrobat as the links in the MS Word file are relative (I have checked this by moving the different docs to another directory and confirmed that the links still work after the move).
How can I make the paths in the PDF relative again? I know there is a plugin from Evermap (and I can confirm this works) but I do not want to use this plugin (=read: spend another $190 dollars) as the license for the Acrobat Professional is expensive enough . Is there a way I can convert the paths within Adobe Acrobat easily? Or better: can I adjust the settings in Acrobat to a new standard when all converted documents contain relative paths?
Backgroundinfo:
- Adobe Acrobat 8 Professional
- Windows XP (SP2)
- MS Word 2002
Thanks in advance!
BartDear Steve,
I have tried what u suggested: I put all the documents (word + linked documents) into the same folder on the local-drive (C). Then I recreated the links in the word document to be sure they were matching. After that I converted the word document to an PDF and confirmed the links were still working in the PDF document.
Then the biggest challenge: copying the pdf and linked documents to another drive&directory. As you can guess: Unfortunately the links did not work anymore.
Any other suggestions?
If I use the Evermap-tool (30 day-trial) I can look at the links and this is how it is 'coded' in the pdf.
first link: ../../../../test/link_a.pdf
second link: ../../../../test/link_b.pdf
and yes this will work if you put the documents in the directory test in the root of the local-drive but not in a different subdirectory.
Anyone ideas?
Grtz,
Bart -
JDO object id problem when working with an appserver
Hi,
I'm running into a problem when passing a JDO object id as an argument to a
bean. My client is finding a JDO object locally, then attempting to
instantiate a bean which wraps the JDO object. Since the JDO object is not
Serializable, I'm passing the object id to the bean constructor, so that the
bean can look up the object again, this time in the appserver, and wrap it,
without ever serializing the object.
I'm guessing that the JDOId class for the JDO object is generated on the fly
in the client, and therefore does not exist in the ClassLoader in the
appserver. Any ideas how I can fix this?
Thanks,
Eric
Exception in thread "main" java.lang.reflect.UndeclaredThrowableException:
java.lang.ClassNotFoundException: test.TheTest$JDOId (no security manager:
RMI class loader disabled)
at
sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteC
all.java:245)
at
sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:220)
at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:122)
at
org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker_Stub.invokeHome(Unkno
wn Source)
at
org.jboss.ejb.plugins.jrmp.interfaces.HomeProxy.invokeHome(HomeProxy.java:25
8)
at
org.jboss.ejb.plugins.jrmp.interfaces.HomeProxy.invoke(HomeProxy.java:182)
at $Proxy0.create(Unknown Source)
at test.TheTestRemote.<init>(Unknown Source)
at test.TheTest.getRemoteObject(TheTest.java:19)
at
com.hcm.tools.util.CollectionHelper.getFirst(CollectionHelper.java:23)
at
com.hcm.tools.jdo.JDOFactory.executeSingletonQuery(JDOFactory.java:234)
at test.Test.print(Test.java:22)
at test.Test.main(Test.java:11)Hi David,
I'm trying to use JDO to completely replace Entity Beans. Of course, this
leaves me with an important question: how do you make the JDO object
available remotely? My answer is to wrap JDO objects with a stateful
session bean, and pass through method calls made on the bean to the JDO
object. Both the bean and the JDO object will implement some interface, so
you can use an object in a client without any knowledge as to whether it is
a bean or a JDO object. ( Important note: I can get away with this because
of another cool Solarmetric product, the session bean creator, which
enhances a simple java object into a session bean )
Now, once I have some interface implementation, maybe a local persistent
object, maybe a remote object, I will want to do something with it. There
are a couple considerations here. First, if I want to edit the object, I
need to make sure a transaction gets started. I do this by having my
session beans take care of starting and committing transactions. Since I
have written my own JDO Factory that takes care of synchronizing PM caches
across transactions, this has the effect of keeping all my caches in the
appserver up-to-date as well ( more on that if you're interested ). So, in
order to call a 'set' method, I need to ensure that the object I have is in
it's "remote" state, so-to-speak.
So I created an interface called RemotePersistentObject, which all these
other interfaces extend. It includes two methods, getRemoteObject (), and
getObjectId (). The reason for getObjectId (), instead of
getPersistentObject (), is that often times you don't want your JDO objects
to be Serializable, especially if you have JDO objects that you want to
guarantee remain unique ( say, no two Stock objects have the same ticker
symbol ). Besides, you want the remote object to represent the same
concept, and as soon as you serialize the persistent object, you have a copy
of the original JDO object that will no longer do nice things you'd like it
to do, like get updated when some transaction in a different thread modifies
a field.
So, to get around this serialization issue, I just pass the JDO object id to
the bean, and have the bean lookup and wrap the appropriate JDO object on
the server. I wrote a couple optional base classes that provide a lot of
the functionality for this, since it turns out that wrapping a
non-serializable JDO object is non-trivial. The problem there is that when
the bean passivates, it serializes the state of the session bean... oops.
So the base classes take care of keeping a transient reference to the actual
object, while keeping a non-transient ref to the object id. All attempts to
use the actual JDO object are filtered through a getObject () method, which,
if the transient ref has disappeared due to bean passivation, looks up the
object in a read-only PM again.
Hmmmm. Lots of stuff here. I'll stop here and answer any questions (
criticisms ) you may have.
-Eric
"David Ezzio" <[email protected]> wrote in message
news:[email protected]...
Eric,
Curious minds want to know: what are you up to here? I found this to
be a very interesting post, and I would like to know more about the
architecture you are using and its motivation if you can share it.
David Ezzio
Eric Lindauer wrote:
Hi,
I'm running into a problem when passing a JDO object id as an argument
to a
bean. My client is finding a JDO object locally, then attempting to
instantiate a bean which wraps the JDO object. Since the JDO object isnot
Serializable, I'm passing the object id to the bean constructor, so thatthe
bean can look up the object again, this time in the appserver, and wrapit,
without ever serializing the object.
I'm guessing that the JDOId class for the JDO object is generated on thefly
in the client, and therefore does not exist in the ClassLoader in the
appserver. Any ideas how I can fix this?
Thanks,
Eric
Exception in thread "main"java.lang.reflect.UndeclaredThrowableException:
java.lang.ClassNotFoundException: test.TheTest$JDOId (no securitymanager:
RMI class loader disabled)
at
sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteC
all.java:245)
at
sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:220)
at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:122)
at
org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker_Stub.invokeHome(Unkno
wn Source)
at
org.jboss.ejb.plugins.jrmp.interfaces.HomeProxy.invokeHome(HomeProxy.java:25
8)
at
org.jboss.ejb.plugins.jrmp.interfaces.HomeProxy.invoke(HomeProxy.java:182)
at $Proxy0.create(Unknown Source)
at test.TheTestRemote.<init>(Unknown Source)
at test.TheTest.getRemoteObject(TheTest.java:19)
at
com.hcm.tools.util.CollectionHelper.getFirst(CollectionHelper.java:23)
at
com.hcm.tools.jdo.JDOFactory.executeSingletonQuery(JDOFactory.java:234)
at test.Test.print(Test.java:22)
at test.Test.main(Test.java:11) -
Problem when Working With Combo
Dear all,
I am having a problem when i am working with Combobox.At the time of modification of any existing record i am retrieving the value and description of a Combo and doing accordingly.But sometimes it is showing error that Object Reference is not set.
If i click that combo(one time) then i am not getting any of error.
Error comming from the line like : strDesac=oCombobox.Selected.Description
The thing is that this is not selected item ,it it comming automatically.
How to handle this types of error.
Waiting for as reply soon.
Regards
SanjayBut, this is the question! I dont know how to initialize the combobox' first option. Help me, please! I am using the addItem method as follow:
MakeJCombo ( JComboBox ComboObj) {
ComboObj.addItem ("option1");
ComboObj.addItem ("option2");
ComboObj.addItem ("option3");
then:
public void itemStateChange(ItemEvent ie) ...
Object origem = ie.getSource()...
if (origem == ComboObj) ... -
Problem when communicating with postgres
Hi everyone,
i have got a problem when i am trying to communicate with postgres.
i am calling a bean in which i have methods for insertion. for ur convinience i here provide the class.
package Harish;
import java.sql.*;
import java.util.*;
import java.lang.*;
public class Exception_IP_List
Connection con;
Statement st;
//Constructor
public void Exception_IP_List()
//Getting the Connection with the database
public Connection getConnection()
try {
Class.forName("org.postgresql.Driver");
con = DriverManager.getConnection("jdbc:postgresql://localhost/CF","postgres"," ");
System.out.println("Connection Created");
st = con.createStatement();
System.out.println("Statement Created");
}catch(Exception e){
e.printStackTrace();
}finally{
return con;
} //end of getting connection with database
//Inserting the exception IP details into the database
public int insertExceptionIPList(String ipAddress)
int insert = 0;
try {
getConnection();
String sql = "INSERT INTO exception_ip_list (ip_Address)"
+ " VALUES (?)";
PreparedStatement pstmt = con.prepareStatement(sql);
pstmt.setString(1, ipAddress);
insert = pstmt.executeUpdate();
System.out.println("Insert " +insert);
/*if there is any insertion in this table the table
Update will be updated as well
if(insert > 0)
String sql1 = "update Update set Status='yes' where code='100' ";
Statement st1 = con.createStatement();
st1.executeUpdate(sql1);
} catch(Exception e){
System.out.println(e);
}finally{
return insert;
}//end of inserting class
//Closing Connection to Database
public void closeConnection()
try{
con.close();
System.out.println("Connection closed");
}catch(Exception e){
e.printStackTrace();
//Main Method for Exception_ip_list Class
public static void main(String args[])
Exception_IP_List exiplist = new Exception_IP_List();
//exiplist.getConnection();
//exiplist.insertExceptionIPList("192.168.1.150");
//System.out.println("data successfully inserteD");
//exiplist.deleteExceptionIPList("191.11.22.33");
//System.out.println("Item Deleted");
//exiplist.getExceptionIPList();
//exiplist.closeConnection();
following is the jsp files to access the method insertExceptionIPList
<%@ page language="java"%>
<html>
<head>
<title>
</title>
</head>
<body>
<form name="exiplist" method="post" action="test1.jsp">
<input type="text" name="ip"><br>
<input type="submit" name="SUBMIT" value="SUBMIT">
</form>
</body>
</html>
<%@ page language="java" import="java.sql.*, Harish.*" %>
<jsp:useBean id="exiplist" scope="page" class="Harish.Exception_IP_List" />
<%=request.getParameter("ip")%><br>
Inserted: <% int i = exiplist.insertExceptionIPList(request.getParameter("ip")) %>
i am really confused, what is the mistake i made? .
please help and its urgent. thanks
harish.Hello Harish,
I was introduced to databases at university with postgres. I now use SQL Server 7.
Anyway, what is the problem exactly - which exceptions are being thrown?
I have to admit, these forums don't present code very well and it makes it more confusing to read.
What are you inserting into your database - what is the context of your application ?
I did notice your constructor will be treated like a method. It does not matter in this case as it doesnt do anything, but you can't have void or any return type in your constructor - it has implicit instructions to return an instance of this class when it is called. If it is empty, omit it altogether.
I understand you getConnection() method.
I've never used the prepared statement:
String sql = "INSERT INTO exception_ip_list (ip_Address)" + " VALUES (?)";
PreparedStatement pstmt = con.prepareStatement(sql);
pstmt.setString(1, ipAddress);I assume the '?' in the sql string gets replaced with 'ipAddress' parameter variable? Are you sure 1 is the correct number - I know sql counts from 1 but java counts from 0.
You have created statement st and haven't used it, but later created st1 ?
For your JSP's, try
test0.jsp
<%@ page language="java"%> <!-- this is not needed -->
<html>
<head>
<title>
</title>
</head>
<body>
<form name="exiplist" method="post" action="test1.jsp">
<input type="text" name="ip"><br>
<input type="submit" name="SUBMIT" value="SUBMIT">
</form>
</body>
</html>
test1.jsp
<%@ page language="java" import="java.sql.*, Harish.*" %> <!-- this is not needed -->
<jsp:useBean id="exiplist" scope="page" class="Harish.Exception_IP_List" />
<html>
<body>
<%=request.getParameter("ip")%><br>
Inserted: <% int i = exiplist.insertExceptionIPList(request.getParameter("ip")); out.print(i); %>
</body>
</html>
Please let me know how this works,
Darren B -
Problem when syncing with MobileMe
I am using iPhone 3G, software 2.1. I use GMail for email (no problems) but my contacts, and only my contacts, sync through MobileMe.
The problem is that with MobileMe active, my Contact list, "Mail, Contacts and Calendars" settings and several other minor features simply do not work - they open, pause for a few seconds, then crash. The Mail application also hangs and crashes every other time I open it.
My local Apple Store restored 2.1, after which my Contact list and Email worked perfectly until I re-activated my MobileMe syncing, after which the problems resumed.
As the problems occurred only after MobileMe syncing is turned on, I assume this is the cause of the problem, but because "Mail, Contacts..." settings crashes every time I open it I cannot disable MobileMe syncing.
Any suggestions please? All help gratefully received...This was resolved by completely removing the MobileMe account from the iPhone, rebooting it and adding the account again.
Maybe you are looking for
-
Is this BIOS correct for Satellite A100-SP2022 PSAA5U?
I want to update the bios of my Satellite A100-SP2022 (PSAA5U-02G00G) with windows XP SP2 Spanish, because Im installing windows Vista (dual boot XP/Vista). The question is, if this BIOS file is correct for update in my notebook? sa100a5v53.exe Title
-
I get the following message; There was a problem connecting to the server Tony ThompsonMacBook If I look at my server connections then I always have the entry afp://192.168.1.68 which is not one of my ip addresses, if I remove it next time I look it
-
Multicast video over wirelss problems!!!
I have media service server transmit video using ip multicast I have Cisco routers 2800 and 3350 and I am enable PIM dense mode and multicast routing also enable , I am using Cisco switch 2950 and I enable IGMP snooping . in such situation my video s
-
Can you manual pick the break point in IDVD when burning a DL?
-
Security feature in OBIEE when integrating Cubes from SAP BW
Situation: We are trying to integrate SAP BW cubes with OBIEE and create reports on OBIEE. We can import cubes and stuff into OBIEE and do the modelling to the multi dimensional db.. But when we talk about securities, we (in OBIEE side) want to do it