Using Named Queries (located in your hibernate mapping xml file) is a nice way to separate your queries from your buisness logic. But what are the alternatives if your are using Hibernate Annotations for mapping?
I have an XML document here that is served with a corresponding XSL file. The transformation is left to be executed client-side, without JavaScript.
This works fine in IE (shock horror), but in Google Chrome, just displays the document's text nodes.
I know that it is possible to do client-side XSL in Chrome, as I have seen examples of it, but I am yet to be able to replicate this success myself
What am I doing wrong?
Can someone help me resolving the following issue:
When trying to connect from iPad app to SAP ECC system through ODATA channel services via SUP, it is allowing me to login for the first time and could retrieve the data successfully from SAP system. But when I logout and try logging in again with the same session, application gets crashed. Below is the crash report for your reference.
I am using SDM Parser to connect the SAP system.
SDMODataServiceDocumentParser *sdmDocParser = [[SDMODataServiceDocumentParser alloc] init];
[sdmDocParser parse:aServiceDocument];
m_serviceDocument = sdmDocParser.serviceDocument;
//Load the object with metadata xml:
SDMODataMetaDocumentParser *sdmMetadataParser = [[SDMODataMetaDocumentParser alloc] initWithServiceDocument:m_serviceDocument];
[sdmMetadataParser parse:aMetadata];
After initiated the service, setting the URL.
[service setServiceDocumentUrl:m_serviceDocumentURL];
Using SDMconnectivityhelper to connect the URL
id<SDMRequesting> serviceDocumentRequest2 = [connectivityHelper executeBasicSyncRequestWithQuery3:[[ODataQuery alloc]initWithURL:[NSURL URLWithString:encodedStrUrl]]] ;
- (id <SDMRequesting>)executeBasicSyncRequestWithQuery3:(ODataQuery *)aQuery
{
id<SDMRequesting> request = [self createRequestWithQuery:aQuery];
[request setTimeOutSeconds:TIMEOUT_SEC];
[request setRequestMethod:@"GET"];
[request addRequestHeader:@"Content-Type" value:@"application/xml"];
[request startSynchronous];**[App getting CRASH in this line]**
return request;
}
- (id <SDMRequesting>)createRequestWithQuery:(ODataQuery *)aQuery
{
if (isSUPMode)
{
[SDMRequestBuilder setRequestType:SUPRequestType];
}
else
{
[SDMRequestBuilder setRequestType:HTTPRequestType];
}
id <SDMRequesting> request = [SDMRequestBuilder requestWithURL:aQuery.URL];
request.username = self.username;
request.password = self.password;
return request;
}
Crash Report:-
Incident Identifier: 347511BA-5F7F-45D4-8662-D5DCD2F88EA7
CrashReporter Key: 9a4d38cf19b1a94476eb6b2170d4f56678d6ca60
Hardware Model: iPad3,4
Path: /var/mobile/Applications/F38AD64F-03F8-4A21-
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Subtype: KERN_INVALID_ADDRESS at 0x00000000
Triggered by Thread: 0
Thread 0 Crashed:
0 libsystem_platform.dylib 0x393a94c0 _platform_memmove$VARIANT $Swift + 160
1 Eby Sales Order 0x0015a2c8 0xb7000 + 668360
2 Eby Sales Order 0x0015a8b8 0xb7000 + 669880
3 Eby Sales Order 0x003331ee 0xb7000 + 2605550
4 Eby Sales Order 0x0031856e 0xb7000 + 2495854
5 Eby Sales Order 0x00338454 0xb7000 + 2626644
6 Eby Sales Order 0x000e6ad8 0xb7000 + 195288
7 Eby Sales Order 0x000e99a0 0xb7000 + 207264
8 Eby Sales Order 0x000ea442 0xb7000 + 209986
9 Eby Sales Order 0x000eb0d6 0xb7000 + 213206
10 Eby Sales Order 0x000c13d0 0xb7000 + 41936
11 Foundation 0x2ec93112 __NSFireDelayedPerform + 410
12 CoreFoundation 0x2e27ef4c __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 12
13 CoreFoundation 0x2e27eb66 __CFRunLoopDoTimer + 790
14 CoreFoundation 0x2e27ceee __CFRunLoopRun + 1214
15 CoreFoundation 0x2e1e7764 CFRunLoopRunSpecific + 520
16 CoreFoundation 0x2e1e7546 CFRunLoopRunInMode + 102
17 GraphicsServices 0x331216ce GSEventRunModal + 134
18 UIKit 0x30b4688c UIApplicationMain + 1132
19 Eby Sales Order 0x000bd8da 0xb7000 + 26842
20 Eby Sales Order 0x000bd89c 0xb7000 + 26780
For the warehouse work under progress, we have a single solution with multiple projects in it
OLTP Database Project
Warehouse Database Project
SSIS ETL project
After the SSIS project is built, I want to move the binaries (XML, really) from the Bin folder to "C:\AutomatedTasks\ETL.Warehouse\" and "C:\AutomatedTasks\ETL"
I cannot find the Post-Build events to do that for the SSIS project. Where are they? If they aren't available, how do I achieve this?
Does it have any major effect on performance/ memory if my web.config is really huge (say, 1000+ entries in <appSettings>)? Is it a good idea to maintain a different custom xml config file for all business specific settings for my app? Thanks.
Hi,
I want to be able to validate a XML against a XSD and generate user readable errors, for example, including XSD documentation tag.
I just wanted to know if C# provides this in a easy, elegant and non-painful way, otherwise I'll parse down the error and find the node within XSD.
Hello,
I have a ejb module which contains my ejbs as well as web services. I am using Netbeans 6.8 and Glassfish V3
I right clicked on my web service and clicked "edit web service attributes" and then checked "secure service" and then selected keystore of my server. This is my sun-ejb-jar.xml file :-
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE sun-ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Application Server 9.0 Servlet 2.5//EN" "http://www.sun.com/software/appserver/dtds/sun-web-app_2_5-0.dtd">
<sun-ejb-jar>
<security-role-mapping>
<role-name>Admin</role-name>
<group-name>Admin</group-name>
</security-role-mapping>
<security-role-mapping>
<role-name>General</role-name>
<group-name>General</group-name>
</security-role-mapping>
<security-role-mapping>
<role-name>Member</role-name>
<group-name>Member</group-name>
</security-role-mapping>
<enterprise-beans>
<ejb>
<ejb-name>MemberBean</ejb-name>
<webservice-endpoint>
<port-component-name>wsMember</port-component-name>
<login-config>
<auth-method>BASIC</auth-method>
<realm>file</realm>
</login-config>
</webservice-endpoint>
</ejb>
</enterprise-beans>
</sun-ejb-jar>
Here MemberBean is my ejb and wsMember is my webservice.
Then i made another project and added web service client and again right clicked on "edit web service attributes" and gave password as test and test. This username and password (test) is in Glassfish server in file realm. But when i try to invoke my webservice i always get
SEC5046: Audit: Authentication refused for [test].
SEC1201: Login failed for user: test
What am i doing wrong? Am i missing something?
Hi,
I have an XML file which is coming from the back end through an HTTP service(Using the perl cgi) and I want to display it in an advanced data grid....as in if I click the parent element the children have to be displayed in the corresponding columns...I'm trying it with my data provider but its not working. Is it possible?
Thanks in Advance.
I have set up nutch 1.0 on a cluster. It has been setup and has successfully crawled, I copied the crawl directory using the dfs -copyToLocal and set the value of searcher.dir in the nutch-site.xml file located in the tomcat directory to point to that directory. Still when I try to search I receive 0 results.
Any help would be greatly appreciated.
Hi there,
can anyone tell me if there is a tool for creating the strongly typed classes (available via the schema) - i suppose similar to Paste as XML type ..
But i was hoping for a tool that i could run to automatically update the classes automatically when there are changes
Does anyone know if something like this exists?
We are using multiple solr instances on tomcat but want that they log into different log files. How could we do this?
We are using the follwing xml file under tomcat/conf/Catalina/localhost to make it working:
<Context docBase="/pathtosolr/dist/apache-solr-1.4.0.war" debug="0" crossContext="true" >
<Environment name="solr/home" type="java.lang.String" value="/pathtosolr/solr" override="true" />
</Context>
May I know what would be the possible reasons for this when I tried to install the component? I'm pretty sure my xml and install.php file is correct. Thanks.
I am new to iphone development.I created a application , in which the first tab bar view ,load a web page and in second tab bar view ,it parses a xml file and display the content in the table view. When i click the second tab bar, the tab bar view is seen only after the parsing is done, till the parsing time the tab bar appears like unselected.I want to display the tabbar view with activity indicator when the parsing is done.How can i achieve it.Please help me out.Thanks.
One of the downsides of web.config/app.config is that it's just Magic Strings everywhere, since it's just an XML file.
Interpreted languages like PHP or Ruby have the advantage that the configuration is just code that is executed. In .net, doing stuff in code requires a redeployment, which defeats the purpose.
Now, before I build my own web.config replacement based on Boo or PowerShell I wanted to know if there is an existing one?
I guess the question is self-explanatory, but I'm wondering whether HTML qualifies as a programming language (obviously the "L" stands for language).
The reason for asking is more pragmatic—I'm putting together a resume and don't want to look like a fool for listing things like HTML and XML under languages, but can't figure out how to classify them.
Hi
A certain EndPoint in a web service is not likely to change a lot, also it had a problem which we worked around by putting a static wsdl to the whole web service like this
<serviceMetadata httpGetEnabled="true" httpGetUrl="" externalMetadataLocation="http://IP:8250/wsdl.xml"/>
Now I want the rest of end points to have a wsdl dynamically created, and one end point which require a static WSDL.
I think this is impossible because there is one WSDL per WCF service.
For a new project which uses Maven I would like to add distributionManagement configuration in the pom.xml which will connect the project with the Sourceforge.net file upload system.
I have found this information (of 2007), is it still valid or do you know updated resources?
http://docs.codehaus.org/display/MAVENUSER/MavenAndSourceforge
Related question: How can I deploy artifacts from a Maven build to the SourceForge File Release System?
is there any parameter i can set in hibernate so that temporary not allow persist anything but only allow read only (temporary) ? can i set in applicationcontext.xml?
I'd like to port my iPhone app to Android. The interface is constructed with artwork designed for 320x480 resolution. What steps do I need to take when I'm constructing the XML interface for the Android so that my GUI will be compatible with the different screen sizes (or at least the most popular ones...)?
I would like to create text animated like a comet. I would like to create a gravity effect, accelerate the movie clip on vector, set a starting position on stage and load the text from a xml file.
Can JDBC component be used for inserting Java objects into a Mysql database ? I want to store Java objects that i am routing through message exchanges into a database using spring xml .
i have never used hibernate before , so cannot use the hibernate or JPA components
Ex Code :
<from uri="bean:MessageProducer?method=send" /> /* bean sending the objects */
/* what code do i need to write for insertion of these Objects into testdb */
<to uri="jdbc:testdb"/>
I am developing an application that contains many activities
and i created my own menu (i don't want to use the built in menu button) with the Sliding Drawer
as the sliding drawer is at the bottom of the screen and contains my menu buttons
what i need is to make that sliding drawer to appear in all my activities
i tried to create an activity and set it's content view to the xml file that includes the drawer and then extends that activity in all other activities but this solution doesn't work
so any suggestions ?
Hi,
I need to give my user a web interface to change the session timeout interval. So, each installation of the application might have different timeouts for their sessions, but they web.xml cannot be different.
Is there a way to set the session timeout programatically, so that I could use, say, ServletContextListener.contextInitialized() to read the configured interval and set it upon application startup?
Thanks a lot.
How do I create a custom Visual Studio 2008 UI designer for a C# file?
For example, when you double click on a DataSet in the Solution Explorer, a UI screen appears that allows you to edit the DataSet, even though it is defined in XML/code (which you can right click and "View Code").
Usually this code is separated from user code in some way, either by region ("Windows Forms Designer Generated Code"), by codegen (".g.cs" for WPF XAML files), or some other means like partial classes.
Everytime the program loads, I need a dictionary to have about 15 values. Right now I'm using a function called "Load_Dictionary" that just adds each value. How do you suggest going about loading a dictionary like this? Through a function? Using an XML file?