Comments (3)
I tried this out on my Mac, and it works for me. This is my setup:
-
A 32-bit OSX 10.6 machine
Mac OS X 10.6.8 (10K549)
-
My Java version, JDK 1.6.0
~ webxlab$ java -version java version "1.6.0_33" Java(TM) SE Runtime Environment (build 1.6.0_33-b03-424-10M3720) Java HotSpot(TM) Client VM (build 20.8-b03-424, mixed mode)
Looking at the metadata on newFactory
and newInstance
, (from /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Classes/classes.jar), we see that some of the newInstance
methods are deprecated in favor of newFactory
.
// Method descriptor #41 (Ljava/lang/String;Ljava/lang/ClassLoader;)
Ljavax/xml/stream/XMLInputFactory; (deprecated)
// Stack: 4, Locals: 3
public static javax.xml.stream.XMLInputFactory newInstance(java.lang.String arg0, java.lang.ClassLoader arg1) throws javax.xml.stream.FactoryConfigurationError;
In particular, http://docs.oracle.com/javase/6/docs/api/javax/xml/stream/XMLInputFactory.html says:
... All
newInstance
methods have been replaced with correspondingnewFactory
methods ...
That indicated that newInstance
should not be used in new code.
Can you verify your Java version and check the metadata for newInstance
?
from azure-sdk-for-java.
On my pc
java -version
java version "1.6.0_33"
Java(TM) SE Runtime Environment (build 1.6.0_33-b03-424-11M3720)
Java HotSpot(TM) 64-Bit Server VM (build 20.8-b03-424, mixed mode)
I'm goin to check if my classes are old and keep you up to date
from azure-sdk-for-java.
Ok...I'm closing this issue since it's not your problem. Sorry guys, best regards
from azure-sdk-for-java.
Related Issues (20)
- Just a blank issue for sanity testing HOT 2
- OpenSsl:154 - Failed to load netty-tcnative;OpenSslEngine will be unavailable, java.lang.illegalArgumentException: Failed to load any of given libraries :[netty_tcnative_windows_x86_64, netty_tcnative_x86_64, netty-tcnative HOT 4
- Make it so that `Response` contents can be lazily deserialized where necessary. HOT 2
- azure-ai-openai missing method to call GPT-4-turbo vision HOT 1
- [BUG] com.azure.core.http.HttpClient resolves proxy's DNS name only once and caches the IP address forever regardless of TTL. HOT 4
- [BUG] Android java - azure-storage-blob - blobClient.getProperties().getLastModified() - Wrong number of arguments; expected 1, got 0 HOT 2
- [OpenAI] Create a policy to route the AOAI and OAI API calls
- [BUG] Java OpenAI EmbeddingsOptions requires setUser be called with non-null value HOT 3
- [BUG] OpenAI beta6 using datasources - error: Unrecognized request argument supplied: dataSources
- [FEATURE REQ] eng, move SDK automation out of eng/mgmt folder HOT 1
- [BUG] CriteriaType ARRAY_CONTAINS does not support the 3rd parameter of the function in azure-spring-data-cosmos HOT 1
- [BUG] When prompt trigger the content filter, the serialized object with returned JSON is incorrect HOT 9
- [BUG] java.lang.IllegalStateException: block()/blockFirst()/blockLast() are blocking, which is not supported in thread reactor-http-epoll-1, when using uploadWithResponse method of BlobClient HOT 5
- Azure Key Vault- How to use AzureCliCredential first when using spring.cloud.azure.keyvault.secret.property-sources[0].endpoint HOT 6
- [OpenAI] Investigate the error message POJO that works for both AOAI and OAI HOT 2
- [BUG] Spring presents Bean selection issues when passwordless and resource-manager are used together. HOT 2
- Test Issue, please ignore HOT 1
- Test issue HOT 1
- Setup of JMS message listener invoker failed for destination 'queue-name' - trying to recover. Cause: Local transactions cannot span multiple top-level entities such as queue or topic. TrackingId:some_tracking_id, SystemTracker:gateway5, Timestamp:2024-02-29T21:57:11 [condition = amqp:not-allowed] HOT 6
- [BUG] java.lang.NoSuchMethodError: 'void com.azure.core.util.BinaryData.writeTo(java.nio.channels.WritableByteChannel)' HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from azure-sdk-for-java.