The Stack Overflow podcast is back! Listen to an interview with our new CEO.

Questions tagged [java]

Java is a computer programming language that is concurrent, class-based, object-oriented, and specifically designed to have as few implementation dependencies as possible.

109 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
8
votes
0answers
276 views

Make custom, in-memory “Lightning Data Service” work

Lightning Data Service is great. Multiple components are magically linked to database records. When records change in the db component show that change. Imagine this to work without saving change to ...
4
votes
0answers
432 views

Data Loader does not open on OS X El Captain

Does anyone have similar issue opening Data Laoder on MAC OS X El Capitan?
4
votes
0answers
430 views

Override PartnerAPI ClassLoader

We have exported as Runnable JAR (Extract required libriries into generated JAR option) our proyect (which has dependecies the fuelsdk and axis). So, there are some classes which read properties ...
3
votes
0answers
31 views

Getting 'get_any' method on the SObject class when building a JAR from Partner WSDL?

We haven't had to build a new version of the partner wsdl jar for SOAP API work since version 12 and things have changed a bit. I'm trying to work with v43.0, but I'm doing something wrong. I've tried ...
3
votes
0answers
106 views

Accessing SAML Login Information in Connected App programmatically

I was looking for a way to programmatically read (and potentially - write) data in SAML Login Information (on ConnectedApp 'manage-side' settings), as displayed below: I already tried using Metadata ...
3
votes
0answers
783 views

Invalid Query Locator in REST API

When making a REST API query call from a Java client I'm getting an INVALID_QUERY_LOCATOR error. I'm familiar with the limitation around 10 query locators in the same time and in my code I'm avoiding ...
2
votes
0answers
100 views

403:denied_by_security_policy:create_denied when subscribing to platform events

This error is thrown when I try to subscribe to a platform event using the EMP-connector. I followed the steps outlined in the documentation: https://developer.salesforce.com/docs/atlas.en-us.220.0....
2
votes
0answers
59 views

Heroku installs wrong JDK version

I added system.properties file with the content java.runtime.version=11 to my application like described here, committed the changes and pushed afterwards with git push heroku master unfortunately, ...
2
votes
1answer
165 views

Setting a cookie in a canvas app?

I have a Java application that sets a cookie: Cookie keks = new Cookie("Demo","WeLoveCookies"); keks.setHttpOnly(true); keks.setSecure(true); keks.setPath("/"); response.addCookie(...
2
votes
0answers
107 views

Salesforce Java Streaming Client filtered subscription

I am subscribing to a push topic from a Salesforce Streaming java client that uses the cometd and bayeux libraries. I found this page which says that filtered subscriptions are supported in streaming ...
2
votes
0answers
167 views

Porting Java to Apex: libphonenumber

To perform back-end validation and formatting of phone numbers, I am interested in porting the Java version of Google's open-source libphonenumber library to Apex. If you have ported a Java library to ...
2
votes
0answers
1k views

How to create an Archive/Zip file with APEX

I want to create an archive/zip file with APEX, my requirement is to extract all the documents related to an account and archive it as a zip file. Files could be images, text word or CVS etc. I ...
2
votes
0answers
166 views

Two Way SSL Configuration With Tomcat 6

I am trying to configure SSL with Tomcat I have following all the steps of the configuration on tomcat server and Force. com side. I have follow the below link- https://developer.salesforce.com/page/...
2
votes
2answers
303 views

Get list of custom object in RemedyForce

I have custom object in my RemedyForce abc__c and would like to get list of it. Tried this code: SearchResult sr = con.search( "FIND {00008137} IN abc__c FIELDS RETURNING abc__c(...
2
votes
0answers
2k views

Error:java.net.UnknownHostException: login.salesforce.com

package salesforce_rest; import java.io.IOException; import org.apache.http.client.methods.HttpPost; import org.apache.http.client.HttpClient; import org.apache.http.impl.client.HttpClientBuilder; ...
2
votes
1answer
190 views

Error while creating a pushtopic from java

I am trying to create a push topic in java by following this link . Since there were changes in the eclipse httpclient library (I am using version 9.2.5) I had to make corresponding changes and the ...
2
votes
0answers
281 views

Writing JUnit test cases for Salesforce APIs

I want to write JUnit test classes for a project involving login, creation, updation & deletion of various custom objects, fields, tabs, custom settings, etc. most of them utilizing metadata API ...
2
votes
1answer
448 views

How do I update Subscriber attributes with Java SDK

I am using com.exacttarget.fuelsdk.ETSubscriberService to update subscriber information. The other SDKs have examples like: subscriber.props['Attributes'] = [{'Name' => 'First Name', 'Value' => '...
2
votes
0answers
152 views

write tooling api classes to file

I am trying to write ApexClass (soap tooling API) to a file, I want to load it later on the ApexClass. I don’t know how to use the write function… Wrote some trials such as: javax.xml.namespace....
2
votes
0answers
212 views

Placing external data onto Salesforce.com platform?

I've been trying to follow the link shown below to upload data via the bulk API tutorial from my external website onto the Salesforce.com platform: http://www.salesforce.com/us/developer/docs/...
1
vote
1answer
13 views

Trouble Installing JDK on Mac for VSCode (SFDX)

I'm trying to do the Apex Replay Debugger trailhead, which requires JDK 8. When I install the JDK on my Mac, the installer tells me it went into /Library/Java/ directory. However, when I look in that ...
1
vote
0answers
26 views

Receiving a null refreshtoken from marketing cloud via sdk

I am using flameSDK to interact with my marketing cloud org. I am able to create the ETClient object. During creation, it successfully calls the auth endpoint so I get my accessToken, expiresIn, ...
1
vote
1answer
32 views

Calling salesforce API using java application returns 301

I tested the following code and is working perfectly on sandbox and returning the following: HTTP/1.1 200 OK Successful login instance URL: https://XXXX.salesforce.com access token/session ID: ...
1
vote
0answers
92 views

400 error whilst using the Fuel SDK

I am new to marketing cloud. I am using the Fuel SDK for Java. I am trying to query data inside a data extension. So far, I have been using my colleagues clientID and clientSecret but the problem ...
1
vote
0answers
16 views

Type Cast Version 14.0 SObject to Version 45.0 SObject in Java

I am performing maintenance on an old Java application that uses version 14.0 Java Stubs to perform SOAP operations. Need to integrate ETM 2.0 objects into this application, is there anyway to type ...
1
vote
0answers
88 views

Error while using JAVA FuelSDK

I am using eclipse java luna to install Java fuelSDK. I used maven to add the following dependency to my project's pom.xml: com.github.salesforce-marketingcloud fuelsdk 1.3.2 Content of my ...
1
vote
1answer
98 views

trying to retrieve Symbol Table through tooling API takes too long

I am trying to retrieve SymbolTable from Tooling API, but it takes too long to retrieve that. Also like when I try to access the SObject from the ToolingAPI package, I am not getting any option like ...
1
vote
1answer
535 views

Destination URL not reset. The URL returned from login must be set in the SforceService

I am still a little new to web services and could use some help. Currently I am going through some code that was implemented before I started at this company. The code is trying to connect to ...
1
vote
1answer
350 views

[FuelSDK Java 1.2.1][ java.lang.IllegalStateException: Already connected] When using constructor of ETClient

This is my example code. It can run in local machine, but when deploy to EC2 instance of Amazon AWS, error was occured. public class SalesforceMarketingCloudDBService { private static final Logger ...
1
vote
0answers
94 views

Help Converting a Java Crypto class over to Apex Crypto

I have a java class for generating a token and I am struggling on converting it to apex. Below is the code. Any pointers would be appreciated! Here are the two methods in the java class that get ...
1
vote
0answers
439 views

Error authenticating to Force.com: 400

I have developer account on salesforce.com. Using Java, I am trying to connect, but I am getting a 400 error. I tried to pass a token as well as without. package src; import java.io.IOException; ...
1
vote
0answers
231 views

How to set up listener to salesforce outbound message in java using maven?

I am trying to set up salesforce outbound messaging listener in java. This is the link I followed to set up, and it works fine - https://developer.salesforce.com/page/...
1
vote
0answers
454 views

handling invalid session id

been running a java spring webservice application that runs on on a schedule, but for some reason the enterprise connection occasionally errors out. 2017-07-13 07:03:01 | ERROR | [http-nio-8090-exec-...
1
vote
0answers
95 views

FuelSDK - Java - How to get the Subscriber List

In the Java FuelSDK, how can I get a list of the email address mapped to the subscriber id now being passed for conversion? If I can't do this in FuelSDK, how can I do it with another API? Can I get ...
1
vote
0answers
997 views

Why do I get "ClientInputError - exceptionMessage='Server error returned in unknown format' while using Bulk Query

I am using Bulk Query, reading one batch at a time, and writing to the standard output. When the records size is small like 100000 records, the job works fine, but when I try to extract records like ...
1
vote
0answers
77 views

convert ANT script to Java

I have been digging for almost a week into the forums and S/F Developer pages for good "basic" Java code to retrieve a package from one ORG and Deploy to another ORG. I have had success building the ...
1
vote
0answers
511 views

Exception occurred in the TriggeredSendSubscriberHandler

I am making request to send a triggered email and the request fails. I am getting the following response: ID: 13543 Response-Code: 200 Encoding: UTF-8 Content-Type: text/xml; charset=utf-8 Headers: {...
1
vote
0answers
205 views

Not able to insert record into a custom object

I am having some difficulty inserting a row into a custom object. I am writing a java application that will insert rows into a custom salesforce object. There is no exception that is thrown, so I don'...
1
vote
1answer
611 views

Issue inserting Recordtype for object

I am writing a JAVA-application that mainly functions as a CRUD-platform for my employees. On this application, users can manage data from a specific objects. I am using REST-API. Now, here is my ...
1
vote
0answers
383 views

Salesforce error with certificate issue

In our application we are using two way ssl that to send the data in soap api with request and response. it is the communication between salesforce and java. java is server and salesforce is client. ...
1
vote
0answers
120 views

How to filter by date in fuelsdk 1.1.0?

Could you help, I don't know how to filter by date on fuel-sdk. I just want to retrive data after "2015-11-10". I look on Fuel-SDK unit test and not found anything relate to filter by date. I try ...
1
vote
1answer
80 views

Fuel Java sdk subexpression is not appearing to work

Attempting to use the java fuel sdk to pull data from a data extension table. In that table there is a date column which I am trying to create a filter with expression to get rows between two dates. ...
1
vote
0answers
308 views

Java issue on command line data import using data loader

I am running date import using command line batch file on daily basis for last 3 years without any problem. This morning I get this error Caused by: sun.security.provider.certpath....
1
vote
0answers
5k views

400 Bad Request on RestTemplate POST request to Salesforce Oauth

I am trying to send a POST request to https://test.salesforce.com/services/oauth2/token to retrieve the oauth access token. The response is 400 Bad Request with no info. Here's the (Java) client code: ...
1
vote
0answers
73 views

Inject Java Applet onto page?

I know it's possible to inject JavaScript onto a Salesforce page (with sidebar components, which are unfortunately going away this summer), but I'm wondering if it's possible to do the same thing with ...
1
vote
0answers
89 views

Decryption of something encrypted with Java

I have a little problem. I want to decrypt a Text that I encrypted with a method written in Eclipse using Java. When i try to decrypt it using my IV and my key, i get an error (System....
1
vote
0answers
97 views

In Java how can I insert additional data on subscriber profile attributes?

In Java, using FuelSDK, how can I insert/update and delete a subscriber + insert some additional data on profile attributes? There is something like insert/or update?
1
vote
1answer
139 views

Email FTP - Tracking file data delivery

We are using FTP mechanism for mass email sending out i.e. we send file contianing list of the email Ids to whom email to be sent, email template to be used, dynamic data points. What is the ...
1
vote
1answer
540 views

Inserting a row in DataExtension via Java FuelSDk not working

I'm trying to insert rows into my Data Extensions via the Java FuelSdk. I'm able to get the client and get the Data Extension. Creating the row is straight forward. I'm not able to do the actual ...
1
vote
2answers
952 views

Developing ExactTarget app in JAVA SDK: Part 2

The example for updating Data Extensions in "Developing ExactTarget app in JAVA SDK" was what I have been looking for. Unfortunately, I'm not able to get it work for Shared Data Extensions. I've ...