Server Name showing in public NS Records

How do I hide the internal (default) nameserver from showing in public searches? This server is going to be used internally for user management and backup but I'd like to be able to host public websites as well.. 
Here's whats showing: http://screencast.com/t/vh3myvKkF
Here's my current setup: http://screencast.com/t/QcmFg9Vi0
I've tried deleting the default NS from the zone but it keeps coming back.. How can I let the server control the DNS for the addon domains without exposing the default NS to the public??
I've been trying for 2 days to fix it so help is much appreciated!

Hi,
We can edit the default NS record. Replace the real name server with "ns1.jcoffice.net." and "ns2.jcoffice.net.".
Then create the A record of "ns1.jcoffice.net." and "ns2.jcoffice.net.".
I have test it in my lab server, it works properly. Here is the screenshot of my lab server,
Best Regards.
Steven Lee
TechNet Community Support

Similar Messages

  • SQLAlwaysOn 2012-Query server name shows NODE name not Cluster name

    Hi guys,
    I just finished setting up my SQLAlwaysOnLab for our Development team. I'm having an issue understanding the AlwaysOn HA feature.... When I run  the "SELECT @@SERVERNAME AS 'Server
    Name'" The result show the local server name and not the ClusterName or the  Availabilty Group Listener name. We need it to show the actual Cluster name or AG Listner game. Our 2008 r2 2005 clustering we have a shared storage cluster
    and we setup the config services and application, so when i run a query in that environment it shows "NTS-PROD"(not the clustername). Which is what we want.. Thanks for any input at all! My dev config below:
    CLustername=ADM034SQLC050
    3 nodes in the cluster bellow: ADM034SQL051, ADM034SQL052, ADM034SQL053

    Hello,
    Edwin is correct, this is the expected and correct behavior as it's returning the current server that it is executing on.
    What you could do is create a function that could be executed to return the value you want inside of the databases involved in the AGs. That would give you what you want, but the built in functions are working correctly.
    Edit:
    I wanted to expand on what I wrote and qualify it a little more so that it adds some extra information and understanding.
    With a clustered instance, the servername will come back with the clustered instance name. This is because when using clustering, the resource for this is setup both at the SQL Server level (by choosing setup as a clustered instance) and at a windows level
    (resources in the cluster). In a cluster, each instance has a VCO (virtual computer object) created for it in AD and that is actually what is used, so servername comes back with the VCO as we would expect.
    This differs with AGs. AG instances are locally installed instances and they can be connected to without using a listener (in fact a listener isn't even needed for AGs). Listeners exist ONLY at the windows level as a resource, there is no VCO associated
    with a listener or any other AG resource. Each instance can be connected to just like you would any other stand alone instance. In this situation SERVERNAME returns the name of the server that it is currently on as there is nothing special about these servers.
    The clustering is only done at the windows layer and SQL Server installation are simply stand alone.
    Sean Gallardy | Blog |
    Twitter

  • Two Server names showing up....

    Just upgraded to 10.5 as a stanard server. When we browse the network from our Mac Pro's we see two computer names as the server. We see "prepress" and "prepress.domain.com" Why? We never saw "prepress.doamin.com" w/ 10.4. Also when we boot up our PC Windows RIP computer we get the message that there is a duplicate computer name on the network.
    Any help would be greatly appreciated.

    Hi
    I wonder why you are wondering why? Surely only you or whoever installed the server would know why you see two names? When selecting Standard as the Server Mode after the initial install the Server Setup Assistant begins to assist you in setting up and configuring the server based on answers you give it to the questions its asking. Part of this question and answer process is to do with defining the internal DNS Service (as well as other Services) the Server is going to use for itself. It may not have seemed like it at the time but that was what was happening. There would have been a question regarding domain name as well as host/server name. Someone at your site must have keyed in domain.com and prepress without fully realizing the significance.
    You are not entirely to blame for inflicting this on yourself. Apple should have made the documentation clearer as well as reigning in the marketing department a little bit.
    There are three 'modes' available with Leopard Server: Standard, Workgroup and Advanced.
    I assume many people think Standard = Simple and choose that thinking all they want are simple file services, perhaps a bit of Mail and that will do - thank you. You get that but you get DNS thrown in whether you like it or not because without it those other simple things won't work. Workgroup assumes the existence of an internal DNS Service already on the network provided by another Server. This 'mode' is actually quite good in assisting integration into an AD server based environment. The last 'mode' is Advanced. Most people shy away from this thinking that this 'mode' is far too complex and advanced for them. Wrong.
    In my opinion Advanced is the easiest as nothing gets configured, apart from a domain, hostname and IP address at the beginning of the installation process. Afterwards It will sit there until you configure and enable a Service. In this mode if all you want is AFP and a few shares that's all you'll get. In Advanced you get to use Server Admin and Workgroup Manager. The 'new' application available for OSX Server - Server Preferences - won't work in Advanced. Its an application specifically designed to work in the other two modes.
    As for the PC Problem? Verify first that it does not have the same IP address as your Server. Your Server should have a fixed IP address anyway - apologies if you know this. Right click on My Computer, select Properties and in there you should see the name the PC has been assigned. Change it if its been named the same.
    Tony

  • Outlook 2011 Exchange server name changes

    I set the server name in Outlook 2011 to the "public" FQDN.  Network DNS is set to resolve this name to the private IP address of the Exchange server.  This configuration works properly for all my users, whether they are connected locally or remotely.
    For one computer, though, when connected locally, Outlook changes to the "private" FQDN of the Exchange server.  This undesired change then requires editing the server name when the computer is remotely connected.
    How do I get Outlook to leave the server name as the "public" FQDN?

    Try going to [mactopia.com], which is Microsoft's Mac help area or you could go to [microsoft.com/mac]. These Discussion boards are for Apple products, so you should find help over there.

  • Server name not showing up in Chooser

    mac OS 10.1.3 server. The server name is not showing up in the Chooser,. I can get to it by typing in the IP address, but this is a pain for my teachers.
    It showed up for a long time, but now it will not show up.
    Any ideas?

    Apple talk is on the server and the clients. I also have another server that is connected to the same switch and it can be seen in the chooser. So I do not think it is a config problem with the switches or hubs. I have not changed anything (that I know of). I have researched this and can not find anything on it.

  • Error showing in listener while giving tnsping application server name

    iam trying to connect application server with database server.......while giving tnsping from database server as tnsping application_server_name
    its showing error as
    $ tnsping 10.92.5.8
    TNS Ping Utility for IBM/AIX RISC System/6000: Version 10.2.0.1.0 - Production on 09-FEB-2007 06:18:05
    Copyright (c) 1997, 2005, Oracle. All rights reserved.
    Used parameter files:
    Used HOSTNAME adapter to resolve the alias
    Attempting to contact (DESCRIPTION=(CONNECT_DATA=(SERVICE_NAME=10.92.5.8))(ADDRESS=(PROTOCOL=TCP)(HOST=10.92.5.8)(PORT=1521)))
    TNS-12541: TNS:no listener
    but i have set the listener in databse server.
    thsi is my listener.ora
    LISTENER =
    (ADDRESS_LIST=
    (ADDRESS=(PROTOCOL=tcp)(HOST=application server name)(PORT=1521))
    (ADDRESS=(PROTOCOL=ipc)(KEY=PNPKEY)))
    SID_LIST_LISTENER=
    (SID_LIST=
    (SID_DESC=
    (GLOBAL_DBNAME=RBTT)
    (SID_NAME=RBTT)
    (ORACLE_HOME=home path of database server)
    if iam connecting sqlplus there in application server and giving username and password
    its showing error as .......
    Enter user-name: xmluser
    Enter password:
    ERROR:
    Enter user-name: xmluser
    Enter password:
    ERROR:
    ORA-12545: Connect failed because target host or object does not exist
    thanks in advance
    R.Ratheesh

    hi,
    I have changed the listener hostname....before changing the host name also tnsoping database server name works fine....
    i am posting the tnsnames.ora of databse server
    RBTT =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS=(PROTOCOL=TCP) (HOST=application server_name) (PORT = 1521))
    (CONNECT_DATA =
    (SERVER=DEDICATED)
    (SERVICE_NAME = RBTT)
    tnsnames.ora for application server
    RBTT =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS=(PROTOCOL=TCP) (HOST=database server name) (PORT = 1521))
    (CONNECT_DATA =
    (SERVER=DEDICATED)
    (SERVICE_NAME = RBTT)
    is this is the right one..
    and regarding this connectivity between two servers tnsnames.ora and listener.ora plays a vital role....should i have to make any changes in sqlnet.ora in both application server and database server...should i have to copy sqlnet.ora,listener.ora in application server...and what has to be set in both???
    I have changed sqlnet.ora in database server in names.directory_path=tnsnames.ora
    thanks in advance,
    R.Ratheesh

  • When connecting to website using sso, packet sniffing shows ntlm user is using {server name}\{user name} instead of {domain name}\{user name}

    I moved to windows 7 and firefox 12 and my internal website via the servername (not FQN) is now prompting me for the username and password in firefox. I do not get prompted for a username and password when using IE9 to access the site via servername (not FQN).
    packet sniffing shows IE9 is using my windows domain as the windows domain. packet sniffing shows Firefox is using the web servers servername as the domain.
    If I use the fully qualified server name then firefox authenticates successfully. this is not a problem on my winxp workstation with firefox 12.

    The only time it fails is in windows 7 and the address used of HTTP://servername. I updated the above post to show it works in XP with ff12.
    There is no proxy server involved.
    I am logged into the domain.
    If I use the fully qualified servername as the address it works. Http://servername.domain.local

  • Lync Edge and Proxy server public DNS records port forwarding rules

    Hi All
    I have question in regards to port forwarding rules for port 443 of simple url.
    I have 4 public ip addresses.
    1 edge server (4 nics , 3 running with different ip for sip, meet and dialin in DMZ network, 1 connected to internal local network).
    1 proxy server (2 nics, 1 running with an ip which is in DMZ same as edge, and 1 connected to internal local network)
    1 front end (lync 2013 standard installed.) connected to internal local network
    1 office web apps . connected to internal local network
    The question is that I am using 3 public ip addresses respectively on public DNS records for sip, meet and dialin(av) and using port 443 which has been set on edge server. So , I can use 3 DMZ network ip address on edge for sip, meet
    and dialin (av) port forwarding from 3 public ip addresses as per in Microsoft document.
    However, I also have a reverse proxy .Hence, my understanding is all public DNS records except SIP and port 443 should be pointed and port forwarded to reverse proxy ip address which is in DMZ network as it would redirect 443 and 80 to 4443 and 8080 to front
    end.
    Now the question has been clear, if simple URLs public DNS record and port forwarding rules for port 443 should be pointed to reverse proxy server, why they need to be set on each ip address and port number in Front end server topology to edge server?
    If anyone knows, please give a help how to set it correct and what is supposed to be a correct configuration for a topology lync 2013

    Hi George
    Thanks for your reply. Attached is my topology which could make my it bit clear. You may see the public dns host record from the image. I set sip, meet, dialin , and owa 4 host records. The first 3 records are pointed to lync edge by doing a NAT with port
    443 which is the same as per you said. However my understanding is they should be pointed to reverse proxy instead as for instance, I need meet.xxx.com with port 443 to be redirected to port 4443 through reverse proxy server to the front end. So when the external
    customers who do not have lync client installed to their machine then we can shoot a lync meeting and send to them via outlook and they just need to click on join lync meeting link in the email to join in such a meeting based on IE. (Is my understanding correct?)
    If lync web meeting works like so , then the question is why I need to set three SAME addresses in front end topology builder for edge and make them point to edge server instead? 
    1. Access Edge service (SIP.XXX.COM) ---> I understand that it is used for external login lync front end.
    2. Webconf edge server(Can I set to meet.xxx.com which is the same as simple URL that points to reverse proxy?) ----> If I can set this address to be the same as simple url address that points to reverse proxy, why should it need to be NATed to edge
    instead? TO BE HONEST, if I HAVE tested, if I set this url as sip.xxx.com which means to use a single FQDN and ip address with port 444 and points simple url meet.xxx.com to reverse proxy, it will still work to join lync meeting sent by
    outlook.I DO NOT REALLY UNDERSTAND WHAT this URL used for at this stage.
    3. AV edge --- same as webconf
    Regards
    Wen Fei Cao

  • Shared Printers - Using a DNS record instead of server name for failover

    I have a Server 2012 Print Server. I plan on creating a second one for failover purposes. I will be installing the shared printers on client PCs using Group policy preferences.  Instead of using
    \\servername\printer as the path, can I create a DNS record for the server name and use
    \\dnsname\printer?  That way, if the first server dies, I just edit the dns record to point to the second server instead of renaming the second server and changing the IP of the second server.

    Hi,
    Based on your description, we can try creating a DNS alias for our printer server and use the alias instead of the host name in the UNC path. When this server goes down, we
    can make the alias pointing to another printer server.
    Regarding how to create an alias for a DNS host name, the following article can be referred to for more information.
    Add an Alias (CNAME) Resource Record to a Zone
    http://technet.microsoft.com/en-us/library/cc772053.aspx
    Hope it helps.
    Best regards,
    Frank Shen

  • I dont want my skpye name to show as public

    I dont want my Skype name to be shown as public.  I would like to change it to Contacts only.  Please advise me on how to correct this.

    Skype account names are publicly searcheable and default to show in public; we are not granted a choice in this.  If you have concerns, please file your request with Skype Customer Service.
    Here is a link to the instruction on how to contact Skype Customer Service via their secure portal: Contact Customer Service
    Was your question answered? Please click on the Accept as a Solution link so everyone can quickly find what works! Like a post or want to say, "Thank You" - ?? Click on the Kudos button!
    Trustworthy information: Brian Krebs: 3 Basic Rules for Online Safety and Consumer Reports: Guide to Internet Security Online Safety Tip: Change your passwords often!

  • SCOM 2012 reports do not show object or server name

    When running any performance reports (I have tested OS, SQL, and generic reports) the object is not listed in the report and the only why to tell which object the counter is from is to drill open the Instance. However, this does not work on scheduled and
    delivered reports.
    Has anyone noticed this or am I crazy? If so, how did you get around it? I was thinking if I can get the RDL for the report I can create my own with the object name.
    Thanks,
    John

    CU4 for SP1 is out http://support.microsoft.com/kb/2879276
    I haven't seen any reports from anyone who has actually installed it to see whether it introduces any problems or whether the fixes work in a real-world environment.
    the notes include:
    "Issue 5
    By default, when a generic performance report is exported, the object information (such as server name, disk label, and so on) is collapsed, and the information is missing."
    So it looks like the fix is in.

  • Server name in outlook profile stay the same after SSL changed from local to public fqdn

    Hi,
    I switched our UCC certificate for exchange 2010 so that it is no longer include .local in it. I used different FQDN url for external and internal (i.e externaURL is ExSrv.abc.com and internalURL is InSrv.abc.com). After I changed all settings, I found that
    the outlook profiles are still using the internal server name (i.e. myexchangesrv.abc.local). Is this normal? Should I expect the server name to be the new internalURL? The following are the commands I used and I also used EMC to change the OWA and ECP's internal
    URL to "InSrv.abc.com" as well. Did I missing anything?
    Set-ClientAccessServer -Identity MyExchangSrv -AutodiscoverServiceInternalUri https://InSrv.abc.com/autodiscover/autodiscover.xml
    Set-WebServicesVirtualDirectory -Identity "MyExchangSrv\EWS (Default Web Site)" -InternalUrl https://InSrv.abc.com/ews/exchange.asmx
    Set-OABVirtualDirectory -Identity "MyExchangSrv\OAB (Default Web Site)" -InternalUrl https://InSrv.abc.com/oab
    set-ActiveSyncVirtualDirectory -Identity "MyExchangSrv\Microsoft-Server-ActiveSync (Default Web Site)" -InternalUrl "https://InSrv.abc.com/Microsoft-Server-ActiveSync
    Thank you,
    Aldous

    Hi,
    When an Outlook client goes to connect to an Exchange 2010 database, it looks at an attribute associated with the mailbox database called RPCClientAccess to determine which client access server/client access server array to use for connectivity.
    Outlook 2007 and Outlook 2010 clients do not pickup this change automatically when you change the value of RPCClientAccess server, you need to repair Outlook Profile to update new RPC endpoint.
    However, be careful to Change this property, because this can broke Outlook Clients to Exchange:
    http://blogs.technet.com/b/exchange/archive/2012/05/30/rpc-client-access-cross-site-connectivity-changes.aspx
    Meanwhile, this attribute must be point to client access server or client access server array. You must have an CAS array named “InSrv.abc.com” as your expected.
    Also I find an similar thread about your concern, please refer to below link as “Brian Day” mentioned:
    https://social.technet.microsoft.com/Forums/exchange/en-US/2d0c0f5f-e4ec-4f33-a37d-b94fd7a2319f/cas-array-and-autodiscover-for-internal-and-external-access?forum=exchange2010
    “The only place the clients will ever use the CAS Array name is when the value of RPCClientAccessServer on their database is looked up and returned to them so they can then resolve the name via DNS and connect through MAPI. This is why the CAS Array
    name is not required to be on a SSL cert unless an admin chose to use the same FQDN for OWA/EAS/EWS/etc...., which would not be recommened for the reason Mitch points out above.”
    Thanks
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact [email protected]
    Allen Wang
    TechNet Community Support

  • Domain name/"primary DNS" name/mail host name/mail server name/mx name

    Hi,
    I have registered my domain name (N.com) with an external dns server and created an MX record (mail.N.com) for it as well. My server sits behind a router and internet traffic is port(80)-forwarded to my server's fixed internal ip address (I can access my webpages from the internet just fine). When I initially setup the server I was asked to give it a "primary DNS name." I naturally assumed that N.com was supposed to be entered here, but that just caused all kinds of problems (though I still do not understand why). So I reinstalled and currently have server.N.com as the primary DNS name of the server (although it shows up in Server Admin and Workgroup Manager as server.local--why is that?)
    I have had no luck getting any email from the internet with the default settings in mail services (domain name of N.com and host name of server.N.com). Having no luck with the defaults, I assumed that maybe I needed to change the host name to "mail.N.com" so that it matched the MX record. I also changed the user preferences in Workgroup Manager to receive mail from mail.N.com--but still no luck. Could someone tell me what I am doing wrong and how come none of the Mail Service literature mentions anything about what a mail "host name" is supposed to be? Is it supposed to be the same as the "Mail Server" name that Workgroup Manager asks each user for? and is it the same as the MX record name?
    I am just needing some help to connect all these variously named, but undefined, dots.
    Also, how come I can access webmail from the internet using www.N.com/webmail but can't do it from any computers within my physical network (I have to use IPaddress/webmail or server.local/webmail)?
    Also, should my user email addresses be [email protected] or [email protected] (which is the current default)?
    Thanks in advance and good luck!
    John

    I had been told by a friend that ... regular email coming in from the internet would go through port 80
    Unfortunately you were misinformed.
    My MX record needs the extra subname (such as "mail") in front of the domain name, right?
    Not at all. A MX record for 'N.com' is entirely valid (expected, in fact).
    An MX record tells remote mail servers where to send mail for any domain/subdomain. If you think about it, let's say you worked for Apple and you wanted people to be able to send email to [email protected], well then you need an MX record for 'apple.com'.
    You can see if you dig MX apple.com that they actually have 9 MX records, but the point still stands.
    Now, you might also have MX records for subdomains so that you can have [email protected], [email protected], [email protected], etc. Each of these subdomains would need a separate MX record.
    So, in general, for any set of email addresses @[anything.]domain.com you have a MX record telling remote mail servers where to send that mail.
    Of course the MX record name is mail.N.com, but I think you are implying that the in the Mail settings of Server Admin where it asks for domain name all I need to put there is the N.com, right?
    What I mean is that you need to set the domain name to whatever domain name you expect to receive mail at.
    If you want users to have email addresses in the form of [email protected], then you enter 'N.com'.
    If you want users to have email addresses in the form of [email protected] then you enter 'mail.N.com'.
    If you want both forms, enter one in the main domain and add the other(s) in the Advanced -> Hosting -> Local Host Aliases section.
    Is there anything in the Mail settings that needs to have the full MX record name (mail.N.com)?
    Yes. Either the 'domain name' or the 'Local Host Aliases' needs to contain the same thing as your MX record. That's because the MX record tells remote servers to send mail to this machine, but the machine won't accept the mail unless it is configured to do so.
    What is the "host name" supposed to be?
    This should be the name that remote servers see when this machine tries to send outgoing mail.
    Ideally this should match the reverse DNS of your IP address, that way when it connects to a remote server it says "Hi, I'm $hostname" and the remote server can lookup the machine's IP address and see the same result. This will reduce the problem of remote servers thinking you're sending them spam.
    If you only have a single IP address then this probably needs to be something like 'N.com'. If you don't have control over your reverse DNS then you're going to run into a problem.
    Also in the user accounts (in Workgroup Manager) what should the "mail server name" be? Is it the host name or the domain name?
    Off hand, I don't know.
    Also, why are all the default user email addresses [email protected] (the name I gave the server at setup)? Why doesn't the user accounts create [email protected] as the default address?
    Presumably because the mail server says it is 'server.N.com' and therefore any accounts on that machine would be [email protected]. Changing the domain name (as above) should fix that.

  • Changed server name, reconfiged emca, still getting java errors on console

    I installed 10gr2 with local database control only, and had all working fine. I then moved the server into production after testing and changed the server name. Of course this changed all the settings for dbconsole so I ran the emca config again from some info I got off of this forum a week or so ago. I can't seem to find that thread any more, and I need to get this working. I could not find any more references to the old server name, but the java error is still showing one. I can bring up the login page and login, but then it wont display any info.
    I've been searching to see what I need to do to totally re-install the local database control component but can't seem to find anything. I am also going to eventually have grid control running on another machine as well, but I imagine that I still have to have all the proper things in place on this server before I can connect either thru grid control or locally in any case.

    REPOSITORY_URL=http://winms-wwscale.millsite.net:5500/em/upload/
    I searched every file in the <server url> directory and changed any references to the old servername to the new one. The only ones that showed up were for isqlplus items.
    I am pretty sure I have run the "emca dbcontrol db -repos recreate" command, but perhaps I'll do it again. I also have a thread going on this in metalink and one suggestion is to do the following:
    SHUTDOWN IMMEDIATE;
    STARTUP RESTRICT;
    A. Drop the repository manually using following procedure.
    Stop the DB Console if not already stoped: $ORACLE_HOME/bin/emctl stop dbconsole
    Log on in sqlplus as sys user and run the following commands:
    a. drop user sysman cascade;
    b. drop role MGMT_USER;
    c. drop user MGMT_VIEW cascade;
    d. drop public synonym MGMT_TARGET_BLACKOUTS;
    e. drop public synonym SETEMVIEWUSERCONTEXT;
    (Note If any of the above statement failed and saying object doesn't exist just skip that
    statement)
    B. Drop the DB Control configuration files.
    Remove the following directories:
    $rm -rf $ORACLE_HOME/<HOSTNAME_SID>
    $rm -rf $ORACLE_HOME/oc4j/j2ee/OC4J_DBConsole_<HOSTNAME_SID>
    On Windows systems just delete the folders above from the Explorer.
    You have to replace the values in the <> with the correct values from your environment .
    The shutdown and startup restrict seems a tad severe to me, I'm thinking thats if others may be trying to access the database control page while you are doing all of this.

  • Content server log showing exception in stream

    Hi all,
    I am connecting to ecm with the follwoing cod eand error
    on transfere stream is ocurring
    after connection was paralyesd for about 4 minutes then
    ecxeption occure then server log shows
    a service exception
    the follwoing is the used code
    PLZ HELP ME
    * Copyright (c) 1997-2001 IntraNet Solutions, Incorporated. All rights reserved.
    * Copyright (c) 2001-2007 Stellent, Incorporated. All rights reserved.
    package com.stellent.cis.sdk.samples.checkin;
    import java.net.MalformedURLException;
    import java.rmi.RemoteException;
    import java.util.Date;
    import java.io.File;
    import java.io.FileNotFoundException;
    import java.io.IOException;
    import com.stellent.cis.client.command.CommandException;
    import com.stellent.cis.client.io.ICISTransferStream;
    import com.stellent.cis.client.api.scs.ISCSContent;
    import com.stellent.cis.client.api.scs.ISCSContentID;
    import com.stellent.cis.client.api.scs.document.checkin.ISCSDocumentCheckinAPI;
    import com.stellent.cis.client.api.scs.document.checkin.ISCSCheckinFlags;
    import com.stellent.cis.client.api.scs.document.checkin.ISCSDocumentCheckinResponse;
    import com.twainconnect.sample.UCPMClient1;
    import java.io.FileInputStream;
    import java.io.InputStream;
    * This class shows how to check in a file into the content server. This takes a bunch of command line switches most of which is
    * optional. If some required values are not given, it creates random values for them.
    * -file : the absolute path to the file which is to be checked in (required)
    * -contentid : the content id of the document (auto generated)
    * -title : the title of the document (auto generated)
    * -type : the type of the document (defaults to ADACCT)
    * -securitygroup : the security group (defaults to Public)
    public class CheckinFile extends UCPMClient1 {
    // The path to the primary file of the document
    private String primaryFile = null;
    // The content id of the document
    private String contentId = null;
    // The title of the document
    private String title = null;
    // the type of the document
    private String type = null;
    // the security group of the document
    private String securityGroup = null;
    // The check in api from the cis
    private ISCSDocumentCheckinAPI api = null;
    public static void main(String[] args) {
    CheckinFile checkin = new CheckinFile();
    checkin.initialize(args);
    try {
    checkin.connect();
    checkin.execute();
    } catch (CommandException e) {
    e.printStackTrace();
    } catch (MalformedURLException e) {
    e.printStackTrace();
    } catch (RemoteException e) {
    e.printStackTrace();
    System.exit(0);
    * Executes the services to perform a content server check in.
    protected void execute() throws RemoteException, CommandException {
    // Get the Document check in api from the active api.
    api = getClient().getUCPMAPI().getActiveAPI().getDocumentCheckinAPI();
    // Perform a check in of the file with the values provided. The check in flags is generated in the method
    // getCheckinFlags(). Also see getActiveContent(), getActiveContentId()
    try {
    ICISTransferStream transferStream = getClient().getUCPMAPI().createTransferStream();
    transferStream.setFile(new File("D:\\ddd.doc"));
    System.out.println("read b4 get === "+transferStream.getInputStream().read());
    // InputStream inputStreamxx = new FileInputStream( );//transferStream.getInputStream();
    // FileInputStream inputStreamxx = new FileInputStream(new File("D:\\ddd.doc"));
    // transferStream.setInputStream(inputStreamxx);
    // System.out.println("after setting "+transferStream.getInputStream().read());
    // byte[] input = new byte[25];
    // for (int i = 0; i < input.length; i++) {
    // int b = transferStream.getInputStream().read(input);
    // if (b == -1)
    // break;
    // input[i] = (byte)b;
    // System.out.println("\n---------\n"+input.length);
    // System.out.println("Whole legnth= "+transferStream.getInputStream().read(input));
    // System.out.println(inputStream .read());
    // System.out.println(getPrimaryFile());
    // transferStream.setFileName("mmm");
    // transferStream.setContentType("text/plain");
    // transferStream.setContentLength(5);
    ISCSDocumentCheckinResponse result =
    api.checkinFileStream(getSCSContext(), getActiveContent(),
    transferStream);
    //getSCSContext().setCrendentials();
    // The message from the content server , if any
    String message = result.getMessage();
    // Print a status message to the console
    print("Checked in the file [" + getPrimaryFile() +
    "] with content id " + getContentId() + ". Message:" +
    message);
    } catch (FileNotFoundException exp) {
    throw new CommandException(exp);
    } catch (IOException exp) {
    throw new CommandException(exp);
    } catch (Exception exp) {
    exp.printStackTrace();
    * This creates a new SCSCheckinFlags object which can be used to define the check-in properties.
    * @return new SCSCheckinFlags object
    * @throws RemoteException
    * @throws com.stellent.cis.client.command.CommandException
    protected ISCSCheckinFlags getCheckinFlags() throws RemoteException,
    CommandException {
    log.fine("Entering getCheckinFlags");
    ISCSCheckinFlags checkinFlags =
    (ISCSCheckinFlags)getClient().getUCPMAPI().createObject(ISCSCheckinFlags.class);
    // Specify that the file should be copied, and not be deleted after the check in.
    checkinFlags.setFileCopy(true);
    // Specify this to true if this is a workflow step checkin.
    checkinFlags.setFinished(false);
    return checkinFlags;
    * Creates a new SCSContent object where all the document specific properties and meta-data values can be set for the
    * check-in process.
    * @return new SCSContent object with the properties set
    * @throws RemoteException
    * @throws com.stellent.cis.client.command.CommandException
    protected ISCSContent getActiveContent() throws RemoteException,
    CommandException {
    // Create a new content object for the executing context
    ISCSContent activeContent =
    (ISCSContent)getClient().getUCPMAPI().createObject(ISCSContent.class);
    ISCSContentID contentID =
    (ISCSContentID)getClient().getUCPMAPI().createObject(ISCSContentID.class);
    contentID.setContentID(getContentId());
    activeContent.setContentID(contentID);
    // Set the Title of the document
    activeContent.setTitle(getTitle());
    // set the type of the document
    activeContent.setType(getType());
    // set the security group of the document
    activeContent.setSecurityGroup(getSecurityGroup());
    return activeContent;
    * Override the initialize method to read in more document specific values from the command line.
    protected void initialize(String[] args) {
    log.fine("Entering initialize");
    super.initialize(args);
    // Provide a default value for the fields so that we don't have to enter it always. ;-)
    // Date is random enough for us.
    Date now = new Date();
    setPrimaryFile(readArgsAsString("-file", args, null));
    setTitle(readArgsAsString("-title", args,
    "Title By SDK " + now.getTime()));
    setContentId(readArgsAsString("-contentid", args,
    now.getTime() + "Content-Id-SDK"));
    setType(readArgsAsString("-type", args, "ADACCT"));
    setSecurityGroup(readArgsAsString("-securitygroup", args, "Public"));
    // Getters and setters for the variables
    public String getPrimaryFile() {
    primaryFile = "D:\\w.txt";
    return primaryFile;
    public void setPrimaryFile(String primaryFile) {
    this.primaryFile = primaryFile;
    public String getContentId() {
    return contentId;
    public void setContentId(String contentId) {
    this.contentId = contentId;
    public String getTitle() {
    return title;
    public void setTitle(String title) {
    this.title = title;
    public String getSecurityGroup() {
    return securityGroup;
    public void setSecurityGroup(String securityGroup) {
    this.securityGroup = securityGroup;
    public String getType() {
    return type;
    public void setType(String type) {
    this.type = type;
    Edited by: user7326470 on Oct 17, 2009 2:52 AM

    <?xml version="1.0" encoding="windows-1256" ?>
    <config>
    <adapter default="true" name="myadapter" type="scs">
    <config>
    <property name="type">web</property>
    <property name="vaultType">web</property>
    <property
    name="host">http://192.168.0.104/MIC_ECM/idcplg</propert
    y>
    <property name="port">4444</property>
    <property
    name="contentServerAdminID">sysadmin</property>
    <property
    name="contentServerAdminPassword">idc</property>
    <property
    name="eventPollingEnabled">true</property>
    <property
    name="persistentConnection">true</property>
    <property name="cacheEnabled">true</property>
    <property
    name="connectionTimeout">9999999999999999999999999999999
    9999999999999999999999999999999999999999999999999999</pr
    operty>
    <property
    name="contentServerMappedVault"></property>
    <property name="appserverMappedVault"></property>
    </config>
    <beans template="classpath:/META-
    INF/resources/adapter/adapter-services-scs.jxml"/>
    </adapter>
    <adapter name="checkin" type="scs">
    <config>
    <property name="type">web</property>
    <property
    name="host">http://192.168.0.104/MIC_ECM/idcplg</propert
    y>
    <property name="port">4444</property>
    <property
    name="contentServerAdminID">sysadmin</property>
    <property
    name="contentServerAdminPassword">idc</property>
    <property
    name="eventPollingEnabled">true</property>
    <property
    name="persistentConnection">false</property>
    <property name="cacheEnabled">true</property>
    <property
    name="connectionTimeout">9999999999999999999999999999</p
    roperty>
    <property
    name="contentServerMappedVault"></property>
    <property name="appserverMappedVault"></property>
    </config>
    <beans template="classpath:/META-
    INF/resources/adapter/adapter-services-scs.jxml"/>
    </adapter>
    </config>
    the JDeveloper exception is as foolows
    [2009-10-17 11:24:10,749] [SCS EventPoller [myadapter]]
    WARN
    (com.stellent.cis.server.api.scs.event.impl.SCSEventPoll
    er) - No password credentials supplied for background
    polling thread but adapter config 'myadapter' is set to
    type web which requires authentication will attempt to
    poll with no credentials
    [2009-10-17 11:24:10,811] [SCS EventPoller [myadapter]]
    WARN
    (com.stellent.cis.server.api.scs.event.impl.SCSEventPoll
    er) - Error in content server event poller
    com.stellent.cis.client.command.CommandException: Error
    reading the response from the Content Server: 401
         at
    com.stellent.cis.server.api.scs.impl.SCSCommand.executeR
    equest(SCSCommand.java:338)
         at
    com.stellent.cis.server.api.scs.impl.SCSCommand.execute
    (SCSCommand.java:222)
         at
    com.stellent.cis.client.command.impl.services.CommandExe
    cutorService.executeCommand
    (CommandExecutorService.java:57)
         at
    com.stellent.cis.client.command.impl.CommandFacade.execu
    teCommand(CommandFacade.java:158)
         at
    com.stellent.cis.client.command.impl.BaseCommandAPI.invo
    keCommand(BaseCommandAPI.java:84)
         at
    com.stellent.cis.client.api.scs.administrative.query.imp
    l.SCSAdministrativeQueryAPI.queryDocumentHistory
    (SCSAdministrativeQueryAPI.java:76)
         at
    com.stellent.cis.server.api.scs.event.impl.SCSEventPolle
    r$SCSFileCachePollingThread.run(SCSEventPoller.java:275)
    Caused by:
    com.stellent.cis.server.api.scs.request.SCSRequestExcept
    ion: Error reading the response from the Content Server:
    401
         at
    com.stellent.cis.server.api.scs.request.impl.SCSRequestP
    rocessor.sendRequest(SCSRequestProcessor.java:156)
         at
    com.stellent.cis.server.api.scs.request.impl.SCSRequestP
    rocessor.processRequest(SCSRequestProcessor.java:112)
         at
    com.stellent.cis.server.api.scs.request.impl.SCSRequestF
    ilterChain.doRequestFilter
    (SCSRequestFilterChain.java:61)
         at
    com.stellent.cis.server.api.scs.request.stream.SCSOptimi
    zedPublishFilter.handleRequest
    (SCSOptimizedPublishFilter.java:128)
         at
    com.stellent.cis.server.api.scs.request.impl.SCSRequestF
    ilterChain.doRequestFilter
    (SCSRequestFilterChain.java:58)
         at
    com.stellent.cis.server.api.scs.request.stream.SCSOptimi
    zedRetrieveFilter.handleRequest
    (SCSOptimizedRetrieveFilter.java:250)
         at
    com.stellent.cis.server.api.scs.request.impl.SCSRequestF
    ilterChain.doRequestFilter
    (SCSRequestFilterChain.java:58)
         at
    com.stellent.cis.server.api.scs.request.rewrite.SCSRewri
    teURLFilter.handleRequest(SCSRewriteURLFilter.java:140)
         at
    com.stellent.cis.server.api.scs.request.impl.SCSRequestF
    ilterChain.doRequestFilter
    (SCSRequestFilterChain.java:58)
         at
    com.stellent.cis.server.api.scs.request.cache.impl.SCSSe
    rviceCacheFilter.handleRequest
    (SCSServiceCacheFilter.java:112)
         at
    com.stellent.cis.server.api.scs.request.impl.SCSRequestF
    ilterChain.doRequestFilter
    (SCSRequestFilterChain.java:58)
         at
    com.stellent.cis.server.api.scs.request.impl.SCSRequestE
    xecutorProxy.execute(SCSRequestExecutorProxy.java:105)
         at
    com.stellent.cis.server.api.scs.impl.SCSCommand.executeV
    iaProxy(SCSCommand.java:353)
         at
    com.stellent.cis.server.api.scs.impl.SCSCommand.executeR
    equest(SCSCommand.java:335)
         ... 6 more
    Caused by:
    com.stellent.cis.common.exception.HttpException: 401
         at
    com.stellent.cis.server.api.scs.protocol.impl.httpclient
    .HdaViaHttpProtocol.writeMessage
    (HdaViaHttpProtocol.java:171)
         at
    com.stellent.cis.server.api.scs.request.impl.SCSRequestP
    rocessor.sendRequest(SCSRequestProcessor.java:148)
         ... 19 more
    [2009-10-17 11:29:10,847] [SCS EventPoller [myadapter]]
    WARN
    (com.stellent.cis.server.api.scs.event.impl.SCSEventPoll
    er) - Error in content server event poller
    com.stellent.cis.client.command.CommandException: Error
    reading the response from the Content Server: 401
         at
    com.stellent.cis.server.api.scs.impl.SCSCommand.executeR
    equest(SCSCommand.java:338)
         at
    com.stellent.cis.server.api.scs.impl.SCSCommand.execute
    (SCSCommand.java:222)
         at
    com.stellent.cis.client.command.impl.services.CommandExe
    cutorService.executeCommand
    (CommandExecutorService.java:57)
         at
    com.stellent.cis.client.command.impl.CommandFacade.execu
    teCommand(CommandFacade.java:158)
         at
    com.stellent.cis.client.command.impl.BaseCommandAPI.invo
    keCommand(BaseCommandAPI.java:84)
         at
    com.stellent.cis.client.api.scs.administrative.query.imp
    l.SCSAdministrativeQueryAPI.queryDocumentHistory
    (SCSAdministrativeQueryAPI.java:76)
         at
    com.stellent.cis.server.api.scs.event.impl.SCSEventPolle
    r$SCSFileCachePollingThread.run(SCSEventPoller.java:275)
    Caused by:
    com.stellent.cis.server.api.scs.request.SCSRequestExcept
    ion: Error reading the response from the Content Server:
    401
         at
    com.stellent.cis.server.api.scs.request.impl.SCSRequestP
    rocessor.sendRequest(SCSRequestProcessor.java:156)
         at
    com.stellent.cis.server.api.scs.request.impl.SCSRequestP
    rocessor.processRequest(SCSRequestProcessor.java:112)
         at
    com.stellent.cis.server.api.scs.request.impl.SCSRequestF
    ilterChain.doRequestFilter
    (SCSRequestFilterChain.java:61)
         at
    com.stellent.cis.server.api.scs.request.stream.SCSOptimi
    zedPublishFilter.handleRequest
    (SCSOptimizedPublishFilter.java:128)
         at
    com.stellent.cis.server.api.scs.request.impl.SCSRequestF
    ilterChain.doRequestFilter
    (SCSRequestFilterChain.java:58)
         at
    com.stellent.cis.server.api.scs.request.stream.SCSOptimi
    zedRetrieveFilter.handleRequest
    (SCSOptimizedRetrieveFilter.java:250)
         at
    com.stellent.cis.server.api.scs.request.impl.SCSRequestF
    ilterChain.doRequestFilter
    (SCSRequestFilterChain.java:58)
         at
    com.stellent.cis.server.api.scs.request.rewrite.SCSRewri
    teURLFilter.handleRequest(SCSRewriteURLFilter.java:140)
         at
    com.stellent.cis.server.api.scs.request.impl.SCSRequestF
    ilterChain.doRequestFilter
    (SCSRequestFilterChain.java:58)
         at
    com.stellent.cis.server.api.scs.request.cache.impl.SCSSe
    rviceCacheFilter.handleRequest
    (SCSServiceCacheFilter.java:112)
         at
    com.stellent.cis.server.api.scs.request.impl.SCSRequestF
    ilterChain.doRequestFilter
    (SCSRequestFilterChain.java:58)
         at
    com.stellent.cis.server.api.scs.request.impl.SCSRequestE
    xecutorProxy.execute(SCSRequestExecutorProxy.java:105)
         at
    com.stellent.cis.server.api.scs.impl.SCSCommand.executeV
    iaProxy(SCSCommand.java:353)
         at
    com.stellent.cis.server.api.scs.impl.SCSCommand.executeR
    equest(SCSCommand.java:335)
         ... 6 more
    Caused by:
    com.stellent.cis.common.exception.HttpException: 401
         at
    com.stellent.cis.server.api.scs.protocol.impl.httpclient
    .HdaViaHttpProtocol.writeMessage
    (HdaViaHttpProtocol.java:171)
         at
    com.stellent.cis.server.api.scs.request.impl.SCSRequestP
    rocessor.sendRequest(SCSRequestProcessor.java:148)
         ... 19 more
    com.stellent.cis.client.command.CommandException: Error
    reading the response from the Content Server: 500
         at
    com.stellent.cis.server.api.scs.impl.SCSCommand.executeR
    equest(SCSCommand.java:338)
         at
    com.stellent.cis.server.api.scs.impl.SCSCommand.execute
    (SCSCommand.java:222)
         at
    com.stellent.cis.client.command.impl.services.CommandExe
    cutorService.executeCommand
    (CommandExecutorService.java:57)
         at
    com.stellent.cis.client.command.impl.CommandFacade.execu
    teCommand(CommandFacade.java:158)
         at
    com.stellent.cis.client.command.impl.BaseCommandAPI.invo
    keCommand(BaseCommandAPI.java:84)
         at
    com.stellent.cis.client.api.scs.document.checkin.impl.SC
    SDocumentCheckinAPI.checkinFileStream
    (SCSDocumentCheckinAPI.java:663)
         at
    com.stellent.cis.sdk.samples.checkin.CheckinFile.execute
    (CheckinFile.java:118)
         at
    com.stellent.cis.sdk.samples.checkin.CheckinFile.main
    (CheckinFile.java:71)
    Caused by:
    com.stellent.cis.server.api.scs.request.SCSRequestExcept
    ion: Error reading the response from the Content Server:
    500
         at
    com.stellent.cis.server.api.scs.request.impl.SCSRequestP
    rocessor.sendRequest(SCSRequestProcessor.java:156)
         at
    com.stellent.cis.server.api.scs.request.impl.SCSRequestP
    rocessor.processRequest(SCSRequestProcessor.java:112)
         at
    com.stellent.cis.server.api.scs.request.impl.SCSRequestF
    ilterChain.doRequestFilter
    (SCSRequestFilterChain.java:61)
         at
    com.stellent.cis.server.api.scs.request.stream.SCSOptimi
    zedPublishFilter.handleRequest
    (SCSOptimizedPublishFilter.java:128)
         at
    com.stellent.cis.server.api.scs.request.impl.SCSRequestF
    ilterChain.doRequestFilter
    (SCSRequestFilterChain.java:58)
         at
    com.stellent.cis.server.api.scs.request.stream.SCSOptimi
    zedRetrieveFilter.handleRequest
    (SCSOptimizedRetrieveFilter.java:250)
         at
    com.stellent.cis.server.api.scs.request.impl.SCSRequestF
    ilterChain.doRequestFilter
    (SCSRequestFilterChain.java:58)
         at
    com.stellent.cis.server.api.scs.request.rewrite.SCSRewri
    teURLFilter.handleRequest(SCSRewriteURLFilter.java:140)
         at
    com.stellent.cis.server.api.scs.request.impl.SCSRequestF
    ilterChain.doRequestFilter
    (SCSRequestFilterChain.java:58)
         at
    com.stellent.cis.server.api.scs.request.cache.impl.SCSSe
    rviceCacheFilter.handleRequest
    (SCSServiceCacheFilter.java:112)
         at
    com.stellent.cis.server.api.scs.request.impl.SCSRequestF
    ilterChain.doRequestFilter
    (SCSRequestFilterChain.java:58)
         at
    com.stellent.cis.server.api.scs.request.impl.SCSRequestE
    xecutorProxy.execute(SCSRequestExecutorProxy.java:105)
         at
    com.stellent.cis.server.api.scs.impl.SCSCommand.executeV
    iaProxy(SCSCommand.java:353)
         at
    com.stellent.cis.server.api.scs.impl.SCSCommand.executeR
    equest(SCSCommand.java:335)
         ... 7 more
    Caused by:
    com.stellent.cis.common.exception.HttpException: 500
         at
    com.stellent.cis.server.api.scs.protocol.impl.httpclient
    .HdaViaHttpProtocol.writeMessage
    (HdaViaHttpProtocol.java:171)
         at
    com.stellent.cis.server.api.scs.request.impl.SCSRequestP
    rocessor.sendRequest(SCSRequestProcessor.java:148)
         ... 20 more
    Process exited with exit code 0.
    the server exception in log of content server is as
    follows
    Event generated by user 'anonymous' at host
    '192.168.0.104'. Stream terminated before being able to
    read HTTP protocol line. Stream terminated before being
    able to read HTTP protocol line. [ Details ]
    An error has occurred. The stack trace below shows more
    information.
    !csUserEventMessage,anonymous,192.168.0.104!$!
    syStreamTerminatedBeforeProtocol!
    syStreamTerminatedBeforeProtocol
    intradoc.common.ServiceException: !
    syStreamTerminatedBeforeProtocol
         at
    intradoc.server.ServiceRequestImplementor.doRequest
    (ServiceRequestImplementor.java:628)
         at intradoc.server.Service.doRequest
    (Service.java:1709)
         at
    intradoc.server.ServiceManager.processCommand
    (ServiceManager.java:357)
         at intradoc.server.IdcServerThread.run
    (IdcServerThread.java:195)
    Caused by: java.io.IOException: !
    syStreamTerminatedBeforeProtocol
         at
    intradoc.serialize.DataBinderSerializer.readStreamLineBy
    teEx(DataBinderSerializer.java:1588)
         at
    intradoc.serialize.DataBinderSerializer.readStreamLineEx
    (DataBinderSerializer.java:1556)
         at
    intradoc.serialize.DataBinderSerializer.readLineEx
    (DataBinderSerializer.java:1528)
         at
    intradoc.serialize.DataBinderSerializer.parseForData
    (DataBinderSerializer.java:1336)
         at
    intradoc.serialize.DataBinderSerializer.parseMultiConten
    t(DataBinderSerializer.java:1283)
         at
    intradoc.serialize.DataBinderSerializer.continueParse
    (DataBinderSerializer.java:1244)
         at
    intradoc.data.DataSerializeUtils.continueParse
    (DataSerializeUtils.java:138)
         at intradoc.server.Service.continueParse
    (Service.java:415)
         at
    intradoc.server.ServiceRequestImplementor.doRequest
    (ServiceRequestImplementor.java:620)
         ... 3 more

Maybe you are looking for

  • In portal BookMark and save view are not working

    we already published the web application via iView in our portal. What I am looking for is to bookmark an already published web application within EP portal. E.g. I open the web application with specific filter and make some drills. Now I want to boo

  • WLST setting domain name and ListenAddress attribute

    using weblogic 9.2 just getting started with WLST and ran into two issues: 1) want to state the ListenAddress for both the adminserver and application servers with the script below: cd('Servers/AdminServer') set('Name', 'adminserver') set('ListenAddr

  • Ordering prints through iphoto

    How do I "enable" my order prints button - my "order book" button has a "+" sign and works but my order prints has no "+" and does not work.

  • Help/Tutorial getting menu button colors to behave right?

    I seem to have managed to get things pretty messed up with my titles and the colors which will help a viewer know which selection they're on and may click. I hit "restore defaults" but that didn't help. I think that I am confused as to how to set the

  • Configuring End Point in CE

    Hi Experts,         Can i know how to configure End point alais in CE. I need to work on external service callable object in which i need to provide the End point. I was not able to find the same in Administration like GP CAF environment. Thanks Gopa