After 11g upgrade "REP - 501: Unable to connect...."

Hi All,
There is a problem in one of our application which is deployed on 10g AS(10.1.2.0). The database it was connecting was upgraded to 11.2.0.3 from 10gR2.
A report is not getting executed from a form. But from web browser the report is working in standalone. Below i have checked so far.
Error I am getting:
REP - 501: Unable to connect to the specified database.
1. Disabled case sensitive login in the 11g database.
2.Used FORMS_USERNAME_CASESENSITIVE = 1 in ORACLE_HOME/forms/server/default.env.
3.Checked for zrclient.jar and rwrun.jar in classpath env variable.
4.Changed Service_name to sid in the tns connect string.
5.Restarted the whole opmn stack.
6.Run the form in debug mode and find the username,password and connect string it is throwing to report is OK. I can connect through sqlplus.
No error in forms server log in opmn or in report server.
Please help.
Now where to look at?
Regards,
Gourab

Fabian wrote:
Hi,
Try few things,
1) try tnsping <sid name>, specified in tnsnames.ora file from Oracle Application Server
2) try running the report through the below url
http://ipaddress:port/reports/rwservlet?report=report.rdf&userid=username/password@database&destype=cache&desformat=pdf&
paramform=yes
3)Trace the form and try running the report (u can google how to trace a form in 10gAS),errors would be mentioned in the trace file.The trace file will be generated in $ORACLE_HOME/forms/trace
http://ipaddress:port/forms/frmservlet?config=(name_specified_in_formsweb.cfg)&record=forms
Regards
FabianThanks for your reply.
1. tnsping is ok.
2. reports is working in this way. Problem was when calling from forms.
3. did not tried the trace. Before that the root cause of the problem was found.
Well you may say this is a mistake from my side. The URL that was being generated by the form was with wrong report server name. The application has the capability to fetch the report server name from the server and store in a db table. From that table the report server name is read and URL is made. Don't know why, some developer wrote the report server name in the form instead of fetching it from the db. So there was a mismatch of the report server name and it was not running. All I was having access was screenshot of the error and the logs. So I missed out the URL.
Regards,
Gourab

Similar Messages

  • Terminated with error: br REP-501: Unable to connect to the specified

    Hi,
    My report server can function nicely, always I can retrieve my report but I am also constantly facing the error when running report after a few minutes having my report servers on function.
         Terminated with error: <br>REP-501: Unable to connect to the specified database.
    I have 2 oracle home in my server, 1 is 9i (used for ODBC to connect to my database) and 1 more is 10g where my application server is.
    My both my TNS files have all the entries of the database server. In fact, we gets reports perfectly OK without problem until a certain time when the error pops up.
    Pls help

    I did not check the timeout because all reports were generated within seconds.

  • REP-501: Unable to connect to the specified data

    i found this error when i try to run reports in 11g-->>
    REP-501: Unable to connect to the specified data
    kindly provide solution regarding the same.

    Dear guys, it is quite an urgency here and I am not getting any clue from anywhere else .... please give me some tips to handle the issue if anybody has some...
    Regards,

  • REP-501: Unable to connect to the specified database in Report Server

    I Get a 'REP-501: Unable to connect to the specified database' error, when trying to call a report from a button on a Forms 10g application, through a report object:
    A portion of the code button:
    report_id := find_report_object('REPORT');
    set_report_object_property(report_id, report_destype, cache);
    set_report_object_property(report_id, report_desformat, 'PDF');
    set_report_object_property(report_id, report_server, p_server);
    set_report_object_property(report_id, report_filename, 'report.rep');
    report_job_id := run_report_object(report_id, lista_p);
    rep_status := report_object_status(report_job_id);
    job_number := length(servidor_rep) + 2;
    WHILE rep_status IN ('RUNNING', 'OPENING_REPORT', 'ENQUEUED') LOOP
    rep_status := report_object_status(report_job_id);
    END LOOP;
    IF rep_status = 'FINISHED' THEN
    web.show_document('http://'||server_name||'/reports/rwservlet/getjobid' ||
    substr(report_job_id, job_number) || '?server=' || p_server,'_blank');
    ELSE
    message('Error');
    END IF;
    The TSNMAMES configured in the OAS is as follows,
    LISTENERS_PROD =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = zurquivip.coope.local)(PORT = 1521))
    (ADDRESS = (PROTOCOL = TCP)(HOST = poasvip.coope.local)(PORT = 1521))
    (ADDRESS = (PROTOCOL = TCP)(HOST = irazuvip.coope.local)(PORT = 1521))
    DB01 =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = zurquivip.coope.local)(PORT = 1521))
    (ADDRESS = (PROTOCOL = TCP)(HOST = poasvip.coope.local)(PORT = 1521))
    (ADDRESS = (PROTOCOL = TCP)(HOST = irazuvip.coope.local)(PORT = 1521))
    (LOAD_BALANCE = yes)
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = DB01.COOPE.LOCAL)
    (FAILOVER_MODE =
    (TYPE = SELECT)
    (METHOD = BASIC)
    (RETRIES = 180)
    (DELAY = 5)
    This application does not fail in other databases, only in which I have the problem.
    The connection to the database through the SQLPLUS and other applications works well. The error is presented only when calling reports from the application.
    Another point is that the problem is presented with some users and not with others even they have the same conditions as roles, profiles, grant objects, etc.
    If i run my report with the following url applying directly on address bar of web browser then it run fine on web browser
    http://hostname.domain:port/reports/rwservlet?report=myreport.jsp&userid=un/pw@db&destype=cache&desformat=PDF
    OAS 10g and Database are on different machines.
    Please... any idea about this problem?
    Thanks!!

    I use a report object, imagine that sends connect information when creating the Job in the reports server.
    However the same problem happens if I call to report from the Internet Explorer with all parameters of connectivity, for example;
    http://hostname.domain:port/reports/rwservlet?report=myreport.rep&userid=un/pwdb@&destype=cache&desformat=PDF
    The only difference in this database is that it is configured in a RAC and as I mentioned the problem occurs with some users and not with others, even if they are identical.
    Thank for your help!

  • REP-501: Unable to connect to the specified database

    Hi, the following error occurs when running a paper report from forms:[
    2006/8/10 9:38:19:493] State 56016 (JobManager:updateJobStatus): Job 22 status is: Terminated with error:
    REP-501: Unable to connect to the specified database.
    [2006/8/10 9:38:19:494] Debug 50103 (JobManager:notifyWaitingJobs): Master job 22 notify its duplicated jobs.
    [2006/8/10 9:38:19:496] Debug 50103 (JobManager:updateJobStatus): Finished updating job: 22
    [2006/8/10 9:38:19:500] State 56004 (EngineInfo:setState): Engine rwEng-0 state is: Ready
    [2006/8/10 9:38:19:530] Exception 501 (): Unable to connect to the specified database.
    exception oracle.reports.RWException {
    oracle.reports.RWError[] errorChain={struct oracle.reports.RWError {
    int errorCode=501,
    java.lang.String errorString="Unable to connect to the specified database.",
    java.lang.String moduleName="REP"
         at oracle.reports.RWExceptionHelper.read(RWExceptionHelper.java:28)
         at oracle.reports.engine._EngineClassStub.run(_EngineClassStub.java:159)
         at oracle.reports.server.JobManager.runJobInEngine(JobManager.java:784)
         at oracle.reports.server.JobManager.runJobLocal(JobManager.java:1557)
         at oracle.reports.server.JobManager.dispatch(JobManager.java:896)
         at oracle.reports.server.ConnectionImpl.runJob(ConnectionImpl.java:1166)
         at oracle.reports.server.ConnectionPOATie.runJob(ConnectionPOATie.java:296)
         at oracle.reports.server.ConnectionPOA._invoke(ConnectionPOA.java:419)
         at oracle.reports.server.ConnectionPOA._invoke(ConnectionPOA.java:85)
         at com.inprise.vbroker.poa.POAImpl.invoke(POAImpl.java:2355)
         at com.inprise.vbroker.poa.ActivationRecord.invoke(ActivationRecord.java:104)
         at com.inprise.vbroker.GIOP.GiopProtocolAdapter.doRequest(GiopProtocolAdapter.java:492)
         at com.inprise.vbroker.IIOP.ServerProtocolAdapter.doRequest(ServerProtocolAdapter.java:64)
         at com.inprise.vbroker.GIOP.GiopProtocolAdapter.dispatchMessage(GiopProtocolAdapter.java:653)
         at com.inprise.vbroker.orb.TPDispatcherImpl$TPDispatcher.run(TPDispatcherImpl.java:99)
         at com.inprise.vbroker.orb.ThreadPool$PoolWorker.run(ThreadPool.java:76)
    I've included the connection in tnsnames.ora, connecting from forms and sqlplus works fine, only reports generate the error above. Any ideas ?

    In the engine tracefile i found this:
    [2006/8/10 10:48:54:64] Exception 50125 (org.omg.CORBA.TRANSIENT: vmcid: 0x0 minor code: 0 completed: No
         at com.inprise.vbroker.orb.DelegateImpl.verifyConnection(DelegateImpl.java:336)
         at com.inprise.vbroker.orb.DelegateImpl.is_local(DelegateImpl.java:496)
         at org.omg.CORBA.portable.ObjectImpl._is_local(ObjectImpl.java:354)
         at oracle.reports.server._EngineCommStub.ping(_EngineCommStub.java:91)
         at oracle.reports.engine.RWEngine.init(RWEngine.java:268)
         at oracle.reports.engine.RWEngine.main(RWEngine.java:55)
    ): Interner Fehler org.omg.CORBA.TRANSIENT: vmcid: 0x0 minor code: 0 completed: No
    [2006/8/10 10:48:55:79] Exception 50125 (org.omg.CORBA.OBJECT_NOT_EXIST: vmcid: 0x0 minor code: 0 completed: No
         at com.inprise.vbroker.ProtocolEngine.PortfolioImpl.getConnector(PortfolioImpl.java:79)
         at com.inprise.vbroker.ProtocolEngine.ManagerImpl.getConnector(ManagerImpl.java:147)
         at com.inprise.vbroker.orb.DelegateImpl._bind(DelegateImpl.java:196)
         at com.inprise.vbroker.orb.DelegateImpl.verifyConnection(DelegateImpl.java:365)
         at com.inprise.vbroker.orb.DelegateImpl.is_local(DelegateImpl.java:496)
         at org.omg.CORBA.portable.ObjectImpl._is_local(ObjectImpl.java:354)
         at oracle.reports.server._EngineCommStub.ping(_EngineCommStub.java:91)
         at oracle.reports.engine.RWEngine.init(RWEngine.java:268)
         at oracle.reports.engine.RWEngine.main(RWEngine.java:55)
    ): Interner Fehler org.omg.CORBA.OBJECT_NOT_EXIST: vmcid: 0x0 minor code: 0 completed: No
    Any ideas ? Didn't find anything useful in the web

  • Terminated with error: br REP-501: Unable to connect to the specified data

    Dear All,
    Oracle DB 10g installed on Windows 2003 Server machine and client is Windows 7 Pro. Forms are running fine. If I run report by puting everything in URL it is also giving result. But only when i am trying to call report via form I get an error REP-501: Unable to connect to the specified data. The report log file contains below result. Is this something to to AUTHID=ANONYMOUS??? I need your assistance in this regard as I have been facing this problem since quite a long time now.
    [2011/10/22 3:55:55:34] Info 56013 (ConnectionManager:release): Connection 0 is released
    [2011/10/22 3:55:55:34] Info 50132 (JobObject:reset): jobid = 72 Get command line: REPORT=E:\AuditSys\twoconsecutive_estimate.jsp USERID=AUDITSYS@customerdb P_USERID="MAJAN" P_REPORTNAME="Bills which have been estimated for 3 months consecutively" P_REGIONCODE="" P_TARIFF="" P_PRIGOV="" P_AREAFROM="2" P_AREATO="91" P_BILLMONTH="9" P_BILLYEAR="2011" P_MONTHS="3" BATCH=YES DESTYPE=cache DESFORMAT=HTML AUTHID=ANONYMOUS
    [2011/10/22 3:55:55:34] Debug 50103 (ConnectionImpl:runJob): Job queue for jobid = 72 is 0
    [2011/10/22 3:55:55:34] Debug 50103 (ConnectionImpl:runJob): jobid = 72 is in current queue
    [2011/10/22 3:55:55:34] Debug 50103 (ConnectionImpl:runJob): Calling findDuplicatedJob for jobid = 72
    [2011/10/22 3:55:55:34] Debug 50103 (JobManager:findDuplicatedJob): Found no duplicated job for job 72
    [2011/10/22 3:55:55:34] Debug 50103 (ConnectionImpl:runJob): No Duplicate jobs for jobid = 72
    [2011/10/22 3:55:55:34] Debug 50103 (ConnectionImpl:runJob): Job 72 is Enqueued
    [2011/10/22 3:55:55:34] Debug 50103 (JobManager:firstToRun): job 72 is first to run
    [2011/10/22 3:55:55:34] Debug 50103 (JobManager.runJobLocal): Trying to get engine for Job 72
    [2011/10/22 3:55:55:34] Debug 50103 (EngineManager:getIdleEngine): Target max engines = 1
    [2011/10/22 3:55:55:34] Debug 50103 (EngineManager:getIdleEngine): rwEng-0 is used = true
    [2011/10/22 3:55:55:34] Debug 50103 (EngineManager:getIdleEngine): rwEng-0 state is 1
    [2011/10/22 3:55:55:34] State 56004 (EngineInfo:setState): Engine rwEng-0 state is: Reserved
    [2011/10/22 3:55:55:34] Debug 50103 (JobManager.runJobLocal): Job 72 got Engine rwEng-0
    [2011/10/22 3:55:55:34] Debug 50103 (JobManager:runJobInEngine): Job 72 calling setCommand on engine rwEng-0
    [2011/10/22 3:55:55:34] Debug 50103 (EngineManager:updateEngineState): Engine rwEng-0 status is 3
    [2011/10/22 3:55:55:34] State 56004 (EngineInfo:setState): Engine rwEng-0 state is: Running
    [2011/10/22 3:55:55:34] Debug 50103 (EngineManager:updateEngineState): Engine rwEng-0 status is 5
    [2011/10/22 3:55:55:34] State 56004 (EngineInfo:setState): Engine rwEng-0 state is: Idle
    [2011/10/22 3:55:55:34] Debug 50103 (JobManager:runJobInEngine): Send job 72 to engine rwEng-0
    [2011/10/22 3:55:55:34] Debug 50103 (EngineManager:updateEngineState): Engine rwEng-0 status is 3
    [2011/10/22 3:55:55:34] State 56004 (EngineInfo:setState): Engine rwEng-0 state is: Running
    [2011/10/22 3:55:55:96] State 56016 (JobManager:updateJobStatus): Job 72 status is: Terminated with error:
    REP-501: Unable to connect to the specified database.
    [2011/10/22 3:55:55:96] Debug 50103 (JobManager:notifyWaitingJobs): Master job 72 notify its duplicated jobs.
    [2011/10/22 3:55:55:96] Debug 50103 (JobManager:updateJobStatus): Finished updating job: 72
    [2011/10/22 3:55:55:96] Debug 50103 (EngineManager:updateEngineState): Engine rwEng-0 status is 1
    [2011/10/22 3:55:55:96] State 56004 (EngineInfo:setState): Engine rwEng-0 state is: Ready
    [2011/10/22 3:55:55:96] Exception 501 (): Unable to connect to the specified database.
    Thanks,
    Zia

    Dear guys, it is quite an urgency here and I am not getting any clue from anywhere else .... please give me some tips to handle the issue if anybody has some...
    Regards,

  • REP-0309: Unable to connect to the specified database after three attempts.

    Hi,
    I am getting the following error in cloned instance when I developed one custom report (rdf) and copied that report into custom top reports folder. and ran that report using custom responsbility.
    that report query is like this
    select user_name,user_id,start_date,end_date from fnd_user.
    simple report...
    ==========================
    Current system time is 30-JUL-2008 11:36:16
    +-----------------------------
    | Starting concurrent program execution...
    +-----------------------------
    Arguments
    USERID='0'
    APPLLCSP Environment Variable set to :
    XML_REPORTS_XENVIRONMENT is :
    /u01/testora/8.0.6/guicommon6/tk60/admin/Tk2Motif_UTF8.rgb
    XENVIRONMENT is set to: /u01/testora/8.0.6/guicommon6/tk60/admin/Tk2Motif_UTF8.rgb
    Current NLS_LANG and NLS_NUMERIC_CHARACTERS Environment Variables are :
    American_America.UTF8
    Enter Password:
    Enter Password:
    Enter Password:
    REP-0501: Unable to connect to the specified database.
    ORA-01017: invalid username/password; logon denied
    REP-0501: Unable to connect to the specified database.
    ORA-12154: TNS:could not resolve service name
    REP-0501: Unable to connect to the specified database.
    ORA-12154: TNS:could not resolve service name
    REP-0309: Unable to connect to the specified database after three attempts. Access denied.
    Report Builder: Release 6.0.8.25.0 - Production on Wed Jul 30 11:36:16 2008
    (c) Copyright 1999 Oracle Corporation. All rights reserved.
    Enter Username: Enter Username:
    Start of log messages from FND_FILE
    End of log messages from FND_FILE
    Program exited with status 1
    Concurrent Manager encountered an error while running Oracle*Report for your concurrent request 779500.
    Review your concurrent request log and/or report output file for more detailed information.
    Executing request completion options...
    Finished executing request completion options.
    Concurrent request completed
    Current system time is 30-JUL-2008 11:36:17
    =========================================
    what might be the problem...
    I developed the report in 10g Report Builder. and moved to 1.5.10.2 instance... ran that report in my report builder using apps user and..it is running fine in my report builder.

    hi bsubbu
    your password of custom application user schema at database level should be similar with the password at application level
    for instance your custom application schema name and password is xxgis/xxgis , we register this schema at application site by this navigation
    security> oracle > register >database username (xxgis) > password (xxgis)
    here you might have change your custom application user's password at database level using
    alter user xxgis identified by newpassword;
    change this user password at application site also :
    security> oracle > register> database username (xxgis) > password (newpassword)
    i understand this from the document
    Regards
    Message was edited by:
    user608721

  • After upgrading to ios7 unable to connect iCloud server!!

    After upgrading to ios7 unable to connect iCloud server!!

    The same thing is happening here with my 16 GB wifi only iPad 2, and this is my first update in perhaps a year. The IOS7 update makes it to "Updating iCloud settings..." and goes no further.  After a while the install fails (I guess) and I have to start over.  Always ends the same way, black screen, nothing happening.  Start over, same result.  BTW I DO NOT USE iCLOUD ANYWAY
    Apple please help!

  • HT4623 After updating ios I'm unable to connect with safari, server unavailable; what should I do next

    After updating ios I'm unable to connect with safari, server unavailable what do I do now?

    I have solved my issue as well. For those who has not Find My Friends app in their devices should try this:
    - Open Safari from iPhone and go to icloud.com
    - Click (touch) Instal My Friends
    - And follow above given instruction for this problem

  • Since upgrading to LION unable to connect to wifi, in system preferences it says wifi off - cannot override it, what should i do?

    since upgrading to LION unable to connect to wifi, in system preferences it says wifi off - cannot override it, what should i do?

    While we all have MacBooks in this forum most of us don’t run Mountain Lion. There's a Mountain Lion Support Community where everybody has Mountain Lion. You should also post this question there to increase your chances of getting an answer. https://discussions.apple.com/community/mac_os/os_x_mountain_lion

  • Since last upgrade, Icloud is unable to connect to server

    Since installing the last upgrade, iCloud is unable to connect to server? 

    There are some solutions you can try in this discussion: https://discussions.apple.com/thread/5321627?start=0&tstart=0.

  • HT4623 after the upgrade my phone keeps reading connect to itunes how do i finnish the set up?

    after the upgrade my phone keeps reading' connect to itunes' how do i finnish the set up?

    Start iTunes on the computer you normally sync with and connect your phone.

  • After the upgrade I am unable to long into my wifi.

    I just upgraded my ipad and I added the security code to log in. but I was only given one opportunity to log into my home wifi. I messed up the login and now I am not able to log into it at all.
    I've repowered my modem and router but this did not solve the issue.
    I've powered off my ipad and tired to connect to my modem but I get the message that "unable to join network" It use to ask me for the password but no longer gives me this option.
    Any and all suggestions would be greatly appreciated.

    Try:
    •• Forget a network: Tap next to a network you’ve joined before (or tried to join before). Then tap “Forget this
    Network.”
    Then it shuld ask you again to join.
    Next
    - Reset network settings: Settings>General>Reset>Reset Network Settings
    - iOS: Troubleshooting Wi-Fi networks and connections
    - Wi-Fi: Unable to connect to an 802.11n Wi-Fi network
    - iOS: Recommended settings for Wi-Fi routers and access points
    - Restore from backup. See:
    iOS: How to back up
    - Restore to factory settings/new iOS device.

  • After udating Flashplayer, I am unable to connect to firefox, I get a message@unable to connect to server '

    I updated Flashplayer and then found that Google Chrome has installed itself on my PC. I swear I did not give it permission. I was then unable to connect to my usual websites, getting message unable to connect to ....
    I have uninstalled Chrome and now cannot access the internet via Firefox.

    If the printer is WPS capable.. most wireless printers are.. please us the WPS method.
    Open the airport utility and highlight your TC..
    Then go to the top menu area... and select WPS.
    This will open another menu area. I recommend you select first attempt.
    Then select WPS connection in the printer and attempt to connect.. you have 60sec to connect.. after which any attempt will fail.

  • DBMS_NETWORK_ACL_ADMIN.CHECK_PRIVILEGE' must be declared after 11g upgrade

    Hi,
    I just uograded my dev database to from 10.2.0.4 to 11.1.0.7.2. During the testing phase of the upgrade, I had come up wiht scripts to execute after the upgrade to 11g so that my utl_smtp packages will run. But now, after upgrading to 11g, when I run these scripts, I get the below error -
    ORA-06550: line 4, column 33:
    PL/SQL: ORA-00942: table or view does not exist
    ORA-06550: line 4, column 3:
    PL/SQL: SQL Statement ignored
    ORA-06550: line 6, column 4:
    PLS-00201: identifier 'DBMS_NETWORK_ACL_ADMIN.CHECK_PRIVILEGE' must be declared
    During the testing phase, I installed 11g instance and created an 11g database and then imported the 10g objects into the 11g database so as to test the application. Now, I think what happened is when I upgraded my 10g database to 11g using DBUA, it did not install APEX. I ytried to configure APEX by following instructions from this site - http://www.oracle.com/technology/obe/11gr1_db/install/apexinst/apexinst.htm and this gives me error the error -
    PLS-00201: identifier 'DBMS_XDB.SETHTTPPORT' must be declared
    How do I install apex?Can someone please guide me this?
    Thanks

    Hi, Ogan, I got this resolved.
    After the upgrade by using DBUA, I tried to execute scripts to configure ACLs since my database has dependent objects. That's when I got error saying that dbms_network_acl_admin was not found.
    when I queried DBA_registry , it didn't list XDB as one of the components. So, I understood this didn't get installed during the upgrade with DBUA. So, I installed XDB manually by running catqm.sql. This however created a lot of invalid objetcs which wouldnt get validated after tryign to recompile them with utlrp.sql. Most of the errors were looping chain of synonyms. Finally, I de-installed it and re-installed xdb and ran utlrp.sql to validate all the invalid objects. Now, everything is fine.
    I guess xdb doesn't get installed during the dbua upgrade and maybe it needs to be installed seperately. But, that's kind of confusing because xdb is supposed to be a mandatory component in 11g. Can someone please clarify this?

Maybe you are looking for

  • How to include the RNDISFN.h header file in the WIN CE Build ?

    I need to include the header file RNDISFN.h in the build of the WIN CE OS. By default the file is not included. What do i need to include  in the OS design to have the Header file compiled ? Who can help ?  (thx in advance to all these brave people t

  • To attach the files as attachment while sending

    hi,      warm wishes.. how we can attach files while sending the messages. i mean i have to  send one message with attachment .. thanks in advance. jp.

  • HDD not detecting

    Hello! My SATA WD Caviar Green with SATA&IDE USB 2.0 Cable not detecting in Windows 7. I can see "DISK 0" in Disk Manager and when i trying initialize "DISK 1", i recieving a message "Device not ready ". Does anyone any ideas?

  • Join endpoints

    Hi I have a paths that was drawn in Photoshop that I have copied into Illustrator, which I plan to flip and join together to create a perfectly equal shape, but when I try to join I get the message that to join you must select two endpoint etc. What

  • How to fix New Bose SoundDock Portable not working with iPhone 4s?

    I am having trouble working with my Bose SoundDock Portable with my iPhone which i bought on monday. I have a iPhone 4S running on iOS 5.1.1 and nothing is working. Not charging nor playing music. Thought it was going to be as simple as plug and play