Telneting in to Postfix reports back with old host name

Hi.
I am setting up a home server for my family (4 users) running a late 2010 Mac mini server with OSX Server 3.0.1
I am computer literate but am new to server hosting. I have successfully navigated setting up DNS properlly the way I want it, but am now running into a problem setting up a family mail server.
When I first got the machine I just played around with the server settings under Snow Leopard and turned on some services without really intending to use them as we were all using Google services at the time. I now want to get off those services, such as mail, etc. and host them myself.
Anyway, I've registered a domain and pointed it to my machine, and everything appears to be working properly. I used GoDaddy.com to register the domain.
But after setup of the Mail server, getting my ISPs mail relay server configured, etc. I get the following when I test using telnet to connect to port 25:
server:~ admin$ telnet 127.0.0.1 25
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 <oldhostname>.org ESMTP Postfix
421 4.4.2 <oldhostname>.org Error: timeout exceeded
Connection closed by foreign host.
server:~ admin$ sudo changeip -checkhostname
Password:
Primary address     = 10.0.1.254
Current HostName    = <newhostname>.org
DNS HostName        = <newhostname>.org
The names match. There is nothing to change.
dirserv:success = "success"
server:~ admin$ hostname -f
<newhostname>.org
You'll notice I then double checked that my DNS was set up correctly, and then checked the host name again for good measure. However, Postfix is calling my outgoing SMTP by the old and never really used host name still.
I would really appreciate any help you knowledgable people could give me! Is there a library file that needs updating and if so how do I do that? I found a similar problem here but this is on a linux box, which I have no experience with whatsoever, and can't figure out how to do what he did.
Thank you again in advance for any input.

Also Getting the following in Console:
04/01/14 18:04:59,806 kdc[62640]: AS-REQ [email protected] from 127.0.0.1:57943 for krbtgt/[email protected]
04/01/14 18:04:59,808 kdc[62640]: UNKNOWN -- [email protected]: no such entry found in hdb
04/01/14 18:05:00,294 servermgrd[20002]: nsc_smb XPC: handle_event error : < Connection invalid >
And my sudo postconf -c /Library/Server/Mail/Config/postfix -n output:
alias_maps = hash:/etc/aliases
always_bcc =
biff = no
command_directory = /usr/sbin
config_directory = /Library/Server/Mail/Config/postfix
content_filter = smtp-amavis:[127.0.0.1]:10024
daemon_directory = /usr/libexec/postfix
data_directory = /Library/Server/Mail/Data/mta
debug_peer_level = 2
debugger_command = PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin xxgdb $daemon_directory/$process_name $process_id & sleep 5
dovecot_destination_recipient_limit = 1
enable_server_options = yes
header_checks = pcre:/Library/Server/Mail/Config/postfix/custom_header_checks
html_directory = /usr/share/doc/postfix/html
imap_submit_cred_file = /Library/Server/Mail/Config/postfix/submit.cred
inet_interfaces = all
inet_protocols = all
local_recipient_maps = proxy:unix:passwd.byname $alias_maps
mail_owner = _postfix
mailbox_size_limit = 0
mailbox_transport = dovecot
mailq_path = /usr/bin/mailq
manpage_directory = /usr/share/man
message_size_limit = 10485760
mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain
mydomain = grabko.org
mydomain_fallback = localhost
myhostname = server.grabko.org
mynetworks = 127.0.0.0/8
newaliases_path = /usr/bin/newaliases
postscreen_dnsbl_sites = zen.spamhaus.org*2
queue_directory = /Library/Server/Mail/Data/spool
readme_directory = /usr/share/doc/postfix
recipient_canonical_maps = hash:/Library/Server/Mail/Config/postfix/system_user_maps
recipient_delimiter = +
relayhost = smtprelay1.telia.com
sample_directory = /usr/share/doc/postfix/examples
sendmail_path = /usr/sbin/sendmail
setgid_group = _postdrop
smtp_sasl_auth_enable = no
smtp_sasl_password_maps =
smtpd_client_restrictions = permit_mynetworks permit_sasl_authenticated reject_rbl_client zen.spamhaus.org permit
smtpd_enforce_tls = no
smtpd_helo_required = yes
smtpd_helo_restrictions = reject_invalid_helo_hostname reject_non_fqdn_helo_hostname
smtpd_pw_server_security_options = cram-md5,digest-md5,gssapi
smtpd_recipient_restrictions = permit_sasl_authenticated permit_mynetworks reject_unauth_destination check_policy_service unix:private/policy permit
smtpd_sasl_auth_enable = yes
smtpd_tls_CAfile = /etc/certificates/server.grabko.org.1C04ED269951F447E3422EB93680FCEDAE448203.ch ain.pem
smtpd_tls_cert_file = /etc/certificates/server.grabko.org.1C04ED269951F447E3422EB93680FCEDAE448203.ce rt.pem
smtpd_tls_exclude_ciphers = SSLv2, aNULL, ADH, eNULL
smtpd_tls_key_file = /etc/certificates/server.grabko.org.1C04ED269951F447E3422EB93680FCEDAE448203.ke y.pem
smtpd_use_pw_server = yes
smtpd_use_tls = yes
tls_random_source = dev:/dev/urandom
unknown_local_recipient_reject_code = 550
use_sacl_cache = yes
virtual_alias_domains = $virtual_alias_maps
virtual_alias_maps = $virtual_maps
And my sudo serveradmin fullstatus mail:
mail:startedTime = "2014-01-01 11:58:58 +0000"
mail:setStateVersion = 1
mail:state = "RUNNING"
mail:protocolsArray:_array_index:0:status = "ON"
mail:protocolsArray:_array_index:0:kind = "INCOMING"
mail:protocolsArray:_array_index:0:protocol = "IMAP"
mail:protocolsArray:_array_index:0:state = "RUNNING"
mail:protocolsArray:_array_index:0:service = "MailAccess"
mail:protocolsArray:_array_index:0:error = ""
mail:protocolsArray:_array_index:1:status = "OFF"
mail:protocolsArray:_array_index:1:kind = "INCOMING"
mail:protocolsArray:_array_index:1:protocol = "POP3"
mail:protocolsArray:_array_index:1:state = "RUNNING"
mail:protocolsArray:_array_index:1:service = "MailAccess"
mail:protocolsArray:_array_index:1:error = ""
mail:protocolsArray:_array_index:2:status = "ON"
mail:protocolsArray:_array_index:2:kind = "INCOMING"
mail:protocolsArray:_array_index:2:protocol = "SMTP"
mail:protocolsArray:_array_index:2:state = "RUNNING"
mail:protocolsArray:_array_index:2:service = "MailTransferAgent"
mail:protocolsArray:_array_index:2:error = ""
mail:protocolsArray:_array_index:3:status = "ON"
mail:protocolsArray:_array_index:3:kind = "OUTGOING"
mail:protocolsArray:_array_index:3:protocol = "SMTP"
mail:protocolsArray:_array_index:3:state = "RUNNING"
mail:protocolsArray:_array_index:3:service = "MailTransferAgent"
mail:protocolsArray:_array_index:3:error = ""
mail:protocolsArray:_array_index:4:status = "OFF"
mail:protocolsArray:_array_index:4:kind = "INCOMING"
mail:protocolsArray:_array_index:4:protocol = ""
mail:protocolsArray:_array_index:4:state = "STOPPED"
mail:protocolsArray:_array_index:4:service = "ListServer"
mail:protocolsArray:_array_index:4:error = ""
mail:protocolsArray:_array_index:5:status = "ON"
mail:protocolsArray:_array_index:5:kind = "INCOMING"
mail:protocolsArray:_array_index:5:protocol = ""
mail:protocolsArray:_array_index:5:state = "RUNNING"
mail:protocolsArray:_array_index:5:service = "JunkMailFilter"
mail:protocolsArray:_array_index:5:error = ""
mail:protocolsArray:_array_index:6:status = "ON"
mail:protocolsArray:_array_index:6:kind = "INCOMING"
mail:protocolsArray:_array_index:6:protocol = ""
mail:protocolsArray:_array_index:6:state = "RUNNING"
mail:protocolsArray:_array_index:6:service = "VirusScanner"
mail:protocolsArray:_array_index:6:error = ""
mail:protocolsArray:_array_index:7:status = "ON"
mail:protocolsArray:_array_index:7:kind = "INCOMING"
mail:protocolsArray:_array_index:7:protocol = ""
mail:protocolsArray:_array_index:7:state = "RUNNING"
mail:protocolsArray:_array_index:7:service = "VirusDatabaseUpdater"
mail:protocolsArray:_array_index:7:error = ""
mail:logPaths:Server Error Log = "/Library/Logs/Mail/mail-err.log"
mail:logPaths:IMAP Log = "/Library/Logs/Mail/mail-info.log"
mail:logPaths:Server Log = "/Library/Logs/Mail/mail-info.log"
mail:logPaths:POP Log = "/Library/Logs/Mail/mail-info.log"
mail:logPaths:SMTP Log = "/var/log/mail.log"
mail:logPaths:List Server Log = "/Library/Logs/Mail/listserver.log"
mail:logPaths:Migration Log = "/Library/Logs/MailMigration.log"
mail:logPaths:Virus Log = "/Library/Logs/Mail/clamav.log"
mail:logPaths:Amavisd Log = "/Library/Logs/Mail/amavis.log"
mail:logPaths:Virus DB Log = "/Library/Logs/Mail/freshclam.log"
mail:imapStartedTime = "2014-01-01 11:58:58 +0000"
mail:postfixStartedTime = "2014-01-01 11:59:32 +0000"
mail:servicePortsRestrictionInfo = _empty_array
mail:servicePortsAreRestricted = "NO"
mail:connectionCount = 0
mail:readWriteSettingsVersion = 1
mail:serviceStatus = "ENABLED"
I am only running one zone for the domain, my mind is boggled...

Similar Messages

  • System copy - BSP applications launching with old host name

    Hi
    After system copy, when we test any bsp application, a new window is opened in the internet explorer with the old Web server hostname. These bsp applications are not launching with the new server name.
    I checked all the ICM settings and they all fine.
    Is there any database table which has the old web server entries?
    Regards
    Chandu

    Resolved by ourselves.  Deleting the contents in table HTTPURLLOC fixed the issue.
    Regards
    Chandu

  • How to create reports servers with the same name in two nodes in Reports

    Greetings
    We are migrating Oracle Application Server 10g (9.0.4) to a better hardware infrastructure with high availability. We want to provide 2 new Oracle Application Server 10g (9.0.4) in High availability and we want to avoid modify the existing forms and reports code, but the code is looking for a specific reports server name when calling reports, but I couldn't create the same reports server name in the both oas machines, I could create the reports server in only one node. I want to create a reports server with the same name in both nodes but it is not possible. I know that there is a procedure to do that in 10.1,2 (Note 437228.1, How to Create Two Reports Servers With the Same Name in the Same Subnet) but I couldn't find the equivalent procedure in 9.0.4.
    Anybody kwows how to create a reports server with the same name in two nodes using 10g (9.0.4)
    Thanks
    Ramiro Ortiz.

    Hello.
    I applied the patch 4092150 on my oas 9.0.4.2 and I modified my rwnetwork.conf file changing the port to 14022 by following the note "How to Create Two Reports Servers With the Same Name in the Same Subnet? [ID 437228.1]" but I am facing the same error rep-56040 "server already exists in the network".
    When I run osfind command I get the following information (My reports server is senarep and I want to create it on SNMMBOGOAS10):
    osfind: Found 2 agents at port 14000
    HOST: SNMVBOGOAS10.sena.red
    HOST: SNMVBOGOAS09.sena.red
    osfind: There are no OADs running on in your domain.
    osfind: There are no Object Implementations registered with OADs.
    osfind: Following are the list of Implementations started manually.
    HOST: SNMVBOGOAS10.sena.red
    REPOSITORY ID: IDL:oracle/reports/server/EngineComm:1.0
    OBJECT NAME: senarep2
    REPOSITORY ID: IDL:oracle/reports/server/ServerClass:1.0
    OBJECT NAME: senarep2
    HOST: SNMVBOGOAS09.sena.red
    REPOSITORY ID: IDL:oracle/reports/server/EngineComm:1.0
    OBJECT NAME: senarep
    REPOSITORY ID: IDL:oracle/reports/server/ServerClass:1.0
    OBJECT NAME: senarep
    Any Ideas?

  • Error generating report job with the task name 'FSRM_Report_Task

    Since this morning we have been having a problem with FSRM on Windows Server 2008 R2, it is no longer running storage reports (both scheduled and on-demand).
    We get the following in the event logs:
    Log Name:      Application
    Source:        SRMREPORTS
    Date:          09/06/2014 08:09:55
    Event ID:      752
    Task Category: None
    Level:         Error
    Keywords:      Classic
    User:          N/A
    Computer:      FILESERVER2.curriculum.riddlesdown.local
    Description:
    Error generating report job with the task name 'FSRM_Report_Task{3add1760-4e79-4141-baba-cb53391bef3e}'.
    Context:
     - Exception encountered = Invalid argument: StorageType = '101'
    Event Xml:
    <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
      <System>
        <Provider Name="SRMREPORTS" />
        <EventID Qualifiers="0">752</EventID>
        <Level>2</Level>
        <Task>0</Task>
        <Keywords>0x80000000000000</Keywords>
        <TimeCreated SystemTime="2014-06-09T07:09:55.000000000Z" />
        <EventRecordID>42920</EventRecordID>
        <Channel>Application</Channel>
        <Computer>FILESERVER2.curriculum.riddlesdown.local</Computer>
        <Security />
      </System>
      <EventData>
        <Data>Error generating report job with the task name 'FSRM_Report_Task{3add1760-4e79-4141-baba-cb53391bef3e}'.
    Context:
     - Exception encountered = Invalid argument: StorageType = '101'
    </Data>
      </EventData>
    </Event>
    We have uninstalled and reinstalled the FSRM role service but are still having the same problem.
    Anybody have any ideas?

    Hi,
    From the error message, it failed because of "invalid argument: storagetype = '101' ".
    101 means the storage type is "system" + "cache". Is there any change on your storage before the issue occurs? For example whether the source storage is changed?
    FsrmStorageModuleType enumeration
    http://msdn.microsoft.com/en-us/library/dd392346(v=vs.85).aspx
    If you have any feedback on our support, please send to [email protected]

  • MBAM 2.5 Reports Fail with "Invalid object name 'v_GS_MBAM_POLICY'."

    Utilizing the SSRS Reports for MBAM 2.5 Integrated into Configuration Manager 2012 R2 Cu3, when I run the reports it states that the view
    'v_GS_MBAM_POLICY'  does not exist.
    The complexing thing though is that there are computers that are reporting the HINV Class called 'Win32Reg_MBAMPolicy'  So I would think this view would have been created.
    Does anyone know the process by which the view gets generated since my HINV is reporting back the information, yet the view has not been created in the DB yet... It makes no sense.
    The error is:
    Microsoft.Reporting.WinForms.ReportServerException
    An error has occurred during report processing. (rsProcessingAborted)
    Stack Trace:
       at Microsoft.Reporting.WinForms.ServerReport.ServerUrlRequest(Boolean isAbortable, String url, Stream outputStream, String& mimeType, String& fileNameExtension)
       at Microsoft.Reporting.WinForms.ServerReport.InternalRender(Boolean isAbortable, String format, String deviceInfo, NameValueCollection urlAccessParameters, Stream reportStream, String& mimeType, String& fileNameExtension)
       at Microsoft.Reporting.WinForms.AsyncMainStreamRenderingOperation.RenderServerReport(ServerReport report)
       at Microsoft.Reporting.WinForms.AsyncRenderingOperation.PerformOperation()
       at Microsoft.Reporting.WinForms.ReportViewer.AsyncReportOperationWrapper.PerformOperation()
       at Microsoft.Reporting.WinForms.ProcessingThread.ProcessThreadMain(Object arg)
    Microsoft.Reporting.WinForms.ReportServerException
    Query execution failed for dataset 'ComplianceDetails'. (rsErrorExecutingCommand)
    Stack Trace:
       at Microsoft.Reporting.WinForms.ServerReport.ServerUrlRequest(Boolean isAbortable, String url, Stream outputStream, String& mimeType, String& fileNameExtension)
       at Microsoft.Reporting.WinForms.ServerReport.InternalRender(Boolean isAbortable, String format, String deviceInfo, NameValueCollection urlAccessParameters, Stream reportStream, String& mimeType, String& fileNameExtension)
       at Microsoft.Reporting.WinForms.AsyncMainStreamRenderingOperation.RenderServerReport(ServerReport report)
       at Microsoft.Reporting.WinForms.AsyncRenderingOperation.PerformOperation()
       at Microsoft.Reporting.WinForms.ReportViewer.AsyncReportOperationWrapper.PerformOperation()
       at Microsoft.Reporting.WinForms.ProcessingThread.ProcessThreadMain(Object arg)
    Microsoft.Reporting.WinForms.ReportServerException
    Invalid object name 'v_GS_MBAM_POLICY'.
    Stack Trace:
       at Microsoft.Reporting.WinForms.ServerReport.ServerUrlRequest(Boolean isAbortable, String url, Stream outputStream, String& mimeType, String& fileNameExtension)
       at Microsoft.Reporting.WinForms.ServerReport.InternalRender(Boolean isAbortable, String format, String deviceInfo, NameValueCollection urlAccessParameters, Stream reportStream, String& mimeType, String& fileNameExtension)
       at Microsoft.Reporting.WinForms.AsyncMainStreamRenderingOperation.RenderServerReport(ServerReport report)
       at Microsoft.Reporting.WinForms.AsyncRenderingOperation.PerformOperation()
       at Microsoft.Reporting.WinForms.ReportViewer.AsyncReportOperationWrapper.PerformOperation()
       at Microsoft.Reporting.WinForms.ProcessingThread.ProcessThreadMain(Object arg)
    David Baur

    We ran into this error as well. Turns out that MBAM-provided reports to SCCM 2012 fail with an error unless the Win32Reg_MBAMPolicy class is added to SCCM, which also updates the SCCM SQL with required Views, including "v_GS_MBAM_POLICY".
    The solution that we finally came up with was to import an updated MOF file to include the BitLocker Policy (Win32Reg_MBAMPolicy) class into the "Hardware Inventory" section of the Default Client Policy. Once the import is complete SQL also gets
    the appropriate view created.
    The instructions on how to create and import the MOF file can be found in the link below.
    http://technet.microsoft.com/en-US/library/dn237295.aspx
    Chris Keene
    Product Specialist at Wave.

  • Report servers with the same name ?

    We have multiple report clusters on the same subnet.
    If clusters have the same name, then how you can view them in the report queue?
    TIA

    Hi Michael,
    Suppose your cluster is cluster1. Now if another organization starts a reports server with the same extension (eg, rep123.cluster1), then that reports server will become part of your cluster.
    So the summary is that you cannot have 2 different clusters with the same name in the same subnet. That is why it is necessary that you choose a name that you think should be unique.
    Navneet.

  • How connect 10g with discoverer (host name give me error)

    hi master
    sir i install discoverer but not connect with oracle 10g
    i flow this step
    1. From the Start button use Programs | Oracle - BIToolsHome1 | Configuration and Migration Tools | Net Configuration Assistant.
    2. Select Local Net Service Name Configuration the click the Next button
    3. Check Add then click the Next button
    4. Type the Service Name of the database you want to connect to, then click the Next button
    5. On the next screen, select TCP and click the Next button
    6. On the next screen, enter the full name for the Host name using a fully qualified domain name and then tell the system which Port the database is using. Click the Next button
    7. If you know a username and password on the database select Yes, perform a test and then click the Next button. While this is not a mandatory step it is well worth doing as it will show whether you can connect to the database.
    8. On the next screen, the test will either succeed or fail. If it says Invalid username / password click the Change Login button and enter a known username / password combination
    9. When informed Connecting... Test successful click the Next button
    10. Provide a name that you want to know this connection by then click the Next button
    11. When asked if you would like to configure another service name, select No and click the Next button
    12. Click the Next button again
    13. Click the Finish button
    but Host name or step 6 give me error
    this is my database name == universi
    this is my computer name == fahim
    this is my system user password == mfa786
    how i configure my discoverer with oracle 10g
    please give me idea
    thank's
    aamir

    thank's for your reply
    sir try to configure but host name step not success
    and i try to test
    then taht window give me this error
    see errir
    Connecting...ORA-12514: TNS:listener does not currently know of service requested in connect descriptor
    The test did not succeed.
    Some of the information you provided may be incorrect.
    Click Back to review the information provided for net service name, or Change Login to change username.
    ============== this is my bi path
    C:\oracle\BIToolsHome_6\network\ADMIN
    this is my tnsnames.ora file
    # tnsnames.ora Network Configuration File: C:\oracle\BIToolsHome_6\network\admin\tnsnames.ora
    # Generated by Oracle configuration tools.
    UNIVERSI =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = fahim)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = universi)
    ================ this is my listener.ora file
    # listener.ora Network Configuration File: C:\oracle\BIToolsHome_6\network\admin\listener.ora
    # Generated by Oracle configuration tools.
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = C:\oracle\BIToolsHome_6)
    (PROGRAM = extproc)
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = fahim.iqra.edu.pk)(PORT = 1521))
    when i try to run my discoverer that give me this error
    unable to connect fahim@universi
    failed to connect to databae - ORA-12514: TNS: listeer dose not currently know of service requested in connect descriptor
    please give me idea how i connect my oracle 10g with discoverer
    thank's
    aamir

  • Issues with Portal host name

    Hi,
    While accessing the portal with a domain name with one dot like .com
    or .net, it gives javasctipt error in the login page and the subsequent
    page after login. User is not able to browse anything in the portal
    after this.
    But when the domain name has more than 1 dot like .ngn.com or .ngn.net
    or .ngn.fomsa.com, it works abosolutely fine.
    Going forward for production, our portal url is http://ngnportal.com
    which has domain with one dot. Please suggest the solution for this.
    Environment Details are as below-
    Operating System:- Solaris 5.9
    Database :- Oracle 9.2.0.6
    Portal:- EP6.0 SP9
    Please let me know for any further clarifications.
    Regards,
    Chandra

    Hi,
    I was going to say that you should use fully qualified domain names.  However, I guess you are, you just don't have a very long domain name!
    This is probably a bug.  You are currently only on SP9, SP16 is now out, so that would probably fix it (just don't use SP13 - it was crap!!).
    If that doesn't fix it another possiblity would be to have ngnportal.com redirect to ngnportal.xxx.com just using a standard DNS redirecto or website redirect.  A bit of a workaround I know, but it should work.
    If patching the portal does not work - raise an OSS message, it is what you pay your licence fee for.
    Paul

  • JSP page is coming back with old data even when DB updated

    Hello,
    I am updating an existing record on a database using an HTML form and the changes update the ACCESS database immediately, but the .jsp page is picking up
    old data.
    But but when i do a manual REFRESH, the correct data comes back fine!
    Thanks very much for any insights!
    Summary of the code:
    1. InputEmployeeInfo.html - enter change data, call update....jsp
    <HEAD> <meta content="no-cache" http-equiv="Cache-Control"/>
    <meta content="no-cache" http-equiv="Pragma"/> </HEAD>
    <FORM NAME="updateInfo"
    ACTION="./UpdateEmployeeInfo.jsp" >>>>>2.
    METHOD="POST">
    2. UpdateEmployeeInfo.jsp: - call bean, update database, forward to present..jsp
    <HEAD> <meta content="no-cache" http-equiv="Cache-Control"/>
    <meta content="no-cache" http-equiv="Pragma"/>
    </HEAD>
    <% response.setHeader("Cache-Control","no-cache");
    response.setHeader("Pragma","no-cache");
    response.setDateHeader ("Expires", 0); %>
    <jsp:useBean id="empInfo"
    class="com.ora.jsp.beans.employee23.EmployeeInfoBean" >>>>>3.
    scope="request"/>
    <jsp:setProperty name="empInfo" property="*" />
    <% empInfo.updateDatabase(); %> >>>>>3b.
    <jsp:forward page="PresentChangeOfEmployeeData.jsp" /> >>>>>4.
    </BODY>
    </HTML>
    3. com.ora.jsp.beans.employee23.EmployeeInfoBean - Bean-update DB with change data
    public class EmployeeInfoBean {
    public void updateDatabase(){                                            <----3b.
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver").newInstance();
    Connection conn =
    DriverManager.getConnection("jdbc:odbc:example");
    String sql = "UPDATE EMPLOYEEINFO SET " +
    "NAME=?, ADDRESS=?, PHONE=? WHERE ID=?";
    PreparedStatement statement = conn.prepareStatement(sql);
    statement.setString(1, name);
    statement.setString(2, address);
    statement.setString(3, phone);
    statement.setInt(4, id);
    statement.executeQuery();
    statement.close();
    conn.close();
    4. PresentChangeOfEmployeeData.jsp - read database and display changes <----4.
    <HEAD> <meta content="no-cache" http-equiv="Cache-Control"/>
    <meta content="no-cache" http-equiv="Pragma"/>
    </HEAD>
    <% response.setHeader("Cache-Control","no-cache");
    response.setHeader("Pragma","no-cache");
    response.setDateHeader ("Expires", 0); %>
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver").newInstance();
    Connection conn =
    DriverManager.getConnection("jdbc:odbc:example");
    Statement statement = conn.createStatement();
    String sql = "SELECT * FROM EMPLOYEEINFO WHERE ID = " + employeeID;
    ResultSet rs = statement.executeQuery(sql);
    while(rs.next()){
    %>
    <TR><TD ALIGN="right" WIDTH="50%">Name:</TD>
    <TD WIDTH="50%"><%= rs.getString("NAME") %></TD>
    ================================================================================
    Complete code listing:
    1, InputEmployeeInfo.html
    <HTML>
    <HEAD>
    <meta content="no-cache" http-equiv="Cache-Control"/>
    <meta content="no-cache" http-equiv="Pragma"/>
    <TITLE>Change of Information</TITLE>
    </HEAD>
    <BODY>
    <TABLE WIDTH="100%" BORDER="0" BGCOLOR="navy">
    <TR ALIGN="center">
    <TD><FONT SIZE="7" COLOR="yellow">Employee Information</FONT></TD>
    </TR>
    </TABLE>
    <CENTER>
    <FONT SIZE="5" COLOR="navy">
    Please Enter Your Information<BR>
    Fill in all fields
    </FONT>
    </CENTER>
    <TABLE WIDTH="100%">
    <FORM NAME="updateInfo"
    ACTION="./UpdateEmployeeInfo.jsp" >>>>>>>>>2.
    METHOD="POST">
    <TR><TD WIDTH="40%" ALIGN="right">Current ID: </TD>
    <TD WIDTH="60%"><INPUT TYPE="text" NAME="id"></TD>
    </TR>
    <TR><TD WIDTH="40%" ALIGN="right">New Name: </TD>
    <TD WIDTH="60%"><INPUT TYPE="text" NAME="name" VALUE="Mickey"></TD>
    </TR>
    <TR><TD WIDTH="40%" ALIGN="right">New Address: </TD>
    <TD WIDTH="60%">
    <INPUT TYPE="text" NAME="address" VALUE="St. Louis, MO">
    </TD>
    </TR>
    <TR><TD WIDTH="40%" ALIGN="right">New Phone: </TD>
    <TD WIDTH="60%">
    <INPUT TYPE="text" NAME="phone" VALUE="555-555-1234">
    </TD>
    </TR>
    <TR><TD COLSPAN="2" ALIGN="center">
    <INPUT TYPE="submit" NAME="btnSubmit" VALUE="Update Profile"></TD>
    </TR>
    </TABLE>
    </FORM>
    </BODY>
    </HTML
    2. UpdateEmployeeInfo.jsp:
    <HTML>
    <HEAD>
    <meta content="no-cache" http-equiv="Cache-Control"/>
    <meta content="no-cache" http-equiv="Pragma"/>
    <TITLE>Updating Employee Information</TITLE>
    </HEAD>
    <BODY>
    <% response.setHeader("Cache-Control","no-cache");
    response.setHeader("Pragma","no-cache");
    response.setDateHeader ("Expires", 0);
    %>
    <jsp:useBean id="empInfo"
    class="com.ora.jsp.beans.employee23.EmployeeInfoBean" >>>>>>>>>>>>>3.
    scope="request"/>
    <jsp:setProperty name="empInfo" property="*" />
    <% empInfo.updateDatabase(); %> >>>>>>>>>>>>>3b.
    <jsp:forward page="PresentChangeOfEmployeeData.jsp" /> >>>>>>>>>>>>>4.
    </BODY>
    </HTML>
    3. com.ora.jsp.beans.employee23.EmployeeInfoBean <-------------3.
    package com.ora.jsp.beans.employee23;
    import java.sql.*;
    public class EmployeeInfoBean {
    private String name, address, phone;
    private int id;
    public void setName(String input){
    name = input;
    public String getName(){
    return name;
    public void setAddress(String input){
    address = input;
    public String getAddress(){
    return address;
    public void setPhone(String input){
    phone = input;
    public String getPhone(){
    return phone;
    public void setId(int input){
    id = input;
    public int getId(){
    return id;
    public void updateDatabase(){                                       <-------3b.
    try{
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver").newInstance();
    Connection conn =
    DriverManager.getConnection("jdbc:odbc:example");
    String sql = "UPDATE EMPLOYEEINFO SET " +
    "NAME=?, ADDRESS=?, PHONE=? WHERE ID=?";
    PreparedStatement statement = conn.prepareStatement(sql);
    statement.setString(1, name);
    statement.setString(2, address);
    statement.setString(3, phone);
    statement.setInt(4, id);
    statement.executeQuery();
    statement.close();
    conn.close();
    catch (Exception e) {}
    4. PresentChangeOfEmployeeData.jsp <---------4.
    <HTML>
    <HEAD>
    <meta content="no-cache" http-equiv="Cache-Control"/>
    <meta content="no-cache" http-equiv="Pragma"/>
    <TITLE></TITLE>
    </HEAD>
    <BODY>
    <% response.setHeader("Cache-Control","no-cache");
    response.setHeader("Pragma","no-cache");
    response.setDateHeader ("Expires", 0);
    %>
    <%@ include file="CompanyBanner.html"%>
    <%@ page import="java.sql.*" %>
    <jsp:useBean id="empInfo"
    class="com.ora.jsp.beans.employee23.EmployeeInfoBean"
    scope="request"/>
    <CENTER>
    <FONT SIZE="5" COLOR="navy">
    Your New Information
    </FONT>
    </CENTER>
    <TABLE WIDTH="100%" BORDER="1">
    <%
    int employeeID = empInfo.getId();
    try {
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver").newInstance(); <--------4b,
    Connection conn =
    DriverManager.getConnection("jdbc:odbc:example");
    Statement statement = conn.createStatement();
    String sql = "SELECT * FROM EMPLOYEEINFO WHERE ID = " + employeeID;
    ResultSet rs = statement.executeQuery(sql);
    while(rs.next()){
    %>
    <TR><TD ALIGN="right" WIDTH="50%">Name:</TD>
    <TD WIDTH="50%"><%= rs.getString("NAME") %></TD>
    </TR>
    <TR><TD ALIGN="right" WIDTH="50%">Address:</TD>
    <TD WIDTH="50%"><%= rs.getString("ADDRESS") %></TD>
    </TR>
    <TR><TD ALIGN="right" WIDTH="50%">Phone Number:</TD>
    <TD WIDTH="50%"><%= rs.getString("PHONE") %></TD>
    </TR>
    <TR><TD ALIGN="right" WIDTH="50%">Work Status:</TD>
    <TD WIDTH="50%"><%= rs.getString("WORKSTATUS") %></TD>
    </TR>
    <TR><TD ALIGN="right" WIDTH="50%">Total Sick Days:</TD>
    <TD> <%= rs.getString("TOTALSICKDAYS") %></TD>
    </TR>
    <TR><TD ALIGN="right" WIDTH="50%">Taken Sick Days: </TD>
    <TD><%= rs.getString("TAKENSICKDAYS") %></TD>
    </TR>
    <TR><TD ALIGN="right" WIDTH="50%">Total Personal Time(in hours): </TD>
    <TD><%= rs.getString("TOTALPERSONALTIME") %></TD>
    </TR>
    <TR><TD ALIGN="right" WIDTH="50%">Taken Personal Time(in hours): </TD>
    <TD><%= rs.getString("TAKENPERSONALTIME") %></TD>
    </TR>
    <TR><TD ALIGN="right" WIDTH="50%">Health Care Plan:</TD>
    <TD WIDTH="50%"><%= rs.getString("HEALTHCAREPLAN") %></TD>
    </TR>
    <TR><TD ALIGN="right" WIDTH="50%">Dental Plan:</TD>
    <TD WIDTH="50%"><%= rs.getString("DENTALPLAN") %></TD>
    </TR>
    <TR><TD ALIGN="right" WIDTH="50%">Vision Plan:</TD>
    <TD WIDTH="50%"><%= rs.getString("VISIONPLAN") %></TD>
    </TR>
    <% }//end while loop
    } // end try block
    catch (Exception e) {};
    %>
    </TABLE>
    <%@ include file="ch24_SiteNavigator.html" %>
    </BODY>
    </HTML>

    <%
    String dept_name=request.getParameter("D1");
    String itmp,itmcd,sn;
    %>
    <%
    Connection con;
    PreparedStatement ps;
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    con=DriverManager.getConnection("jdbc:odbc:acc");
    Statement stmt=con.createStatement();
    ResultSet rs=stmt.executeQuery("select * from item_details where Item_Name='"+dept_name+"'
    %>
    <td> Product name</td>
    <td>Product description</td>
    <td><Product code</td>
    <td>Product price</td></tr>
    <form method=post action="mycreate.jsp">
    <%
    while(rs.next())
    %><tr>
    <%=rs.getString(1)%></td>
    <%=rs.getString(4)%></td>
    <td><font color="#ffffff" size="3" face="arial unicode
    ms">    <%=rs.getString(3)%></td>
    <% String temp=rs.getString(3);%>
    <%=temp%>
    <td>
    <%=rs.getString(5)%></td>
    <td><input type=submit value="Add to cart"></td></tr>
    <form method=post action="mycreate.jsp">
    <%
    con.close();
    %>
    </tr>
    </table></tr></table></tr></table>
    </form>
    </form>
    I want the value of rs.getString(3) in a variable

  • TS1389 Similar problem with our iPad.  Apps purchased with "old" USR name that is not an email address can not be updated.  Free Apps update OK, but purchased ones show box asking for the non-email USR ID which Apple no longer recognizes.  HELP

    Have tried to get Apple Tech Support and local Apple techs to deal with this problem to no avail.  Apple store "genius" throws up hands and says nothing can be done.  Root of the problem seems to be that the old non-email AppleID is stuck in their system creating a catch22 that it appears as the account purchasing Apps, then is not recognized as a valid ID, and then disallows any attempt to change it to a recognized email address.
    Consequence is that Apps appropriately purchased can not be updated.  Apple store advises us to delete them and repurchase, but this seems more Windowsian than Applian.  Any Ideas??

    Hello J_DougBC,
    Thank you for posting in the Apple Support Communities.  I found an article that addresses Apple IDs that are different than the Primary Email Address on the account.  You will need to go to https://appleid.apple.com/ to "Make your Apple ID and email address one and the same."
    If your Apple ID and primary email address do not match, or they match but the email address is unverified, you can edit them.
    1. Sign in to My Apple ID to manage your account information.
    2. If you want to add and verify an email address that matches your Apple ID, follow the dialog box that says "Make your Apple ID and email address one and the same." This will automatically unverify that email address from any other Apple ID for which it was previously verified.
    3. If you want to change your email address to one that does not match your Apple ID, click Edit next to your Primary Email Address. If this email address is already associated with another Apple ID, you will need to sign in with that Apple ID and delete it before you can add it to your preferred Apple ID.
    Note: If you have an @me.com or @mac.com Apple ID and primary email address, you cannot edit your primary email address once it has been verified. To change your @me.com or @mac.com primary email address to another email address, contact Apple Support for assistance.
    You can find the full article here:
    Associating and verifying email addresses with your Apple ID
    http://support.apple.com/kb/HE68
    I hope this helps get you back on track!
    Best,
    Sheila M.

  • Individual report path with defined file name from the report settings in Testsand 2012

    Hi,
    I have following task:
    I want to test stand 2012 in each sequence to change the path of the report file. But the naming of the file is to be maintained as these settings can be made from TestStand into the report (DisplayName + _Report_ [<FileDate>] [<FileTime>] <unique>. <File Extension). I can not find now, however, the / callback parameter on which the components are assembled path and file in TestStand.
    While I can read about the callback "GetReportFilePath" the path and file name, and with the expression: Parameters.ReportFilePath = "c: \ \ electro \ \ SHARE \ \ test protocols \ \ Test Logs \ \" change the path, but the file name will no longer be formed from the settings of TestStand.
    I have the suspicion that I'm just not accreting at the right place. Can someone please give me a hint?
    greeting Michael
    Greetings Michael

    See Oracle Metalink,
    ..Oracle Portal Technical Forum,
    ....Subject: PORTAL - uploading files (file attachments) with file names.
    This message thread outlines javascript code that automatically captures the filename during an upload.

  • PDF files keep coming with old file name not as current file name

    Hi,
    I have a problem when exporting InDesign docs to PDF with some documnets. If I change the name in the export dialog box, then every time I export this doc to PDF in the future this name keep coming, even when I change the name of the document or save it in a new name. This causes confusion, since sometimes the name is completely different from the InDesign file name. What can be done to tell InDesign to save the exported PDF file according to the current file name and don’t remember the old PDF file name?
    I was thinking of a script, is there a ready one to use?
    Thanks

    Thanks for the tips, very useful indeed.
    Though it is bit hard to have everyone in the studio follow them as a routine. I way I used to do this is to go to Save as command, with right mouse I choose copy the highlighted document name, then I choose cancel, then when I choose to export I'll paste the the name which is the current file name, this is good for me, but I wouldn't dream of having this as a routine for everyone in the studio.
    I was thinking it would be easy if I can find a script, since I don't know scripting, to do just that, i.e. have Indesign to copy the current filename of the document (whether by doing the same trick as I am doing or if there is a direct command to do that in the script), then the script will go to the export dialog box, paste that name, then I will go on with the normal export dialog box options.
    This script will be easier to have everybody in the studio to follow.
    Appreciate your help.
    Thanks

  • ORACLE 6i-Errors REP-0736 / REP-1247-Report works with a different name

    Hi everybody,
    I have a problem with a Report developed in 6i after I compiled it with Linux.
    When I run report I had errors REP-0736 and REP-1247. But I didn't had any problem during compilation.
    The fact is.............if I changed report name (just the name, without any other modification), compiled and run, it works perfectly. Just changing the name!
    Obviously there is some place where the report name is corrupt, but I don't have the knowledge to find it.
    Please, if somebody can give me a clue to solve this problem, I would appreciate a lot. I'm lost!
    Thanks

    **What do you mean exactly by changing the name? The file name or the Name property in Report Builder?**
    **What are the exact version numbers (Reports and Linux)? Did you make sure the combination is certified?**
    **Did you create the report in Windows and transfer it to Linux? How did you do that? E.g. if you ftp it, make sure you use the binary format.**
    **Are you compiling and running with the same user (Windows/Linux)?**
    **Are the database versions the same (still assuming you develop in Windows development and run it later on Linux production)?**
    Thanks for answer!
    1. I mean by changing the Name property and the file name. Both.
    2. The combination of versiones numbers is certified. This is the first report with this kind of problem. I've been compiling without any trouble until now. And even now, the only report with compilation problems is this.
    Report version is 6.0.8.27.0
    Linux version is Suse 9
    3. I modify the report in Windows and transfer it to Linux. We use to copy the .RDF file to the directory where we always compile the objects to Linux.
    4. Yes, I'm compiling with the same user
    5. The database versiones are the same. You're correct, we develop in Windows and run it on Linux (production).

  • Difficult to achive the report layout with dynamic column names

    I have a report layout as below.
    So here the column names are dynamic.And each fixed row group has different calculations. I have a date parameter. If I select July 2013, then I need to show data from July 2012 to July 2013 with Columns(Jul-12, Aug-12...Jul-13). How to achive below layout
    with dynamic columns?

    Hi Sarayu_CM,
    According to your description, you want to filter the records of prior year based on only one parameter selection. Right?
    In this scenario, we can create two parameters. The first one is for user to select. The second parameter is based on the first parameter selection. We don't need to specify Available Values for the second parameter, but we should use expression to specify
    Default Values based on the first parameter selection. Use the expression below:
    =DateAdd("m",-12,FormatDateTime(Parameters!param1.Value))
    Then we just need to apply a filter on the matrix/dataset to get the records which the date is between values in these two parameters.
    If you have any question, please feel free to ask.
    Best Regards,
    Simon Hou

  • How to patch DemoIdentity.jks with new host name

    Somehow, after WebLogic was installed on a particular box, the DNS name for the local host was changed slightly. I created a domain on that box and I was about to start a managed server from the admin console, and I noticed that the NodeManager was not reachable, reporting the following error (hostname tweaked):
    [Security:090504]Certificate chain received from localhost - 127.0.0.1 failed hostname verification check. Certificate contained foo.adm.tst.us.company.net but check expected localhost
    I confirmed this by listing the identity keystore.
    From the Unix prompt, "hostname" returns "foo.tst.us.company.net".
    I looked at another box with a similar configuration, and the hostname of the identity cert matches the output of "hostname".
    So, now I have to figure out how to repair this. If your first response is to say to modify the "hosts" file, I'm considering that out of bounds at this point. Making changes that require root access are a P.I.T.A here, so I want to avoid that.
    I think the best way to fix this would be to patch the identity keystore. I believe I would have to create a new self-signed identity cert and put it into the keystore. Can someone spell out the basic steps I'd have to go through for this?

    So far, I've done the following:
    * CertGen to create the cert with the correct hostname
    * used keytool -import ... to import the cert into the identity keystore
    it seemed to me like "ImportPrivateKey" was just a veneer over keytool, so I didn't try that. I could be wrong.
    At this point, I see two issues:
    1. When I did the import, I saw that the new cert had an expiration date of tomorrow. That seems like a problem. I don't see any option in Certgen to specify an expiration date.
    2. After importing the cert, I'm not sure what, if anything, I should restart before checking to see whether it worked. I tried just doing directly to the machine monitoring tab, and it still reports the mismatched hostname error.

Maybe you are looking for

  • Extending LOV VO - is it always possible?

    I am attempting to extend a VO used into a LOV within iProc 11.5.10. I have successfully done this a number of times now within this module. Following these exact steps I am attempting to do this again with the Project LOV on the checkout summary pag

  • Second record not inserting into ztable

    Hi All, I have designed z table with following fields. 1) CONSULTANT 2) MODULE_NAME 3) CR_DATE 4) ISSUE 5) RPT_NAME 6) TCODE 7) REQ_NO 8) DEV_STA 9) QA_STA 10) PRD_STA. the ztable contains no primaty key as we are storing the duplicates values I have

  • Multi Lingual Titles

    We are developing a fully multi-lingual system and require the text displayed as report titles / headings to vary dependent on a 'locale' parameter. This does not appear to be possible - am I missing something?

  • Problem with downloading Photoshop

    I went to the url to download photoshop and it said it was downloading. However, I've been waiting over an hour for it to even start to download. It there a different way to download it if this isn't working?

  • Internal Crack

    I got the iPhone 4 in white last month and have been trying so hard to take really good care of it. I got a case for it and hadn't dropped it once until tonight. I forgot that it was sitting on my lap and it dropped about a foot and a half as I got o