HttpPushDemo throws the error of missing on real device resource
I am trying to run the example of httppushdemo on a real device to test for problems with an application to push. However, if I run the application in the device, I get the error "Missing resource com.rim.samples.device.resource.HTTPPushDemoRes.
I looked everywhere to find out how to get the resource on the device and impossible to find a solution. The documentation I found would lead me to believe that it should be compiled in the Cod.
Why I'm so confused (and frustrated after a long day of our push to debug problems)
Thank you
-Bill
In older levels (4.3 and earlier OS), RIM ran the code, so that the resources (labels field, the names of menu etc.) where in a separate package. It's a good way to demonstrate how you could internationalize applications, but also everyone confused because putting the application on the device, you need to charge upward of the cod resources as well.
At the latest OS (4.5 +), they do not do this.
The demo of http push has not changed, so you can take the source of the 4.5 or later in a previous level JDE and compile it. It will take so NOT all external files of cod. That's what I recommend you do.
However, for you to win download the JDE together for a single file, it is here:
/** * HTTPPushDemo.java * * Copyright © 1998-2008 Research In Motion Ltd. * * Note: For the sake of simplicity, this sample application may not leverage * resource bundles and resource strings. However, it is STRONGLY recommended * that application developers make use of the localization features available * within the BlackBerry development platform to ensure a seamless application * experience across a variety of languages and geographies. For more information * on localizing your application, please refer to the BlackBerry Java Development * Environment Development Guide associated with this release. */ package com.rim.samples.device.httppushdemo; import java.io.*; import javax.microedition.io.*; import net.rim.device.api.ui.*; import net.rim.device.api.ui.component.*; import net.rim.device.api.ui.container.*; import net.rim.device.api.system.*; import net.rim.device.api.util.*; import net.rim.device.api.io.http.*; /** * The client side of a simple HTTP Push system. * This application will listen for image data on the specified port and * render the data when it arrives. */ public class HTTPPushDemo extends UiApplication { // Constants ---------------------------------------------------------------- private static final String URL = "http://:100"; // PORT 100. private static final int CHUNK_SIZE = 256; // Members ------------------------------------------------------------------ private ListeningThread _listeningThread; private HTTPPushDemoScreen _mainScreen; private RichTextField _infoField; private RichTextField _imageField; public static void main(String[] args) { HTTPPushDemo theApp = new HTTPPushDemo(); theApp.enterEventDispatcher(); } // Constructor -------------------------------------------------------------- public HTTPPushDemo() { _mainScreen = new HTTPPushDemoScreen(); _mainScreen.setTitle(new LabelField("HTTP Push Demo" , LabelField.USE_ALL_WIDTH)); _infoField = new RichTextField(); _mainScreen.add(_infoField); _mainScreen.add(new SeparatorField()); _imageField = new RichTextField(); _mainScreen.add(_imageField); // Spin off the listening thread. _listeningThread = new ListeningThread(); _listeningThread.start(); _infoField.setText("HTTP Listen object started"); pushScreen(_mainScreen); } // Inner Classes ------------------------------------------------------------ private class ListeningThread extends Thread { private boolean _stop = false; private StreamConnectionNotifier _notify; public synchronized void stop() { _stop = true; try { // Close the connection so the thread will return. _notify.close(); } catch (IOException e) { System.err.println(e.toString()); } catch (NullPointerException e) { // The notify object likely failed to open, due to an IOException. } } public void run() { StreamConnection stream = null; InputStream input = null; MDSPushInputStream pushInputStream=null; while (!_stop) { try { // Synchronize here so that we don't end up creating a connection that is never closed. synchronized(this) { // Open the connection once (or re-open after an IOException), so we don't end up // in a race condition, where a push is lost if it comes in before the connection // is open again. We open the url with a parameter that indicates that we should // always use MDS when attempting to connect. _notify = (StreamConnectionNotifier)Connector.open(URL + ";deviceside=false"); } while (!_stop) { // NOTE: the following will block until data is received. stream = _notify.acceptAndOpen(); try { input = stream.openInputStream(); pushInputStream= new MDSPushInputStream((HttpServerConnection)stream, input); // Extract the data from the input stream. DataBuffer db = new DataBuffer(); byte[] data = new byte[CHUNK_SIZE]; int chunk = 0; while ( -1 != (chunk = input.read(data)) ) { db.write(data, 0, chunk); } updateMessage(data); // This method is called to accept the push. pushInputStream.accept(); input.close(); stream.close(); data = db.getArray(); } catch (IOException e1) { // A problem occurred with the input stream , however, the original // StreamConnectionNotifier is still valid. System.err.println(e1.toString()); if ( input != null ) { try { input.close(); } catch (IOException e2) { } } if ( stream != null ) { try { stream.close(); } catch (IOException e2) { } } } } _notify.close(); _notify = null; } catch (IOException ioe) { // Likely the stream was closed. Catches the exception thrown by // _notify.acceptAndOpen() when this program exits. if ( _notify != null ) { try { _notify.close(); _notify = null; } catch ( IOException e ) { } } } } } } private void updateMessage(final byte[] data) { Application.getApplication().invokeLater(new Runnable() { public void run() { // Query the user to load the received message. String[] choices = {"Ok" , "Cancel" }; if ( 0 != Dialog.ask("New message received. Do you want to render it?" , choices, 0) ) { return; } _infoField.setText("Text received - size: " + data.length); try { _imageField.setText(new String(data)); } catch (Exception e) { Dialog.inform(e.toString()); System.err.println(e.toString()); } } }); } protected void onExit() { // Kill the listening thread. _listeningThread.stop(); try { _listeningThread.join(); } catch (InterruptedException e) { System.err.println(e.toString()); } } private class HTTPPushDemoScreen extends MainScreen { /** * @see net.rim.device.api.ui.Screen#close() */ public void close() { onExit(); super.close(); } } }
Tags: BlackBerry Developers
Similar Questions
-
Can not stop the process after throwing the error in the OPS
Dear Experts,
I am oaf extension co page. I want to stop the process when getting the error after click on apply. I have written logic for error message
if(vRowCount!= 0)
{
pageContext.writeDiagnostics (this, "vrowcoun t! 0 ", 1);
throw new OAException ("xxThe number already exists", OAException.ERROR);
}
It throws the error as an exception, so that it continues the process. I would through error message and stop the process.
Could someone explain to me how can I solve this problem?
JDeveloper version: 10.1.3.3.0
Thanks in advance.
Here's the code extended co.
package xxxpai.oracle.apps.ar.hz.components.address.webui;
import java.sql. *;
Import oracle.apps.ar.hz.components.address.webui.HzPuiAddressCreateUpdateCO;
Import oracle.apps.fnd.common.MessageToken;
Oracle.apps.fnd.framework import. *;
Import oracle.apps.fnd.framework.server.OADBTransaction;
Import oracle.apps.fnd.framework.webui.OADialogPage;
Import oracle.apps.fnd.framework.webui.OAPageContext;
Import oracle.apps.fnd.framework.webui.beans.OAWebBean;
Import oracle.apps.fnd.framework.webui.beans.message.OAMessageLovInputBean;
public class xxHzPuiAddressCreateUpdateCO extends HzPuiAddressCreateUpdateCO
{
public xxHzPuiAddressCreateUpdateCO()
{
}
' Public Sub processRequest (pageContext OAPageContext, OAWebBean webBean)
{
super.processRequest (pageContext, webBean);
}
' Public Sub processFormRequest (pageContext OAPageContext, OAWebBean webBean)
{
If (PageContext.GetParameter ("Apply")! = null)
{
OAApplicationModule am2 = pageContext.getRootApplicationModule ();
Connection con = pageContext.getApplicationModule (webBean) .getOADBTransaction () .getJdbcConnection ();
pageContext.writeDiagnostics (this, "entered button1", 1);
OAViewObject arvo = (OAViewObject) am2.findViewObject ("HzPuiPartySiteVO");
String abtype = null;
int vRowCount = 0;
OAMessageLovInputBean vLOV = (OAMessageLovInputBean) webBean.findChildRecursive ("partySiteInformation0");
If (vLOV! = null)
{
abtype = vLOV.getValue (pageContext) m:System.NET.SocketAddress.ToString ();
pageContext.writeDiagnostics(this,_(new_StringBuilder()).append ("xxx view object is not null, abtype") .append (abtype) m:System.NET.SocketAddress.ToString (), 1);
}
pageContext.writeDiagnostics(this,_(new_StringBuilder()).append ("attribute is") .append (abtype).append("_").toString(), 1);
Try
{
String s1 = (new StringBuilder()).append("").toString ().append("SELECT_no_active_plots_FROM_XXPAI_REF_PLOTS_CONTRCT_VW_where_ref_number_=").append (abtype);
PreparedStatement vpreparedsatement = con.prepareStatement (s1);
ResultSet vresultset = vpreparedsatement.executeQuery ();
pageContext.writeDiagnostics(this,_(new_StringBuilder()).append ("Select is instruction") .append (s1) m:System.NET.SocketAddress.ToString (), 1);
If (vresultset. Next())
{
vRowCount = vresultset.getInt (1);
pageContext.writeDiagnostics (this, "vRowCount value is" + vRowCount, 1);
vresultset. Close();
vpreparedsatement. Close();
}
}
catch (System.Exception e)
{
throw OAException.wrapperException (e);
}
pageContext.writeDiagnostics(this,_(new_StringBuilder()).append ("vRowCount xxxx") .append (vRowCount) m:System.NET.SocketAddress.ToString (), 1);
If (vRowCount! = 0)
{
pageContext.writeDiagnostics (this, "vrowcoun t! 0 ", 1);
throw new OAException ("xxThe number already exists", OAException.ERROR);
}
}
super.processFormRequest (pageContext, webBean);
}
}
Hi, I found the solution, I used chips by using the following code.
MessageToken chips [] = {new MessageToken("ATTRIBUTE3","abtype")};
OAException errorMessage = new OAException("AR","XX_CUSTOMER_PAGE",tokens,OAException.ERROR,null);
pageContext.putDialogMessage (errorMessage);
pageContext.writeDiagnostics(this,_(new_StringBuilder()).append ("xxx before you throw new OAException') .append (vRowCount) m:System.NET.SocketAddress.ToString (), 1);
pageContext.writeDiagnostics (this, "error message is" + errorMessage, 1);
pageContext.forwardImmediately ("OA.jsp?page=/oracle/apps/ar/cusstd/acctSite/webui/ArAcctSiteOverviewPG",
NULL,
OAWebBeanConstants.KEEP_MENU_CONTEXT,
NULL,
NULL,
true,
OAWebBeanConstants.ADD_BREAD_CRUMB_NO);
But, here, I want to update the record already exists, its getting eror
-
Throw the error on a popup message
Hello
12.1.3 Jdev
I have to implement the change password functionality in one of my page. I created a link on my page saying 'Change Password '. When I click on this link a new window comes up with 2 password fields. When I click OK, it calls the method in the managed Bean. Everything works fine.
But I wanted to throw, and the error message when the entered password will not match. How can I throw the error message in the popup window without closing the popup.
I tried the codes, but what's going on here is the original popup is closed and a new popup comes up with the error message.
JboException ex = new JboException("Passwords are different. !!!!!"); BindingContext bctx = BindingContext.getCurrent(); ((DCBindingContainer)bctx.getCurrentBindingsEntry()).reportException(ex);
FacesContext context = FacesContext.getCurrentInstance(); FacesMessage facesMessage = new FacesMessage(FacesMessage.SEVERITY_INFO, "Password are different.", ""); context.addMessage(null, facesMessage);
I wanted are the popup Window with the password window should remain, an error message to show. (in another pop-up window or on the same pop-up window.)
Popup window code:
<af:popup childCreation="deferred" autoCancel="disabled" id="popupPwd"> <af:dialog id="d2" title="Change Password" dialogListener="#{pageFlowScope.profileBean.changePassword}"> <f:facet name="buttonBar"/> <af:panelFormLayout id="pfl4"> <f:facet name="footer"/> <af:inputText label="New Password" id="it2" secret="true" value="#{pageFlowScope.profileBean.newPassword}"/> <af:inputText label="Re-enter New Password" id="it12" secret="true" value="#{pageFlowScope.profileBean.newPassword1}"/> </af:panelFormLayout> </af:dialog> </af:popup>
See you soon
AJ
Check this blog Blog of the ADF (Application Development Framework) that shows how to do this.
Timo
-
OAException.ERROR is not throwing the error
Hi friends,
I am faced with a particular problem. I extended the oracle.apps.per.selfservice.specialinformation.webui.SitNavigationBarCO CO.
When the user clicks the next button, I perform a function and the return value and based on the return value that I throw the error. I am unable to call the function, and then, the function also returns a correct value. However I do not see the error message be lifted. I assume using OAException.ERROR the error pops up in the upper part and the user will not be able to navigate to the next page. Also, I enabled the logging and the function returns the value 'B '.
Here's the code. Any ideas what I am doing wrong help. Apps version is 12.1.3
Thank you
' Public Sub processFormRequest (OAPageContext oapagecontext, OAWebBean oawebbean)
{
super.processRequest (oapagecontext, oawebbean);
If (oapagecontext. GetParameter ("HrNext")! = null) {}
OAApplicationModule oaapplicationmodule = (oawebbean) oapagecontext.getApplicationModule;
OADBTransaction oadbTrans = oaapplicationmodule.getTransaction ((OADBTransaction));
String retValues = null;
try {}
userId int = oapagecontext.getUserId ();
String idFlexNum = "50425;
StringBuffer str = new StringBuffer();
Str.Append ("BEGIN");
Str.Append (": 1: = XX_CUSTOM_SIT.") VALIDATE_LOAN_REQUEST (»);
Str.Append ("p_user_id = >: 2," "");
Str.Append ("p_id_flex_num = >: 3" "");
Str.Append (»); «) ;
Str.Append ("END");
OracleCallableStatement oraclecallablestatement = (OracleCallableStatement) oadbTrans.createCallableStatement (str.toString (), 1);
oraclecallablestatement.setInt (2, userId);
oraclecallablestatement.setInt (3, Integer.parseInt (idFlexNum));
oraclecallablestatement.registerOutParameter (1, Types.VARCHAR);
oraclecallablestatement. Execute();
retValues = oraclecallablestatement.getString (1);
oapagecontext.writeDiagnostics (this, "retValues:" + retValues, 2);
} catch (Exception e) {}
throw OAException.wrapperException (e);
}
If (retValues.equals ("A")) {}
throw new OAException ("You are not eligible for loan based on your service", OAException.ERROR);
}
If (retValues.equals ('B')) {}
throw new OAException ("You can't apply for loan more than 2 times", OAException.ERROR);
}
If (retValues.equals ("C")) {}
throw new OAException ("Loan is false", OAException.ERROR);
}
}
Dear all,
This problem is solved after I put the following instructions.
oapagecontext.putDialogMessage (new OAException (message, OAException.ERROR)); oapagecontext.forwardImmediatelyToCurrentPage (null, true, null);
I thank Rakesh for the solution. Is the thread that helped me
https://forums.Oracle.com/message/3929589#392958
Thank you
-
HTTPS webservcie call forwarding Apache2 for weblogic throws the error message
Dear Sir.
I have a prob in invoking webservice deployed on WLS 10.3.4 via Apache2 server.
Below is configured on machine apache httpd-dist file.
< VirtualHost 10.xx.xx.18:443 >
....
< IfModule weblogic_module >
WebLogicCluster 10.xx.xx.30:8013
Debugging now
WLProxySSL OFF
DynamicServerList WE
WLLogFile /tmp/weblogic_ssl.log
WLTempDir/tmp
WLIOTimeoutSecs 1800
DebugConfigInfo WE
< / IfModule >
< location TestApp >
SetHandler weblogic-Manager
< / location >
< /TestWebService location >
SetHandler weblogic-Manager
< / location >
< / VirtualHost >
ProxyPreserveHost on
ProxyRequests off
SSLProxyEngine on
The web application (TestApp) works very well when you call the https protocol.
But for the service (TestWebService) web when calling using the https protocol, it throws the below error:
AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/} Server
faultSubcode:
faultString: weblogic.wsee.server.ServerURLNotFoundException: cannot resolve a URL for http/https
faultActor:
faultNode:
faultDetail:
{java.io} string: java.lang.RuntimeException: weblogic.wsee.server.ServerURLNotFoundException: cannot resolve a URL for http/https
weblogic.wsee.server.ServerURLNotFoundException: cannot resolve a URL for http/https
weblogic.wsee.server.ServerURLNotFoundException: cannot resolve a URL for http/https
at org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:221)
at org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:128)
at org.apache.axis.encoding.DeserializationContext.endElement(DeserializationContext.java:1087)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(AbstractSAXParser.java:601)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEndElement(XMLDocumentFragmentScannerImpl.java:1782)
to com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$ FragmentContentDriver.next (XMLDocumentFragmentScannerImpl.java:2938)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:648)
at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:140)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:511)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:808)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:119)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1205)
to com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$ JAXPSAXParser.parse (SAXParserImpl.java:522)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:395)
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:424)
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:2765)
at org.apache.axis.client.Call.invoke(Call.java:2748)
at org.apache.axis.client.Call.invoke(Call.java:2424)
at org.apache.axis.client.Call.invoke(Call.java:2347)
at org.apache.axis.client.Call.invoke(Call.java:1804)
When access us the WSDL url using the protocol https, it returns the wsdl XML properly. Just call to the method on the Web service throws the error.
Here's the log of apache for ssl request errors.
= New request: [HTTP/1.0 POST/TestWebService/TestService] =.
Kills Sep 27 10:11:42 2013 < 655913775839021 > INFO: SSL is not configured
Kills Sep 27 10:11:42 by 2013 < 655913775839021 > TestWebService/Uri/TestService
Kills Sep 27 10:11:42 2013 < 655913775839021 > after trimming path: "TestWebService/TestService".
Kills Sep 27 10:11:42 2013 < 655913775839021 > the string of final demand is "TestWebService/TestService".
Kills Sep 27 10:11:42 2013 < 655913775839021 > host extracted serverlist is [10.xx.x.30]
Kills Sep 27 10:11:42 lastIndex Initializing 2013 < 655913775839021 > = 0 to get a list of length = 1
Kills Sep 27 10:11:42 2013 < 655913775839021 > getListNode: creates a new node for the server: id ='10.xx.x.30:8013 ' server_name ='10.xx.xx.18 ', port = "443"
Kills Sep 27 10:11:42 will 2013 < 655913775839021 > get the data of publication of size = 388 clength = 0
Kills Sep 27 10:11:42 2013 < 655913775839021 > try #0 out of a maximum of 5
Kills Sep 27 10:11:42 2013 < 655913775839021 > attempts a connection grouped to '10.xx.xx.30/8013/8013 '.
Kills Sep 27 10:11:42 2013 < 655913775839021 > getPooledConn: no more connections in the pool for Host [10.xx.xx.30] Port [8013] SecurePort [8013]
Kills Sep 27 10:11:42 2013 < 655913775839021 > General list: try to connect to ' 10.xx.xx.30'/8013/8013 on line 2724 for "TestWebService/TestService".
Kills Sep 27 10:11:42 2013 < 655913775839021 > INFO: new URL NON - SSL
Kills Sep 27 10:11:42 2013 < 655913775839021 > Connect returns-1 and error no game to 150, msg '' ongoing Operation. ''
Kills Sep 27 10:11:42 2013 < 655913775839021 > EINPROGRESS at connect() - selection
Kills Sep 27 10:11:42 Port Local 2013 < 655913775839021 > of the socket is 37994
Kills Sep 27 10:11:42 2013 < 655913775839021 > Remote Host 10.xx.xx.30 remote Port 8013
Kills Sep 27 10:11:42 2013 < 655913775839021 > General list: created a new connection to ' 10.xx.xx.30'/8013 for 'TestWebService/TestService', port: 37994 Local
Kills Sep 27 10:11:42 2013 < 655913775839021 > URL::parseHeaders: CompleteStatusLine set to [HTTP/1.1 500 Internal Server Error]
Kills Sep 27 10:11:42 2013 < 655913775839021 > URL::parseHeaders: StatusLine value [500 Internal Server Error]
Kills Sep 27 10:11:42 2013 < 655913775839021 > analyzed all headers OK
Kills Sep 27 10:11:42 2013 < 655913775839021 > sendResponse(): r-> status = "500"
Kills Sep 27 10:11:42 2013 < 655913775839021 > free old srvrList, id = [10.xx.xx.30:8013], [10.xx.xx.18] = server_name, server_port = [443]
Kills Sep 27 10:11:42 Parsing 2013 < 655913775839021 > list cluster:-2116126659! 174266130! 7003! -1 | 1098407374! 174266142! 7013! -1
Kills Sep 27 10:11:42 2013 < 655913775839021 > parseJVMID: analysis JVMID '-2116126659! 174266130! 7003! -1 | 1098407374! 174266142! 7013! -1 '
Kills Sep 27 10:11:42 2013 < 655913775839021 > parseJVMID: in fact the analysis '-2116126659! 174266130! 7003! -1 '
Kills Sep 27 10:11:42 2013 < 655913775839021 > ServerInfo struct to JVMID '-2116126659' populous '.
Server details are:
OrigHostInfo [10.99.23.18]
isOrigHostInfoDNS [0]
Host [10.99.23.18]
Port [7003]
SecurePort [0]
Kills Sep 27 10:11:42 2013 < 655913775839021 > parseJVMID: analysis JVMID ' 1098407374! 174266142! 7013! -1 '
Kills Sep 27 10:11:42 2013 < 655913775839021 > parseJVMID: in fact the analysis ' 1098407374! 174266142! 7013! -1 '
Kills Sep 27 10:11:42 struct ServerInfo 2013 < 655913775839021 > for JVMID people ' 1098407374'
Server details are:
OrigHostInfo [10.99.23.30]
isOrigHostInfoDNS [0]
Host [10.99.23.30]
Port [7013]
SecurePort [0]
Kills Sep 27 10:11:42 lastIndex Initializing 2013 < 655913775839021 > = 0 to get a list of length = 2
Kills Sep 27 10:11:42 2013 < 655913775839021 > # a got a new list of server of length 2 #.
Kills Sep 27 10:11:42 2013 < 655913775839021 > # #Response #: Srvr # [1] = [10.99.23.18:7003:0]
Kills Sep 27 10:11:42 2013 < 655913775839021 > # #Response #: Srvr # [2] = [10.99.23.30:7013:0]
Kills Sep 27 10:11:42 2013 < 655913775839021 > canRecycle: conn = 1 table = 500 = 0 clen = - 1 = 0 isCTE isKA
Kills Sep 27 10:11:42 2013 < 655913775839021 > closeConn: URL.canRecycle () returns false, removal of URL "10.xx.xx.30/8013".
Kills Sep 27 10:11:42 2013 < 655913775839021 > [TestWebService/TestService] processed
Kindly help me to solve this problem,
Zia
Hello
I solved this issue by disabling the option 'WebLogic plug-in enabled' field > Cluster > (select the clustrer) and Configuration > general tabe > advanced option.
By disabling this option my webservice is working porperly. Re Apache runs correctly.
-
Power hexadecimal value for a color property node throws the error message
Hi all
First of all, thank you very much for all the help with a complete noob here.
I'm just trying to figure out how to launch a hexadecimal value to a knot of material color to change the background color of a digital indicator. I think I have the right property, the numtext.bgcolor.
I'm putting in a case structure in a simple example, to use a digital constant I put hex color code, I want... and it throws an error 1077.
Here is a picture of what I'm trying to do and the error... any suggestions where I'm wrong?
And the error:
Thank you in advance,
Cayenne
The value that you entered is not valid, because it is too big. LabVIEW expects the RGB colors in the range: 000000 (black) FFFFFFh (white) and all combinations between the two. The number you see in the screen shot is greater, where the error.
If you wan, as experience is gained, a color in a digital indicator (U32) box control and set the display for Hex format.
-
can anuone tell me how to reinstall a file called snmaster.idx. Whenever I try to connect to AOL, I get an error message indicating that the file is missing.
Thank you
FPVHello
Visit this help link on AOL:
You may receive the message "the file snmaster.idx is missing" during the installation of the AOL® software if some data
the files are not installed in the correct location. Move these files to the correct location, this problem will be solved.
http://help.channels.AOL.com/KJump.adp?articleid=223420I hope this helps.
Rob - bicycle - Mark Twain said it is good. -
Stop 124 how to determine what material throws the error?
My computer is bluescreening everyday with the error 124. Internet informs me that he is a "hardware error". How can I determine what hardware is to throw?
Error parameters are:
(0x85b5a01c, 0xfe000000, 0 x 00000000, 0 00800400)There are also a memory dump file if it is useful to dig there.
And Yes, I tried to get rid of the blue screen by running windows update, updated my drivers and reformat my hard drive and reinstall windows from scratch, it did not help, so do not waste my time suggesting such things.
What version of Boot Camp?
http://support.Apple.com/kb/DL1443Driver update Atheros AR938X version 10.0.0.45 released March 12, 2012
http://www.Atheros.cz/Atheros-wireless-download.php?chipset=44&system=5 -
xmlrules throws the error message?
Hi all
I'm trying to load the numbers everywhere where the < figcap / > tag available. It works very well. but I create a textFrame for the legend of the figure and placeXML() to move the < figcap / >. It works only first occurrence and then throws an error as below.
"Error: invalid structure for the current XML file iterator rules processor detected!"
Please change the rules, so the structural changes happen after the child nodes have been treated (or ignored). "without xmlrules we can do. but it'll take too long to load almost 60 digits.
What could be the problem with xmlrules and how to solve?
Thank you
Hall
now I got it! I found the solution by the __skipChildren method.
-
Themebasedfoi.centerToTheme () call JavaScript throws the error message
Hello
I'm developing a CEP for a client and I'm really looking forward how it is easy to get a card set up and running. The map is created with the javascript api and runs in a browser window. The goal is to embed the map in the poet dashboard. And it works very well also. But I have a problem, that could be a sticking point: I want to focus the bounding box of the card around the time selected. Other selection of the time ist directed by parameters in the url and it works very well also.
If I insert the line
themebasedfoi.centerToTheme ();
nothing happens and my browser error console produces the error
This ._f249 is null
http://intranetserver:7777/MapViewer/FSMC/jslib/oraclemaps.js <-Version: Ver11_B090225 line 10769
and
Keine Elemete found (not found items)
http://myserver:7001/mapviever/mcserver <-my own mapserver
My source to create the map is:
CenterToTheme() I only get a square gray, without the map displays correctly with the setHomePoint(), I get the right view for the map without query parameter.<html> <head> <!--META http-equiv="Content-Type" content="text/html; charset:UTF-8"--> <script type="text/javascript" src="http://intranetserver:7777/mapviewer/fsmc/jslib/oraclemaps.js"></script> <script type="text/javascript"> var baseURL = "http://myserver:7001/mapviewer"; var baseMapEloc = null; var mapview; function display_map() { baseMapEloc = new MVMapTileLayer("elocation.world_map", "http://intranetserver:7777/mapviewer/mcserver"); mapview = new MVMapView(document.getElementById("map"), baseURL); mapview.addBaseMapLayer(baseMapEloc); // var mpoint = MVSdoGeometry.createPoint(10, 51, 8307); // mapview.setCenter(mpoint); // mapview.setZoomLevel(4); // mapview.addNavigationPanel("east"); // mapview.setHomeMap(mpoint, 4); var themebasedfoi = new MVThemeBasedFOI('foi_partner','apexws_kpatenge.theme_partner_bi','https://secure_intranetserver/mapviewer/foi'); themebasedfoi.setBringToTopOnMouseOver(true); var country = getURLParameter("COUNTRY_PARAM"); var partner = getURLParameter("NAME_PARAM"); var city = getURLParameter("CITY_PARAM"); var parameters; themebasedfoi.setQueryParameters(country,partner,city); mapview.addThemeBasedFOI(themebasedfoi); themebasedfoi.centerToTheme(); mapview.display(); } function getURLParameter (ParamName) { var strURLParamstrURLParamReturn = ""; var strHref = window.location.href; if (strHref.indexOf("?") > -1 ) { var strQueryStr = strHref.substr(strHref.indexOf("?")); var aQueryStr = strQueryStr.split("&"); for (var iParam = 0; iParam < aQueryStr.length; iParam++ ) { if (aQueryStr[iParam].indexOf(ParamName+"=")> -1) { var aParam = aQueryStr[iParam].split("="); strURLParamReturn = aParam[1]; break; } } } return unescape(strURLParamReturn); } </script> </head> <body onLoad="javascript:display_map()"> <div id="map" style="width: 500px; height: 450px;"></div> </body> </html>
Thank you in advance for each tip that helps me solve this problem...
Wolfgang
Edited by: user10446099 the 25.03.2009 02:51There seems to be some problem with centerToTheme(); in any case, what you really need, is zoomToTheme(). In addition, the recommended approach is this:
function init_map(){ //create the theme: var themebasedfoi = new MVThemeBasedFOI(...); //setup your query parameters thembasedfoi.setQueryParameters(...); //tell MapViewer to automatically 'bound' the map extent to the results of this theme after it came back from server with FOI data: themebasedfoi.setBoundingTheme(true); //now add the theme to the MVMapView handle (which will initiate the theme AJAX request to the server): mapview.addThemeBasedFOI(themebasedfoi); //dont call themebasedfoi.zoomToTheme() or centerToTheme() here, as the theme may not have come back with FOI data (it's asynchornous!) } //call this function to force the map to zoom back to an already displayed theme-based foi layer (after the user has paned and zoomed couple times for instance) function zoomToTheme() { themebasedfoi.zoomToTheme(); }
for a live example you can see the #35 tutorial (leaping theme).
LJ
-
Hi all
I use the Eclipse JDE plugin to develop my application. It worked well until I have start using hash tables in my code. After that my application will not work and gave error "error loading of class net.rim.device.resources.Resource.
This class is part of the standard library and do not know what this error is due to.
I tried to reinstall eclipse and all the plugins and now my request will not even appear in the Simulator .
Help, please.
Thank you
Sri
What M.Sohm said is true. To expand a bit about it: If you have a ResourceBundle and the package in the file .rrh statement is at odds with the .jdp, strange things can happen. And if you move a ResourceBundle in a different package, training package not updated automatically, you must address yourself. Make sure that the package in the .rrh statement corresponds to the Package Explorer view say it should be.
So when you add hash tables, which was the only thing that you added?
Do not panic on the application not appearing is not in the Simulator. When you run an application in the Simulator, build files (.cod, .jar, etc.) are copied into the directory of Simulator (
\plugins\ \components\simulator). When you reinstalled, the directory of Simulator has been rebuilt from scratch, without the build of your application files. Because you can't build, you don't get new build files to copy into the Simulator. Hang in there.
-
Hi all
I use JDEV12.2 and Glassfish Server 4.1.1.
I am facing issue while using the export to excel feature on table and file download and download throw Error Server glassfish 4.1.1 as follows:
[SERIOUS] [[org.apache.myfaces.trinidadinternal.config.upload.FileUploadConfiguratorImpl]]
java.io.EOFException
at org.apache.myfaces.trinidadinternal.share.util.MultipartFormHandler._skipBoundary(MultipartFormHandler.java:229)
to org.apache.myfaces.trinidadinternal.share.util.MultipartFormHandler. < init > (MultipartFormHandler.java:102)
to org.apache.myfaces.trinidadinternal.share.util.MultipartFormHandler. < init > (MultipartFormHandler.java:75)
at org.apache.myfaces.trinidadinternal.config.upload.FileUploadConfiguratorImpl.beginRequest(FileUploadConfiguratorImpl.java:139)
at org.apache.myfaces.trinidadinternal.config.GlobalConfiguratorImpl._startConfiguratorServiceRequest(GlobalConfiguratorImpl.java:746)
at org.apache.myfaces.trinidadinternal.config.GlobalConfiguratorImpl.beginRequest(GlobalConfiguratorImpl.java:227)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:184)
at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)
at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:166)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:316)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:160)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:734)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:673)
at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:99)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:174)
at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:415)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:282)
to com.sun.enterprise.v3.services.impl.ContainerMapper$ HttpHandlerCallable.call (ContainerMapper.java:459)
at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:167)
at org.glassfish.grizzly.http.server.HttpHandler.runService(HttpHandler.java:201)
at org.glassfish.grizzly.http.server.HttpHandler.doHandle(HttpHandler.java:175)
at org.glassfish.grizzly.http.server.HttpServerFilter.handleRead(HttpServerFilter.java:235)
to org.glassfish.grizzly.filterchain.ExecutorResolver$ 9.execute(ExecutorResolver.java:119)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:284)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:201)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:133)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:112)
at org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:77)
at org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:561)
at org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:112)
at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:117)
in org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.access$ 100 (WorkerThreadIOStrategy.java:56)
to org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$ WorkerThreadRunnable.run (WorkerThreadIOStrategy.java:137)
to org.glassfish.grizzly.threadpool.AbstractThreadPool$ Worker.doWork (AbstractThreadPool.java:565)
to org.glassfish.grizzly.threadpool.AbstractThreadPool$ Worker.run (AbstractThreadPool.java:545)
to java.lang.Thread.run(Thread.java:745).
Since it was a bug and slipped in glassfish 3.1.2.2.What will be work it around for that please someone help me.
Thank you
Hello
It s a bug on the class MultipartFormHandler of the Trinity - impl.jar. You can download the sources of trinidad-impl (trinidad-impl - 2.0.0 - sources.jar.zip) and replace the following code to the _parseBoundary method:
Source language:
Analyze the text content type limit
public static private String _parseBoundary (final String contentType)
{
final int boundaryStart = contentType.indexOf (_BOUNDARY_PARAMETER);
If (boundaryStart<>
{
Returns a null value.
}
Limit begins with ' - '.
return "-" + contentType.substring (boundaryStart + _BOUNDARY_PARAMETER.length ());
}
New:
Analyze the text content type limit
public static private String _parseBoundary (final String contentType)
{
final int boundaryStart = contentType.indexOf (_BOUNDARY_PARAMETER);
If (boundaryStart<>
{
Returns a null value.
}
String limit = contentType.substring (boundaryStart + _BOUNDARY_PARAMETER.length ());
final int semicolonIndex = boundary.indexOf(";");
If (semicolonIndex >-1) {}
Boundary = boundary.substring (0, semicolonIndex);
}
Limit begins with ' - '.
return '-' + limit;
}
You can find the jar trinidad - impl.jar update here.
ADF 12 c + Glassfish4 + trinidad-impl
Replace the jar trinidad - impl.jar in your EARS or your deployment.
It will be useful,
Alex
-
MERGER into slider throws the error message: ORA-01747
Hi guys,.
I'm new in PL/SQL and I'm taking the last row of a database table and add the same data in another table with the same structure, but for the ancestors of the current employee. Something like:
Day EmpID LOB (key fields)
12-1007-29
EmpID has 24 and 95 ancestors. That's why in the destination table I have to insert (or update of status and idforum if these three key areas already exists):
EmpID LOB day
24 1007 29
95-1007-29
There are 4 tables:
X - table base;
Y - destination table (same structure as X);
Z - the relationship between the employee and ancestor;
W - plays the role of a temporary table, but is a real table - only for the MERGER;
============================================================================================
create or replace
PROCEDURE INSERT_PARENTS AS
BEGIN
DECLARE
EMP_VAR NUMBER (38.0). -employee
NUMBER OF ANCESTOR_ID; -relative of the employee
NUMBER OF LOB_VAR; -LOB
NUMBER OF DAY_VAR; -date of
NUMBER OF FORUMID_VAR; -Idforum
STATUS_VAR VARCHAR2 (20); -Status
Parents of CURSOR
IS
SELECT ancestor_key FROM Z WHERE member_key = EMP_VAR; -This slider will go through all the ancestors of the employee
Number EMPROWID_VAR; -It's the key to the table Y (destination table)
BEGIN
-extract the last line of the table of database variables
SELECT EMPL_KEY in the EMP_VAR OF X WHERE EMPROW_ID = (SELECT Max (EMPROW_ID) OF X);
SELECT LOB_KEY in the LOB_VAR OF X WHERE EMPROW_ID = (SELECT Max (EMPROW_ID) OF X);
SELECT DAY_KEY in the DAY_VAR OF X WHERE EMPROW_ID = (SELECT Max (EMPROW_ID) OF X);
SELECT IDFORUM in FORUMID_VAR OF X WHERE EMPROW_ID = (SELECT Max (EMPROW_ID) OF X);
SELECT STATUS in STATUS_VAR OF X WHERE EMPROW_ID = (SELECT Max (EMPROW_ID) OF X);
SELECT NVL (Max (EMPROW_ID), 0) + 1 in EMPROWID_VAR OF Y; -initialize the key to the table max + 1 of the existing key Y
Parents OPEN.
LOOP
EXTRACT the parents in ANCESTOR_ID;
EXIT WHEN parents % NOTFOUND;
EMPROWID_VAR: = EMPROWID_VAR + 1;
-the value of the new key for Y
INSERT w (emprowid_var, lob_var, ancestor_id, day_var, forumid_var, status_var)
VALUES (EMPROWID_VAR, LOB_VAR, ANCESTOR_ID, DAY_VAR, FORUMID_VAR, STATUS_VAR); -prepare the source for the MERGE statement
-merge data between 2 tables:
-If a parent already exists in the destination, to update just idforum and the new status
-If that parent does not exist in the dest table, will be inserted with the status ' U/R '.
MERGE TO Y Dest
USING the W
WE (Dest.LOB_KEY = Surce.LOB_VAR AND)
Dest.EMPL_KEY = Surce.ANCESTOR_ID AND
Dest.DAY_KEY = Surce.DAY_VAR)
WHEN MATCHED, THEN update to SET (Dest.FORUMID = Surce.FORUMID_VAR,
Dest.STATUS = Surce.STATUS_VAR)
WHEN NOT MATCHED THEN INSERT (Dest.EMPROW_ID, Dest.LOB_KEY, Dest.EMPL_KEY, Dest.DAY_KEY, Dest.FORUMID, Dest.STATUS)
VALUES (Surce.EMPROWID_VAR, Surce.LOB_VAR, Surce.ANCESTOR_ID, Surce.DAY_VAR, Surce.FORUMID_VAR, ' U/R');
END LOOP;
END;
END INSERT_PARENTS;
When I try to run this procedure (compile) I get this error message:
Error (53,37): PL/SQL: ORA-01747: invalid column, table.column, or user.table.column specification
Can you tell me where I am doing wrong? (I'm pretty sure that it's in the Merge statement, but what is it?)
Thanks in advance.
Published by: petresion on November 19, 2011 14:02without the paintings I never would have found
MERGE INTO y dest USING w surce ON (dest.lob_key = surce.lob_var AND dest.empl_key = surce.ancestor_id AND dest.day_key = surce.day_var ) WHEN matched THEN UPDATE SET dest.forumid = surce.forumid_var, dest.status = surce.status_var WHEN NOT matched THEN INSERT ( dest.emprow_id, dest.lob_key, dest.empl_key, dest.day_key, dest.forumid, dest.status) VALUES ( surce.emprowid_var, surce.lob_var, surce.ancestor_id, surce.day_var, surce.forumid_var, 'U/R');
-
Procedure that calls another proc throws the error message
I have a proc returns ref cursor as below
create or replace
PROCEDURE PROC_RETURN_CV (P_in_deptno number, varchar2, p_out_info to sys_refcursor p_in_job)
is
Start
Open p_out_info for ' select ename, empno from emp1 where deptno =: = deptno and job: job ' using p_in_deptno, p_in_job;
end;
/
Another Proc calls over proc;
create or replace
procedure proc_call_cv is
v_local_cv sys_refcursor;
v_rec emp % roWtype;
Start
PROC_RETURN_CV(10,'CLERK',v_local_cv);
LOOP
SEEK v_local_cv INTO v_rec;
EXIT WHEN v_local_cv % NOTFOUND;
DBMS_OUTPUT. PUT_LINE ('EMPNO' | v_rec.empno);
END LOOP;
END;
/
But when I realize the proc that called the first proc returns error, below
BEGIN
PROC_CALL_CV();
END;
ORA-01007: variable not in select list
ORA-06512: at "SCOTT. PROC_CALL_CV', line 7
ORA-06512: at line 2
01007 00000 - "variable not in select list.
Can someone correct me?
Thank you
Ann
You said that the return type is an emp % rowtype - the entire line - all columns
You return all the columns in the select.
Either refund * or set a record type
-
Number of conversion date throws the error message.
Hello
I'm trying to convert a column number in a date column, but get the following error:
SQL:
Select to_date(INV_BALANCE_DT_WID,'dd/mm/yyyy') in the W_INVENTORY_DAILY_BAL_F;
ERROR:
Error at startup on line: 19 in the command.
Select to_date(INV_BALANCE_DT_WID,'dd/mm/yyyy') from W_INVENTORY_DAILY_BAL_F
Error report-
SQL error: ORA-01861: literal does not match the format string
01861 00000 - "literal does not format string.
* Cause: Literals in the entry must be the same length as literals in
the string format (with the exception of white space). If the
"FX" modifier has been switched on, the literal must match exactly.
with no extra spaces.
* Action: Fix format string to match the literal.
SAMPLE DATA:
INV_BALANCE_DT_WID - 20140101
DESIRED OUTPUT:
17 JUNE 15
Could you please help me on this?
Thanks in advance!
The value is 20140101 then why do you use "dd/mm/yyyy '?
SQL > SELECT TO_DATE(20140101,'YYYYMMDD')
2 FROM TWO
3.TO_DATE (2
---------
1 JANUARY 14SQL >
SY.
Maybe you are looking for
-
Windows media player video settings do not respond!
Hi all! Video quality color on w/media player is not clear. I tried to adjust the video settingsthe installation of the program. The cursor always adjusters back to zero after that I tried the adjustment. Alternately, I tried to find how do I reinsta
-
my computer girls laptop was stolen and I know I've seen a lojack on her program, but documents CIHI received, the product key codes are somewhere in a storage unit 10 x 20. My question is when she recorded installed microsoft programs is not possibl
-
How to disable a logon notification
whenever I go to to connect to my facebook page, I get a message saying to type here where I am, working from home, etc., the message says that I have to type this in because I have ACTIVATED MY CONNECTION NOTIFICATION
-
Forcing scrollbars on Playbook Soft
In the app I I do have onefixed height. User entered the longer div on the list, and eventually it will go beyond the bottom border. In my CSS I overflow set to auto so that when the list is longer that the div displays scroll bars. This works in all
-
HelloIt's my first time that I work with data XmlI do not understand because this return following a null SELECT XMLElement("Date", HIREDATE) FROM EMP but this workselect dbms_xmlgen.getxml('select * from dept') from dual 11.2.0.3.0 releaseThanks