Problem with one of my buttons in java swing

Gary,
I am trying to create a button that will link to my .txt file located on my desktop then when I go to display button and press it there are errors coming up that I dont get. The display button should display the results of the previous search inside in a textArea I was wondering if you could help me
Rgds
Tony
Here is the code
//creates a button that can be used to display the results in the text area
display_button = new JButton("Display results on text area");
display_button.addActionListener(new ActionListener()
public void actionPerformed(ActionEvent event_performed)
try
URL url = null;
String line;
InputStream in = url.openStream();
BufferedReader dis = new BufferedReader(new InputStreamReader(in));
buffer = new StringBuffer();
while((line = dis.readLine()) != null)
buffer.append(line + "\n");
in.close();
catch(IOException file_error)
textArea.append("IO Exception = " + file_error);
// Load the file into the TextArea.
textArea.append(buffer.toString());
} //End of display button actionPerformed
}); //End of display_button actionListener
The resulting errors are:
     at tony_buckley_project.Applet2.readFile(Applet2.java:330)
     at tony_buckley_project.Applet2.start(Applet2.java:356)
     at tony_buckley_project.Applet2$3.actionPerformed(Applet2.java:250)
     at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1764)
     at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1817)
     at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:419)
     at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:257)
     at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:245)
     at java.awt.Component.processMouseEvent(Component.java:5134)
     at java.awt.Component.processEvent(Component.java:4931)
     at java.awt.Container.processEvent(Container.java:1566)
     at java.awt.Component.dispatchEventImpl(Component.java:3639)
     at java.awt.Container.dispatchEventImpl(Container.java:1623)
     at java.awt.Component.dispatchEvent(Component.java:3480)
     at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3450)
     at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3165)
     at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3095)
     at java.awt.Container.dispatchEventImpl(Container.java:1609)
     at java.awt.Window.dispatchEventImpl(Window.java:1590)
     at java.awt.Component.dispatchEvent(Component.java:3480)
     at java.awt.EventQueue.dispatchEvent(EventQueue.java:450)
     at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:197)
     at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
     at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:144)
     at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:136)
     at java.awt.EventDispatchThread.run(EventDispatchThread.java:99)

One problem that i can see from your code is that you are writing
url = null;
and then
InputStream in = url.openStream();
should give u an exception right there...

Similar Messages

  • Problem with one to one unidirectional relation

    Hi,
    I have one problem with one to one relation ship. While i am trying to persist the objects it is showing that "parent key not found" exception. Is there any problem with my class configuration ?..
    Table description:having two tables with same composite primary key
    ECommSchema table has one composite primay key and the ECommSchemaDet table also has the same composite primary key. In second table (ECommSchemaDet) composite primary key fields are refering(foreign key relation ship) from the first table.
    My entity classes are....
    @Entity(name = "E_COMM_SCHEMA")
    @Table(name = "E_COMM_SCHEMA", uniqueConstraints = {})
    public class ECommSchema extends ParentEntity implements java.io.Serializable{
    // Fields
    private ECommSchemaDet eCommSchemaDet;
    // Constructors
    /** default constructor */
    public ECommSchema(){
    /** minimal constructor */
    public ECommSchema(ECommSchemaId id, String descBriefEng, Date effectiveFrom, Currencies currencies){
    this.id = id;
    this.descBriefEng = descBriefEng;
    this.effectiveFrom = effectiveFrom;
    this.currencies = currencies;
    /** full constructor */
    @OneToOne(cascade = { CascadeType.ALL })
    @PrimaryKeyJoinColumns({ @PrimaryKeyJoinColumn(name = "COMP_CODE", referencedColumnName = "COMP_CODE"),
    @PrimaryKeyJoinColumn(name = "CODE", referencedColumnName = "SCHEMA_CODE") })
    public ECommSchemaDet getECommSchemaDet(){
    return eCommSchemaDet;
    public void setECommSchemaDet(ECommSchemaDet commSchemaDet){
    eCommSchemaDet = commSchemaDet;
    @SuppressWarnings("serial")
    @Entity(name = "E_COMM_SCHEMA_DET")
    @Table(name = "E_COMM_SCHEMA_DET", uniqueConstraints = {})
    public class ECommSchemaDet implements java.io.Serializable{
    private ECommSchema ECommSchema;
    // Constructors
    /** default constructor */
    public ECommSchemaDet(){
    /** minimal constructor */
    public ECommSchemaDet(ECommSchemaDetId id, ECommSchema ECommSchema, String calcBase, String multiTier, String distMethod,
    Double brokerRebate, Double ticketCharge){
    this.id = id;
    this.ECommSchema = ECommSchema;
    this.calcBase = calcBase;
    this.multiTier = multiTier;
    this.distMethod = distMethod;
    this.brokerRebate = brokerRebate;
    this.ticketCharge = ticketCharge;
    /** full constructor */
    public ECommSchemaDet(ECommSchemaDetId id, ECommSchema ECommSchema, String calcBase, String multiTier, String distMethod,
    Double brokerRebate, Double ticketCharge, String distMethodClient){
    this.id = id;
    this.ECommSchema = ECommSchema;
    this.calcBase = calcBase;
    this.multiTier = multiTier;
    this.distMethod = distMethod;
    this.brokerRebate = brokerRebate;
    this.ticketCharge = ticketCharge;
    this.distMethodClient = distMethodClient;
    // Property accessors
    @OneToOne(cascade = { CascadeType.REFRESH }, fetch = FetchType.EAGER, mappedBy = "eCommSchemaDet")
    public ECommSchema getECommSchema(){
    return this.ECommSchema;
    public void setECommSchema(ECommSchema ECommSchema){
    this.ECommSchema = ECommSchema;
    Error message is
    Local Exception Stack:
    Exception [TOPLINK-4002] (Oracle TopLink Essentials - 2.0.1 (Build b09d-fcs (12/06/2007))): oracle.toplink.essentials.exceptions.DatabaseException
    Internal Exception: java.sql.SQLException: ORA-02291: integrity constraint (ETRADE_4BM.FK_ECOMM_SCH_DET) violated - parent key not found
    Error Code: 2291
    Call: INSERT INTO E_COMM_SCHEMA_DET (DIST_METHOD, BROKER_REBATE, CALC_BASE, TICKET_CHARGE, DIST_METHOD_CLIENT, MULTI_TIER, SCHEMA_CODE, COMP_CODE) VALUES (?, ?, ?, ?, ?, ?, ?, ?)
         bind => [T, 23.0, A, 23.0, T, N, 8, 1]
    Query: InsertObjectQuery(com.path.tradeManager.entities.ECommSchemaDet@44fbf5)
         at oracle.toplink.essentials.exceptions.DatabaseException.sqlException(DatabaseException.java:311)
         at oracle.toplink.essentials.internal.databaseaccess.DatabaseAccessor.executeDirectNoSelect(DatabaseAccessor.java:654)
         at oracle.toplink.essentials.internal.databaseaccess.DatabaseAccessor.executeNoSelect(DatabaseAccessor.java:703)
         at oracle.toplink.essentials.internal.databaseaccess.DatabaseAccessor.basicExecuteCall(DatabaseAccessor.java:492)
         at oracle.toplink.essentials.internal.databaseaccess.DatabaseAccessor.executeCall(DatabaseAccessor.java:452)
         at oracle.toplink.essentials.internal.sessions.AbstractSession.executeCall(AbstractSession.java:690)
         at oracle.toplink.essentials.internal.sessions.IsolatedClientSession.executeCall(IsolatedClientSession.java:150)
         at oracle.toplink.essentials.internal.queryframework.DatasourceCallQueryMechanism.executeCall(DatasourceCallQueryMechanism.java:228)
         at oracle.toplink.essentials.internal.queryframework.DatasourceCallQueryMechanism.executeCall(DatasourceCallQueryMechanism.java:214)
         at oracle.toplink.essentials.internal.queryframework.DatasourceCallQueryMechanism.insertObject(DatasourceCallQueryMechanism.java:346)
         at oracle.toplink.essentials.internal.queryframework.StatementQueryMechanism.insertObject(StatementQueryMechanism.java:191)
         at oracle.toplink.essentials.internal.queryframework.StatementQueryMechanism.insertObject(StatementQueryMechanism.java:205)
         at oracle.toplink.essentials.internal.queryframework.DatabaseQueryMechanism.insertObjectForWrite(DatabaseQueryMechanism.java:564)
         at oracle.toplink.essentials.queryframework.InsertObjectQuery.executeCommit(InsertObjectQuery.java:89)
         at oracle.toplink.essentials.internal.queryframework.DatabaseQueryMechanism.performUserDefinedWrite(DatabaseQueryMechanism.java:750)
         at oracle.toplink.essentials.internal.queryframework.DatabaseQueryMechanism.performUserDefinedInsert(DatabaseQueryMechanism.java:714)
         at oracle.toplink.essentials.internal.queryframework.DatabaseQueryMechanism.insertObjectForWriteWithChangeSet(DatabaseQueryMechanism.java:602)
         at oracle.toplink.essentials.queryframework.WriteObjectQuery.executeCommitWithChangeSet(WriteObjectQuery.java:162)
         at oracle.toplink.essentials.internal.queryframework.DatabaseQueryMechanism.executeWriteWithChangeSet(DatabaseQueryMechanism.java:390)
         at oracle.toplink.essentials.queryframework.WriteObjectQuery.executeDatabaseQuery(WriteObjectQuery.java:109)
         at oracle.toplink.essentials.queryframework.DatabaseQuery.execute(DatabaseQuery.java:628)
         at oracle.toplink.essentials.queryframework.DatabaseQuery.executeInUnitOfWork(DatabaseQuery.java:555)
         at oracle.toplink.essentials.queryframework.ObjectLevelModifyQuery.executeInUnitOfWorkObjectLevelModifyQuery(ObjectLevelModifyQuery.java:138)
         at oracle.toplink.essentials.queryframework.ObjectLevelModifyQuery.executeInUnitOfWork(ObjectLevelModifyQuery.java:110)
         at oracle.toplink.essentials.internal.sessions.UnitOfWorkImpl.internalExecuteQuery(UnitOfWorkImpl.java:2233)
         at oracle.toplink.essentials.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:952)
         at oracle.toplink.essentials.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:909)
         at oracle.toplink.essentials.internal.sessions.CommitManager.commitNewObjectsForClassWithChangeSet(CommitManager.java:269)
         at oracle.toplink.essentials.internal.sessions.CommitManager.commitAllObjectsForClassWithChangeSet(CommitManager.java:246)
         at oracle.toplink.essentials.internal.sessions.CommitManager.commitAllObjectsWithChangeSet(CommitManager.java:202)
         at oracle.toplink.essentials.internal.sessions.AbstractSession.writeAllObjectsWithChangeSet(AbstractSession.java:2657)
         at oracle.toplink.essentials.internal.sessions.UnitOfWorkImpl.commitToDatabase(UnitOfWorkImpl.java:1044)
         at oracle.toplink.essentials.internal.ejb.cmp3.base.RepeatableWriteUnitOfWork.commitToDatabase(RepeatableWriteUnitOfWork.java:403)
         at oracle.toplink.essentials.internal.sessions.UnitOfWorkImpl.commitToDatabaseWithPreBuiltChangeSet(UnitOfWorkImpl.java:1160)
         at oracle.toplink.essentials.internal.ejb.cmp3.base.RepeatableWriteUnitOfWork.writeChanges(RepeatableWriteUnitOfWork.java:276)
         at oracle.toplink.essentials.internal.ejb.cmp3.base.EntityManagerImpl.flush(EntityManagerImpl.java:350)
         at com.sun.enterprise.util.EntityManagerWrapper.flush(EntityManagerWrapper.java:626)
         at com.path.tradeManager.dao.ECommSchemaDaoBean.save(ECommSchemaDaoBean.java:86)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at com.sun.enterprise.security.application.EJBSecurityManager.runMethod(EJBSecurityManager.java:1067)
         at com.sun.enterprise.security.SecurityUtil.invoke(SecurityUtil.java:176)
         at com.sun.ejb.containers.BaseContainer.invokeTargetBeanMethod(BaseContainer.java:2895)
         at com.sun.ejb.containers.BaseContainer.intercept(BaseContainer.java:3986)
         at com.sun.ejb.containers.EJBObjectInvocationHandler.invoke(EJBObjectInvocationHandler.java:203)
         at com.sun.ejb.containers.EJBObjectInvocationHandlerDelegate.invoke(EJBObjectInvocationHandlerDelegate.java:117)
         at $Proxy133.save(Unknown Source)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at com.sun.corba.ee.impl.presentation.rmi.StubInvocationHandlerImpl.privateInvoke(StubInvocationHandlerImpl.java:233)
         at com.sun.corba.ee.impl.presentation.rmi.StubInvocationHandlerImpl.invoke(StubInvocationHandlerImpl.java:152)
         at com.sun.corba.ee.impl.presentation.rmi.bcel.BCELStubBase.invoke(BCELStubBase.java:225)
         at com.path.tradeManager.daoInterface.__ECommSchemaDaoInterface_Remote_DynamicStub.save(com/path/tradeManager/daoInterface/__ECommSchemaDaoInterface_Remote_DynamicStub.java)
         at com.path.tradeManager.daoInterface._ECommSchemaDaoInterface_Wrapper.save(com/path/tradeManager/daoInterface/_ECommSchemaDaoInterface_Wrapper.java)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at com.path.tradeManager.tunnelGate.RequestHandler.callMethodByReflection(RequestHandler.java:181)
         at com.path.tradeManager.tunnelGate.RequestHandler.handle(RequestHandler.java:150)
         at com.path.tradeManager.tunnelGate.TunnelServlet.doPost(TunnelServlet.java:37)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:738)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:831)
         at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:411)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:290)
         at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:271)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:202)
         at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)
         at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)
         at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:94)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:206)
         at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)
         at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:571)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1080)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:150)
         at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)
         at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:571)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1080)
         at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:272)
         at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:637)
         at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:568)
         at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:813)
         at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:341)
         at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:263)
         at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:214)
         at com.sun.enterprise.web.portunif.PortUnificationPipeline$PUTask.doTask(PortUnificationPipeline.java:380)
         at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:265)
         at com.sun.enterprise.web.connector.grizzly.ssl.SSLWorkerThread.run(SSLWorkerThread.java:106)
    Caused by: java.sql.SQLException: ORA-02291: integrity constraint (ETRADE_4BM.FK_ECOMM_SCH_DET) violated - parent key not found
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:124)
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:304)
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:271)
         at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:622)
         at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:180)
         at oracle.jdbc.driver.T4CPreparedStatement.execute_for_rows(T4CPreparedStatement.java:542)
         at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1027)
         at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:2887)
         at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:2959)
         at oracle.toplink.essentials.internal.databaseaccess.DatabaseAccessor.executeDirectNoSelect(DatabaseAccessor.java:647)
         ... 92 more
    Jul 8, 2008 4:17:07 PM com.sun.enterprise.server.logging.SystemOutandErrHandler$LoggingByteArrayOutputStream flush
    INFO: FATAL[08-07-08 16:17:07][com.path.tradeManager.dao.ECommSchemaDaoBean->save][javax.persistence.PersistenceException: Exception [TOPLINK-4002] (Oracle TopLink Essentials - 2.0.1 (Build b09d-fcs (12/06/2007))): oracle.toplink.essentials.exceptions.DatabaseException
    Internal Exception: java.sql.SQLException: ORA-02291: integrity constraint (ETRADE_4BM.FK_ECOMM_SCH_DET) violated - parent key not found
    Thanks in advance
    Anish

    Hello,
    I'm not sure what the FK_ECOMM_SCH_DET constraint refers to, but I assume it is to the only OneToOne reference defined. Based on the mappings shown, you have told TopLink that ECommSchema has a 1:1 to ECommSchemaDet, so that ECommSchemaDet has to be inserted first. My guess is your constraint is the oposite, requiring that ECommSchema be inserted before ECommSchemaDet. If so, just change the by directional 1:1 so that ECommSchema->ECommSchemaDet is mapped by the ECommSchemaDet->ECommSchema relationship (ie switch things).
    Best Regards,
    Chris

  • TS3276 I have recently had a problem with one of my hotmail accounts, some sort of virus sending random emails to people in my address book. Hotmail advised me to change my password for that account, which I did. Why won't mail recognise the new password?

    I have recently had a problem with one of my hotmail accounts, some sort of virus sending random emails from my address book. Hotmail advised me to delete all contacts and change the password for that account, which I did on my laptop running windows XP. The change was successful and I was able to send and receive emails with no problem. I then had to change the account password on my iPhone 4s, which I did and it too was successful but when I came to change the password on my iMac, running the latest version of Lion it would not recognise the new password. I have tried to remove the account details and re-install but every time I go to add new account my old details are in the box. This is very frustrating as I use my iMac for all my profects and I need to access my email. Please help.

    hi guys,
    I had already deleted all reference to the hotmail account in question from the keychain access app, I have also tried to delete and re-instal the account details from within mail. The icon in the side bar dissapears but when I go to Add Account, the old account details are in the new account box. I then input my new password but am told that the server does not recognise it. If I access hotmail via google on the iMac I can get into my account with no problems. I am thinking there must be some other form of security system within the mac software that is blocking the new password. This is driving me nuts. I have been trying to resolve this for the last two days. Thank you for your advise anyway.

  • Just installed Lion and the Magic TrackPad and I am having a problem with one click commands.  I have to hit the pad fairly hard with one finger to get it to accept the command.  Is this normal, is there another way that I am suppose to execute commands?

    Just installed Lion and the Magic TrackPad and I am having a problem with one click commands.  I have to hit the pad fairly hard with one finger to get it to accept the command.  Is this normal, is there another way that I am suppose to execute commands?

    No you just need to turn on Tap to Click. Go into System Preferences - Trackpad and click the Point to Click tab and select the first box which will say Tap to Click and you should be in business.

  • Problem with the "mail me" button

    Since I installed both Iweb 09 and Snow Leopard, there is a problem with the "mail me" buttons on my websites. Nothing happens when i click on it even if i see my web adress when my cursor is on the button.
    Do somebody had the same problem and do you know how to avoid it.
    Thanks a lot

    I checked your site and found that the mail me button was not overlapping or touching any other object and positioned entirely in the footer of the page. All looks good and it works for me. You might try moving the button, logo and counter to the bottom of the page content section, publish and see if that makes a difference for those computers that can't.
    Try the following on your Macbook, open Safari, clear the cache (CommandOptionE), load your site and try again. If that makes it work for your MB tell your friends to clear their caches and try again. Might be something as simple as that.

  • Codec problem with one gateway

    I am having a very strange problem with one of my gateways. No matter how I set up my regions and device pools I continue to have all calls go through this gateway as G729. This would be fine except that I can't do conference calls because of codec mismatches.
    The gateway is a PRI running H323. CM 3.2.2(c) Gateway is a 3640 running 12.2.11(t)
    All regions are currently set to G711.
    I read something about a command under voice-port that sets the default codec. What I don't understand is, if this is what is causing it to go to G729, why is this the only gateway that ignores the regions.
    Any help would be appreciated.

    Cisco VoIP gateways support the codec negotiation feature. This feature provides the ability for a Cisco VoIP gateway to connect to other VoIP devices without necessarily knowing which codec is used for a call-setup. Also, this feature allows Cisco VoIP gateways to dynamically adjust to changes on remote devices. As long as the codec used by the remote VoIP device matches the capabilities-list of the Cisco VoIP gateway, the VoIP call is completed.
    The following example shows how to configure codec negotiation:
    Cisco-router# config t
    Cisco-router(config)# voice class codec 1
    !--- This sets up class 1 to be assigned to the dial peer.
    Cisco-router(config-class)#codec preference 1 g723r63
    Cisco-router(config-class)#codec preference 2 g729ar8
    Cisco-router(config-class)#codec preference 3 g711ulaw
    Cisco-router(config-class)#codec preference 4 g726r32 bytes 240
    !--- These commands define the preferred codec list using 1,2,3, and 4 to set the preference.
    Cisco-router(config)#dial-peer voice 1 voip
    Cisco-router(config-dial-peer)#voice-class codec 1
    !--- This assigns voice-class codec 1 to the dial-peer
    Cisco-router(config-dial-peer)#destination-pattern 4723155
    Cisco-router(config-dial-peer)#session target ipv4:192.168.100.1

  • Entire JDBC communication stopped if problem with one single JDBC interface

    Hello,
    Will the entire JDBC communication stopped if problem with one single JDBC interface?
    Thanks,
    Soorya.

    hi surya,
    this will happend if u use maintain order at runtime at interface determination.
    just uncheck this option if u dont neet EOIO.
    if you are getting the problem if u r going for EO then the problem might be using same JDBC channel for all interfaces.
    if each interface is expected with a high load then it better to go for dedicated channels for interfaces.
    like INTERFACE A should use JDBC A channel and INTERFACE B should use JDBC B channel.
    Thanks & Regards,
    Rama krishna

  • JDBC communication stopped if problem with one single JDBC interface

    Hello,
    Can you please explain this phrase
    "JDBC communication stopped if problem with one single JDBC interface"
    THanks,
    Soorya

    If you are having a problem with a JDBC interface (lets consider this to be a communication channel) then the communication is stopped (via that channel) (only in the case of EOIO).
    Hope this clarifies.
    Cheers,
    Sarath
    Award if helpful.

  • LaCie 6TB drive ejects when Air sleeps: I use two 6TB LaCie drives - home and office with my Air, which travels with me. Only have a problem with one. Is there a fix?

    LaCie 6TB drive ejects when Air sleeps: I use two 6TB LaCie drives - home and office with my Air, which travels with me between the locations. Only have a problem with one that inappropriately ejects when the Air sleeps (and only sometimes). Is there a fix? I've read others who believe that the problem is with the operating system (I'm using 10.9.2). But my problem suggests that it's with one of the LaCie's. Any suggestions about how to fix?

    Lacie doesnt make HD, thats a Seagate inside the box.
    Is there a fix?
    Yes, get a 4TB max HD,    6TB drives are both new and have known issues,  ...in fact so do most all 4TB drives.
    my problem suggests that it's with one of the LaCie's
    You mean Seagate
    Large external hard drives are great! Large external hard drives are horrible
    It is a common premise that people are overjoyed at the dropping prices per terabyte on external hard drives, and the first thing that enters most peoples minds is "great, I can put all my stuff on one drive,... all of it!" However considerations need to be made in creating a giant single choke point for not mere data loss, but seriously large data loss. If there is at the very least yet another redundant copy, this is fine, otherwise do not consider it whatsoever. Some 3TB and 4TB drives of all mfg. have, at the time of this writing, reliability concerns currently and best recommendation is staying at 2TB drives or less.
    Advantages and disadvantages of larger 3TB and 4TB external drives must be weighed

  • Problem with one computer: [RegTask] - Server rejected registration request: 3

    Hi!
    I having some problem with One of our clients, its mine :)
    It does not register with the site 
    ClientIDManagerStartup.log:
    MP_RegistrationManager.log
    I have no idea why! I don't even use https and PKI. I have done a reinstalled the client by removing "C:\windows\SMSCFG.ini" and the SMS certificates before install but it still won't register. CCMSetup logs return successfull. Boundaries is setup
    correctly.
    I have also tried to uninstall ccmagent and readded the computer object in SCCM and installed it through client push but still the same problem.
    I really don't want to reinstall the whole computer as I have already installed lots of applications i don't know if that will work anyway, could try to run a sysprep maybe.
    Any ideas?
     Thanks!  

    if that is the error you need to look at your IIS & Webdav & SQL Configurations... you can take some help from below blogs to troubleshoot this
    http://anoopmannur.wordpress.com/2011/04/20/configmgr-sccm-2007-mpcontrol-log-shows-httpsendrequestsync-fails-with-status-code-500-internal-server-error/
    http://www.windows-noob.com/forums/index.php?/topic/651-sccm-mp-issues/
    http://windows7sux.blogspot.com/2009/04/sccm-smp-500-error.html
    http://brothertu.blogspot.com/2010/07/how-to-quickly-test-to-see-if-sccm-mp.html
    http://social.technet.microsoft.com/Forums/en-US/configmgrsetup/thread/89c84077-f47c-427b-b73e-39478f34ebaf/
    Thanks, Prabha G

  • Problem with One-Step Approval of Contracts ws14000088

    Hi, I have a problem with the  One-Step Approval of Contracts ws14000088, the workflow can't find  approverat the task TS14007969
    regards
    Dayana

    Hi
    <b>Please go through these links, which will definitely help -></b>
    Which SRM version are you using ?
    Re: Problem with one step approval contract workflow
    Re: No Approver(s) Found
    Reminders for work item
    Re: How to add a new field to the notification mail
    Do let me know.
    Regards
    - Atul

  • I bought an iPhone 5 around fifteen days back and it has already started to give problem with the on/off button. I have to press it five six times to switch it on or off. I am so frustrated by the fact that if I bring it to the service centre, I am going

    I bought an iPhone 5 around fifteen days back and it has already started to give problem with the on/off button. I have to press it five six times to switch it on or off. I am so frustrated by the fact that if I bring it to the service centre, I am going to get a refurbished phone in place of my brand new phone which I just bought. The idea of a used phone repulses me. Any solutions ?

    sumeshdua wrote:
    The idea of a used phone repulses me.
    Why?  Your current phone is used... it has been since the instant it was removed from the shrink wrap and turned on.
    sumeshdua wrote:
    Any solutions ?
    Live with the phone as is.
    Take the device to Apple for evaluation... it may not need replacement.
    Even if it does, neither you or the Apple tech should be able to tell if the replacement is new or refurbished.

  • I anyone having problems with the Sleep/Wake Button?? it doesn't do anything

    I anyone having problems with the Sleep/Wake Button??
    It doesn't do anything

    if you press it and it does nothing, it may be broken. did you drop it?
    try pressing and holding the top power button and round home button on the front for 6-8 seconds and you should see an apple appear.. if you do see the apple, the power button worked.

  • There is any aupdate for macbook air 13" mid 2009 trackpad {with one long click button down}  to help trackpad working fine with loin mac os x 10.7.1

    there is any aupdate for macbook air 13" mid 2009 trackpad {with one long click button down}
    to help trackpad working fine with loin mac os x 10.7.1

    mohammedfromad dammam wrote:
    there is any aupdate for macbook air 13" mid 2009 trackpad {with one long click button down}
    to help trackpad working fine with loin mac os x 10.7.1
    Not at this time. It would also be great to have an adjustment for sensitivity too.

  • I have a 7th generation ipod, i have a problem with the pause/play button, it no longer works.

    I have a 7th generation ipod, i have a problem with the pause/play button, it no longer works.
    What does it take to make sure it works ????
    Thanks

    If you successfullt restore to factory defaults/new iPod and still have the problem then it is likely a hardware problem and an appointment at the Genius Bar of an Apple store is in order.

Maybe you are looking for

  • Microsoft office not working.

    I have just installed microsoft office for mac, but when i try to use word etc the welcome screen pops up but i cant click continue. The colour wheel spins next to my cursor and i cant use the toolbar at the top of the screen. Any ideas?

  • Premiere Pro CC running slow on Macbook Pro

    Having used the trial for premiere pro cc I recently downloaded it - yet having huge issues with how slow it is. Was slow during trial, seems even slower now! Been editing a fairly simple 2 min project intermitently for weeks - but despite shutting d

  • How to stop the second monitor from showing automatically

    Since the last LogMeIn update, when I connect to a computer I automatically get both screens (main monitor and secondary monitor, both in a separate browser window) poping up. I was not able to find any option to prevent that.. is there one?

  • HT1692 how do I get photos to sync form pc to my ipad

    i used to be able to sync my photos from itunes to my ipad ..niow the menu does not contain photo or syncr

  • Incoming call volume problem

    I am getting very frustrated with the low volume of my incoming calls. Has anyone else had problems with this? Did you get any assistance from Apple?