SKProductsRequest never called
Hi,
My app is close to be finished, and I want to thank everybody who helped me realizing my project - there is just one thing missing: the app in purchase functionality - which doesn't work.
My AppID has In App Purchase enabled. ok.
My Provisioning Profile is using this AppID. ok.
I have registered two products:
Airfeatures
at.hypercms.airwriting.product_airfeatures
Approved By Developer
Airlounge Scope 1
at.hypercms.airwriting.product_airscope1
Approved By Developer
I have created a Test User Account, but i am not sure how to "use" it. The documentation says that i should now login in with my test account in the store settings. right?
With my standard-account (my own iTunes Store/Connect Account) i am running the APP on my iPad.
- (void) requestProductData {
NSString *p1 = @"at.hypercms.airwriting.product_airfeatures";
NSString *p2 = @"at.hypercms.airwriting.product_airscope1";
SKProductsRequest *request= [[SKProductsRequest alloc]
initWithProductIdentifiers:
[NSSet setWithObjects: p1, p2, nil]];
[request autorelease];
request.delegate = self; [request start];
but productsRequest:(SKProductsRequest *)request didReceiveResponse is never called.
..what could it mean, if these both methods are never called?
- (void)requestDidFinish:(SKRequest *)request {
NSLog(@"purchase request finished");
- (void)request:(SKRequest *)request didFailWithError:(NSError *)error {
NSLog(@"%@", [error description]);
EDIT
it seems, that i could identify the error.. its wired..
The following snippet DOES NOT WORK
- (void) requestProductData {
NSString *p1 = @"at.hypercms.airwriting.product_airfeature";
NSString *p2 = @"at.hypercms.airwriting.product_airfeatures";
SKProductsRequest *request = [[SKProductsRequest alloc]
initWithProductIdentifiers:
[NSSet setWithObjects: p1, p2, nil]];
[request autorelease];
request.delegate = self;
[request start];
The following snippet DOES WORK
- (void) requestProductData {
NSString *p1 = @"at.hypercms.airwriting.product_airfeature";
NSString *p2 = @"at.hypercms.airwriting.product_airfeatures";
request = [[SKProductsRequest alloc]
initWithProductIdentifiers:
[NSSet setWithObjects: p1, p2, nil]];
request.delegate = self;
[request start];
so making SKProductsRequest a GLOBAL variable is the solution. is this a bug?! (using 3.1.3)
Message was edited by: sommeralex
Similar Messages
-
SKProductsRequest delagate methods never called
SKProductsRequest delagate methods never called.
..what could it mean, if these both methods are never called?
- (void)requestDidFinish:(SKRequest *)request {
NSLog(@"purchase request finished");
- (void)request:(SKRequest *)request didFailWithError:(NSError *)error {
NSLog(@"%@", [error description]);
EDIT
it seems, that i could identify the error.. its wired..
The following snippet DOES NOT WORK
- (void) requestProductData {
NSString *p1 = @"at.hypercms.airwriting.product_airfeature";
NSString *p2 = @"at.hypercms.airwriting.product_airfeatures";
SKProductsRequest *request = [[SKProductsRequest alloc]
initWithProductIdentifiers:
[NSSet setWithObjects: p1, p2, nil]];
[request autorelease];
request.delegate = self;
[request start];
The following snippet DOES WORK
- (void) requestProductData {
NSString *p1 = @"at.hypercms.airwriting.product_airfeature";
NSString *p2 = @"at.hypercms.airwriting.product_airfeatures";
request = [[SKProductsRequest alloc]
initWithProductIdentifiers:
[NSSet setWithObjects: p1, p2, nil]];
request.delegate = self;
[request start];
so making SKProductsRequest a GLOBAL variable is the solution. is this a bug?! (using 3.1.3)
Message was edited by: sommeralex -
PL/SQL Call Back function is never called
Hi, I have a AQ set to run a PL/SQL Call Back procedure, but the procedure is never called.
Oracle version is 11.2.0.2 Standard Edition
When I query aq$<queue>, the MSG_STATE column is always "ready".
This is the queue creation script
begin
DBMS_AQADM.CREATE_QUEUE_TABLE ( queue_table => 'POLERMESSAGE',
queue_payload_type => 'POLER_MESSAGE',
multiple_consumers => TRUE );
DBMS_AQADM.CREATE_QUEUE( queue_name => 'POLER_QUEUE',
queue_table => 'POLERMESSAGE');
dbms_aqadm.add_subscriber( queue_name => 'POLER_QUEUE',
subscriber => sys.aq$_agent( 'POLER_RECIPIENT', null, null ) );
dbms_aq.register ( sys.aq$_reg_info_list( sys.aq$_reg_info('POLER_QUEUE:POLER_RECIPIENT',
dbms_aq.namespace_aq,
'plsql://tr',
HEXTORAW('FF')) ) ,
1 );
DBMS_AQADM.START_QUEUE(queue_name => 'POLER_QUEUE');
end;
/This is the content of "tr" procedure
create or replace
procedure tr ( context raw,
reginfo sys.aq$_reg_info,
descr sys.aq$_descriptor,
payload raw,
payloadl number)
as
dequeue_options dbms_aq.dequeue_options_t;
message_properties dbms_aq.message_properties_t;
message_handle RAW(16);
message poler_message;
BEGIN
dequeue_options.msgid := descr.msg_id;
dequeue_options.consumer_name := descr.consumer_name;
DBMS_AQ.DEQUEUE(queue_name => descr.queue_name,
dequeue_options => dequeue_options,
message_properties => message_properties,
payload => message,
msgid => message_handle);
insert into lxtr values ( Nvl( To_Char(message.PolerMsgNro ), 'ooops' ), systimestamp ) ;
commit ;
end tr;If I query sys.reg$, I see it registered there:
SQL> select subscription_name, location_name, status, state from sys.reg$;
SUBSCRIPTION_NAME
LOCATION_NAME
STATUS STATE
"SPARCS"."POLER_QUEUE":"POLER_RECIPIENT"
plsql://tr
0 0I was working, until I re-compiled (don't ask...) the trigger that enqueue the message
This is the section of the trigger (post insert for each row) that do the enqueuing. It seems to be working, since it is enqueuing. The issue is the dequeue.
DECLARE
enqueue_options dbms_aq.enqueue_options_t;
message_properties dbms_aq.message_properties_t;
message_handle RAW(16);
message poler_message;
err varchar2(2000);
BEGIN
message := poler_message(PolerMsgId, PolerMsgNro );
dbms_aq.enqueue(queue_name => 'POLER_QUEUE',
enqueue_options => enqueue_options,
message_properties => message_properties,
payload => message,
msgid => message_handle);
END;If I run the code below, message is cleanly dequeued
declare
dequeue_options dbms_aq.dequeue_options_t;
message_properties dbms_aq.message_properties_t;
message_handle RAW(16);
message poler_message;
BEGIN
dequeue_options.consumer_name := 'POLER_RECIPIENT' ;
dbms_aq.dequeue( queue_name => 'POLER_QUEUE',
dequeue_options => dequeue_options,
message_properties => message_properties,
payload => message,
msgid => message_handle);
COMMIT;
END ;Can anyone please give me any hints on what should I do next. There is nothing on the alert log...
Thank you in advance,
Tiago1) Very few PL/SQL programmers would consider it good form to have procedures with excessive numbers of parameters. In any language, though, it's possible to write poor code.
2) Initially, you're right-- the performance of properly defined SQL statements via JDBC is little different than the performance of PL/SQL stored procedures. Frequently, however, SQL statements in Java applications do not take advantage of bind variables, which will significantly limit their scalability. Maintaining SQL statements in client applications makes it significantly more difficult on the support side-- if you find a bug in a stored procedure, you can fix the bug in one place-- if you find a bug in embedded SQL, you have to fix the code everywhere the client is deployed. Maintaining PL/SQL stored procedures also makes optimization easier-- frequently your DBA will be able to boil down a stored procedure to a couple of SQL statements and vastly improve performance (i.e. INSERT INTO <<table name>> SELECT <<column list>> from <<other table>> rather than looping over a cursor doing single-row inserts). Finally, PL/SQL stored procedures enable reuse-- when the next application wants to access the database, it doesn't have to rewrite your SQL.
3) If the alternative to the bind variables (?'s) is a bunch of literals, I'll spend the extra time writing the code for the tremendous increase in scalability.
4-6) You can certainly pass classes from Java to PL/SQL and back. You can also write Java stored procedures, rather than writing PL/SQL stored procedures). Oracle has been one of the leading proponents of Java.
Justin
Distributed Database Consulting, Inc.
http://www.ddbcinc.com/askDDBC -
NamespaceContext.getPrefix() never called
I am a newbie in the Java XML world.
Here is my issue and the snippet of code is used to explain the problem:
XPathVariableResolver jxvr = new JSTLXPathVariableResolver(pageContext);
Node contextNode = adaptParamsForXalan(n, xpathString.trim(), jxvr);
XPath xpath = XPathFactory.newInstance().newXPath();
xpath.setNamespaceContext(jstlXPathNamespaceContext); //jstlXPathNamespaceContext is
// initialized somewhere else
xpath.setXPathVariableResolver(jxvr);
Now when the xpath is evaluated using:
xpath.evaluate(xpathString, contextNode);
Under the debugger I can see that this call eventually calls the getNamespaceURI() method
of JSTLXPathNamespaceContext (class for jstlXPathNamespaceContext) and then after that
I land up at the resolveVariable(QName qname) call of JSTLXPathVariableResolver.
What I notice in resolveVariable() call is that qname.getPrefix() is always an empty string. However, qname.getNamespaceURI() returns the proper URI string. In addition, prior to reaching resolveVariable() in JSTLXPathVariableResolver, I do see that the getNamespaceURI() method
is being called in JSTLXPathNamespaceContext class. However, getPrefix() method of this
class is never called. My instinct says that if this was called before resolveVariable() method is
reached (during the creation of QName) I would get a valid prefix instead of an empty string.
Could someone help with this. Is there something that I am doing wrong. Where does QName
get created in resolveVariable() and why does it not call getPrefix()
Please let me know if I can provide more info
Thanks in advance
-DhiruThe installer extension isn't removed with the application. It still can be found in Java Cache Viewer. When you remove this extension using Java Cache Viewer the uninstall method will be called.
Is there a way to force the extension uninstallation when the main application is being removed? Removing the very application is user-friendly, you can do it from the Control Panel in Windows. It looks like JWS is missing a very important feature.
I'm using Java 1.6.0_03 right now. -
H:commandLink action never calls bean
Hi , I having some problem with h:commandLink, its never call my bean
below is my code.
<h:commandLink action="#{pc_trackingSearchPageBean.doTrackingGroupSearch}">
<h:outputText id="ownerID" value="#{varreceivables.ownerID}" />
</h:commandLink>
any suggestions?
Thanks
SrikanthHere is my backing bean..
The code is a mess now, as I had tried out all possible options I came across in net!!
public class BikesBean {
BikeVO bikeVO;
BikesFacadeI bikesFacade;
BikeStoreVO bikeStoreVO;// = new BikeStoreVO();
/** List of bikes for Bikes listing. */
private HtmlDataTable bikesModel;
private boolean editMode = false;
private BikeVO searchBikeVO;
bikeVO = new BikeVO();
searchBikeVO = new BikeVO();
public void setBikesFacade(BikesFacadeI bikesFacade) {
this.bikesFacade = bikesFacade;
public BikesFacadeI getBikesFacade() {
return bikesFacade;
/*public BikeStoreVO getBikeStoreVO() {
//if(bikeStoreVO == null)
// bikeStoreVO = new BikeStoreVO();
return bikesFacade.listBikes();
//return bikeStoreVO;
public List getMyBikes() {
System.out.println("in BikesBean..getMyBikes.."+bikeStoreVO);
if(bikeStoreVO == null)
bikeStoreVO = new BikeStoreVO();
return bikeStoreVO.getBikes();
public BikeVO getBikeVO() {
return bikeVO;
public void setBikeVO(BikeVO bikeVO) {
this.bikeVO = bikeVO;
public boolean isEditMode() {
return editMode;
public void setEditMode(boolean editMode) {
this.editMode = editMode;
public BikeVO getSearchBikeVO() {
return searchBikeVO;
public void setSearchBikeVO(BikeVO searchBikeVO) {
this.searchBikeVO = searchBikeVO;
public String listBikes() {
bikeStoreVO = bikesFacade.listBikes();
//bikesModel.setWrappedData(bikeStoreVO.getBikes());
clearSearch();
return "listbikes";
public String searchBikes() {
bikeStoreVO = bikesFacade.searchBikes(searchBikeVO);
if(bikeStoreVO.getBikes() == null || bikeStoreVO.getBikes().isEmpty()) {
FacesContext context = FacesContext.getCurrentInstance();
context.addMessage(null, MessageFactory.
getMessage("noMatch", new Object[] { "Model -> "+searchBikeVO.getModel() +" Manf. -> "+ searchBikeVO.getManufacturer()}));
return null;
//bikesModel.setWrappedData(bikeStoreVO.getBikes());
return "listbikes";
public String viewAddBike() {
bikeVO = new BikeVO();
this.editMode = false;
return "viewaddbike";
public String addBike() {
bikeStoreVO = bikesFacade.addBike(bikeVO);
//bikesModel.setWrappedData(bikeStoreVO.getBikes());
clearSearch();
return "listbikes";
public String viewEditBike() {
//this.bikeVO = (BikeVO) bikesFacade.getBikeById(((BikeVO) bikesModel.getRowData()).getBikeId());
this.bikeVO = (BikeVO)this.getBikes().getRowData();
//FacesContext ctx = FacesContext.getCurrentInstance();
//ValueBinding binding = ctx.getApplication().createValueBinding("#{editContact}");
//binding.setValue(ctx, editContact);
this.editMode = true;
return "viewaddbike";
public HtmlDataTable getBikes() {
return bikesModel;
public void setBikes(HtmlDataTable bikesModel) {
this.bikesModel = bikesModel;
public String deleteBike() {
//String attrvalue1 = (String) event.getComponent().getAttributes().get("delBikeId");
/*BikeVO vo = (BikeVO) bikesModel.getRowData();
System.out.println("Bike Id.."+vo.getBikeId());
bikeStoreVO = bikesFacade.deleteBike(vo, searchBikeVO);
bikesModel.setWrappedData(bikeStoreVO.getBikes());*/
return "listbikes";
public String updateBike() {
System.out.println("in BikesBean..updateBike..");
bikeStoreVO = bikesFacade.updateBike(bikeVO);
//bikesModel.setWrappedData(bikeStoreVO.getBikes());
return "listbikes";
anf here is my faces config..along with JSF, i am using Spring+Hibernate
<faces-config>
<application> <variable-resolver>org.springframework.web.jsf.DelegatingVariableResolver</variable-resolver>
</application>
<navigation-rule>
<from-view-id>/welcome.jsp</from-view-id>
<navigation-case>
<from-outcome>back</from-outcome>
<to-view-id>/index.jsp</to-view-id>
</navigation-case>
<navigation-case>
<from-outcome>listbikes</from-outcome>
<to-view-id>/listBikes.jsp</to-view-id>
</navigation-case>
<navigation-case>
<from-outcome>viewaddbike</from-outcome>
<to-view-id>/addBike.jsp</to-view-id>
</navigation-case>
</navigation-rule>
<navigation-rule>
<from-view-id>/addBike.jsp</from-view-id>
<navigation-case>
<from-outcome>listbikes</from-outcome>
<to-view-id>/listBikes.jsp</to-view-id>
</navigation-case>
<navigation-case>
<from-outcome>welcome</from-outcome>
<to-view-id>/welcome.jsp</to-view-id>
</navigation-case>
</navigation-rule>
<navigation-rule>
<from-view-id>/listBikes.jsp</from-view-id>
<navigation-case>
<from-outcome>welcome</from-outcome>
<to-view-id>/welcome.jsp</to-view-id>
</navigation-case>
<navigation-case>
<from-outcome>viewaddbike</from-outcome>
<to-view-id>/addBike.jsp</to-view-id>
</navigation-case>
</navigation-rule>
<managed-bean>
<managed-bean-name>bikesBean</managed-bean-name> <managed-bean-class>com.moh.jsfspring.BikesBean</managed-bean-class>
<managed-bean-scope>request</managed-bean-scope>
<managed-property>
<property-name>bikesFacade</property-name>
<value>#{bikesFacade}</value>
</managed-property>
</managed-bean>
<application>
<message-bundle>myMessages</message-bundle>
</application>
</faces-config> -
JButton pressed, but not released and actionperformed never called
Hi,
I have a simple JButton, with one action listener that does its thing (or at least should do because it is never called). I also added a mouse listener to trace the issue further.
Here's what happen. I have another component (a JTextField) with a focus listener. If the compoent looses the focus, I want to have a chance to ask a quick confirmation question (JOptionPane) before continuing to do someting else (in that case, process the action on the button).
So the focus is in the text field and I click on the button. Here's what happen:
- The button gets a mouse pressed event
- The text field looses the focus and the button gains it.
- The text field's focus lost handler shows a JOptionPane => focus goes on the option pane
- The option pane is confirmed, but the rest stops.
I get NO mouse release event on my button, the action performed is also lost and my button remains "half pressed" (when i hover the mouse pointer over it, the button is rendered lowered ).
My guess is that the option pane comes too quick and that the mouse release event is transfered to the option pane instead of the button I first clicked, causing the actionperformed to be ignored as a side effect.
Any ideas or suggestions ?
Thanks.I get NO mouse release event on my button, the action
performed is also lost and my button remains "half
pressed" (when i hover the mouse pointer over it, the
button is rendered lowered ).
basically that's a bug in the button's internal state handling.
To get an idea about how to fix it, you might want to read my article "Make Buttons Respect InputVerifiers" at
http://www.mycgiserver.com/~Kleopatra/swing/swingentry.html
Though it's rather old the issue is not solved (until 1.5b2) It's only applicable if you have tight control over the L&F.
Greetings
Jeanette -
Revision: 3937
Author: [email protected]
Date: 2008-10-28 17:37:25 -0700 (Tue, 28 Oct 2008)
Log Message:
FxContainer fix to make sure partRemoved/partAdded are never called with a null instance. In this case, in clearSkinParts(), we would call partRemoved() on all parts, whether they were there or not. This was causing a Thermo bug.
ASDoc fixes for Group, FxContainer, and FxDataContainer. Removing content property from ASDocs...this is not the recommended way to add items/remove items to Group/FxContainer. You should use the addItem/removeItem APIs. This is consistent with Flash Player and Halo. Under the hood someone can still set the content array, but it's discouraged because you could set two Groups to the same content array, which is hard to detect. Also, made currentContentGroup in FxContainer mx_internal...this is an implementation detail for us and something we may change later on. I also added some other ASDoc cleanups and fixes.
QE Notes: Ran checkintests and Mustella tests for gumbo/core/ and gumbo/components/FxDataContainer. Joann is updatating the one test that failed. WHen verifying SDK-17750, please also verify Thermo bug SDK-17800.
Doc Notes: This change includes ASDoc changes
Bugs: SDK-17750, SDK-17741, SDK-17756
Reviewer: Glenn
Ticket Links:
http://bugs.adobe.com/jira/browse/SDK-17750
http://bugs.adobe.com/jira/browse/SDK-17800
http://bugs.adobe.com/jira/browse/SDK-17750
http://bugs.adobe.com/jira/browse/SDK-17741
http://bugs.adobe.com/jira/browse/SDK-17756
Modified Paths:
flex/sdk/branches/gumbo_alpha/frameworks/projects/flex4/src/mx/components/FxContainer.as
flex/sdk/branches/gumbo_alpha/frameworks/projects/flex4/src/mx/components/FxDataContainer .as
flex/sdk/branches/gumbo_alpha/frameworks/projects/flex4/src/mx/components/Group.as
flex/sdk/branches/gumbo_alpha/frameworks/projects/flex4/src/mx/components/baseClasses/FxC omponent.asRevision: 3937
Author: [email protected]
Date: 2008-10-28 17:37:25 -0700 (Tue, 28 Oct 2008)
Log Message:
FxContainer fix to make sure partRemoved/partAdded are never called with a null instance. In this case, in clearSkinParts(), we would call partRemoved() on all parts, whether they were there or not. This was causing a Thermo bug.
ASDoc fixes for Group, FxContainer, and FxDataContainer. Removing content property from ASDocs...this is not the recommended way to add items/remove items to Group/FxContainer. You should use the addItem/removeItem APIs. This is consistent with Flash Player and Halo. Under the hood someone can still set the content array, but it's discouraged because you could set two Groups to the same content array, which is hard to detect. Also, made currentContentGroup in FxContainer mx_internal...this is an implementation detail for us and something we may change later on. I also added some other ASDoc cleanups and fixes.
QE Notes: Ran checkintests and Mustella tests for gumbo/core/ and gumbo/components/FxDataContainer. Joann is updatating the one test that failed. WHen verifying SDK-17750, please also verify Thermo bug SDK-17800.
Doc Notes: This change includes ASDoc changes
Bugs: SDK-17750, SDK-17741, SDK-17756
Reviewer: Glenn
Ticket Links:
http://bugs.adobe.com/jira/browse/SDK-17750
http://bugs.adobe.com/jira/browse/SDK-17800
http://bugs.adobe.com/jira/browse/SDK-17750
http://bugs.adobe.com/jira/browse/SDK-17741
http://bugs.adobe.com/jira/browse/SDK-17756
Modified Paths:
flex/sdk/branches/gumbo_alpha/frameworks/projects/flex4/src/mx/components/FxContainer.as
flex/sdk/branches/gumbo_alpha/frameworks/projects/flex4/src/mx/components/FxDataContainer .as
flex/sdk/branches/gumbo_alpha/frameworks/projects/flex4/src/mx/components/Group.as
flex/sdk/branches/gumbo_alpha/frameworks/projects/flex4/src/mx/components/baseClasses/FxC omponent.as -
Hi,
I am having problem in with depolying application developed using creator on Tomcat5.0. I am using sybase for connection
MY JNDI settigns are correct. I have tried using
1. Sun creator drvier class
or
2. JConnection6_0
But am having no luck so far.
Here is the stack trace
java.sql.SQLException: execute() never called
at com.sun.sql.rowset.CachedRowSetXImpl.checkExecuted(CachedRowSetXImpl.java:269)
at com.sun.sql.rowset.CachedRowSetXImpl.next(CachedRowSetXImpl.java:1423)
at webreporting.security.LoginValidator.authorizeUser(LoginValidator.java:61)
at webreporting.Page1.button1_action(Page1.java:308)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.sun.faces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:126)
at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:72)
at com.sun.rave.web.ui.appbase.faces.ActionListenerImpl.processAction(ActionListenerImpl.
at javax.faces.component.UICommand.broadcast(UICommand.java:312)
at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:267)
at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:381)
at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:75)
at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:221)
at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:90)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:197)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChai
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:1java.sql.SQLException: execute() never called
at com.sun.sql.rowset.CachedRowSetXImpl.checkExecuted(CachedRowSetXImpl.java:269)
at com.sun.sql.rowset.CachedRowSetXImpl.next(CachedRowSetXImpl.java:1423)
at webreporting.security.LoginValidator.authorizeUser(LoginValidator.java:61)You can't call cachedRowSet.next() until after you've executed your query. That's what the stack trace seems to say.
cachedRowSet.execute() retrieves the rows from the database.
next() lets you interate through the retrieved rows (aka the ResultSet). -
GetMethods from AuthoringScope is never called
There are two threads on the theme:
"I'm working on MPF package containing the language service. I need to implement MethodTips feature.
I've created the class inherited from the AuthoringScope class from MPF and override following methods:
GetDataTipText, GetDeclarations, GetMethods, Goto.
All of these except GetMethods are called ok but GetMethods is never called. "
I did as described in these threads (call the 4 methods StartName, ...) but it did not work until...
ProvideLanguageService(typeof(PRLangServ),
"PR Language",
106,
// resource ID of localized language name
CodeSense =
true,
// Supports IntelliSense
RequestStockColors =
true,
// Supplies custom colors
EnableCommenting =
true,
// Supports commenting out code
EnableAsyncCompletion =
false,
// Supports background parsing
AutoOutlining=
true
If I put EnableAsyncCompletion to true, GetMethods will never be called, if I put it as false, then it will be called.
Why ??? Can it be considered like a bug?Hi philoroussel2,
I'm not sure how this method works, I'm going to involve someone else into your case. At the same time, you can submit a feedback here for the VS product team, they might give you a good explanation about this problem.
https://connect.microsoft.com/VisualStudio
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
PDImageSelectAlternate "is obsolete and never called in Acrobat 8". Then how can I switch to alternate images to display in Acrobat 8 and 9?
The goal is to speed up screen redraw (using low resolution proxies). High-end prepress software usually provide option to generate alternate images while "normalizing" incoming PDFs. And (at least) Enfocus Pitstop can switch on/off their display in Acrobat 8 and later. The question is how they do it, if PDImageSelectAlternate "is never called". Well, I chose this subject as practice for my first plugin, because it seemed to me straightforward and simple. It looks like I was wrong.
-
ReadObject() and writeObjectO never called
I have classes to transfer images through RMI. ImageDescriptor interface provides basic method to override:
public interface ImageDescriptor extends Serializable
public void paint(java.awt.Graphics g, int x, int y, int width, int height);
}BinaryImageDescriptor is used for transferring binary data. It worked but byte[]->Image transform took some time (done once in the paint method, which caused a delay while painting for the first time) so I decided to move this routine to a method and call it when object is deserialized:
import java.awt.*;
import javax.imageio.*;
import java.nio.*;
import java.nio.channels.*;
import java.io.*;
import java.awt.image.*;
public class BinaryImageDescriptor
implements ImageDescriptor, Serializable {
private byte[] imageData = null;
private transient Image image = null;
private transient boolean updated = false;
private transient ImageObserver observer = null;
public BinaryImageDescriptor(byte[] imageData) {
this.imageData = imageData;
updated = false;
public BinaryImageDescriptor(String fileLocation) {
try {
File file = new File(fileLocation);
FileInputStream fis = new FileInputStream(file);
FileChannel fc = fis.getChannel();
int filelength = (int) file.length();
MappedByteBuffer mbb = fc.map(FileChannel.MapMode.READ_ONLY, 0,
filelength);
this.imageData = new byte[filelength];
mbb.get(this.imageData);
System.out.println("Binary Image Success: " + fileLocation);
catch (IOException ex) {
System.out.println("Binary Image error: " + fileLocation);
this.imageData = null;
public void updateBinaryImage() {
System.out.println("Update Binary");
try {
image = javax.imageio.ImageIO.read(new ByteArrayInputStream(imageData));
catch (Exception ex) {
image = null;
ex.printStackTrace();
public void paint(Graphics g, int x, int y, int width, int height) {
// Previously I used to read Image here by calling updateBinaryImage() once
if (image != null) {
g.drawImage(image, x, y, width, height, null);
public void setObserver(ImageObserver observer) {
this.observer = observer;
private void writeObject(java.io.ObjectOutputStream oos) throws IOException {
//This method is never called
System.out.println("Inside write Object");
oos.defaultWriteObject();
private void readObject(java.io.ObjectInputStream ois) throws
ClassNotFoundException, IOException {
//This method is never called too
System.out.println("Inside readObject");
ois.defaultReadObject();
updateBinaryImage();
public byte[] getImageData() {
return imageData;
}But the problem is, the readObject() and writeObject() (on the server side) are never called. So the Image remains null and nothing is painted.
Could you help?
ps: I do not obsfucate the code. Some package definitions are removed (due to propriarity) but the code compiles fine.silly mistake of me, fixed. error outside the code.
---CLOSED--- -
JMX NotificationListener is never called (Weblogic 10.3)
Hi folks
I'm trying to register a NotificationListener which gets called when the 'HeapSizeCurrent' attribute of the JVMRuntimeMBean has changed.
I tried the following code, but the listener is never called. Any ideas?
public class Test implements NotificationListener {
* @param args
public static void main(String[] args) throws Exception {
NotificationListener listener = new Test();
AttributeChangeNotificationFilter filter = new AttributeChangeNotificationFilter();
filter.enableAttribute("HeapSizeCurrent");
JMXServiceURL serviceURL = new JMXServiceURL("t3", "localhost", 7011, "/jndi/weblogic.management.mbeanservers.domainruntime");
Map<String, Object> env = new HashMap<String, Object>();
env.put(Context.SECURITY_PRINCIPAL, "weblogic");
env.put(Context.SECURITY_CREDENTIALS, "weblogic");
env.put(JMXConnectorFactory.PROTOCOL_PROVIDER_PACKAGES, "weblogic.management.remote");
env.put("jmx.remote.x.request.waiting.timeout", new Long(10000));
JMXConnector connector = JMXConnectorFactory.connect(serviceURL, env);
MBeanServerConnection connection = connector.getMBeanServerConnection();
ObjectName domainRuntimeServiceMBean = new ObjectName("com.bea:Name=DomainRuntimeService,Type=weblogic.management.mbeanservers.domainruntime.DomainRuntimeServiceMBean");
ObjectName[] serverRuntimes = (ObjectName[]) connection.getAttribute(domainRuntimeServiceMBean, "ServerRuntimes");
for (ObjectName serverRuntime : serverRuntimes) {
ObjectName jvmRuntime = (ObjectName) connection.getAttribute(serverRuntime, "JVMRuntime");
connection.addNotificationListener(jvmRuntime, listener, filter, null);
System.out.println("added listener");
System.in.read();
connector.close();
@Override
public void handleNotification(Notification notification, Object handback) {
if(notification instanceof AttributeChangeNotification) {
AttributeChangeNotification attributeChange = (AttributeChangeNotification) notification;
System.out.println("This notification is an AttributeChangeNotification");
System.out.println("Observed Attribute: " + attributeChange.getAttributeName() );
System.out.println("Old Value: " + attributeChange.getOldValue() );
System.out.println("New Value: " + attributeChange.getNewValue() );
}Thanks
Edited by: 816587 on 29-Nov-2010 13:10Hi thanks for your reply. Very strangely without making any changes I left it alone for an hour or so and it seems to be ok after that!
-
SaveState and restoreState never called after upgrade to JSF2.1.1
Hi,
I upgraded my project to JSF2.1.1.
For all my custom compontent the saveState and restoreState is never called.
Are there any required changes due to JSF2.1.1 release?
Thanks in advance,
PieterMost likely, this will fix your issue:
1: http://docs.info.apple.com/article.html?artnum=93698
Also clean up your temp files:
(Empty your Temp directory and restart)
2: http://docs.info.apple.com/article.html?artnum=93976
If you get an error when uninstalling quicktime, go through article 1, then run the Microsoft Cleanup Utility to remove quicktime afterwards:
3: http://support.microsoft.com/default.aspx?scid=kb;en-us;290301 -
API.Initialize() never called. Perpetual "Loading..."
Using Catptivate 5, I am outputting for SCORM 2004. When I run this without an LMS, it runs fine, but when launched from the LMS, it perpetually says "Loading...".
I did some Javascript debugging in the files that are output with the Captivate SCORM Package. I noticed that is does find the API, but it never calls API.Initialize().
Doing some logging within the "function Captivate_DoFSCommand(command, args)" function, I notice it gets "cpSlideChanged" as the "command" parameter in an endless loop. Never anything else.
Any ideas at all?Hi Bart
Indeed Adobe folks may pop in from time to time, but largely the forums are user-to-user. And the more users that decide to cram the channel Adobe listens to about bugs (the Wish Form/Bug Reporting Form) the more likely it is to see a patch emerge or the bug fixed in a future release.
Reporting link is in my sig line.
Cheers... Rick
Helpful and Handy Links
Begin learning Captivate 5 moments from now! $29.95
Captivate Wish Form/Bug Reporting Form
Adobe Certified Captivate Training
SorcererStone Blog
Captivate eBooks -
Supervisor has never called me back
I have been without phone service since June 6. Verizon keeps telling me my repair problem will be fixed the next day and it never happens. I have been uable to speak to any supervisor about this eventhough i leave my number and they never call me back. today when i called again, i was told i needed to schedule a repairman to come to my house eventhough last week i was told it was an area cable outage. no one has any idea what the real issue is or what it being done to repair it.
Hi efb,
You currently have a support case open for this issue. Please continue to respond in that thread, as the support agents assisting you will be looking there for any updates from you.
Maybe you are looking for
-
Windows XP installation on Satellite U300
I need to downgrade my notebook from vista to XP pro. After slipstreaming the new sata drivers into XP I installed windows xp. After installing all the drivers (and chipset drivers) i have two questionmarks left. (other devices) I realy don't have an
-
I have let it close down put it keeps appearing
-
For the past few days every time my iPhone needs to load something, it will take a ridiculously long time to load if it loads at all. This includes loading email, iCloud settings, iTunes, safari pages, even apps that need an Internet connection. Star
-
Is it possible to edit text in a pdf form created using an earlier version of LiveCycle?
I created a form starting with a Microsoft Word document, turned it into a Adobe Acrobat PDF and then turned it into a fillinable form using the LiveCycle Designer that used to be imbedded in the Adobe Acrobat program a couple of years ago. Now that
-
How to detect if text has been clipped in a JRadioButton ?
Hi, Is there any way to test if the text in a JRadioButton (same holds e.g. for a JCheckBox) has been clipped and contains ellipses ... at the end. For a JLabel, knowing the FontMetrics one can use SwingUtilities.computeStringWidth(). I found the met