Caller-id Problem in ISDN with CME 4.1
Dear all,
I am using CME 4.1 with ISDN PRI. I have got two DID ranges which is mapped to my Ephone's.
dialplan-pattern 1 677011.. extension-length 3
dialplan-pattern 2 677013.. extension-length 3
When user from extension 1.. calls outside then no problem at all.Caller id displays their DID number exactly as 67701174(Eg: if the call made from 174 extension).
When user from Extension 330 - 339 dials out, then the caller id displays as the mainnumber. The reason for displaying main number is if the calling number is different from the DID range allotted then Telco switch will send the main ISDN number.
I tried debugging isdn q931 and found only calls going out from extension 330-339 show as 677067701334(Eg: If i call from extension 334). You can see there is additional digit of 6770 in front of the DID number.
There is no destination pattern clash with any dial-peer also.
Please find attached debug ccapi inout for your reference.
Kindly help..
Thanks
Manoj
Hi, apparently multiple "dialplan-pattern' have problems, something similar happened to me when I tried, so it can be a bug.
Just use translation-profile and rules at voice-port level and make the changes in there.
Hope this helps, please rate post if it does!
Similar Messages
-
Porr Voice on outside call with CME using 7902 & 7970
Dear All,
i'm working on a simple configuration.
I'm using a 2801 with 14.4.t1 for CME 3.4.
All is working fine inside, so i can call without problems others CME users.
The problems come when i call outside trought a BRI, with these calls i hear a lot of noise...any tips?
Here mye config:
dial-peer voice 1 pots
description ** BRI pots dial-peer **
destination-pattern 0113
port 0/0/0
forward-digits 3
dial-peer voice 2 pots
description ** BRI pots dial-peer **
destination-pattern 0T
port 0/0/0
dial-peer voice 3 pots
description ** BRI pots dial-peer **
incoming called-number .
direct-inward-dial
port 0/0/0
dial-peer voice 4 pots
description ** BRI pots dial-peer **
destination-pattern 0113
port 0/0/1
forward-digits 3
dial-peer voice 5 pots
description ** BRI pots dial-peer **
destination-pattern 0T
port 0/0/1
dial-peer voice 6 pots
description ** BRI pots dial-peer **
incoming called-number .
direct-inward-dial
port 0/0/1
dial-peer voice 7 pots
description ** BRI pots dial-peer **
destination-pattern 0113
port 0/1/0
forward-digits 3
dial-peer voice 8 pots
description ** BRI pots dial-peer **
destination-pattern 0T
port 0/1/0
dial-peer voice 9 pots
description ** BRI pots dial-peer **
incoming called-number .
direct-inward-dial
port 0/1/0
dial-peer voice 10 pots
description ** BRI pots dial-peer **
destination-pattern 0113
port 0/1/1
forward-digits 3
dial-peer voice 11 pots
description ** BRI pots dial-peer **
destination-pattern 0T
port 0/1/1
dial-peer voice 12 pots
description ** BRI pots dial-peer **
incoming called-number .
direct-inward-dial
port 0/1/1
telephony-service
load 7902 CP7902060000SCCP050124A.sbin
load 7971 TERM70.7-0-1-0s.LOADS
load 7970 TERM70.7-0-1-0s.LOADS
max-ephones 24
max-dn 72
ip source-address 10.0.0.1 port 2000
system message xxxxxx
user-locale IT
network-locale IT
time-zone 23
time-format 24
date-format dd-mm-yy
create cnf-files version-stamp 7960 Feb 21 2006 23:25:25
voicemail 6000
max-conferences 8 gain -6
call-forward pattern .T
moh music-on-hold.au
web admin system name admin@local password admin
dn-webedit
time-webedit
transfer-system full-consult
directory last-name-first
ephone-dn 1
number 101 secondary 269969201
label 101
description Interno 101
name Interno 101
ephone-dn 2
number 102 secondary 269969201
label 102
description Interno 102
name Interno 102
ephone-dn 3
number 103 secondary 269969201
label 103
description Interno 103
name Interno 103
ephone 1
username xxxx password xxx
mac-address xxxx
speed-dial 1 102 label "Interno 102"
type 7971
button 1:1
ephone 2
username xxxx password xxx
mac-address xxxx
type 7902
button 1:2
ephone 3
username xxxx password xxxx
mac-address xxxxx
type 7902
button 1:3Try adding the following commands -
network-clock-participate wic 0
network-clock-participate wic 1
network-clock-select 1 bri 0/0/0
network-clock-select 2 bri 0/1/0
This will ensure the DSP's use the same clock reference that is coming in on the BRI ports. This often clears up voice issues on Basic Rate Interfaces. -
Duplicate Call on Gatekeeper with CME
Hi,
I have an architecture with 2 CME.
CME A is connected to a gatekeeper and there is no problem when users make some calls.
CME B is not directly connected to the gatekeeper but when a user call an other one on the CME A, I can see the call on the gatekeeper.
Moreover, if a user on CME B try to call a user that is not on the CME A, the call will be forwarded to the gatekeeper and in this case, I have a duplicate call on the gatekeeper.
I have the following dial-peer on the CME B:
voice dial-peer 10 voip
destination-pattern XXXXX
session target ipv4:X.X.X.X (CME A)
On the CME A, I have an incoming dial-peer for CME B calls and an outgoing dial-peer for every call to the gatekeeper (session target ras).
Could you help me to fixe this problem ? I tried to use 2 different loopback interfaces but the problem is still there.
Thank you in advance
VincentHi,
I tried the configurations but it did not change my problem.
I still can see the call on the gatekeeper:
Total number of active calls = 1.
GATEKEEPER CALL INFO
====================
LocalCallID Age(secs) BW
1066-17702 3 16(Kbps)
Endpt(s): Alias E.164Addr
src EP: 0001
Endpt(s): Alias E.164Addr
dst EP: TRUNK_CME_A 0002
CallSignalAddr Port RASSignalAddr Port
10.206.48.236 1720 10.206.48.236 52937
Any other idea ?
Thanks
Vincent -
I have problems with outgoing call no audio, only works with speaker. I bought my iphone on december 2011.
Had the same problem, no audio on incoming or outgoing calls and only could hear the conversation of the call if I put on speaker. It seemed to start after I did a recent IOS update this past month. I tried restart, reset and restore of my iPhone but nothing changed. It appears not to be a software issue but a hardware problem. I got my phone this past summer so it was still under warranty and got it replaced.
-
the problem I have since I upgraded to Mavericks version 10.9.1
The problem appears only with Mail not with other programs, not even with my browser.
When I try to zoom the text of an e-mail I received or sent , I can no longer use the keys Command + to enlarge the text, although I can reduce it with Command -.
As I have a problem with my eyes, This is a serious matter for me.
When I write an e-mail, if I select text and press Command +, it just displaces the text to the right.
Now, my husband has a USB keyboard. If he connects it to my computer, his regular Command + does not work either, but he uses the extended keyboard, then it works. Unfortunately, he needs it for a musical application which does not work with a wireless keyboard.Firefox 3.6.4 and 3.6.6 use a process called, "plugin-container.exe" which was using up most of my CPU when I opened up multiple tabs that contained Adobe Flash files, and caused Firefox to lock up.
My solution was to use Firefox 3.5.10 which you can get from the Mozilla website at [http://www.mozilla.com/en-US/firefox/all-older.html]
I am using Adobe Flash 10.1.53.64 without any problem in this version of Firefox. Check the release notes, I believe it contains all the latest security fixes in "Firefox 3.6.4".
Hopefully, they will fix Firefox 3.6 in the next version (e.g. Firefox 3.6.7), until then you should probably use "Firefox 3.5.10". -
The problem is occurred with J2ee server node which is disabled it from MMC
Dear SAP Consultants,
The problem is occurred with J2ee server node which is disabled J2ee server node from MMS Console and the abap work process is working fine but the dispatcher is yellow status and I can login to the abap system but Iu2019m not able to start the j2ee from Tcode u201CSmicmu201D as well
The system parameters are:
BI 7.0 System as ABAP & JAVA add on, windows 2003 on Oracle database, 24 GB Ram
Paging files: Driveu201D Os system: minimum: 1525, maximum: 3048
Driveu201DEu201D application: minimum: 70855, maximum: 70855
I can see the log files as follow:
From dev_disp:
Sun Jun 21 13:10:28 2009
J2EE server info
start = TRUE
state = STARTED
pid = 2892
argv[0] = E:\usr\sap\BWD\DVEBMGS00\exe\jcontrol.EXE
argv[1] = E:\usr\sap\BWD\DVEBMGS00\exe\jcontrol.EXE
argv[2] = pf=E:\usr\sap\BWD\SYS\profile\BWD_DVEBMGS00_cai-bwdev
argv[3] = -DSAPSTART=1
argv[4] = -DCONNECT_PORT=64990
argv[5] = -DSAPSYSTEM=00
argv[6] = -DSAPSYSTEMNAME=BWD
argv[7] = -DSAPMYNAME=cai-bwdev_BWD_00
argv[8] = -DSAPPROFILE=E:\usr\sap\BWD\SYS\profile\BWD_DVEBMGS00_cai-bwdev
argv[9] = -DFRFC_FALLBACK=ON
argv[10] = -DFRFC_FALLBACK_HOST=localhost
start_lazy = 0
start_control = SAP J2EE startup framework
DpJ2eeStart: j2ee state = STARTED
DpJ2eeLogin: j2ee state = CONNECTED
Sun Jun 21 13:10:29 2009
***LOG Q0I=> NiIRead: recv (10054: WSAECONNRESET: Connection reset by peer) [nixxi.cpp 4424]
ERROR => NiIRead: SiRecv failed for hdl 6 / sock 1032
(SI_ECONN_BROKEN/10054; I4; ST; 127.0.0.1:1362) [nixxi.cpp 4424]
DpJ2eeMsgProcess: j2ee state = CONNECTED (NIECONN_BROKEN)
DpIJ2eeShutdown: send SIGINT to SAP J2EE startup framework (pid=2892)
ERROR => DpProcKill: kill failed [dpntdisp.c 371]
DpIJ2eeShutdown: j2ee state = SHUTDOWN
Sun Jun 21 13:10:48 2009
DpEnvCheckJ2ee: switch off j2ee start flag
From dev_jcontrol :
[Thr 2124] Sun Jun 21 13:10:29 2009
[Thr 2124] *** ERROR => invalid return code of process [bootstrap] (exitcode = 66) [jstartxx.c 1642]
[Thr 2124] JControlExecuteBootstrap: error executing bootstrap node [bootstrap] (rc = 66)
[Thr 2124] JControlCloseProgram: started (exitcode = 66)
[Thr 2124] JControlCloseProgram: good bye... (exitcode = 66)
From dev_bootstrap :
JHVM_BuildArgumentList: main method arguments of node [bootstrap]
-> arg[ 0]: com.sap.engine.bootstrap.Bootstrap
-> arg[ 1]: ./bootstrap
-> arg[ 2]: ID0072573
-> arg[ 3]: -XX:NewSize=57M
-> arg[ 4]: -XX:MaxNewSize=57M
-> arg[ 5]: -Xms256M
-> arg[ 6]: -Xmx256M
-> arg[ 7]: -XX:+DisableExplicitGC
-> arg[ 8]: -verbose:gc
-> arg[ 9]: -Djava.security.policy=.java.policy
-> arg[ 10]: -Djava.security.egd=file:/dev/urandom
-> arg[ 11]: -Djco.jarm=1
[Thr 5216] JLaunchIExitJava: exit hook is called (rc = 66)
[Thr 5216] **********************************************************************
ERROR => The Java VM terminated with a non-zero exit code.
Please see SAP Note 943602 , section 'J2EE Engine exit codes'
for additional information and trouble shooting.
[Thr 5216] JLaunchCloseProgram: good bye (exitcode = 66)
From server.0.log :
#1.5 #001E4F208703008A0001C7470000092000046A4414D60A1F#1242740546634#/System/Server##com.sap.caf.eu.gp.schedule.impl.ScheduleWorker#J2EE_GUEST#0##n/a##27772ea0447811deb9bf001e4f208703#SAPEngine_Application_Thread[impl:3]_25##0#0#Error#1#com.sap.caf.eu.gp.schedule.impl.ScheduleWorker#Plain###ERROR_ACQUIRE_CONNECTION
com.sap.caf.eu.gp.base.exception.EngineException: ERROR_ACQUIRE_CONNECTION
at com.sap.caf.eu.gp.base.db.ConnectionPoolJ2EE.getConnection(ConnectionPoolJ2EE.java:92)
at com.sap.caf.eu.gp.schedule.impl.ScheduleDbImpl.getScheduleToProcess(ScheduleDbImpl.java:1936)
at com.sap.caf.eu.gp.schedule.impl.ScheduleService.getScheduleToProcess(ScheduleService.java:432)
at com.sap.caf.eu.gp.schedule.impl.ScheduleWorker.work(ScheduleWorker.java:77)
at com.sap.caf.eu.gp.schedule.impl.ScheduleWorker.run(ScheduleWorker.java:63)
at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
at java.security.AccessController.doPrivileged(Native Method)
at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:102)
at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:172)
Caused by: com.sap.engine.services.dbpool.exceptions.BaseSQLException: ResourceException in method ConnectionFactoryImpl.getConnection(): com.sap.engine.services.dbpool.exceptions.BaseResourceException: SQLException thrown by the physical connection: com.sap.sql.log.OpenSQLException: Error while accessing secure store: File "
cai-bwdev
sapmnt
BWD
SYS
global
security
data
SecStore.properties" does not exist although it should..
at com.sap.engine.services.dbpool.cci.ConnectionFactoryImpl.getConnection(ConnectionFactoryImpl.java:59)
at com.sap.caf.eu.gp.base.db.ConnectionPoolJ2EE.getConnection(ConnectionPoolJ2EE.java:89)
... 8 more
Caused by: com.sap.engine.services.dbpool.exceptions.BaseResourceException: SQLException thrown by the physical connection: com.sap.sql.log.OpenSQLException: Error while accessing secure store: File "
cai-bwdev
sapmnt
BWD
SYS
global
security
data
SecStore.properties" does not exist although it should..
at com.sap.engine.services.dbpool.spi.ManagedConnectionFactoryImpl.createManagedConnection(ManagedConnectionFactoryImpl.java:193)
at com.sap.engine.services.connector.jca.ConnectionHashSet.match(ConnectionHashSet.java:338)
at com.sap.engine.services.connector.jca.ConnectionManagerImpl.allocateConnection(ConnectionManagerImpl.java:267)
at com.sap.engine.services.dbpool.cci.ConnectionFactoryImpl.getConnection(ConnectionFactoryImpl.java:51)
... 9 more
Caused by: com.sap.sql.log.OpenSQLException: Error while accessing secure store: File "
cai-bwdev
sapmnt
BWD
SYS
global
security
data
SecStore.properties" does not exist although it should..
at com.sap.sql.log.Syslog.createAndLogOpenSQLException(Syslog.java:106)
at com.sap.sql.log.Syslog.createAndLogOpenSQLException(Syslog.java:145)
at com.sap.sql.connect.OpenSQLDataSourceImpl.setDataSourceName(OpenSQLDataSourceImpl.java:226)
at com.sap.sql.connect.OpenSQLDataSourceImpl.setDataSourceName(OpenSQLDataSourceImpl.java:197)
at com.sap.engine.services.dbpool.spi.ManagedConnectionFactoryImpl.createManagedConnection(ManagedConnectionFactoryImpl.java:117)
... 12 more
Caused by: com.sap.security.core.server.secstorefs.FileMissingException: File "
cai-bwdev
sapmnt
BWD
SYS
global
security
data
SecStore.properties" does not exist although it should.
at com.sap.security.core.server.secstorefs.StorageHandler.openExistingStore(StorageHandler.java:372)
at com.sap.security.core.server.secstorefs.SecStoreFS.openExistingStore(SecStoreFS.java:1946)
at com.sap.sql.connect.OpenSQLConnectInfo.getStore(OpenSQLConnectInfo.java:802)
at com.sap.sql.connect.OpenSQLConnectInfo.lookup(OpenSQLConnectInfo.java:783)
at com.sap.sql.connect.OpenSQLDataSourceImpl.setDataSourceName(OpenSQLDataSourceImpl.java:209)
... 14 more
Please advice with the right solution,
Regards,
Ahmedthanks
-
Registering SPA500 series IP phone with CME 8.6
Hello friends. I'm newbie with CME configuration, but now I'm asked to register SPA504G phones onto a CME 8.6 installed on a Cisco 2911 router using SIP protocol. I'm testing with a SPA 502G phone with software version 7.4.7. Within "voice register global" configuration I can't find "load" command for thisphoone model. About phone files, I only found "spa50x-30x-7-4-8a.bin" file for this phone and loaded into flash: unit.
How can I make SPA 500G phone be registered with this CME? I would appreciate somebody can help me with a guide to achieve this.
Thanks in advance for your help.
Best regards
JoeI have the same problem.
Can anyone help?
Thank you. -
Cisco ip phone 9971 registration failed with CME 8.6 on WAN
Dear Sir
Subject: Cisco ip
phone 9971 registration failed
with CME 8.6 on WAN
I have a WAN simulation with one Cisco2811 router one Cisco1841 router (connected with fast Ethernet interface) plus one layer 2 switch.
I upgraded the 2811 IOS to 15.4M and installed CME8.6, when we tried to add 9971 sip phone If the traffic goes throw LAN (Same subnet- directly from switch to 2811) everything is fine and the SIP phone (9971) added with no problem but when I change the subnet and traffic goes throw WAN
( from 1841 routed to 2811 with default route) my phone didn't register.
It will be great if anybody could help!!
If you can solve my problem, I will be happy to compensate.Try binding SIP to an interface on which Phone can reach (Use "voice service voip" "sip" and then bind)
Udit -
my voice call services is not working with cellular network...only works fine with wifi..please help?
Since you have already done some sort of reset on your Airport Express, you might as well make sure it was a "hard reset" - follow the instructions for a hard reset found at:
http://docs.info.apple.com/article.html?artnum=108044
Since your Mac is running Leopard, you need to configure the Airport Express using the Airport Utility found in the Applictions->Utilities folder. You cannot install the old software that was supplied on the CD you got with the Airport Express.
In future - if you do something bad with network settings on your Mac, do NOT try to fix it with the Airport Utility. The Airport Utility is only used to configure the Airport Express - and since the problem you have created is on the Mac and not the Airport Express, there is no need to be using the Airport Utility and especially there is no need to be resetting the Airport Express. -
Problem in tilelist with dataprovider.
I have a problem in tilelist. with the dataprovider a get the
message error
ArgumentError: Error #2025: The supplied DisplayObject must
be a child of the caller.
at flash.display::DisplayObjectContainer/removeChild()
if i delete the images from the last added to the first one i
have no prob but if i want to delete from the middle i get the
message error th sode that i use is
<mx:TileList id="tileList"
dataProvider="{imgData}"
columnCount="4"
columnWidth="222"
rowCount="2"
rowHeight="194"
themeColor="haloSilver"
verticalScrollPolicy="on"
x="0" y="415" width="100%">
<mx:itemRenderer>
<mx:Component>
<mx:VBox horizontalAlign="center"
verticalAlign="middle" width="222" height="194"
verticalScrollPolicy="off" horizontalScrollPolicy="off" >
<mx:Image id="img" width="165" height="126"
maintainAspectRatio="true" source="{data.asset}" />
<mx:Label id="txt" text="{data.title}"/>
<mx:Button id="del" label="Delete"
click="outerDocument.deleteSnapShot(event)"/>
</mx:VBox>
</mx:Component>
</mx:itemRenderer>
</mx:TileList>
the function to add the image is :
public function addImgToTile(bm:Bitmap):void{
var bm1:BitmapData = Bitmap(bm1_source.content).bitmapData;
var bitmap:Bitmap = new Bitmap(bm1);
var vo:MyVOBm = new
MyVOBm(bitmap,formatTime(inStream.time));
imgData.addItem(vo);
And the function to delete the image is:
public function deleteSnapShot(ev:Event):void{
imgData.removeItemAt(tileList.selectedIndex);
tx for your helptx Amy for your help here i give you the code that generate
the image from streaming video
<mx:Canvas id="videoHBox" horizontalScrollPolicy="off"
verticalScrollPolicy="off" backgroundColor="#000000" width="456"
height="284" y="37">
</mx:Canvas>
<mx:Button x="464" y="188" label="In" width="48"
id="btnIn" click="addStart(inStream.time);" enabled="true"
visible="true" useHandCursor="true" buttonMode="true" toolTip="Add
Start Image (shotcut Home)"/>
<mx:Button id="Btn_add_action" x="464" y="221" label="Add
Screenshot" click="addImgToTile(bm1)" useHandCursor="true"
buttonMode="true" toolTip="Add Clip (shotcut insert)"/>
<mx:TileList id="tileList"
dataProvider="{imgData}"
columnCount="4"
columnWidth="222"
rowCount="2"
rowHeight="194"
themeColor="haloSilver"
verticalScrollPolicy="on"
x="0" y="415" width="100%">
<mx:itemRenderer>
<mx:Component>
<mx:VBox horizontalAlign="center"
verticalAlign="middle" width="222" height="194"
verticalScrollPolicy="off" horizontalScrollPolicy="off" >
<mx:Image id="img" width="165" height="126"
maintainAspectRatio="true" source="{data.asset}" />
<mx:Label id="txt" text="{data.title}"/>
<mx:Button id="del" label="Delete"
click="outerDocument.deleteSnapShot(event)"/>
</mx:VBox>
</mx:Component>
</mx:itemRenderer>
</mx:TileList>
variable:
private var videoHolder:UIComponent = new UIComponent();
[Bindable] public var imgData:ArrayCollection = new
ArrayCollection();
init :
nc = new NetConnection();
nc.addEventListener(NetStatusEvent.NET_STATUS, netStatus);
nc.addEventListener(SecurityErrorEvent.SECURITY_ERROR,
netSecurityError);
nc.connect(Srv_Name);
videoHolder.setActualSize(Playing_Video_width,
Playing_Video_height);
Playing_Video = new Video(Playing_Video_width,
Playing_Video_height);
videoHolder.addChild(Playing_Video);
Playing_Video.x = 0;
Playing_Video.y = 0;
videoHBox.width = Playing_Video.width;
videoHBox.height = Playing_Video.height;
videoHBox.addChild(videoHolder);
functions:
public function addStart(timecode:Number):void{
var bm:Bitmap = copyBitmap(videoHBox as
UIComponent,timecode,"start");
bm1 = bm;
img_start_time.text = formatTime(timecode);
start_time = timecode;
public function addImgToTile(bm:Bitmap):void{
var bm1:BitmapData = Bitmap(bm1_source.content).bitmapData;
var bitmap:Bitmap = new Bitmap(bm1);
var vo:MyVOBm = new
MyVOBm(bitmap,formatTime(inStream.time));
imgData.addItem(vo);
private function
copyBitmap(source:UIComponent,timecode:Number,origin:String=''):Bitmap
try{
var bmd:BitmapData = new BitmapData( source.width,
source.height );
bmd.draw(source);
corectImg = false;
catch (err:Error){
this.setFocus();
inStream.seek(timecode);
if (origin == "start") setTimeout(addStart,750,timecode);
return new Bitmap(bmd);
public function deleteSnapShot(ev:Event):void{
imgData.list.removeItemAt(tileList.selectedIndex);
and the MyVOBm class is :
package components
import flash.display.Bitmap;
[Bindable]
public class MyVOBm
private var _asset:Bitmap;
private var _title:String;
public function MyVOBm(asset:Bitmap, title:String)
this.title=title;
this.asset=asset;
public function set title(title:String):void{
_title=title;
public function get title():String{
return _title;
public function set asset(asset:Bitmap):void{
_asset=asset;
public function get asset():Bitmap{
return _asset; -
Problem in query with the u0091Document numberu0092
Hi,
I got problem in query with the Document number
There are three columns in the cube 1) Document number 2) Country 3) Count
In the cube there are multiple entries for same document number as below.
Document number country Count
10000 US 1
10001 US 1
10002 US 1
10002 US 1
10002 US 1
10003 UK 1
10004 IN 1
10004 IN 1
When I ran the query on this cube for country US it shows count as 5 but I want count as 3 (i.e. it has to take count only once for the same document nos)
Similarly for country IN I want count as 1Hi,
You have to create a counter based on the document number (exception aggregation). There is a How-to paper available for this. It is called: How-to...count the occurences of a characteristic.
Regards,
P. -
Caching problem of javascript with servlet
Hi guys
There is a problem of caching with the our project. This project contains two servlets first is getAdServlet and second is richMediaServlet. getadservlet is called thru <script src=""> following is the code:
<script LANGUAGE="JAVASCRIPT" src="http://192.168.1.6:8080/advert_java/servlet/GetAdServlet?region=1&zone=1&type=nossi&cachevar=yes">
</script>
getadservlet returns the javascript statments. These javascript statments are able to create an <iframe>. Now cotents of the iframe are supplied by the second servlet ie richMediaServlet. This servlet is called like
iframeURL = fullHttpDir+"/servlet/RichMediaServlet?";
iframeURL += "bannerCode="+ RNBanner;
iframeURL += "&cachebust="+ cachebust + refresh+"&getAd=y";
iframeURL += "&hheight="+hheight+"&wwidth="+wwidth;
out.println("document.write(\"<iframe src='" + iframeURL + "' height=" + hheight +" width="+ wwidth + " SCROLLING=no FRAMEBORDER=0 MARGINWIDTH=2 MARGINHEIGHT=2 onfocus='window.focus(); return iframeFocus()'>\");");
out.println("document.write(\"</iframe>\");");
This richmediaServlet returns HTML into <iframe>. when richmediaservlet is called, a parameter 'bannerCode' is passed. then richmediaServlet fatches the banner from the database and displays the banner into the <iframe>.
Now the problem is when i run the html file containing the script tag mentioned above, and supply different bannerCodes from getAdServlet to richMediaServlet then first banner is cached and displayed every time.
i have also used the following code to prevent the caching of both the setvlets
long currentTime = System.currentTimeMillis();
response.setHeader("Cache-Control", "no-cache, must-revalidate");
response.setHeader("Pragma", "no-cache");
response.setDateHeader("Last-modified", currentTime);
response.setHeader("Expires", "Sat, 6 May 1995 12:00:00 GMT");
and following in the iframe's head tag before the iframe tag in the getAdServlet.
out.println("document.write('<head>');");
out.println("document.write('<meta http-equiv=\"Cache-Control\" content=\"no-cache,must-revalidate\">');");
out.println("document.write('<meta http-equiv=\"Pragma\" content=\"no-cache\">');");
out.println("document.write('<meta http-equiv=\"Last-modified\" content=\""+ currentTime + "\">');");
out.println("document.write('<meta http-equiv=\"expires\" content=\"Sat, 6 May 1995 12:00:00 GMT\">');");
out.println("document.write('</head>');");
this problem does not arises when i call the getAdServlet from a testServlet and run the testServlet thru get request.
pl tell me what's wrong i m doing.First, post your code in tags if you want people to read your code...
-
How to call a BPS Web Interface with predefined selections
Hi,
I have read and try to implement the "How to... call a BPS Web Interface with predefined selections" but it is not working.
I have one Web Interface called ZXXXXX, then I created one BSP and copied the ABAP code into the Layout screen.
I checked the ABAP and it concatenates and fill the variable l_url, but the page is not displayed.
l_url = /sap/bc/bsp/sap/zxxxxx/zxxxxx.htm
I have checked that I have no errors in the BPS variables and its values.
It just opens internet explorer and the page displays "<<<" in the top of the screen.
I am working with BW7.0 and BPS 3.5.
If anyone can help me it will be rewarded,
Thanks a lot,
FernandoI think the problem is in the last part of the code.
<frameset framespacing=0 frameborder=0 border=0>
<frame src="<%= l_url%>" name="x" framespacing=0 frameborder=0 border=0
marginwidth=0 marginheight=0>
</frameset>
It is doing nothing in this point, but the ABAP fills correctly the l_url variable.
Thnks -
Problem using Toplink with JUnit
Hi,
I have a problem using Toplink with JUnit. Method under test is very simple: it use a static EntityManager object to open a transaction and persists data to db. When I invoke the method from a test method, it gives me the exception:
java.lang.AssertionError
at oracle.toplink.essentials.ejb.cmp3.persistence.PersistenceUnitProcessor.computePURootURL(PersistenceUnitProcessor.java:248)
at oracle.toplink.essentials.ejb.cmp3.persistence.PersistenceUnitProcessor.findPersistenceArchives(PersistenceUnitProcessor.java:232)
at oracle.toplink.essentials.ejb.cmp3.persistence.PersistenceUnitProcessor.findPersistenceArchives(PersistenceUnitProcessor.java:216)
at oracle.toplink.essentials.internal.ejb.cmp3.JavaSECMPInitializer.initialize(JavaSECMPInitializer.java:239)
at oracle.toplink.essentials.internal.ejb.cmp3.JavaSECMPInitializer.initializeFromMain(JavaSECMPInitializer.java:278)
at oracle.toplink.essentials.internal.ejb.cmp3.JavaSECMPInitializer.getJavaSECMPInitializer(JavaSECMPInitializer.java:81)
at oracle.toplink.essentials.ejb.cmp3.EntityManagerFactoryProvider.createEntityManagerFactory(EntityManagerFactoryProvider.java:119)
at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:83)
at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:60)
at it.valerio.electromanager.model.EntityFacade.<clinit>(EntityFacade.java:12)
at it.valerio.electromanager.business.ClienteBiz.insertIntoDatabase(ClienteBiz.java:36)
at it.valerio.electromanager.test.model.ClienteTest.insertDBTest(ClienteTest.java:30)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.junit.internal.runners.TestMethodRunner.executeMethodBody(TestMethodRunner.java:99)
at org.junit.internal.runners.TestMethodRunner.runUnprotected(TestMethodRunner.java:81)
at org.junit.internal.runners.BeforeAndAfterRunner.runProtected(BeforeAndAfterRunner.java:34)
at org.junit.internal.runners.TestMethodRunner.runMethod(TestMethodRunner.java:75)
at org.junit.internal.runners.TestMethodRunner.run(TestMethodRunner.java:45)
at org.junit.internal.runners.TestClassMethodsRunner.invokeTestMethod(TestClassMethodsRunner.java:66)
at org.junit.internal.runners.TestClassMethodsRunner.run(TestClassMethodsRunner.java:35)
at org.junit.internal.runners.TestClassRunner$1.runUnprotected(TestClassRunner.java:42)
at org.junit.internal.runners.BeforeAndAfterRunner.runProtected(BeforeAndAfterRunner.java:34)
at org.junit.internal.runners.TestClassRunner.run(TestClassRunner.java:52)
at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:38)
at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)
Where is the problem???
Regards,
ValerioEntityFacade class is very simple and it uses a static EntityManager object. Here the code:
public class EntityFacade {
private static EntityManager em = Persistence.createEntityManagerFactory("ElectroManager").createEntityManager();
private static Logger logger=Logger.getLogger(EntityFacade.class);
public static void insertCliente(Cliente c)
logger.debug("Inserisco cliente nel db: " + c);
em.getTransaction().begin();
c.setId(getNextIdForTable("Cliente"));
em.persist(c);
em.getTransaction().commit();
If I call the method from inside a main it works well, so I think the problem is not the classpath neither the URL in the persistence.xml. However the URL is:
<property name="toplink.jdbc.url" value="jdbc:derby:c:/programmi/ElectroManager/db/electroManager"/>
I use the latest build version of TopLink.
Thanks. -
Call web service in beehive with ADF
Hi all,
I want to call a web service from Oracle Beehive with ADF 10g. I created the data control from the wsdl file and I was execute in my jspx page.
A message was returned:
"DCA-40010: The Web Service call failed. The service returned a SOAP fault with the message: null."
I created a java client using Apache Axis and the error was the following:
Exception in thread "main" AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}VersionMismatch
faultSubcode:
faultString: Version Mismatch
faultActor: http://schemas.xmlsoap.org/soap/actor/next
faultNode:
faultDetail:
{http://xml.apache.org/axis/}stackTrace:Version Mismatch
at org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:222)
at org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:129)
at org.apache.axis.encoding.DeserializationContext.endElement(DeserializationContext.java:1087)
at oracle.xml.parser.v2.NonValidatingParser.parseElement(NonValidatingParser.java:1345)
at oracle.xml.parser.v2.NonValidatingParser.parseRootElement(NonValidatingParser.java:362)
at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:308)
at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:213)
at oracle.xml.jaxp.JXSAXParser.parse(JXSAXParser.java:292)
at org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227)
at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)
at org.apache.axis.Message.getSOAPEnvelope(Message.java:435)
at org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206)
at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
at org.apache.axis.client.Call.invoke(Call.java:2767)
at org.apache.axis.client.Call.invoke(Call.java:2443)
at org.apache.axis.client.Call.invoke(Call.java:2366)
at org.apache.axis.client.Call.invoke(Call.java:1812)
at webservice.platform.bee.oracle.CalendarServiceSoapHttpStub.deleteReminder(CalendarServiceSoapHttpStub.java:1873)
at ExecuteClient.main(ExecuteClient.java:26)
I think that this problem is related with de soap version (1.1 and 1.2).
Someone can help me?
Thanks.Hi,
there's also a comprehensive step-by-step tutorial about consuming a web service from the Enterprise Services Workplace using CAF. This tutorial also features the new capability for configuration of Web Service consumers that was introduced with 7.1.1.
You can find the tutorial [here|http://help.sap.com/saphelp_nwce711/helpdata/en/6d/00932cf834471789ad286986185acb/frameset.htm].
Hope that helps!
Maybe you are looking for
-
Adobe After Effects CC, getting error message when trying to open
error -10810 Just bought a new computer and registered with Adobe for the CC and can't open After effects. What can I do?
-
How to open block diagram of daq's example of NIDAQ6.9.3 in labview7.1
i use Daqcard-1200, which only supported by 6.9.3 version. so I only can use 6.9.3's daq function, I can open front pannel, and dont know how to open therelated block diagram. Thank you
-
Want to create F1 Help for radio button in my report
Hi All, I want to create F1 Help for radio button in my report program. Which function module should i call in <b>at selection screen on help-request</b> Also do I need to define the texts somewhere or I can pass it directly to the functi
-
I f I type a sentence with uppercase clicked on and then decide I do not want it in upper case but in lower case, so I go <Format> <Capitalization> <no Caps> nothing happens. I can't seem to be able to change to lower case except by re-typing the who
-
I've a problem with sync of photos and others. When I sync music or videos in iTunes (I've 7.5) it runs perfect, but when I want to sync photos, contacts or bookmarks it doesn't function. On iPod there is still Sync in Progress and in the iTunes ther